Skip to main content

Quantity in catalog mode

More
11 years 7 months ago #191998 by Digiwacht
-- 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:
Code:
<?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?

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

More
11 years 7 months ago #192006 by nicolas
Replied by nicolas on topic Quantity in catalog mode
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.

More
11 years 7 months ago #192028 by Digiwacht
Replied by Digiwacht on topic Quantity in catalog mode
Brilliant!
Works like a charm. Thanks!

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

Time to create page: 0.160 seconds
Powered by Kunena Forum