Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mattlebel/3f4cfedb55628fd96776f9115be4df14 to your computer and use it in GitHub Desktop.
Save mattlebel/3f4cfedb55628fd96776f9115be4df14 to your computer and use it in GitHub Desktop.
Behind The Checkout - Example of email-based Shopify Order Confirmation gating
{% if first_time_accessed or email == 'james@yourdomain.com' %}
<!--
Put the liquid tags that you want to verify in a div with a unique ID and display:none CSS rule
-->
<div id="search-for-me" style="display:none;">
{{ order_number }}
{{ total_price | money_without_currency }}
</div>
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment