Jump to content

[RESOLVED] Config Options Live Price Update


Derek

Recommended Posts

Now back to my thread. It seems when you change the billing cycle then try to adjust different config options nothing gets updated.

 

I can't seem to reproduce this on my end. I switched the billing cycle all around and changed the configuration options. Every change is updating the cart box on the right.

Link to comment
Share on other sites

It works fine from here. Its either specific to your installation or a perhaps a browser problem since a lot of it is done with javascript.

 

Give it a shot on our order form and see if you can reproduce it. If you can, than its likely a browser issue:

 

https://customers.asmallorange.com/order/

 

You don't have the same type of config options as we do. We have drop down boxes that raise the price.

Link to comment
Share on other sites

I have it in a dev site thats not public ( terms of dev license ) we do however have check boxes that add items to the configuration ( that include price ) and we have no issues

 

Yeah, I'm talking about multiple drop down items. Not check boxes.

Link to comment
Share on other sites

This problem only occurs when you do not have domain options enabled on the product. This has been reported to matt by me, and should be fixed in 4.3.2.

 

This is the fix I came up with, for this problem.

 

In ordering.js find:

function cyclechange() {
   $.post("order/index.php", 'a=getproduct&'+$("#orderfrm").serialize(),
   function(data){
       $("#productconfig2").html(data);
   });
   recalctotals();
}

 

then replace with:

function cyclechange() {
$.post("order/index.php", 'a=getproduct&'+$("#orderfrm").serialize(),
function(data){
	if ($("#domain").val()) $("#productconfig2").html(data); else $("#productconfig1").html(data);
});
recalctotals();
}

Link to comment
Share on other sites

  • 2 weeks later...
Derek did you find out what was causing this? I'm getting the exact same situation

 

nope, I hate to say anything negative about WHMCS but I'm really not sure why we are going weeeks without anyone looking into the issue via ticket. sigh

Link to comment
Share on other sites

This problem only occurs when you do not have domain options enabled on the product. This has been reported to matt by me, and should be fixed in 4.3.2.

 

This is the fix I came up with, for this problem.

 

In ordering.js find:

function cyclechange() {
   $.post("order/index.php", 'a=getproduct&'+$("#orderfrm").serialize(),
   function(data){
       $("#productconfig2").html(data);
   });
   recalctotals();
}

 

then replace with:

function cyclechange() {
$.post("order/index.php", 'a=getproduct&'+$("#orderfrm").serialize(),
function(data){
	if ($("#domain").val()) $("#productconfig2").html(data); else $("#productconfig1").html(data);
});
recalctotals();
}

 

Thanks this resolved it.

Link to comment
Share on other sites

  • 1 month later...

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