- Posts: 20
- Thank you received: 1
Remove stock level display only on category listin
- danielle71
-
Topic Author
- Offline
Less
More
10 years 7 months ago #230490
by danielle71
Remove stock level display only on category listin was created by danielle71
-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
Hello I would like to remove the stock level count from the product listing in categories but show it in the detailed product page.
Is there any way to accomplish this?
Thank you in advance for your help.
-- Joomla version -- : 3.4.8
Hello I would like to remove the stock level count from the product listing in categories but show it in the detailed product page.
Is there any way to accomplish this?
Thank you in advance for your help.
Please Log in or Create an account to join the conversation.
10 years 7 months ago #230493
by nicolas
Replied by nicolas on topic Remove stock level display only on category listin
Change the code:
to:
in the file "quantity" of the view "product" via the menu Display>Views and that should do it.
Code:
if($this->row->product_quantity == 1 && JText::_('X_ITEM_IN_STOCK') != 'X_ITEM_IN_STOCK')
$text = JText::sprintf('X_ITEM_IN_STOCK', $this->row->product_quantity);
else
$text = JText::sprintf('X_ITEMS_IN_STOCK', $this->row->product_quantity);
Code:
if(!empty($this->element->product_id)){ if($this->row->product_quantity == 1 && JText::_('X_ITEM_IN_STOCK') != 'X_ITEM_IN_STOCK')
$text = JText::sprintf('X_ITEM_IN_STOCK', $this->row->product_quantity);
else
$text = JText::sprintf('X_ITEMS_IN_STOCK', $this->row->product_quantity); }
Please Log in or Create an account to join the conversation.
- danielle71
-
Topic Author
- Offline
Less
More
- Posts: 20
- Thank you received: 1
10 years 7 months ago #230623
by danielle71
Replied by danielle71 on topic Remove stock level display only on category listin
Thank you SOOO much Nicolas!! It worked like a charm
))))
Please Log in or Create an account to join the conversation.
Time to create page: 0.207 seconds