- Posts: 2
- Thank you received: 0
Show product inventory
- CarterKoths1
-
Topic Author
- Offline
Less
More
3 years 9 months ago #348522
by CarterKoths1
Show product inventory was created by CarterKoths1
-- url of the page with the problem -- :
www.mason-lakeconservation.org/index.php...ry/24-50-tree-bundle
-- HikaShop version -- : 4.7.0
-- Joomla version -- : 3.10.11
-- PHP version -- : 7.4.33
-- Browser(s) name and version -- : Microsoft Edge
Is there a setting to show available inventory on product listings?
-- HikaShop version -- : 4.7.0
-- Joomla version -- : 3.10.11
-- PHP version -- : 7.4.33
-- Browser(s) name and version -- : Microsoft Edge
Is there a setting to show available inventory on product listings?
Please Log in or Create an account to join the conversation.
3 years 9 months ago #348525
by nicolas
Replied by nicolas on topic Show product inventory
Hi,
If you activate the display of the add to cart button on the listing (under the "products options" tab of the menu item), it will also display the stock there (if it's not unlimited).
Otherwise, if you want to add the stock, without adding the add to cart button there, you would have to edit the product / listing_img_title view file via the menu Display>Views and add such code where you want to display the stock:
If you activate the display of the add to cart button on the listing (under the "products options" tab of the menu item), it will also display the stock there (if it's not unlimited).
Otherwise, if you want to add the stock, without adding the add to cart button there, you would have to edit the product / listing_img_title view file via the menu Display>Views and add such code where you want to display the stock:
Code:
<?php echo $this->row->product_quantity; ?> items in stock
Please Log in or Create an account to join the conversation.
- CarterKoths1
-
Topic Author
- Offline
Less
More
- Posts: 2
- Thank you received: 0
3 years 9 months ago #348543
by CarterKoths1
Replied by CarterKoths1 on topic Show product inventory
Thank you, Nicholas. If in the future I would like the Add to Cart button, but not the inventory to be visible, is that possible?
Is it possible to move the inventory count to a different location on the product listing?
Thank you
Is it possible to move the inventory count to a different location on the product listing?
Thank you
Please Log in or Create an account to join the conversation.
3 years 9 months ago #348550
by nicolas
Replied by nicolas on topic Show product inventory
Hi,
The code I gave can be moved easily anywhere in the view file to display it in a different location.
If you want the add to cart button and not the inventory, that's easier. Just activate the add to cart display setting of the menu item, and if you want to hide the stock, you can use a bit of CSS to hide it.
The code I gave can be moved easily anywhere in the view file to display it in a different location.
If you want the add to cart button and not the inventory, that's easier. Just activate the add to cart display setting of the menu item, and if you want to hide the stock, you can use a bit of CSS to hide it.
Please Log in or Create an account to join the conversation.
Time to create page: 0.071 seconds