Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi,
We sell memberships that give our customers discounts. They get tagged when they purchase the membership. I'd like folks who are not tagged as a member to get a notification letting them know that they would save on the order if they purchase a membership.
I assume the cart would be the best place for this. Is it possible?
I would also like to be able to have a notice show if certain items are put in the cart saying how much people would save if they buy the membership with a link to the membership so they can purchase it.
Thx!
Hello @bdeaw,
Greetings from the Store Watchers Support Team! Happy to help you today.
You can simply add the below code to your cart template file.
{% unless customer.tags contains 'yourmembershiptagname' %}
<h3>Purchase a membership to save more on your order.</h3>
{% endunless %}
Note: Make sure to update the condition with your exact tag name.
Let me know if need further assistance
Regards,
Store Watchers Support Team
Thank you!
I'm not super well-versed on editing the code. Could you tell me the best place to add this?
Hello @bdeaw,
Go to Online Store -> Edit code. Please check the below screenshot for your reference.
Then search for cart.liquid or cart-template.liquid depending on the theme that you used. Look for the <form> tag similar to the one below.
Add the code above the <form> tag.
Let me know if need further assistance
Regards,
Store Watchers Support Team
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025