Displaying Cashback: In Cart Drawer
Step 1: Create a new snippet
snippets/memberr-cart-cashback.liquid
_10<p>_10 You will receive <memberr-cart-cashback-amount></memberr-cart-cashback-amount> <memberr-store-credit-name></memberr-store-credit-name> for this purchase._10</p>
Step 2: Render the snippet
In the Cart Drawer
Not standardized. This is dependent on the theme you are using. You need to find the theme file that manages your theme cart drawer implementation and place the snippet at the desired spot.
_10{% if settings.memberr %}_10 <div>_10 {% render 'memberr-cart-cashback' %}_10 </div>_10{%- endif -%}
On the Cart Page
your-shop-domain.com/cart
Not standardized. This is dependent on the theme you are using. You need to find the theme file that manages your themes cart page and place the snippet at the desired spot.
_10{% if settings.memberr %}_10 <div>_10 {% render 'memberr-cart-cashback' %}_10 </div>_10{%- endif -%}
Advanced
Display Store Credit Cart Label separately from Store Credit Toggle.
Part 1
Show Code
_21{%- if settings.memberr_enabled == true -%}_21 {%- assign store_credit_name = shop.metafields['memberr-v1'].store_credit_name -%}_21_21 {%- if cart.cart_level_discount_applications != blank -%}_21 <ul class="mini-cart__discount-list list--unstyled" role="list">_21 {%- for discount_application in cart.cart_level_discount_applications -%}_21 {%- unless discount_application.title == store_credit_name -%}_21 <li class="mini-cart__discount">_21 <span class="mini-cart__discount-badge discount-badge">_21 {%- render 'icon' with 'discount-badge' -%}_21 {{ discount_application.title -}}_21 </span>_21 <span class="mini-cart__discount-price text--xsmall text--subdued">_21 -{{ discount_application.total_allocated_amount | money -}}_21 </span>_21 </li>_21 {%- endunless -%}_21 {%- endfor -%}_21 </ul>_21 {%- endif -%}_21{%- endif -%}
Part 2
Show Code
_13{%- for discount_application in cart.cart_level_discount_applications -%}_13 {%- if discount_application.title == store_credit_name -%}_13 <div class="ds-mini-cart__sum-item">_13 <span>_13 {{- 'cart.general.store_credit' | t -}}_13 </span>_13 <span>_13 -_13 {{- discount_application.total_allocated_amount | money -}}_13 </span>_13 </div>_13 {%- endif -%}_13{%- endfor -%}