Quantity in catalog mode

  • Posts: 61
  • Thank you received: 1
10 years 6 months ago #191998

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6

My client want to show the quantity of eacht product in his catalog. By activating the catalog mode the quantity is gone, so i added it in the show_default this:

<?php if($this->element->product_quantity>0) echo JText::sprintf('X_ITEMS_IN_STOCK',$this->element->product_quantity); ?>

I tried to do the same on the product listing, but can't get it to work. Is it even possible?
A screenshot is added.

Can anyone point me in the right direction?

Attachments:

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 6 months ago #192006

Hi,

You can do it there too. Just change element to row in your code and it will work when you add it in the listing_img_title view file of the product view.

The following user(s) said Thank You: Digiwacht

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

  • Posts: 61
  • Thank you received: 1
10 years 6 months ago #192028

Brilliant!
Works like a charm. Thanks!

Attachments:

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

Time to create page: 0.042 seconds
Powered by Kunena Forum