How to add a reminder for discount eligibility in my sticker shop?

How to add a reminder for discount eligibility in my sticker shop?

MaileCArtist
Tourist
9 0 3

I created a buy 3 stickers, get 1 sticker free in my shop. Is there a way to add a reminder if the customer only enters 2 or 3 items? I want to remind them..."Buy x more, to get 1 Free" or something like that, if they havent gotten the eligible amount needed for the discount. 

Thanks so much, 

Maile

https://mailecristinaartist.com/collections/stickers

 

Reply 1 (1)

PaulNewton
Shopify Partner
7201 637 1497

@MaileCArtist 

Merchants that want this customization tailored for them can contact me at paull.newton+shopifyforums@gmail.com with store url, storefront-pass, theme name and this topic url with any further details.

Try the following, if you have an Online Store 2.0 theme that supports a custom liquid block on cart pages use it there

Otherwise you will need to add it as a snippet in your theme code files, name it something like deal-reminder.liquid and to include it in your cart templates use {% render 'deal-reminder' %}

{%- assign deal_minimum = 3 -%}
{%- assign deal_product_handle = "handle-of-discountable-product" -%}
{%- for item in cart.items -%}
    {%- if item.product.handle == deal_product_handle -%}
        {%- assign deal_product_is_in_cart = true -%}
        {%- if item.quantity < deal_minimum -%}
            <h1>Buy {{ deal_minimum }} more, to get 1 Free </h1>
        {%- endif -%}
    {%- endif -%}
{%- endfor -%}
{%- if deal_product_is_in_cart == false -%}
    {%- comment -%}logic for then deal product is not in the cart{%- endcomment -%}
{%- endif -%}

 

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org