Meebox Posted October 19, 2010 Share Posted October 19, 2010 Hi guys, I'm using the Ajax Order Form, selling Webhotels and VPS's. The customer can choose different billing cycles for both products. The only difference between the products are that the VPS's has some custom fields and the webhotels has to choose a domain. Other then that, they are just added in WHMCS as usual. When I try to change the billing cycle for the webhotel, it works perfectly. When trying to change the billing cycle for the VPS's (with the custom fields) - not working. It simply doesn't update the template. Any clue what is wrong? Or is there a fix available? I'm using the default ajax order form code. Thanks! 0 Quote Link to comment Share on other sites More sharing options...
DougK94 Posted October 23, 2010 Share Posted October 23, 2010 I just discovered the same error. 0 Quote Link to comment Share on other sites More sharing options...
keliweb Posted November 19, 2010 Share Posted November 19, 2010 I just discovered the same error. 0 Quote Link to comment Share on other sites More sharing options...
IntaHost-Steve Posted November 26, 2010 Share Posted November 26, 2010 Yeh we noticed this a few weeks ago, not sure why or what the fix might be though. Hoping on some info at least for the next release. 0 Quote Link to comment Share on other sites More sharing options...
jeremyhaber Posted November 26, 2010 Share Posted November 26, 2010 (edited) This issue is occurring because the form has duplicated instances of the fields. What happens is when you load a product and configure it and then switch to another product that has less configuration options, the data from the last form still exists. There is a very simple fix to this issue. Open up order/templates/ordering.js Find the line from the function "loadproductconfig" (line 20 by default): if (pid) var displaynum = 1; else var displaynum = 2; Add under it: if (displaynum == 1) { $("#productconfig2").html(''); } This will now remove the additional configuration from the previous product Edited November 26, 2010 by jeremyhaber 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.