All things Shopify and commerce
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
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
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024