rishisavera 58 Share Posted April 28, 2013 (edited) I have paintings in private collections, so “sold out” is fine, but I’d like to hide the price for them, how can I do this? Edited August 20, 2014 by rishisavera Tidy wristology 1 Link to post
1 JulesHugal 39 Solution Share Posted August 20, 2014 (edited) There’s a pure CSS solution for this problem. Make sure the price and sold out mark are siblings in your HTML: {@|product-status} {@|product-price} Then you can target the price class with a general sibling combinator selector (~) in CSS: .sold-out ~ .product-price { display: none; } The price will only disappear when the sold out class is active. Edited August 20, 2014 by JulesHugal Link to post
1 Guest Share Posted December 5, 2015 @JulesHugal This worked great for a few months.. then it stopped. Here's my fork to get it working again: page > #productList > .sold-out > div > .product-overlay > .product-meta > .product-price {display: none;} http://cjohn.design Link to post
0 16simplelife 0 Share Posted November 13, 2013 I just deleted the sales price on my item and typed in a decimal point and made item quantity 0. This allowed the item to show ‘sold out’, and $0.00 as the price. If there is a better way, I would love to hear, but for now, this is the solution I came up with. Link to post
0 16simplelife 0 Share Posted November 13, 2013 (edited) I just deleted the sales price on my item and typed in a decimal point and made item quantity 0. This allowed the item to show ‘sold out’, and $0.00 as the price. If there is a better way, I would love to hear, but for now, this is the solution I came up with. Edited November 13, 2013 by 16simplelife Link to post
0 avsmithy 1,121 Share Posted November 13, 2013 Something along the lines of this: YUI().use('node', function (Y) { Y.all('.product').each(function(){ if (this.one('.sold-out')) { this.one('.product-price').hide(); } }); }); Insert in Code Injection (in script tags) Link to post
0 Flying_Fig 0 Share Posted August 3, 2014 It won't let me use $0.00 as a price, so all of my out-of-stock items are set to $0.01. Link to post
0 mvpottery 142 Share Posted April 22, 2016 Hi @Alex -- Thanks. This works great on the product list page - but then price still shows on the product detail page, along with an ADD TO CART button (which is very confusing). Would you mind to let us know how to get rid of price and add to cart on that page?Thanks a lot Link to post
0 JakeNaude 54 Share Posted September 24, 2016 (edited) Hello, This article looks like just what I need but I am having difficulty using it to hide the prices on all sold out items in my Shop & Product pages: Shop page: http://www.ashleighdix.com/shop/Product page: http://www.ashleighdix.com/shop/flushed Please could someone advise...? FYI: - I am running some JS to change ‘Sold Out’ to ‘Sold’ and to hide the ‘Add-to-Cart/Purchase’ button for out of stock items. Many thanks in advance… :) Edited September 24, 2016 by JakeNaude Link to post
0 JakeNaude 54 Share Posted September 24, 2016 Hi mvpottery,You may find this article useful...? https://answers.squarespace.com/questions/154547/how-to-disable-the-add-to-cart-button-for-all-sold.html#answer-154628 Link to post
0 JakeNaude 54 Share Posted September 25, 2016 (edited) Answered here: https://answers.squarespace.com/questions/154657/hide-price-on-out-of-stock-items-in-product-produc.html Edited July 3, 2017 by dzone Link to post
0 JakeNaude 54 Share Posted September 25, 2016 (edited) Hi mvpottery... Here's another one which may help you as it combines some of the code from the previous thread and tidies it all up... :)https://answers.squarespace.com/questions/154657/hide-price-on-out-of-stock-items-in-product-produc.html Edited September 25, 2016 by JakeNaude Initial Revision Link to post
0 alexeikovalev 0 Share Posted December 28, 2017 Hello rishisavera, if your shop is running on Magento and this topic is still relevant, I would suggest you take a look at some of the add-ons which allow hiding prices either temporary or permanently. One of them I've personally used is Magento 2 Hide price extension from ITORIS INC. Link to post
Question
rishisavera 58
I have paintings in private collections, so “sold out” is fine, but I’d like to hide the price for them, how can I do this?
Edited by rishisaveraTidy
Link to post
Top Posters For This Question
4
3
1
1
Popular Days
Nov 13
4
Sep 24
2
Sep 25
2
Dec 5
1
Top Posters For This Question
JakeNaude 4 posts
16simplelife 3 posts
rishisavera 1 post
avsmithy 1 post
Popular Days
Nov 13 2013
4 posts
Sep 24 2016
2 posts
Sep 25 2016
2 posts
Dec 5 2015
1 post
13 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment