Jump to content

How to hide prices in one category?


Recommended Posts

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 advance

Artteddy

Link to comment
Share on other sites

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

When is product quantity 0, product cant be sell, but is show.

BO - Product Info Card:

Quantity: 0

When out of stock: Deny orders


BO - Preferences - Product

Allow ordering out-of-stock product: No

Enable stock management: Yes


When you set price to zero, shop think its hacker attack and show bad tokens etc....

Link to comment
Share on other sites

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

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 :D

Thanks to both of you!

Link to comment
Share on other sites

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.tpl

Regards,
artteddy

Link to comment
Share on other sites

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 works

Regards
Artteddy

Link to comment
Share on other sites

  • 3 months later...
  • 11 months later...
×
×
  • Create New...