Last active
January 20, 2017 10:02
-
-
Save nord/d8ceb79970fb48165fa2d108af86eaa7 to your computer and use it in GitHub Desktop.
Shopify customer accounts - set disabled customers as VAT exempt. Used by Sufio for Shopify (www.sufio.com/shopify). Read more at https://sufio.com/articles/shopify/selling/vat-eu-customers-shopify/vat-exempt-eu/disabled-customers/
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
{% if customer.tags contains 'disabled' %} | |
<!-- Shopify customer account -- set disabled customer as VAT exempt. Used by Sufio for Shopify (www.sufio.com/shopify). --> | |
<script type="text/javascript"> | |
$.ajax({ | |
type : "GET", | |
dataType: "jsonp", | |
url: "/apps/sufio/customer-vat/", | |
data: { email: "{{ customer.email }}", force_tax_exempt: true } | |
}); | |
</script> | |
{% endif %} |
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
<!-- Shopify customer registration -- checkbox for disabled customers. Used by Sufio for Shopify (www.sufio.com/shopify). --> | |
<p> | |
<input type="checkbox" name="customer[tags]" id="Disability" value="disabled" /> | |
<label for="Disability" class="inline">Are you registered disabled?</label> | |
</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment