VincentLussier Posted January 9 Share Posted January 9 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 Link to comment
joseph81 Posted January 9 Share Posted January 9 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. Link to comment
VincentLussier Posted January 9 Author Share Posted January 9 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 Link to comment
joseph81 Posted January 9 Share Posted January 9 (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 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. Link to comment
joseph81 Posted January 9 Share Posted January 9 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. Link to comment
joseph81 Posted January 9 Share Posted January 9 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. Link to comment
Solution joseph81 Posted January 9 Solution Share Posted January 9 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. Link to comment
VincentLussier Posted January 9 Author Share Posted January 9 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 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