Skip to content

Instantly share code, notes, and snippets.

@nord
Last active January 20, 2017 10:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nord/d8ceb79970fb48165fa2d108af86eaa7 to your computer and use it in GitHub Desktop.
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/
{% 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 %}
<!-- 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