Skip to content

Instantly share code, notes, and snippets.

@riq363
Created January 27, 2015 16:22
Show Gist options
  • Save riq363/8a6c9a6734ffc7e8cf0d to your computer and use it in GitHub Desktop.
Save riq363/8a6c9a6734ffc7e8cf0d to your computer and use it in GitHub Desktop.
Clear address fields on Shipping address step Ecwid
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script>
if (typeof(Ecwid) == 'object') {
Ecwid.OnPageLoaded.add(function(page) {
if ('CHECKOUT_SHIPPING_ADDRESS' == page.type) {
$('input[type=text]').val('');
$('input[type=tel]').val('');
$("select[name='country-list']").val('');
$("select[name='state-list']").val('');
$("select[name='state-suggest']").val('');
}
});
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment