SanitiseThis Posted August 14, 2020 Share Posted August 14, 2020 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
paul2009 Posted August 14, 2020 Share Posted August 14, 2020 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
SanitiseThis Posted August 14, 2020 Author Share Posted August 14, 2020 4 minutes ago, paul2009 said: The quantity field won’t appear when the stock level is 1, because the customer cannot order more than one. I knew it would be something obvious!😄 Thank you Link to comment
SanitiseThis Posted September 17, 2020 Author Share Posted September 17, 2020 Opening this back again as I have tried to do the same CSS on another of my products with no luck? https://www.sanitisethis.co.uk/shop/p/wall-bracket body#item-5f0726f6562ba54c0887be0e.product-quantity-input { display: block !important; } Link to comment
paul2009 Posted September 17, 2020 Share Posted September 17, 2020 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
SanitiseThis Posted September 17, 2020 Author Share Posted September 17, 2020 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
paul2009 Posted September 17, 2020 Share Posted September 17, 2020 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
SanitiseThis Posted September 17, 2020 Author Share Posted September 17, 2020 5 minutes ago, paul2009 said: There should be a space between #item-5f0726f6562ba54c0887be0e and .product-quantity-input, but it doesn't look like you have one. That's it! Thank you😄 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment