Last active
August 29, 2015 14:14
-
-
Save wsmoak/f8d407b19ec6e6c50a2e to your computer and use it in GitHub Desktop.
Chargify - Hide all shipping address fields (except country)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hideShippingAddressFields() | |
{ | |
$('#subscription_customer_attributes_address').hide(); | |
$('#subscription_customer_attributes_address_2').hide(); | |
$('#subscription_customer_attributes_city').hide(); | |
$('#subscription_customer_attributes_state').hide(); | |
$('#subscription_customer_attributes_zip').hide(); | |
$('label[for="subscription_customer_attributes_address"]').text(""); | |
$('label[for="subscription_customer_attributes_address_2"]').text(""); | |
$('label[for="subscription_customer_attributes_city"]').text(""); | |
$('label[for="subscription_customer_attributes_state"]').text(""); | |
$('label[for="subscription_customer_attributes_zip"]').text(""); | |
}; | |
$(document).bind("afterSummaryRefresh", hideShippingAddressFields); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment