- Posts: 61
- Thank you received: 1
Quantity in catalog mode
11 years 7 months ago #191998
by Digiwacht
Quantity in catalog mode was created 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:
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?
-- 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.
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.
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.
11 years 7 months ago #192028
by Digiwacht
Replied by Digiwacht on topic Quantity in catalog mode
Brilliant!
Works like a charm. Thanks!
Works like a charm. Thanks!
Please Log in or Create an account to join the conversation.
Time to create page: 0.160 seconds