Jump to content

Product Add-Ons On New Page


kyhaas

Recommended Posts

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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated