Skip to content

Instantly share code, notes, and snippets.

@bogdan
Last active October 24, 2017 13:52
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 bogdan/cb9875eaacb521de0e2232a7d38b951c to your computer and use it in GitHub Desktop.
Save bogdan/cb9875eaacb521de0e2232a7d38b951c to your computer and use it in GitHub Desktop.
<div class="popup is-terms is-<%= with_overlay ? 'fixed' : claim_page_layout %>" data-popup="terms">
<div class="popup-close" data-toggle="terms">&times;</div>
<div class="popup-title">Terms &amp; Conditions</div>
+ <% if view_name == "advocate_share_page" %>
{% capture terms_and_conditions_copy %}
<p>
To qualify for a promo code, the referred person must (i) be a new customer, (ii) use a referral link to obtain the promo code and (iii) make a purchase on [[ site_url ]] in an amount greater than the minimum amount specified in the referral offer prior to the promo code's expiration. Referring customers will receive a referral credit in their [[ site_url ]] account after the referral is confirmed and the referral credit is approved by a customer service member. Customers are limited to referring two people per household. Referring customers may only earn one referral credit per referred person. In the event a referred person returns a purchased item and their lifetime order value decreases below the minimum purchase amount, the referral credit awarded to the referring customer will be rescinded. Customers may not refer anyone who has an existing [[ site_url ]] account under an alternate email address.
@@ -17,4 +18,8 @@
</p>
{% endcapture %}
{{ "campaign_terms_and_conditions_copy" | localize: terms_and_conditions_copy }}
+<% else -%>
+ {{ "campaign_terms_and_conditions_copy" | localize }} <!-- default value is taken from AD share page -->
+
+ <% end %>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment