Jump to content

How to remove price, add to cart, and quantity choice from all product pages?

Go to solution Solved by ArminB,

Recommended Posts

Site URL: https://benevolentdelights.com.au/

Hi there!

I have an Ecommerce site which I am changing the process for payment for. Rather than adding to cart it will be submitting an enquiry by contact form so we can contact customers directly with further details.

I have used the below code in the Header Code Injection:

<style>

  .collection-type-products .grid-prices,
  .ProductItem-details .ProductItem-product-price,
  .ProductItem-details .product-quantity-input,
  .ProductItem-details .sqs-add-to-cart-button-wrapper
  
    {
    
      display: none;
      
      }
      
  </style>

 

It has worked for the main product page but when you click on the individual product it shows in the "You might also like" section the pricing. As well as on the homepage for the quick view it has quantity and pricing when you click.

Is there a way I can code to remove ALL add to cart, quantity and pricing from all areas where products are shown? We do not want this function at all on the website and just want to show product images and information. 

Thank you in advance! 

(Password for site: BD4321!)

Link to comment
  • Solution

Hey!

For the product overview grid you can simply hide the pricing: (Section settings)
465051182_Bildschirmfoto2022-08-30um07_09_09.thumb.png.fd5f43eb33532fa79d8b7007ccece877.png

 

For the product detail page, you just need the following CSS

(add it to DESIGN > SITE STYLES > CUSTOM CSS

.product-price
{display:none}

.ProductItem-details .sqs-add-to-cart-button-wrapper
{display:none}


if the quanity of each product is set to 1, there won't be a quantity input field but if I'm wrong, please just add the css class that you already have for that)


It's better to use the CSS injection istead of the header because you instantly see the result and can play with the code snippets


The result on our own page:
https://www.braunsberger-media.com/websites

 

 

 

About Armin:
Squarespace Expert Profile: https://www.squarespace.com/designer/profile/3649084
Website: www.braunsberger-media.com

Link to comment
  • 2 weeks later...
On 8/30/2022 at 2:46 PM, ArminB said:

Hey!

For the product overview grid you can simply hide the pricing: (Section settings)
465051182_Bildschirmfoto2022-08-30um07_09_09.thumb.png.fd5f43eb33532fa79d8b7007ccece877.png

 

For the product detail page, you just need the following CSS

(add it to DESIGN > SITE STYLES > CUSTOM CSS

.product-price
{display:none}

.ProductItem-details .sqs-add-to-cart-button-wrapper
{display:none}


if the quanity of each product is set to 1, there won't be a quantity input field but if I'm wrong, please just add the css class that you already have for that)


It's better to use the CSS injection istead of the header because you instantly see the result and can play with the code snippets


The result on our own page:
https://www.braunsberger-media.com/websites

 

 

 

That worked perfect!!! Thank you!!!

Link to comment
  • 3 months later...
On 8/30/2022 at 12:16 AM, ArminB said:

Hey!

For the product overview grid you can simply hide the pricing: (Section settings)
465051182_Bildschirmfoto2022-08-30um07_09_09.thumb.png.fd5f43eb33532fa79d8b7007ccece877.png

 

For the product detail page, you just need the following CSS

(add it to DESIGN > SITE STYLES > CUSTOM CSS

.product-price
{display:none}

.ProductItem-details .sqs-add-to-cart-button-wrapper
{display:none}


if the quanity of each product is set to 1, there won't be a quantity input field but if I'm wrong, please just add the css class that you already have for that)

 

On 8/30/2022 at 12:16 AM, ArminB said:

For the product detail page, you just need the following CSS

(add it to DESIGN > SITE STYLES > CUSTOM CSS

.product-price
{display:none}

.ProductItem-details .sqs-add-to-cart-button-wrapper
{display:none}


if the quanity of each product is set to 1, there won't be a quantity input field but if I'm wrong, please just add the css class that you already have for that)


It's better to use the CSS injection istead of the header because you instantly see the result and can play with the code snippets


The result on our own page:
https://www.braunsberger-media.com/websites

 

 

 



It's better to use the CSS injection istead of the header because you instantly see the result and can play with the code snippets


The result on our own page:
https://www.braunsberger-media.com/websites

 

 

 

Do you know how to change the color for the product-quantity-input?
I'm interested in a white background, but the quantity color is set to white as well, so people can't see quantity.
 

Screenshot 2022-12-09 at 11.07.39.png

Link to comment
On 8/30/2022 at 12:16 AM, ArminB said:

Hey!

For the product overview grid you can simply hide the pricing: (Section settings)
465051182_Bildschirmfoto2022-08-30um07_09_09.thumb.png.fd5f43eb33532fa79d8b7007ccece877.png

 

For the product detail page, you just need the following CSS

(add it to DESIGN > SITE STYLES > CUSTOM CSS

.product-price
{display:none}

.ProductItem-details .sqs-add-to-cart-button-wrapper
{display:none}


if the quanity of each product is set to 1, there won't be a quantity input field but if I'm wrong, please just add the css class that you already have for that)

 

On 8/30/2022 at 12:16 AM, ArminB said:

For the product detail page, you just need the following CSS

(add it to DESIGN > SITE STYLES > CUSTOM CSS

.product-price
{display:none}

.ProductItem-details .sqs-add-to-cart-button-wrapper
{display:none}


if the quanity of each product is set to 1, there won't be a quantity input field but if I'm wrong, please just add the css class that you already have for that)


It's better to use the CSS injection istead of the header because you instantly see the result and can play with the code snippets


The result on our own page:
https://www.braunsberger-media.com/websites

 

 

 



It's better to use the CSS injection istead of the header because you instantly see the result and can play with the code snippets


The result on our own page:
https://www.braunsberger-media.com/websites

 

 

 

Do you know how to change the color for the product-quantity-input?
I'm interested in a white background, but the quantity color is set to white as well, so people can't see quantity.
 

Link to comment
On 12/10/2022 at 12:09 AM, mejiacasas said:

Do you know how to change the color for the product-quantity-input?
I'm interested in a white background, but the quantity color is set to white as well, so people can't see quantity.
 

Add to Design > Custom CSS

.product-quantity-input input {
    background-color: #f1f !important;
    color: blue !important;
}

image.png.021f6e423a3aa424739708d7998cfdc4.png

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!)

Link to comment

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.