christopher1 Posted April 3, 2022 Share Posted April 3, 2022 Site URL: https://brakesandbriskets.squarespace.com/ Hello, please i want to remove add to cart button on my website and i have been trying to add some code i found on this forum inside the custom css but it not working. Someone should please help me out Link to comment
Solution paul2009 Posted April 3, 2022 Solution Share Posted April 3, 2022 On a Squarespace 7.1 website, you should be able to hide the Add to Cart button on Product Detail Pages (PDPs) by adding the following to Design > Custom CSS: .ProductItem-details .sqs-add-to-cart-button-wrapper { display: none!important; } Did this help? Please give feedback by clicking an icon below ⬇️ cami_leisk and Agostinha 1 1 About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
rossempson Posted April 4, 2022 Share Posted April 4, 2022 hello I hope you might also be able to help me I am running 7.1. site doesn't say what template I chose - but anyway. I have an all prints product section....shop I just want to remove the cart from all pages / disable for now / hide cart just want to use the (all prints product section) as a display gallery section. is there any custom code to do so ? otherwise I am not sure - I like the way the products are displayed much more than the portfolio and gallery pages the page is still being built so it private ? so cant show you? probably this i s very unhelpful - sorry thank you ross Link to comment
paul2009 Posted April 4, 2022 Share Posted April 4, 2022 37 minutes ago, rossempson said: I have an all prints product section. I just want to remove the cart from all pages/disable for now Firstly, all Squarespace 7.1 sites are the same. There aren't different template names with different features. You can therefore use the Custom CSS that I posted above to remove the 'Add to Cart' button from your Product Detail Pages. You can remove the cart icon from your site's header as follows: 1. Click Edit on any page on your site, then click Edit Site Header. 2. In the window that appears, click Elements. 3. Switch the Cart toggle off. 4. Click out of the window, then hover over Done and click Save. Did this help? Please give feedback by clicking an icon below ⬇️ creedon and Agostinha 1 1 About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
Dr_KMcB Posted July 20, 2022 Share Posted July 20, 2022 Hi @paul2009 if we use custom code like this one, and SQSP updates their product code in a way that requires updating the custom code, do you know if there's a way for us as to know where the updated custom code would be? I'm currently trying to set up my first online shop without the online buying function, so want to hide the 'add to cart' button... and am concerned that if I use this custom code above, SQSP will change something and I wont know what to do. Noob I know. Thanks also for sharing the code above! I'm on 7.1 at https://drkmcb.com/ Link to comment
paul2009 Posted July 20, 2022 Share Posted July 20, 2022 1 hour ago, Dr_KMcB said: If we use custom code like this one, and SQSP updates their product code in a way that requires updating the custom code, do you know if there's a way for us as to know where the updated custom code would be? As you say, a software update could break third party code. Squarespace do make frequent changes to their platform and do so without warning, but they do this so they can fix bugs and send out new features without requiring users to take any manual 'maintenance' action. There's little you can do to prevent some code from being affected by an update, but it obviously helps to source your code from someone who is trusted, but this doesn't guarantee that the code won't break at some point, it just makes it less likely that it will happen often or that it will do harm. Indeed, Squarespace can occasionally make changes that break their own code. It's a fact of life with software updates. If you will be relying on some code that will be critical to your business, I recommend that you book a Software Developer to write code for you and that you ensure they can be booked again later if changes become necessary. Code given away free on forums hasn't been designed to be used in mission-critical situations because it: won't include full error-checking won't include version control won't be guaranteed may slow down your website I hope this helps. About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
Dr_KMcB Posted July 20, 2022 Share Posted July 20, 2022 On 4/3/2022 at 1:15 AM, paul2009 said: .ProductItem-details .sqs-add-to-cart-button-wrapper { display: none!important; } Thank you very much @paul2009 for your answer, that all makes total sense. One question, is the code you provided in April at the top still what you'd suggest to hide the 'add to cart' button? We're adding at the Design>Custom CSS area, but the button still appears (have checked when logged out for what the public would see too). Link to comment
Dr_KMcB Posted July 20, 2022 Share Posted July 20, 2022 (edited) Site URL: https://drkmcb.com/ Hello everyone, I'm trying to work out a way to have an online shop or section for my 'available art' for sale, but without the online check out and ecommerce. The SQSP shop set up is ideal if I can just hide the 'add to cart' button. I've searched around this forum and found paul2009's code from April 2022 which he said add to Design>Custom CSS, but when I do this, the button is still visible (including when I'm logged out/viewing as the public would). I paste the code I tried below so you can all see it. I don't want my shop live until I get all this sorted, but I think you need to be able to see it to help me troubleshoot, so I have made it live but it's not showing in my site navigation. You can see at https://drkmcb.com/shop Thank you! .ProductItem-details .sqs-add-to-cart-button-wrapper { display: none!important; } Edited July 20, 2022 by Dr_KMcB typo Link to comment
ghostplugins Posted July 21, 2022 Share Posted July 21, 2022 Hey @Dr_KMcB - Try this. It should hide the cart in all areas it appears (product part, product blocks, quick view). // Hide Add To Cart Button // .sqs-add-to-cart-button { display: none !important; } Hope this helps! 🙂 Cody and Team, The Ghost Co. 👻 Ghost Plugins: 500+ free plugins and templates for Squarespace🎉 Ghost Marketplace: The very first product-based marketplace for Squarespace💙 Circle Story: Thank you, Squarespace! Link to comment
Dr_KMcB Posted July 21, 2022 Share Posted July 21, 2022 Hello ghostplugins, thank you so much!! Someone provided me some code last night, from a different platform and it seemed to work. I paste below in case it helps others. I'll try yours ghostplugins if this one stops working! (and maybe it will stop working, as Fluid Engine rolls out to the shop). .sqs-add-to-cart-button-wrapper { display: none !important; } Link to comment
TeaScottFX Posted April 26 Share Posted April 26 Hello, It's 2023 and I have the same issue - I would like to hide the add to cart button and can't seem to find the code to do it. I've tried all the codes above, currently, there is no section for me to change the code in the "DESIGN" area. I have to go into the product section and then click the gear > ADVANCED>PAGE HEADER CODE INJECTION. Maybe there is another place or code, any help would be GREATLY appreciated. Agostinha 1 Link to comment
StephanieB Posted May 31 Share Posted May 31 @TeaScottFX, Have you tried disabling the add-to-cart button in the header area? Edit site header> Elements> Toggle Off Cart Button. If that still doesn't work, could you share your site so I can have a look at the code, you may need to add some CSS. ✨ S.B-Studio.co✨ 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