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

#   Quantity on Product Listing Page or Product Page

##

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

Less More

- Posts: 40
- Thank you received: 0
-
-

15 years 8 months ago [\#7874](#7874) by [DShapiroNaples](/forum/user/565-dshapironaples "View DShapiroNaples's Profile")  *[Quantity on Product Listing Page or Product Page](/forum/4-how-to/7874-quantity-on-product-listing-page-or-product-page#7874 "Is there a way to add a quantity input to show on the product listing page and the product detail page?")* was created by *[DShapiroNaples](/forum/user/565-dshapironaples "View DShapiroNaples's Profile")*

Is there a way to add a quantity input to show on the product listing page and the product detail page?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc4NzQtcXVhbnRpdHktb24tcHJvZHVjdC1saXN0aW5nLXBhZ2Utb3ItcHJvZHVjdC1wYWdlP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

15 years 8 months ago [\#7880](#7880) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Quantity on Product Listing Page or Product Page](/forum/4-how-to/7874-quantity-on-product-listing-page-or-product-page#7880 "Is there a way to add a quantity input to show on the product listing page and the product detail page?")*

You can change the option "Display the quantity field on the product page" to "ajax input" instead of "no display". The default should already be "no display".
For the listing you can see the solution on that post: [ www.hikashop.com/en/support/forum/4-how-...ome-advice.html#7386](http://www.hikashop.com/en/support/forum/4-how-to/6943-some-advice.html#7386)

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

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

Less More

- Posts: 40
- Thank you received: 0
-
-

15 years 8 months ago -  15 years 8 months ago [\#7907](#7907) by [DShapiroNaples](/forum/user/565-dshapironaples "View DShapiroNaples's Profile")  Replied by *[DShapiroNaples](/forum/user/565-dshapironaples "View DShapiroNaples's Profile")* on topic *[Re: Quantity on Product Listing Page or Product Page](/forum/4-how-to/7874-quantity-on-product-listing-page-or-product-page#7907 "Is there a way to add a quantity input to show on the product listing page and the product detail page?")*

The quantity only appears on the product page when you set the input to ajax. If it is set to normal it does not appear. It never appears on the product listing page. Any way to display on the product listing page?

[ www.fitsolutionsnaples.com/index.php?opt...l-training&amp;Itemid=72](http://www.fitsolutionsnaples.com/index.php?option=com_hikashop&ctrl=category&task=listing&cid=12&name=personal-training&Itemid=72)

Last edit: 15 years 8 months ago by [DShapiroNaples](/forum/user/565-dshapironaples "View DShapiroNaples's Profile"). Reason: Added addl info

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc4NzQtcXVhbnRpdHktb24tcHJvZHVjdC1saXN0aW5nLXBhZ2Utb3ItcHJvZHVjdC1wYWdlP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

15 years 8 months ago [\#7908](#7908) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Quantity on Product Listing Page or Product Page](/forum/4-how-to/7874-quantity-on-product-listing-page-or-product-page#7908 "Is there a way to add a quantity input to show on the product listing page and the product detail page?")*

For the listing you can see the solution on that post: [ www.hikashop.com/en/support/forum/4-how-...ome-advice.html#7386](http://www.hikashop.com/en/support/forum/4-how-to/6943-some-advice.html#7386)

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

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

Less More

- Posts: 40
- Thank you received: 0
-
-

15 years 8 months ago [\#7909](#7909) by [DShapiroNaples](/forum/user/565-dshapironaples "View DShapiroNaples's Profile")  Replied by *[DShapiroNaples](/forum/user/565-dshapironaples "View DShapiroNaples's Profile")* on topic *[Re: Quantity on Product Listing Page or Product Page](/forum/4-how-to/7874-quantity-on-product-listing-page-or-product-page#7909 "Is there a way to add a quantity input to show on the product listing page and the product detail page?")*

Thanks. That added an ajax style quantity to the product listing page but I have set the style to normal and it does not appear on the product page at all unless I set the style to ajax.

Can I have a normal style appear on both the product page and product listing page?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc4NzQtcXVhbnRpdHktb24tcHJvZHVjdC1saXN0aW5nLXBhZ2Utb3ItcHJvZHVjdC1wYWdlP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

15 years 8 months ago [\#7910](#7910) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Quantity on Product Listing Page or Product Page](/forum/4-how-to/7874-quantity-on-product-listing-page-or-product-page#7910 "Is there a way to add a quantity input to show on the product listing page and the product detail page?")*

You can use that code instead of the one in the other thread to display the quantity box in normal:
$this-&gt;params-&gt;set('show_quantity_field',-1);

For the product page, the option in the config should do the job.

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

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

Less More

- Posts: 40
- Thank you received: 0
-
-

15 years 8 months ago [\#7911](#7911) by [DShapiroNaples](/forum/user/565-dshapironaples "View DShapiroNaples's Profile")  Replied by *[DShapiroNaples](/forum/user/565-dshapironaples "View DShapiroNaples's Profile")* on topic *[Re: Quantity on Product Listing Page or Product Page](/forum/4-how-to/7874-quantity-on-product-listing-page-or-product-page#7911 "Is there a way to add a quantity input to show on the product listing page and the product detail page?")*

I changed the code and the option is set to normal. Now quantity does not appear on the product listing or product page.

[ www.fitsolutionsnaples.com/index.php?opt...e=fit-camp&amp;Itemid=72](http://www.fitsolutionsnaples.com/index.php?option=com_hikashop&ctrl=category&task=listing&cid=10&name=fit-camp&Itemid=72)

[ www.fitsolutionsnaples.com/index.php?opt...&amp;category\_pathway=10](http://www.fitsolutionsnaples.com/index.php?option=com_hikashop&ctrl=product&task=show&cid=2&name=fit-camp-drop-in&Itemid=72&category_pathway=10)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc4NzQtcXVhbnRpdHktb24tcHJvZHVjdC1saXN0aW5nLXBhZ2Utb3ItcHJvZHVjdC1wYWdlP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

15 years 8 months ago [\#7913](#7913) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Quantity on Product Listing Page or Product Page](/forum/4-how-to/7874-quantity-on-product-listing-page-or-product-page#7913 "Is there a way to add a quantity input to show on the product listing page and the product detail page?")*

Please edit the file administrator/components/com_hikashop/helpers/cart.php and change the line:
}elseif($params-&gt;get('show_quantity_field',0)!=-1){
to:
}elseif($params-&gt;get('show_quantity_field',0)!=0){

It seems that normal and no display are reverted at the moment.

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

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

Less More

- Posts: 40
- Thank you received: 0
-
-

15 years 8 months ago [\#7916](#7916) by [DShapiroNaples](/forum/user/565-dshapironaples "View DShapiroNaples's Profile")  Replied by *[DShapiroNaples](/forum/user/565-dshapironaples "View DShapiroNaples's Profile")* on topic *[Re: Quantity on Product Listing Page or Product Page](/forum/4-how-to/7874-quantity-on-product-listing-page-or-product-page#7916 "Is there a way to add a quantity input to show on the product listing page and the product detail page?")*

Code changed:

}elseif($params-&gt;get('show_quantity_field',0)!=0){
$html.='&lt;input id="hikashop_product_quantity_field_'.$i.'" type="hidden" value="'.$min_quantity.'" class="hikashop_product_quantity_field" name="quantity" /&gt;';
}
return $html;
}

Parameter set to normal....

No quantity on product listing or product page

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

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

Less More

- Posts: 40
- Thank you received: 0
-
-

15 years 8 months ago [\#7919](#7919) by [DShapiroNaples](/forum/user/565-dshapironaples "View DShapiroNaples's Profile")  Replied by *[DShapiroNaples](/forum/user/565-dshapironaples "View DShapiroNaples's Profile")* on topic *[Re: Quantity on Product Listing Page or Product Page](/forum/4-how-to/7874-quantity-on-product-listing-page-or-product-page#7919 "Is there a way to add a quantity input to show on the product listing page and the product detail page?")*

This is the code I have in the product/listing.php view

&lt;div id="&lt;?php echo $this-&gt;params-&gt;get('main_div_name');?&gt;" class="hikashop_category_information"&gt;
&lt;?php
/** DBS
* Added option to force quantity on
**/
$this-&gt;params-&gt;set('show_quantity_field',-1);
$title = 'show_page_title';
if($this-&gt;module){
$title = 'showtitle';

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc4NzQtcXVhbnRpdHktb24tcHJvZHVjdC1saXN0aW5nLXBhZ2Utb3ItcHJvZHVjdC1wYWdlP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

15 years 8 months ago [\#7920](#7920) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Quantity on Product Listing Page or Product Page](/forum/4-how-to/7874-quantity-on-product-listing-page-or-product-page#7920 "Is there a way to add a quantity input to show on the product listing page and the product detail page?")*

We've upload a new package of hikashop to fix the problem. Please download it for our website and install over and that should work.

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

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

Less More

- Posts: 40
- Thank you received: 0
-
-

15 years 8 months ago [\#7921](#7921) by [DShapiroNaples](/forum/user/565-dshapironaples "View DShapiroNaples's Profile")  Replied by *[DShapiroNaples](/forum/user/565-dshapironaples "View DShapiroNaples's Profile")* on topic *[Re: Quantity on Product Listing Page or Product Page](/forum/4-how-to/7874-quantity-on-product-listing-page-or-product-page#7921 "Is there a way to add a quantity input to show on the product listing page and the product detail page?")*

That worked... Once agin I am so thankful for your amazingly fast response!!! ![:cheer:](/media/kunena/emoticons/2.png ":cheer:")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc4NzQtcXVhbnRpdHktb24tcHJvZHVjdC1saXN0aW5nLXBhZ2Utb3ItcHJvZHVjdC1wYWdlP3RtcGw9bWFya2Rvd24=) 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.086 seconds

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