3dpotter Posted October 20, 2020 Share Posted October 20, 2020 (edited) Site URL: https://3dpotter.com/printers I am trying to hide the price of SOME items but not all. The ones I want to hide are just listed as $0.00 I can hide the price of all items or none. Can't quite figure out the correct syntax. It would be even better to edit the price to display what I want it to, but when you go to cart it still says 0 as that it the actual item price. (This is being done so you can not checkout through the website for expensive items) This does nothing: http://prntscr.com/v3bhps (Correct item IDs, but does nothing) This removes all: http://prntscr.com/v3bh75 (Not wanted) My current CSS (that is not working) //Remove price on expensive products on printer page #item-5be31bc8b8a0451f1d9c24b7, #item-5be31bd68a922d43bbdb4e15, #item-5d9f6adff9ee22472670fde8, #item-5da0820a0758ca2ff2ece698, .collection-type-products .product-price { display: none !important; } As for the individual product pages themselves, I already have that working. My current CSS (that is working for the individual pages) //Remove price on expensive products #item-5be31bc8b8a0451f1d9c24b7, #item-5be31bd68a922d43bbdb4e15, #item-5d9f6adff9ee22472670fde8, #item-5da0820a0758ca2ff2ece698,{ .product-price { display: none !important } Edited October 20, 2020 by 3dpotter Link to comment
tuanphan Posted October 21, 2020 Share Posted October 21, 2020 Add tag: hide-product for 0$$ products, then share url again. We can give the code. 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
3dpotter Posted October 21, 2020 Author Share Posted October 21, 2020 4 hours ago, tuanphan said: Add tag: hide-product for 0$$ products, then share url again. We can give the code. I am slightly confused? Are you telling me to add a tag to my forum post before you will tell me how to do what I am trying to do? And what do you mean share URL again? https://3dpotter.com/printers here is is? https://prnt.sc/v3y0t0 ? Link to comment
3dpotter Posted October 21, 2020 Author Share Posted October 21, 2020 Found a fix from a previous post. Entered into page header code injection. <style> a#thumb-potterbot-10-xl .product-price { display:none !important;}</style> <style> a#thumb-scara .product-price { display:none !important;}</style> <style> a#thumb-scara-elite .product-price { display:none !important;}</style> <style> a#thumb-scara-elite-xbpln .product-price { display:none !important;}</style> Only thing left to do would be to display what i want instead of 'none' Link to comment
paul2009 Posted October 21, 2020 Share Posted October 21, 2020 (edited) On 10/20/2020 at 8:39 PM, 3dpotter said: I am trying to hide the price of SOME items but not all. The ones I want to hide are just listed as $0.00 You shouldn't need any tags. I wrote a guide that explains how to convert 0.00 prices to POA. You'll find it here: How can I make some prices POA on Squarespace 7.0? There's a version for Squarespace 7.1 here too: How to make some prices POA on Squarespace 7.1 If a post helps you, please click a "Like" option below ↘️ Edited November 13, 2021 by paul2009 Added 7.1 guide hae and LouLouHarvey 2 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
Chairlaxed Posted September 11, 2023 Share Posted September 11, 2023 (edited) On 10/21/2020 at 1:28 PM, paul2009 said: You shouldn't need any tags. I wrote a guide that explains how to convert 0.00 prices to POA. You'll find it here: How can I make some prices POA on Squarespace 7.0? There's a version for Squarespace 7.1 here too: How to make some prices POA on Squarespace 7.1 If a post helps you, please click a "Like" option below ↘️ Hi Paul, Is this code not working with Squarespace any longer on 7.1? I have no "footer" option using your steps, only header. I already have custom code there. I also tried adding it a to a new block footer section however just the code shows up on my site. My ultimate goal is to show my selling prices only in the cart (I don't think this is possible) or after a customer logs in. I sell power massage chairs from $3K-$12K in the US. The manufacturers have minimum advertised prices so I cant show my "real" selling prices to the public. Any help is appreciated. Ive been researching this all day and cant quite find a solution. Thank you. www.chairlaxed.com Shannon Edited September 11, 2023 by Chairlaxed Link to comment
paul2009 Posted September 11, 2023 Share Posted September 11, 2023 6 minutes ago, Chairlaxed said: Is this code not working with Squarespace any longer on 7.1? I have no "footer" option using your steps, only header. The guide should work but Squarespace have recently updated the backend navigation, moving the Code Injection and Custom CSS panels! I'll need to update the guides to point to the new locations. In the meantime, please see: Where is the Code Injection Panel? (includes the Code Injection Footer panel) Where is the Custom CSS panel? Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
Chairlaxed Posted September 12, 2023 Share Posted September 12, 2023 (edited) 20 hours ago, paul2009 said: The guide should work but Squarespace have recently updated the backend navigation, moving the Code Injection and Custom CSS panels! I'll need to update the guides to point to the new locations. In the meantime, please see: Where is the Code Injection Panel? (includes the Code Injection Footer panel) Where is the Custom CSS panel? Thank you! It worked. I changed it to "Price Upon Request" Instead of having my customers call or email me with their pricing is there any workaround for me to give them their price when they click "Price Upon Request" or a way to show the price in the cart? Because of my manufacturers minimum advertised price requirements I'm only able to advertise very high retail prices, not my actual prices. Edited September 12, 2023 by Chairlaxed Link to comment
austinalltheway21 Posted August 22 Share Posted August 22 (edited) On 10/21/2020 at 12:28 PM, paul2009 said: You shouldn't need any tags. I wrote a guide that explains how to convert 0.00 prices to POA. You'll find it here: How can I make some prices POA on Squarespace 7.0? There's a version for Squarespace 7.1 here too: How to make some prices POA on Squarespace 7.1 If a post helps you, please click a "Like" option below ↘️ Hey! @paul2009 This is working great! I'm having a little trouble though. Thought maybe you could help. I have 2 scripts running now. On product pages where there are variables (that are auto selected through another script), that product's price still shows $0.00. It's strange though because in the recommended products section it works! On product pages where there are no variables, it works great! The $0.00 prices show "Call for Price" and in the recommended products section as well. Site: https://creative-jewelers.squarespace.com/jewelry/p/round-ring-channel-mounting Password: abc123 UPDATE: Did some further testing. I removed the other scripts and it works. However, if I click on a variant, it does change to $0.00. So I don't believe the codes are interfering with each other. Edited August 22 by austinalltheway21 Link to comment
paul2009 Posted August 22 Share Posted August 22 8 hours ago, austinalltheway21 said: This is working great! I'm having a little trouble though. On product pages where there are variables, that product's price still shows $0.00. Hey @austinalltheway21 This is because the code has been written for products that don’t have variants 🙂. The assumption being that POA products won't be configured with variants because they won't perform any useful function. After all, POA products can't be purchased because the customer won't be charged. However, I can see from your screenshot that it's probably helpful to generate variants so that you can show the available options using variant buttons. To apply POA pricing to you'll need a script that changes the pricing label whenever a variant is selected, instead of doing so when the page loads. I hope that helps to explain. Did this help? Please give feedback by clicking an icon below ⬇️ Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
creedon Posted August 22 Share Posted August 22 4 hours ago, paul2009 said: To apply POA pricing to you'll need a script that changes the pricing label whenever a variant is selected, instead of doing so when the page loads. @austinalltheway21 You may find my Store Page Detail Variant Selected Callback code useful in creating a solution. It is not a solution in itself but does some of the lower level stuff to create an effect as @paul2009 suggests. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. 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