Have your say in Community Polls: What was/is your greatest motivation to start your own business?

"See price in cart"

"See price in cart"

UnlimitedAmmo
Visitor
2 0 0

Hello,

 

I am using the Focal theme and i want to add a "See price in cart" function to specific products and those products only to have a different price when added to the cart.

 

I have tried editing the code and that did not seem to work, I want to make a Black Friday collection and only add those products to the home page and instead of showing the price, it will see "See price in cart" 

 

Can anyone help with this?

 

Thank you in advance

Replies 2 (2)

ProtoMan44
Shopify Partner
615 54 93

@UnlimitedAmmo Hey, thanks for posting here.
I have an idea that you add a tag to the product and put this condition in the price snippet on the product card.

{% if product.tags contains 'see-price-in-cart' %}
  <span class="see-price-in-cart">See price in cart</span>
{% else %}
  {{ product.price | money }}
{% endif %}

 

- A thirsty developer passionate about supporting the community. If you'd like to, you can  

Buy me a Coffee.


- Your Shopify Solution Specialist Get a Quote at

ProtoMan44

 - 

Chat On Whatsapp


Crafting exceptional e-commerce experiences to elevate your online presence. Let's build your success story together!
UnlimitedAmmo
Visitor
2 0 0

Thank you for your reply! Where do I find the Price snippet and product card? Is this something I can find within creating the product?