artteddy Posted November 27, 2009 Share Posted November 27, 2009 Hi all,I use the shop to sell items that are unique, one of a kind. After the sale, I did not delete the products, they fall into the category of "sold", which is demonstrated in the store.The problem is that I want to hide the prices only in this category.Anybody can help? Thanks in advanceArtteddy Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted November 27, 2009 Share Posted November 27, 2009 Try to get off "Enable stock Management" in BO - Preferences - Products. I think, you should have still 1 each of them. Link to comment Share on other sites More sharing options...
Evis Posted November 27, 2009 Share Posted November 27, 2009 Hi!I need to do exactly the same thing, but can't get it work. Please anyone, how can I solve this? Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted November 27, 2009 Share Posted November 27, 2009 You cant hide prices, but you can show product without BUY button. Link to comment Share on other sites More sharing options...
Evis Posted November 27, 2009 Share Posted November 27, 2009 I tried that too, but can't get this to work either. The buy button is only inactivated, not hidden. Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted November 27, 2009 Share Posted November 27, 2009 My test product: http://art.boure.eu/krasne-zeny/10001-ena-100x60.html and without buy button. Link to comment Share on other sites More sharing options...
Evis Posted November 27, 2009 Share Posted November 27, 2009 Thanks for replying. How did you change the settings to get this to work? And if I can't hide the price, is there any way that if I set the price to zero, the zeros are suppressed? That all zero prices are just shown as blanks.Thanks in advance! Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted November 27, 2009 Share Posted November 27, 2009 When is product quantity 0, product cant be sell, but is show. BO - Product Info Card:Quantity: 0When out of stock: Deny orders BO - Preferences - ProductAllow ordering out-of-stock product: NoEnable stock management: YesWhen you set price to zero, shop think its hacker attack and show bad tokens etc.... Link to comment Share on other sites More sharing options...
Evis Posted November 27, 2009 Share Posted November 27, 2009 The problem is that the products I want to put in a "Sold" category I just want there to show customers what I have sold earlier. I'm going to sell hand painted old furniture. Therefore, the products seldom are exactly the same the next time I sell something. I don't want the customers to know what the price was when the product was sold so they can't argue and say they want to buy a similar product for the same price as the one sold earlier.A bit difficult to explain, but I want the "Sold" category to contained products sold earlier, but only as an example of what type of furniture might appear in the shop.Maybe I'll have to look att the programming seeing that the Bo can't manage this. Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted November 27, 2009 Share Posted November 27, 2009 Ok, i understand, but you cant solved it without code edit and now i dont know how to make this. Its function with IF in product.tpl. I will try to look at this, but i dont promisse help. Link to comment Share on other sites More sharing options...
Evis Posted November 27, 2009 Share Posted November 27, 2009 Thanks for wanting to try ! :-) Link to comment Share on other sites More sharing options...
artteddy Posted November 27, 2009 Author Share Posted November 27, 2009 Thanks for comments.I found the solution.In product.tpl you should change the line 187 to quantity == 0} style="display:none;"{/if}> and almost the same in product-list.tplRegards,artteddy Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted November 27, 2009 Share Posted November 27, 2009 Great, I just returned from the pub and I wanted to look at it, but I see that someone was faster Link to comment Share on other sites More sharing options...
Evis Posted November 28, 2009 Share Posted November 28, 2009 I got it to work! Thanks a lot. I did the same change in homefeatured.tpl as I want to be able to show some of the "Sold" products on my starting page. jakcrabbit: It's a much better way to spend your friday evening in a pub than doing programming for someone in Sweden - and smart as you got someone else to do the job for you Thanks to both of you! Link to comment Share on other sites More sharing options...
giva Posted November 28, 2009 Share Posted November 28, 2009 Hello,How can I hide the price for not registered user? (I want to build B2B Shop)Please help!Thanks Link to comment Share on other sites More sharing options...
giva Posted November 28, 2009 Share Posted November 28, 2009 also I need to hide the form "Create your account" Link to comment Share on other sites More sharing options...
taigherpl Posted December 4, 2009 Share Posted December 4, 2009 Hello, this is great solution, but how to hide the price in product-list.tpl in this way?I see there following code:{if !$priceDisplay || $priceDisplay == 2}{convertPrice price=$product.price}{if $priceDisplay == 2} {l s='+Tx'}{/if}{/if} {if $priceDisplay}{convertPrice price=$product.price_tax_exc}{if $priceDisplay == 2} {l s='-Tx'}{/if}{/if}Regards,Taigher Thanks for comments.I found the solution.In product.tpl you should change the line 187 to quantity == 0} style="display:none;"{/if}> and almost the same in product-list.tplRegards,artteddy Link to comment Share on other sites More sharing options...
artteddy Posted December 4, 2009 Author Share Posted December 4, 2009 Hello,I made the following: {if $product.quantity > 0} {if !$priceDisplay || $priceDisplay == 2}{convertPrice price=$product.price}{if $priceDisplay == 2} {l s='+Tx'}{/if}{/if} {if $priceDisplay}{convertPrice price=$product.price_tax_exc}{if $priceDisplay == 2} {l s='-Tx'}{/if}{/if} {else} {/if} I'm not sure that this is the best code - I'm not a programmer - but it worksRegardsArtteddy Link to comment Share on other sites More sharing options...
pauro Posted December 10, 2009 Share Posted December 10, 2009 Yup, the code works well, thanks Arttddy :-) Link to comment Share on other sites More sharing options...
ck-iridium Posted April 3, 2010 Share Posted April 3, 2010 Hi guys, i have a problem in product-list.... in Chrome and Safari dont works.Any idea?Hugs Link to comment Share on other sites More sharing options...
Lopinhos Posted March 18, 2011 Share Posted March 18, 2011 I did not understand the steps to hide prices. Hide prices for visitors? Link to comment Share on other sites More sharing options...
Recommended Posts