How do I remove $0 label for a product that is set to $0 in cart in DAWN

How do I remove $0 label for a product that is set to $0 in cart in DAWN

dimensionalpw
Visitor
2 0 0

Hello, I have changed the code so that when an item is listed at $0, the price does not show on the product page. I use Globo Product options to create add ons with the prices I want to use. When I go to the cart, it still shows $0 for the product. 

How do I remove the $0 label in the cart for that item and just show the add on prices?

In my image I have the item. The Add on prices are for the style of shirt, and back of shirt text.

Screen Shot 2024-05-10 at 8.32.07 AM.png

Replies 2 (2)

INA_MSWEB
Shopify Partner
1281 144 168

Hello,

 

I am San from MS Web Designer.

 

To hide the $0 price in Shopify, you need to include an additional condition in the theme code. Locate the price code in the product-template.liquid template and insert the following condition:

 

 {% if product.price > 0 %} Add the price code here {% endif %}.

 

Hope this helps.

 

Do let me know in case of any concerns.

 

Regards,

San

If it’s helpful to you, please mark it as a solution.  


Need Help with Shopify Design, Migration, Speed, or Custom tasks?  
email: hi@mswebdesigner.com
Try Our Conversion Booster app to get more sales | Connect Our Founder Linkedin

Easify-Mark
Explorer
169 3 2

Hi @dimensionalpw,

If I’m correct, your main product is a virtual product set at $0.00, and the actual product your customers select and purchase is the add-on. Is that right?

If so, hiding the price on the product page won’t prevent the $0.00 price from appearing in the cart.

However, if you switch to using the Easify Product Options app (which allows you to set up the same options), we can offer two solutions 🤗:

  1. Add custom code to hide the $0.00 price of the main product in the cart.
  2. Merge the main product and add-on into one item in the cart, with the total price displayed instead of $0.00.

Please note that these solutions work on the cart page, but due to Shopify restrictions, customizing how the product appears on the checkout page may be challenging.

 

Easify Product Options: Any product options app can help you create custom options, but Easify turns those options into sales and conversions!
Easify Inventory Sync: Automate inventory syncing for Bundles, Duplicates, and Raw Materials. Say goodbye to manual tracking headaches.
Easify Product Attachments: Enrich your store with downloadable content. Easily add PDFs and other files to product or any page.
>>> Try Apps for Free | 24/7 Live Chat Support