Jump to content

Standard Cart Configurable Option radio box select issues


Recommended Posts

Currently, a change of radio box selection can cause the selection to appear correct, but in the actual order summary, the wrong option ends up applying. This is because the javascript in base.js triggers recalctotals(); on both ifChecked AND ifUnchecked, which works great for checkboxes, but not for radio boxes. To fix this, I edited base.js as follows:

 

Original:

jQuery("#productConfigurableOptions").on('ifUnchecked', 'input', function() {
       recalctotals();
   });

 

Modified:

jQuery("#productConfigurableOptions input[type=checkbox]").on('ifUnchecked', 'input', function() {
       recalctotals();
   });

 

This way, radio boxes don't cause both a Check and Uncheck to be triggered whenever a different option is selected -- only actual checkboxes trigger an uncheck recalc.

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.

×
×
  • 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