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

#   Multiple quantities

##

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

Less More

- Posts: 15
- Thank you received: 1
-
-

13 years 9 months ago [\#90009](#90009) by [sander.v.bergen](/forum/user/13644-sander-v-bergen "View sander.v.bergen's Profile")  *[Multiple quantities](/forum/2-general-talk-about-hikashop/78348-multiple-quantities#90009 "Hi there,  First of all: Great component! Works just great and easy to customize!  Before I used Virtuemart, but due to some limitations I'm using Hikashop for the first time now. So far everything is working fine. There is only one thing that I can't get to work.  Some products are only sold in quantities of (for example) 5. So if someone wants to order this product it can only be in multiples of 5 (5,10,15,20,25,etc.) Is it possible to do something like this in Hikashop?  Thanks in advance!  PS: Before, when working with Virtuemart someone made this addition for me   forum.virtuemart.net/index.php?topic=101894.30 .")* was created by *[sander.v.bergen](/forum/user/13644-sander-v-bergen "View sander.v.bergen's Profile")*

Hi there,

First of all: Great component! Works just great and easy to customize!

Before I used Virtuemart, but due to some limitations I'm using Hikashop for the first time now.
So far everything is working fine. There is only one thing that I can't get to work.

Some products are only sold in quantities of (for example) 5. So if someone wants to order this product it can only be in multiples of 5 (5,10,15,20,25,etc.)
Is it possible to do something like this in Hikashop?

Thanks in advance!

PS: Before, when working with Virtuemart someone made this addition for me [ forum.virtuemart.net/index.php?topic=101894.30](http://forum.virtuemart.net/index.php?topic=101894.30).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc4MzQ4LW11bHRpcGxlLXF1YW50aXRpZXM/dG1wbD1tYXJrZG93bg==) 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)
-

13 years 9 months ago [\#90049](#90049) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Multiple quantities](/forum/2-general-talk-about-hikashop/78348-multiple-quantities#90049 "Hi there,  First of all: Great component! Works just great and easy to customize!  Before I used Virtuemart, but due to some limitations I'm using Hikashop for the first time now. So far everything is working fine. There is only one thing that I can't get to work.  Some products are only sold in quantities of (for example) 5. So if someone wants to order this product it can only be in multiples of 5 (5,10,15,20,25,etc.) Is it possible to do something like this in Hikashop?  Thanks in advance!  PS: Before, when working with Virtuemart someone made this addition for me   forum.virtuemart.net/index.php?topic=101894.30 .")*

Hi,

Yes it's possible, you have to create a file in the template folder to override the buttons.
Here is some documentation:
[ www.hikashop.com/fr/support/documentatio...tation.html#override](http://www.hikashop.com/fr/support/documentation/62-hikashop-developer-documentation.html#override)

Chapter "for the quantity input", you can see the view "product / quantity" to use the default code for add to cart buttons.

[ www.hikashop.com/fr/forum/4-how-to/60489...-quanties.html#60489](http://www.hikashop.com/fr/forum/4-how-to/60489-allow-order-only-with-specific-quanties.html#60489)

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

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

Less More

- Posts: 15
- Thank you received: 1
-
-

13 years 9 months ago [\#90882](#90882) by [sander.v.bergen](/forum/user/13644-sander-v-bergen "View sander.v.bergen's Profile")  Replied by *[sander.v.bergen](/forum/user/13644-sander-v-bergen "View sander.v.bergen's Profile")* on topic *[Multiple quantities](/forum/2-general-talk-about-hikashop/78348-multiple-quantities#90882 "Hi there,  First of all: Great component! Works just great and easy to customize!  Before I used Virtuemart, but due to some limitations I'm using Hikashop for the first time now. So far everything is working fine. There is only one thing that I can't get to work.  Some products are only sold in quantities of (for example) 5. So if someone wants to order this product it can only be in multiples of 5 (5,10,15,20,25,etc.) Is it possible to do something like this in Hikashop?  Thanks in advance!  PS: Before, when working with Virtuemart someone made this addition for me   forum.virtuemart.net/index.php?topic=101894.30 .")*

Okay, Thanks ![:)](/media/kunena/emoticons/3.png ":)")!

I'll read the documentation and hopefully I will be able to succesfully modify it..!

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

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

Less More

- Posts: 15
- Thank you received: 1
-
-

13 years 9 months ago [\#90886](#90886) by [sander.v.bergen](/forum/user/13644-sander-v-bergen "View sander.v.bergen's Profile")  Replied by *[sander.v.bergen](/forum/user/13644-sander-v-bergen "View sander.v.bergen's Profile")* on topic *[Multiple quantities](/forum/2-general-talk-about-hikashop/78348-multiple-quantities#90886 "Hi there,  First of all: Great component! Works just great and easy to customize!  Before I used Virtuemart, but due to some limitations I'm using Hikashop for the first time now. So far everything is working fine. There is only one thing that I can't get to work.  Some products are only sold in quantities of (for example) 5. So if someone wants to order this product it can only be in multiples of 5 (5,10,15,20,25,etc.) Is it possible to do something like this in Hikashop?  Thanks in advance!  PS: Before, when working with Virtuemart someone made this addition for me   forum.virtuemart.net/index.php?topic=101894.30 .")*

Ok.. I've used the code that was given in the forum and the products now show a list of quantity options.
Unfortunately this still isn't the solution for me.

1- I'd prefer to have a plus/minus button since I don't want to limit the quantity (I could make a very long list, but that would be pretty ugly).
2- Some products have other quantities. The product in my first example was sold in quantities of 5, but we also sell produts in quantities of 6,7,8, and so on. With the solution provided there is only one override possible.

Too bad the HTML5 input type="number" isn't widely accepted yet, since you can specify a 'step' quantity for that ![:(](/media/kunena/emoticons/22.png ":(").

Thanks again for helping out! Hopefully you will be able to point me in the right direction ![:)](/media/kunena/emoticons/3.png ":)")..

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 9 months ago [\#90980](#90980) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Multiple quantities](/forum/2-general-talk-about-hikashop/78348-multiple-quantities#90980 "Hi there,  First of all: Great component! Works just great and easy to customize!  Before I used Virtuemart, but due to some limitations I'm using Hikashop for the first time now. So far everything is working fine. There is only one thing that I can't get to work.  Some products are only sold in quantities of (for example) 5. So if someone wants to order this product it can only be in multiples of 5 (5,10,15,20,25,etc.) Is it possible to do something like this in Hikashop?  Thanks in advance!  PS: Before, when working with Virtuemart someone made this addition for me   forum.virtuemart.net/index.php?topic=101894.30 .")*

Hi,

I understand.
At this moment an javascript library could be useful in order to create a dynamic interface for the number selection.
I don't have any name but I guess that some should exists.

In Joomla3.0, they have added "chosen" which is pretty nice with long dropdown lists. Maybe it could help you.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 15
- Thank you received: 1
-
-

13 years 9 months ago [\#91054](#91054) by [sander.v.bergen](/forum/user/13644-sander-v-bergen "View sander.v.bergen's Profile")  Replied by *[sander.v.bergen](/forum/user/13644-sander-v-bergen "View sander.v.bergen's Profile")* on topic *[Multiple quantities](/forum/2-general-talk-about-hikashop/78348-multiple-quantities#91054 "Hi there,  First of all: Great component! Works just great and easy to customize!  Before I used Virtuemart, but due to some limitations I'm using Hikashop for the first time now. So far everything is working fine. There is only one thing that I can't get to work.  Some products are only sold in quantities of (for example) 5. So if someone wants to order this product it can only be in multiples of 5 (5,10,15,20,25,etc.) Is it possible to do something like this in Hikashop?  Thanks in advance!  PS: Before, when working with Virtuemart someone made this addition for me   forum.virtuemart.net/index.php?topic=101894.30 .")*

Hi,

Thanks for the information.
I probably have to go with Javascript then. I'll try to fix it myself, but I'll probably post a topic on the 'Commercial Jobs' forum in the near future :laugh:

Can you maybe tell me where it's specified that the plus and minus buttons add 1? Can't really find it in the product pages.
Thanks again!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc4MzQ4LW11bHRpcGxlLXF1YW50aXRpZXM/dG1wbD1tYXJrZG93bg==) 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: 86587
- Thank you received: 14326
-
-

13 years 9 months ago [\#91155](#91155) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Multiple quantities](/forum/2-general-talk-about-hikashop/78348-multiple-quantities#91155 "Hi there,  First of all: Great component! Works just great and easy to customize!  Before I used Virtuemart, but due to some limitations I'm using Hikashop for the first time now. So far everything is working fine. There is only one thing that I can't get to work.  Some products are only sold in quantities of (for example) 5. So if someone wants to order this product it can only be in multiples of 5 (5,10,15,20,25,etc.) Is it possible to do something like this in Hikashop?  Thanks in advance!  PS: Before, when working with Virtuemart someone made this addition for me   forum.virtuemart.net/index.php?topic=101894.30 .")*

Hi,

The code is actually in the file administrator/components/com_hikashop/helpers/cart.php

It can be overridden with a quantity field template override as explained on our developer documentation:
[ www.hikashop.com/en/support/documentatio...tation.html#override](http://www.hikashop.com/en/support/documentation/62-hikashop-developer-documentation.html#override)

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

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