Knowledgebase:
Miva Bootstrap "same as billing" checkbox not working correctly.
Posted by , Last modified by on 25 September 2015 09:22 AM

Disclaimer: Note that this will require making changes to files on the server. Make sure you make a backup of any files you will be altering.These edits are low-risk but if you feel uncomfortable with making these changes then we advise you to seek help from a developer.

 

Objective: These are instructions to fix the "same as billing" checkbox on the OCST page from working backwards

 

Issue(s): I tried checking the "Same As Shipping" checkbox, the functionality is working backwards. When it is checked the customer fields show and when it is not checked the customer fields do not show.

 

Instructions:

In the mm5/js/custom.js file change:

 

JS_OCST: function () { $('#ocst_form').find('select').addClass('form-control'); if ($('#shipping_controls').is(':visible')) { if ($('#shipping_to_show').is(':checked')) { $('#shipping_fields').hide(); }; $('#shipping_to_show').on('change', function () { $('#shipping_fields').toggle(); }); }; if ($('#billing_controls').is(':visible')) { if ($('#billing_to_show').is(':checked')) { $('#billing_fields').hide(); }; $('#billing_to_show').on('change', function () { $('#billing_fields').toggle(); }); }; },

 

To

 

JS_OCST: function () { $('#ocst_form').find('select').addClass('form-control'); },

 

 

The fix can also be seen on this thread...

http://extranet.miva.com/forums/showthread.php?116815-Same-As-Shipping-Checkbox-Issue

(0 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako support.miva.com/supportsuite/index.php?