VincentLussier Posted January 9, 2023 Posted January 9, 2023 Hello, I wish to hide the price of an item once it has sold on my website. I've researched many forum threads, talked on live chat, tried many codes. But have not come across desirable result. It would end up hiding all prices. Please see my website : https://www.vincentlussier.com I have managed to set the prices to $0, but I wish to have no price on sold item, just to say "Sold". Any help would be greatly appreciated, thank you. Vincent
joseph81 Posted January 9, 2023 Posted January 9, 2023 Hi. I am not sure where you have a product that is sold already. None of them has $0 for price. Jozsef Kerekes - Front-end developer and Squarespace enthusiast My Blog: https://ui-workarounds.comIf you like my answer, please give me an upvote/like. Highly appreciated.
VincentLussier Posted January 9, 2023 Author Posted January 9, 2023 Yes I’ve put the price back, but I wish to hide the price of all the items once it has sold on my website
joseph81 Posted January 9, 2023 Posted January 9, 2023 (edited) Then you need to apply this CSS in the Custom CSS panel: .ProductList-item.sold-out .product-price, .ProductItem.sold-out .product-price { display: none; } Edited January 9, 2023 by joseph81 Jozsef Kerekes - Front-end developer and Squarespace enthusiast My Blog: https://ui-workarounds.comIf you like my answer, please give me an upvote/like. Highly appreciated.
joseph81 Posted January 9, 2023 Posted January 9, 2023 Please try this one: .ProductList-item.sold-out .product-price, .ProductItem.sold-out .product-price { display: none!important; } Jozsef Kerekes - Front-end developer and Squarespace enthusiast My Blog: https://ui-workarounds.comIf you like my answer, please give me an upvote/like. Highly appreciated.
joseph81 Posted January 9, 2023 Posted January 9, 2023 Can you show me the CSS, where you applied this code? Jozsef Kerekes - Front-end developer and Squarespace enthusiast My Blog: https://ui-workarounds.comIf you like my answer, please give me an upvote/like. Highly appreciated.
Solution joseph81 Posted January 9, 2023 Solution Posted January 9, 2023 You placed that code outside the style tag, that is one of the problems. VincentLussier 1 Jozsef Kerekes - Front-end developer and Squarespace enthusiast My Blog: https://ui-workarounds.comIf you like my answer, please give me an upvote/like. Highly appreciated.
VincentLussier Posted January 9, 2023 Author Posted January 9, 2023 Oh sorry!! I don't know much about coding. I didn't know this detail which turns out to be very important..! Thanks for your time, it worked!!!! joseph81 1
onlymade_co Posted September 11 Posted September 11 On 1/9/2023 at 12:30 PM, joseph81 said: Please try this one: .ProductList-item.sold-out .product-price, .ProductItem.sold-out .product-price { display: none!important; } Hi, I am having this same issue. I wonder if there is an updated fix? Many thanks!
tuanphan Posted September 14 Posted September 14 On 9/11/2024 at 7:30 AM, onlymade_co said: Hi, I am having this same issue. I wonder if there is an updated fix? Many thanks! Use this CSS .sold-out .product-price { display: none !important; } 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment