Jump to content

Hide Price and Add to Cart button on specific product detail pages - Supply Template 7.0

Recommended Posts

Posted

Site URL: https://www.andrewfaris.com/2022/untitled07

Hi,

 

I would like to remove the price and 'add to cart' button on specific product detail pages. Can this be done using tags on the specific products so all products with the 'tag' will have the price and 'add to cart' button removed? What is the best way to do this?

Example of one of the product pages with Price and 'Add to Cart' buttons that I would like to hide:

https://www.andrewfaris.com/2022/untitled07

 

Thanks,

Andrew

Posted
1 hour ago, afaris said:

Site URL: https://www.andrewfaris.com/2022/untitled07

Hi,

 

I would like to remove the price and 'add to cart' button on specific product detail pages. Can this be done using tags on the specific products so all products with the 'tag' will have the price and 'add to cart' button removed? What is the best way to do this?

Example of one of the product pages with Price and 'Add to Cart' buttons that I would like to hide:

https://www.andrewfaris.com/2022/untitled07

 

Thanks,

Andrew

I can not see the add to card button and price on this page.

image.thumb.png.635c991dd09316712772cb3def91134a.png

 

Do I miss any of your point?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> No-code customisations for Squarespace

Posted

I found a work around, but it is not very efficient. It requires modifying each page that I would like to remove the price and add to cart button. I was hoping to be able to use tags and code to make universal changes.

Posted
36 minutes ago, afaris said:

I found a work around, but it is not very efficient. It requires modifying each page that I would like to remove the price and add to cart button. I was hoping to be able to use tags and code to make universal changes.

Which code did you use?

We can use tag to do for many products.

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

  • 3 weeks later...
Posted
On 7/30/2022 at 8:38 PM, tuanphan said:

Which code did you use?

We can use tag to do for many products.

Hi tuanphan,

I was using this code:

<style>
  .sqs-add-to-cart-button-wrapper {
    display : none;
    }
  </style>

I had placed it on the Page Header Code Injection, but the problem with this is that it hides all the Add to Cart buttons for all of the products on the page. I would like to individually hide Add to Cart buttons on specific products. I am using the Supply Template which is a 7.0 site.

 

Here is an example of a Product Page which I would like to remove the Add to Cart button. I appreciate any help you can provide.

https://www.andrewfaris.com/2022/30x40-untitled01

Posted
On 8/18/2022 at 1:06 AM, afaris said:

Hi tuanphan,

I was using this code:

<style>
  .sqs-add-to-cart-button-wrapper {
    display : none;
    }
  </style>

I had placed it on the Page Header Code Injection, but the problem with this is that it hides all the Add to Cart buttons for all of the products on the page. I would like to individually hide Add to Cart buttons on specific products. I am using the Supply Template which is a 7.0 site.

 

Here is an example of a Product Page which I would like to remove the Add to Cart button. I appreciate any help you can provide.

https://www.andrewfaris.com/2022/30x40-untitled01

Edit product > Additional Info > Add a Code Block > Paste the code

<style>
  /* Remove add to cart */
  div.sqs-add-to-cart-button-wrapper {
    display: none !important;
}
  </style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.