Skip to content

Instantly share code, notes, and snippets.

<script data-cfasync="false" >
window.saso_config = {
upsell_variant_choose_option: "please select",
upsell_variant_choose_message: "Please select an option",
translate_percent_off: '% Off'
}
</script>
after
{{item.variant.title}}
add
<span class="saso-cart-item-discount-notes" data-key="{{item.key}}"></span>
<span class="saso-cart-item-upsell-notes" data-key="{{item.key}}"></span>
==
<!-- /templates/product.liquid -->
{% include 'buyx-product' with product %}
{% include 'buyx-price-min' with product %}
<div itemscope itemtype="http://schema.org/Product">
<meta itemprop="url" content="{{ shop.url }}{{ product.url }}">
<meta itemprop="image" content="{{ product.featured_image.src | img_url: 'grande' }}">
{% unless grid_item_width %}
{% assign grid_item_width = 'large--one-third medium--one-half' %}
{% endunless %}
{% include 'buyx-price-min' with product %}
{% assign on_sale = false %}
{% if product.compare_at_price > buyx_price_min %}
{% assign on_sale = true %}
.mobile-show {
display: none;
}
@media (max-width: 640px) {
.mobile-show {
display: inline;
}
.desktop-show {
<!-- Before </head> tag, add -->
{{ 'sam_referral.js' | asset_url | script_tag }}
<!-- After {{ page.content }}, add -->
{% if page.title == 'Get Rewards' %} <!-- use same title as the rewards page you created -->
{% include 'sam_account' %}
{% endif %}
Parallax
<li class="mm-label">
<p class="mm-counter"><span class="sam-cart-original-total">{{ cart.total_price | money }}</span> &nbsp; <span class="total sam-cart-total"></span></p>
<a href="/cart">
<strong>{{ 'layout.general.subtotal' | t }}</strong> &nbsp; <span class="sam-discount-info" style="text-transform: none;"></span>
</a>
<input type="hidden" name="discount" id="discount" value="" style="display: none;"/>
</li>
{% include 'sam_account' %}
Quantity field:
{% unless item.variant.inventory_management == blank or item.variant.inventory_policy == 'continue' %} max="{{ item.variant.inventory_quantity }}" {% endunless %}
<!-- OPTIONAL, only if you want members to purchase directly with Benefits, instead of a regular checkout.
Add to cart.liquid, after total price:
-->
<div id="sam-benefits-info" class="sam-hidden">