Skip to content

Instantly share code, notes, and snippets.

@emilian
Created November 7, 2011 13:04
Show Gist options
  • Save emilian/1344876 to your computer and use it in GitHub Desktop.
Save emilian/1344876 to your computer and use it in GitHub Desktop.
force the same address for both shipping and billing
<script type="text/javascript">
$('#CheckoutStepShippingAddress').remove();
$(document).ready(function(){
$('.ExpressCheckoutContent').ajaxSuccess(function(){
$('#BillingAddressTypeNew').parent().hide();
$('#ship_to_billing_existing').attr('checked','checked');
$('#ship_to_billing_existing').parent().hide();
$('#ship_to_billing_new').attr('checked','checked');
$('#ship_to_billing_new').parent().hide();
$('.billingButton').attr('value','Proceed');
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment