Can I hide the price of specific products?

Can I hide the price of specific products?

Landau
Tourist
11 0 2

Hello there,

I am trying to hide the prices of specific products. Is there a way to do this?

(These products can't be added to the cart)

Ideally, I'd like to avoid apps for doing this as it seems fairly simple.

Many thanks! 

Michael Landau
Marketing Executive
Industrial Plasters
Replies 14 (14)

LizHoang
Shopify Partner
1251 158 196

Hi @Landau Can you share store url?

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program
Landau
Tourist
11 0 2

Hi there, our URL is www.industrialplasters.com. Thanks for your reply!

Michael Landau
Marketing Executive
Industrial Plasters
LizHoang
Shopify Partner
1251 158 196

Hi @Landau 

You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file theme.css and add this code at the end of the file

 

.product-item__price-list.price-list {
    display: none !important;
}

 

Result 

LizHoang_0-1740577478956.png

 

Best,

Liz

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program
Landau
Tourist
11 0 2

Thank you, Liz

Would this code allow me to insert product names or SKU's so I am able to hide the prices only for specific products rather than all of them? If so, what would  I need to do to make this possible?

Alternatively, adding a product tag to identify which ones we want to hide would be ideal.

Many thanks,

Michael Landau
Marketing Executive
Industrial Plasters

B2Bridge
Excursionist
334 67 82

Hi @Landau,

There are several apps in the Shopify App Store that allow you to hide prices for specific products. Some popular options include:

  • "Hide Price & Add to Cart": This app allows you to hide product prices and the "Add to Cart" button for specific products, and even set up custom requests for quotes. Hide Price & Add to Cart 
  • "Request a Quote": This app can hide prices and allow customers to request a quote instead. It's commonly used for wholesale or B2B stores where the pricing can be dynamic based on customer groups.  Request a Quote 
  • "Locksmith": With Locksmith, you can restrict access to certain product details (including price) based on user conditions such as tags, membership, or customer groups. Locksmith 

B2Bridge: All-in-one B2B wholesale solution, enabling merchants to set up a complete B2B store quickly and without coding.
With features like customizable registration forms, customer segmentation, and tailored price lists, it simplifies wholesale management.
B2Bridge also includes a dedicated Quick Order page and flexible Net Payment Terms, streamlining operations for wholesalers and enhancing the buying experience.

websensepro
Shopify Partner
1869 220 266

Hi @Landau 

Share the URL of your store and tell me which product prices need to be hidden.

Need a Shopify developer? Hire us at WebSensePro For Shopify Design Changes/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP
Landau
Tourist
11 0 2

Hi there, thank you. Our URL is www.industrialplasters.com. One of the products we want hidden is the Thistle MultiFinish Skim-Coat Plaster.

Michael Landau
Marketing Executive
Industrial Plasters
websensepro
Shopify Partner
1869 220 266

@Landau 
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file and paste the code most common practice is to place JavaScript code just before the closing </body> tag.

 

 

<script>
  document.addEventListener('DOMContentLoaded', function() {
    const productName = "Thistle MultiFinish Skim-Coat Plaster"; 
    const productItems = document.querySelectorAll('.product-item__title');

    productItems.forEach(item => {
      if (item.textContent.trim() === productName) 
        const productItem = item.closest('.product-item');
        productItem.style.display = 'none';  // Hide the product item
      }
    });
  });
</script>

 

 

If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Use our Big Bulk Discount app to boost your sales! 🚀 (https://apps.shopify.com/big-bulk-discount). Easy to set up and perfect for attracting more customers with bulk discounts. Try it now and watch your revenue grow!

Need a Shopify developer? Hire us at WebSensePro For Shopify Design Changes/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP

suyash1
Shopify Partner
10713 1323 1699

@Landau - I recommend to add some tag to the products where you want to hide the price, and then we need to edit product liquid file to check if the product has this tag and then only display the price

Support me | To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
Landau
Tourist
11 0 2

Hi Suyash, thank you.

That would be the ideal solution. Would you happen to know what code to write?

Many thanks!

Michael Landau
Marketing Executive
Industrial Plasters
suyash1
Shopify Partner
10713 1323 1699

@Landau in the product page you can check the product tag with code

 

{% unless product.tags contains 'xyz' %}
price code
{% endunless %}
Support me | To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
Landau
Tourist
11 0 2

Hi Suyash,

Thanks for your reply. I'm a bit confused on how to implement this, though.

Michael Landau
Marketing Executive
Industrial Plasters
suyash1
Shopify Partner
10713 1323 1699

@Landau - you will need to add tag to the products where you do not want to show price. Then above code needs to be implemented in product.liquid or collection.liquid files, if you are not familiar with the coding, then you will need a developer.

Support me | To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.

Vi-WizzCommerce
Shopify Partner
142 7 21

@Landau 

To do this request, please follow these steps:

 

1. Add tag to the product, for example "hide_price"

 

=> I guess you know how to. As in my demo product edit page in admin, I added a tag "hide_price"

ViWizzCommerce_0-1741598086206.png

 

2. Update the code in your theme

 

- From your Admin => Online Store => Themes => Edit code

 

ViWizzCommerce_1-1741598177225.png

- In the Edit code screen, please search "price", then find the file name "price.liquid", but depend on your theme, it maybe difference, then you need to contact the theme support

ViWizzCommerce_2-1741598252511.png

 

- Then paste the code check the price include tag "hide_price" => not show price, if not => show the price

{% unless product.tags contains 'hide_price' %}

// the price code in the theme

{% endunless %}

 

for example in my theme (Dawn theme)

 

ViWizzCommerce_3-1741598356046.png

 

And at the end

ViWizzCommerce_4-1741598381168.png

 

 

Hope this help.

 

Check here Wizzcommerce Apps to optimize your store: Snap Presale & Backorder | SnapNoti FOMO Visitor Counter | SnapBundle Volume Discounts | Wizz Flash Sale & Price Edit | BOGO+ | Buy X Get Y Free Gift | Snap Cart Drawer & Cart Upsell
Find more support, feel free to contact: support@wizzcommerce.io