Beyondballhawaii Posted March 26 Share Posted March 26 (edited) Hello I have disabled all add to cart buttons using this code in custom CCS // Hide Add To Cart Button // .sqs-add-to-cart-button { display: none !important; } is there anyway I could enable the add to cart button on specific items of my choosing (Lets say just for the "spring footsal league 2nd-4th division" just for example). If this is not possible, I would love help doing it the other way around where I disable the add to cart button on specific items of my choosing. Any insight would be greatly appreciated! Spring Futsal League 2nd-4th Division — BEYOND BALL HAWAII Edited March 26 by Beyondballhawaii added link Link to comment
Beyondspace Posted March 26 Share Posted March 26 1 hour ago, Beyondballhawaii said: Hello I have disabled all add to cart buttons using this code in custom CCS // Hide Add To Cart Button // .sqs-add-to-cart-button { display: none !important; } is there anyway I could enable the add to cart button on specific items of my choosing (Lets say just for the "spring footsal league 2nd-4th division" just for example). If this is not possible, I would love help doing it the other way around where I disable the add to cart button on specific items of my choosing. Any insight would be greatly appreciated! Spring Futsal League 2nd-4th Division — BEYOND BALL HAWAII Each product page on squarespace has a unique id. You can use your above code with item id to set the appropriate style for add to cart button You can the following extension to get page id: squarespace id finder - Google Search SarahFrancesBrandCo and Beyondballhawaii 2 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Beyondballhawaii Posted March 27 Author Share Posted March 27 On 3/25/2024 at 8:07 PM, Beyondspace said: Each product page on squarespace has a unique id. You can use your above code with item id to set the appropriate style for add to cart button You can the following extension to get page id: squarespace id finder - Google Search what would the code look like to disable the add to cart for the specific unique item ID? Not sure how to add that part to the code. SarahFrancesBrandCo 1 Link to comment
Beyondballhawaii Posted March 27 Author Share Posted March 27 18 minutes ago, Beyondballhawaii said: what would the code look like to disable the add to cart for the specific unique item ID? Not sure how to add that part to the code. <style> #item-65bc2f73a96a806b3a8d7d26 .ProductItem-details .sqs-add-to-cart-button-wrapper { display : none; } </style> found the code above on this forum and it solved my issue. Thank you for recommending the square id finder, very helpful. SarahFrancesBrandCo and Beyondspace 2 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