Skip to content

Instantly share code, notes, and snippets.

@BrennanMiva
Created February 19, 2014 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrennanMiva/9095132 to your computer and use it in GitHub Desktop.
Save BrennanMiva/9095132 to your computer and use it in GitHub Desktop.
custom.js - Update
In the custom.js file, find:
JS_OCST: function () {
$('#ocst_form').find('select').addClass('form-control');
},
and replace with:
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();
});
};
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment