Hide Price After Item Is Sold

  • Posts: 966
  • Thank you received: 11
  • Hikashop Business
11 years 11 months ago #87535

Is it possible to hide a price after an item is sold? If so, how do I do that please?

Thank you!!

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #87593

You mean when a product is out of stock ?

If it is, you can edit the view "product / listing_price" and add a check on "$this->row->product_quantity", if it's equal to "0" then display a custom message.

Please Log in or Create an account to join the conversation.

  • Posts: 966
  • Thank you received: 11
  • Hikashop Business
11 years 11 months ago #88198

I'm sorry but I don't know how to do that :(

Can you give me a hand please and thank you!!!

Please Log in or Create an account to join the conversation.

  • Posts: 83124
  • Thank you received: 13420
  • MODERATOR
11 years 11 months ago #88364

At the beginning of the view "product / listing_price" you can add that line:
<?php if($this->row->product_quantity==0) return; ?>

Please Log in or Create an account to join the conversation.

  • Posts: 966
  • Thank you received: 11
  • Hikashop Business
11 years 11 months ago #88475

Thank you very very much. Really appreciate your help guys.

Please Log in or Create an account to join the conversation.

Time to create page: 0.066 seconds
Powered by Kunena Forum
loading