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

#   How to show quantity on product listing?

##

- **[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: 86581
- Thank you received: 14322
-
-

14 years 8 months ago [\#42122](#42122) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to show quantity on product listing?](/forum/4-how-to/24521-how-to-show-quantity-on-product-listing?start=20#42122 "On the product listing page, not the product page, I am listing product in 4 columns with the 'image and title', price and the 'add to cart' button.  This is good, but there is no quantity field to accompany the Add to Cart button. This means it only adds a quantity of 1 to the cart and I really need to have the ability for customers to enter a quantity.  How can I show the Quantity on this page for each product, and position it to the left of the Add to cart button, just as it is on the product page?")*

Ah yes that's also a solution.
If it didn't work in listing_img_title it's probably that you are using another item box layout than "image and title" which is the default one.

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

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

Less More

- Posts: 59
- Thank you received: 2
-
-

14 years 3 weeks ago -  14 years 3 weeks ago [\#73190](#73190) by [d2dpcs](/forum/user/10531-d2dpcs "View d2dpcs's Profile")  Replied by *[d2dpcs](/forum/user/10531-d2dpcs "View d2dpcs's Profile")* on topic *[Re: How to show quantity on product listing?](/forum/4-how-to/24521-how-to-show-quantity-on-product-listing?start=20#73190 "On the product listing page, not the product page, I am listing product in 4 columns with the 'image and title', price and the 'add to cart' button.  This is good, but there is no quantity field to accompany the Add to Cart button. This means it only adds a quantity of 1 to the cart and I really need to have the ability for customers to enter a quantity.  How can I show the Quantity on this page for each product, and position it to the left of the Add to cart button, just as it is on the product page?")*

Sorry for posting to a 1 year old thread, but I was directed here to add the quantity to product listing pages. This css edit did what it was supposed to do also, but I'm looking for a little bit different edit. How would I center the quantity box, + -, and Add to Cart button directly inline with the image, title, price, etc. Thanks, Eric.

> nicolas wrote: To put more spacing, you can try to add some CSS code in the front end CSS file that you can edit via the Display tab of the configuration:
> .hikashop\_product\_stock table td{ padding-right: 10px; }

Last edit: 14 years 3 weeks ago by [d2dpcs](/forum/user/10531-d2dpcs "View d2dpcs's Profile").

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

- **[jansuhr](/forum/user/6377-jansuhr "View jansuhr's Profile")**
- [![jansuhr's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6377.jpg)](/forum/user/6377-jansuhr "View jansuhr's Profile")
- [ Offline](/forum/user/6377-jansuhr)

Less More

- Posts: 182
- Thank you received: 15
-
-
- [](http://www.colorconsult.se)
-

14 years 3 weeks ago [\#73302](#73302) by [jansuhr](/forum/user/6377-jansuhr "View jansuhr's Profile")  Replied by *[jansuhr](/forum/user/6377-jansuhr "View jansuhr's Profile")* on topic *[Re: How to show quantity on product listing?](/forum/4-how-to/24521-how-to-show-quantity-on-product-listing?start=20#73302 "On the product listing page, not the product page, I am listing product in 4 columns with the 'image and title', price and the 'add to cart' button.  This is good, but there is no quantity field to accompany the Add to Cart button. This means it only adds a quantity of 1 to the cart and I really need to have the ability for customers to enter a quantity.  How can I show the Quantity on this page for each product, and position it to the left of the Add to cart button, just as it is on the product page?")*

Add this to your template.css (or any other CSS that you have)

.hikashop_product_stock table { margin-left: auto; margin-right: auto;}

That'll do it!

Jan

---

Jan Suhr
[ www.colorconsult.se](http://www.colorconsult.se) [ www.jansuhr.se](http://www.jansuhr.se)

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile"), [d2dpcs](/forum/user/10531-d2dpcs "View d2dpcs's Profile")

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

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

Less More

- Posts: 59
- Thank you received: 2
-
-

14 years 3 weeks ago [\#73366](#73366) by [d2dpcs](/forum/user/10531-d2dpcs "View d2dpcs's Profile")  Replied by *[d2dpcs](/forum/user/10531-d2dpcs "View d2dpcs's Profile")* on topic *[Re: How to show quantity on product listing?](/forum/4-how-to/24521-how-to-show-quantity-on-product-listing?start=20#73366 "On the product listing page, not the product page, I am listing product in 4 columns with the 'image and title', price and the 'add to cart' button.  This is good, but there is no quantity field to accompany the Add to Cart button. This means it only adds a quantity of 1 to the cart and I really need to have the ability for customers to enter a quantity.  How can I show the Quantity on this page for each product, and position it to the left of the Add to cart button, just as it is on the product page?")*

Worked like a charm! Thank you!

> jansuhr wrote: Add this to your template.css (or any other CSS that you have)
>
> .hikashop\_product\_stock table { margin-left: auto; margin-right: auto;}
>
> That'll do it!
>
>
> Jan

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

- **[reace](/forum/user/272-reace "View reace's Profile")**
- [![reace's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar272.gif)](/forum/user/272-reace "View reace's Profile")
- [ Offline](/forum/user/272-reace)
- Entrepreneur

Less More

- Posts: 93
- Thank you received: 5
-
-
-
-

14 years 4 days ago -  14 years 4 days ago [\#77395](#77395) by [reace](/forum/user/272-reace "View reace's Profile")  Replied by *[reace](/forum/user/272-reace "View reace's Profile")* on topic *[Re: How to show quantity on table listing?](/forum/4-how-to/24521-how-to-show-quantity-on-product-listing?start=20#77395 "On the product listing page, not the product page, I am listing product in 4 columns with the 'image and title', price and the 'add to cart' button.  This is good, but there is no quantity field to accompany the Add to Cart button. This means it only adds a quantity of 1 to the cart and I really need to have the ability for customers to enter a quantity.  How can I show the Quantity on this page for each product, and position it to the left of the Add to cart button, just as it is on the product page?")*

sorted below;

---

you Guys are Awesome and have excellent Support! Keep up the great Work!.

Last edit: 14 years 4 days ago by [reace](/forum/user/272-reace "View reace's Profile").

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

- **[reace](/forum/user/272-reace "View reace's Profile")**
- [![reace's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar272.gif)](/forum/user/272-reace "View reace's Profile")
- [ Offline](/forum/user/272-reace)
- Entrepreneur

Less More

- Posts: 93
- Thank you received: 5
-
-
-
-

14 years 4 days ago -  14 years 4 days ago [\#77400](#77400) by [reace](/forum/user/272-reace "View reace's Profile")  Replied by *[reace](/forum/user/272-reace "View reace's Profile")* on topic *[Re: How to show quantity on table listing?](/forum/4-how-to/24521-how-to-show-quantity-on-product-listing?start=20#77400 "On the product listing page, not the product page, I am listing product in 4 columns with the 'image and title', price and the 'add to cart' button.  This is good, but there is no quantity field to accompany the Add to Cart button. This means it only adds a quantity of 1 to the cart and I really need to have the ability for customers to enter a quantity.  How can I show the Quantity on this page for each product, and position it to the left of the Add to cart button, just as it is on the product page?")*

Sorted thanks , for table view QTY I have done the following in both template views for 'table_list' View ;
Code:

&lt;?php if($this-&gt;params-&gt;get('add_to_cart')){ ?&gt; &lt;td class="hikashop_product_add_to_cart_row"&gt; &lt;?php $this-&gt;params-&gt;set('show_quantity_field', 1); $this-&gt;setLayout('add_to_cart_listing'); echo $this-&gt;loadTemplate(); ?&gt; &lt;/td&gt; &lt;?php } ?&gt;

Worked a treat.

Cheers.

---

you Guys are Awesome and have excellent Support! Keep up the great Work!.

Last edit: 14 years 4 days ago by [reace](/forum/user/272-reace "View reace's Profile").

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

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

- **[Oli\_Thai](/forum/user/34583-oli-thai "View Oli&#95;Thai's Profile")**
- [![Oli&#95;Thai's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34583-oli-thai "View Oli&#95;Thai's Profile")
- [ Offline](/forum/user/34583-oli-thai)

Less More

- Posts: 2
- Thank you received: 0
-
-

12 years 2 weeks ago [\#178085](#178085) by [Oli\_Thai](/forum/user/34583-oli-thai "View Oli&#95;Thai's Profile")  Replied by *[Oli\_Thai](/forum/user/34583-oli-thai "View Oli&#95;Thai's Profile")* on topic *[How to show quantity on product listing?](/forum/4-how-to/24521-how-to-show-quantity-on-product-listing?start=20#178085 "On the product listing page, not the product page, I am listing product in 4 columns with the 'image and title', price and the 'add to cart' button.  This is good, but there is no quantity field to accompany the Add to Cart button. This means it only adds a quantity of 1 to the cart and I really need to have the ability for customers to enter a quantity.  How can I show the Quantity on this page for each product, and position it to the left of the Add to cart button, just as it is on the product page?")*

-- HikaShop version -- : 2.2.2
-- Joomla version -- : 2.5.20 and 3
-- PHP version -- : 5.3.9
- Template GK fronstore
-- Browser(s) name and version -- : Firefox,Chrome,IE11

i have create all caregories and have begin to create the menu.this all going fine and good.
but now i have add one testproduct for look [ www.thaionlinemarkt.com/neu/de/gesundhei...t/1-testprodukt.html](https://www.thaionlinemarkt.com/neu/de/gesundheitsprodukte/beauutyprodukte/diaetprodukte/tee-und-kaffee/product/1-testprodukt.html)
but the problem i cant see the quantity.

we can do does show it and their in wich name of script exactly must change does can show later the quantity?

the option for "Display the quantity field on the product page" is set to "Ajax Input" in the configuration of HikaShop..

i want not move to other shopsystem eg Virtuemart.

thx and hope for fast respond

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

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

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 2 weeks ago [\#178128](#178128) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[How to show quantity on product listing?](/forum/4-how-to/24521-how-to-show-quantity-on-product-listing?start=20#178128 "On the product listing page, not the product page, I am listing product in 4 columns with the 'image and title', price and the 'add to cart' button.  This is good, but there is no quantity field to accompany the Add to Cart button. This means it only adds a quantity of 1 to the cart and I really need to have the ability for customers to enter a quantity.  How can I show the Quantity on this page for each product, and position it to the left of the Add to cart button, just as it is on the product page?")*

Hi,

You have to add this kind of css property in your css file: Code:

.hikashop_product_quantity_field{ width: 50px !important; }

[ hikashop.com/support/support/documentati...ize-the-display.html](https://hikashop.com/support/support/documentation/153-customize-the-display.html)

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

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