[Skip to main content](#vessel-content)

#   Show Quantity in Catalog Mode?

##

- **[arydiel](/forum/user/7302-arydiel "View arydiel's Profile")**
- [![arydiel's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7302-arydiel "View arydiel's Profile") Topic Author
- [ Offline](/forum/user/7302-arydiel)

Less More

- Posts: 8
- Thank you received: 1
-
-

14 years 4 months ago [\#54692](#54692) by [arydiel](/forum/user/7302-arydiel "View arydiel's Profile")  *[Show Quantity in Catalog Mode?](/forum/4-how-to/54692-show-quantity-in-catalog-mode#54692 "Hi again,  So far the only way I can get the quantity to show for a product is by switching our shop from catalog mode to store mode and using the Add to Cart module. Is there any way to just show the quantity (without any buttons) for a product in catalog mode?  Thanks for your help! =Arydiel=")* was created by *[arydiel](/forum/user/7302-arydiel "View arydiel's Profile")*

Hi again,

So far the only way I can get the quantity to show for a product is by switching our shop from catalog mode to store mode and using the Add to Cart module. Is there any way to just show the quantity (without any buttons) for a product in catalog mode?

Thanks for your help!
=Arydiel=

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzU0NjkyLXNob3ctcXVhbnRpdHktaW4tY2F0YWxvZy1tb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 4 months ago [\#54714](#54714) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Show Quantity in Catalog Mode?](/forum/4-how-to/54692-show-quantity-in-catalog-mode#54714 "Hi again,  So far the only way I can get the quantity to show for a product is by switching our shop from catalog mode to store mode and using the Add to Cart module. Is there any way to just show the quantity (without any buttons) for a product in catalog mode?  Thanks for your help! =Arydiel=")*

Hi,

There is no option for that. You will have to edit the file "show_default via the menu Display&gt;Views and add the line of code:
&lt;?php echo JText::sprintf('X_ITEMS_IN_STOCK',$this-&gt;element-&gt;product_quantity); ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzU0NjkyLXNob3ctcXVhbnRpdHktaW4tY2F0YWxvZy1tb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[arydiel](/forum/user/7302-arydiel "View arydiel's Profile")**
- [![arydiel's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7302-arydiel "View arydiel's Profile") Topic Author
- [ Offline](/forum/user/7302-arydiel)

Less More

- Posts: 8
- Thank you received: 1
-
-

14 years 4 months ago [\#55165](#55165) by [arydiel](/forum/user/7302-arydiel "View arydiel's Profile")  Replied by *[arydiel](/forum/user/7302-arydiel "View arydiel's Profile")* on topic *[Re: Show Quantity in Catalog Mode?](/forum/4-how-to/54692-show-quantity-in-catalog-mode#55165 "Hi again,  So far the only way I can get the quantity to show for a product is by switching our shop from catalog mode to store mode and using the Add to Cart module. Is there any way to just show the quantity (without any buttons) for a product in catalog mode?  Thanks for your help! =Arydiel=")*

Thanks! That worked. Just one more question:The products with 'unlimited quantity are showing -1. Is there anyway to fix that?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzU0NjkyLXNob3ctcXVhbnRpdHktaW4tY2F0YWxvZy1tb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 4 months ago [\#55174](#55174) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Show Quantity in Catalog Mode?](/forum/4-how-to/54692-show-quantity-in-catalog-mode#55174 "Hi again,  So far the only way I can get the quantity to show for a product is by switching our shop from catalog mode to store mode and using the Add to Cart module. Is there any way to just show the quantity (without any buttons) for a product in catalog mode?  Thanks for your help! =Arydiel=")*

You can do like that:
&lt;?php if($this-&gt;element-&gt;product_quantity&gt;0) echo JText::sprintf('X_ITEMS_IN_STOCK',$this-&gt;element-&gt;product_quantity); ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzU0NjkyLXNob3ctcXVhbnRpdHktaW4tY2F0YWxvZy1tb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[arydiel](/forum/user/7302-arydiel "View arydiel's Profile")**
- [![arydiel's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7302-arydiel "View arydiel's Profile") Topic Author
- [ Offline](/forum/user/7302-arydiel)

Less More

- Posts: 8
- Thank you received: 1
-
-

14 years 4 months ago [\#55204](#55204) by [arydiel](/forum/user/7302-arydiel "View arydiel's Profile")  Replied by *[arydiel](/forum/user/7302-arydiel "View arydiel's Profile")* on topic *[Re: Show Quantity in Catalog Mode?](/forum/4-how-to/54692-show-quantity-in-catalog-mode#55204 "Hi again,  So far the only way I can get the quantity to show for a product is by switching our shop from catalog mode to store mode and using the Add to Cart module. Is there any way to just show the quantity (without any buttons) for a product in catalog mode?  Thanks for your help! =Arydiel=")*

Am I missing something - do I need to edit something in that last one? Or is there somewhere specific it needs to be pasted All it did was make it repeat itself : ie 1 item in stock 1 item in stock and it didn't seem to affect the -1 items in stock any different. I pasted it in as is in that same file.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzU0NjkyLXNob3ctcXVhbnRpdHktaW4tY2F0YWxvZy1tb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 4 months ago [\#55233](#55233) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Show Quantity in Catalog Mode?](/forum/4-how-to/54692-show-quantity-in-catalog-mode#55233 "Hi again,  So far the only way I can get the quantity to show for a product is by switching our shop from catalog mode to store mode and using the Add to Cart module. Is there any way to just show the quantity (without any buttons) for a product in catalog mode?  Thanks for your help! =Arydiel=")*

You need to use that line of code instead of the previous one.

The following user(s) said Thank You: [arydiel](/forum/user/7302-arydiel "View arydiel's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzU0NjkyLXNob3ctcXVhbnRpdHktaW4tY2F0YWxvZy1tb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.228 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
