Jump to content

Show the quantity box on a number of my product

Recommended Posts

Site URL: https://sanitisethis.co.uk

I have managed to show the quantity field on a number of my products. However following the same logic hasn't worked for this one: https://www.sanitisethis.co.uk/shop/community-spirit-hand-sanitiser-full-bundle

This is the CSS I have been adding

body#item-5f36419e3e7bd81b799c3dd0 .product-quantity-input {
 display: block !important;
}

Is there a reason it just wouldn't work for this item, or have I done something wrong?

Link to comment
  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

The quantity field won’t appear when the stock level is 1, because the customer cannot order more than one.

About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!
If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.
Improve your online store with our extensions.

Link to comment
  • 1 month later...
41 minutes ago, SanitiseThis said:

Opening this back again as I have tried to do the same CSS on another of my products with no luck?

That's because you have this in your CSS that is hiding it for all products and is overriding other settings:

.product-quantity-input {
  display: none !important;
}

Try replacing the CSS above with this instead:

.ProductItem-details .product-quantity-input {
  display: none;
}

   If a post helps you, please click a "Like" option below  ↘️

About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!
If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.
Improve your online store with our extensions.

Link to comment
3 minutes ago, paul2009 said:

That's because you have this in your CSS that is hiding it for all products and is overriding other settings:


.product-quantity-input {
  display: none !important;
}

Try replacing the CSS above with this instead:


.ProductItem-details .product-quantity-input {
  display: none;
}

   If a post helps you, please click a "Like" option below  ↘️

Hi Paul,

This doesn't work unfortunately, any other ideas?

Link to comment

There should be a space between #item-5f0726f6562ba54c0887be0e and .product-quantity-input, but it doesn't look like you have one.

About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!
If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.
Improve your online store with our extensions.

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.