Skip to content

Instantly share code, notes, and snippets.

@be-mohand
Created November 16, 2020 13:37
Show Gist options
  • Save be-mohand/991333b3be78e713b21472f311e20096 to your computer and use it in GitHub Desktop.
Save be-mohand/991333b3be78e713b21472f311e20096 to your computer and use it in GitHub Desktop.
Update Shipping countries in list
$(document).ready(function() {
// Keep only France as authorized Shipping countries
if($('#shipping-country').length > 0) {
$('#shipping-country')
.empty()
.append('<option selected="selected" value="FR">France</option>');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment