kyhaas Posted July 10, 2013 Share Posted July 10, 2013 Hi there, I'm doing some customizations to my WHMCS but have hit a snag. I'm using the Modern Cart. When someone is placing an order for the first time, they are asked to pick their domain. Upon making their selection, product addons are displayed dynamically on the same page underneath the domains along with their cart total. Instead, would it be possible to load this content on to a new page instead? I'm a rookie when it comes to jquery, but I think I have it isolated to this last bit of code on the configureproductdomain template. function completedomain() { jQuery("#domainresults").append('<img src="images/loading.gif" border="0" alt="Loading..." />'); jQuery.post("cart.php", 'ajax=1&a=add&pid={/literal}{$pid}{literal}&domainselect=1&'+jQuery("#domainfrm").serialize(), function(data){ if (data=='') { window.location='cart.php?a=view'; } else if (data=='nodomains') { jQuery("#domainpopupcontainer").slideUp('slow',function() { jQuery("#greyout").fadeOut(); }); } else { jQuery("#prodconfigcontainer").html(data); jQuery("#domainpopupcontainer").slideUp('slow',function() { jQuery("#greyout").fadeOut(); }); jQuery("#prodconfigcontainer").slideDown(); } }); } Thank you for your help! 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.