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

#   Restricting quantity ordered.

##

- **[jpak\_jfixdesign](/forum/user/2353-jpak-jfixdesign "View jpak&#95;jfixdesign's Profile")**
- [![jpak&#95;jfixdesign's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2353-jpak-jfixdesign "View jpak&#95;jfixdesign's Profile") Topic Author
- [ Offline](/forum/user/2353-jpak-jfixdesign)

Less More

- Posts: 1
- Thank you received: 0
-
-

15 years 5 months ago [\#15254](#15254) by [jpak\_jfixdesign](/forum/user/2353-jpak-jfixdesign "View jpak&#95;jfixdesign's Profile")  *[Restricting quantity ordered.](/forum/4-how-to/15254-restricting-quantity-ordered#15254 "Good afternoon,  I wanted to thank the developers for making this great program. I am waiting for the UPS shipping plugin to be made, but in the meantime I'm taking the shipping into my own hands.  Now to the question: How can I restrict the quantity that people order? I want to have a drop down box for quantities instead of typing in my own amount. (i.e. 25, 50, 75, 100 and nothing in between). Is this possible?  Thanks!")* was created by *[jpak\_jfixdesign](/forum/user/2353-jpak-jfixdesign "View jpak&#95;jfixdesign's Profile")*

Good afternoon,

I wanted to thank the developers for making this great program. I am waiting for the UPS shipping plugin to be made, but in the meantime I'm taking the shipping into my own hands.

Now to the question: How can I restrict the quantity that people order? I want to have a drop down box for quantities instead of typing in my own amount. (i.e. 25, 50, 75, 100 and nothing in between). Is this possible?

Thanks!

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

Less More

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

15 years 5 months ago [\#15272](#15272) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Restricting quantity ordered.](/forum/4-how-to/15254-restricting-quantity-ordered#15272 "Good afternoon,  I wanted to thank the developers for making this great program. I am waiting for the UPS shipping plugin to be made, but in the meantime I'm taking the shipping into my own hands.  Now to the question: How can I restrict the quantity that people order? I want to have a drop down box for quantities instead of typing in my own amount. (i.e. 25, 50, 75, 100 and nothing in between). Is this possible?  Thanks!")*

Hi,

We are currently preparing the ground for the UPS plugin.

You can set the quantities by creating an override in your template:
You will need to create a file templates/YOUR_TEMPLATE/html/hikashop_button.php with the content:
&lt;?php
function hikashop_quantity_render($html,$i,$max_quantity,$min_quantity){
return '&lt;select id="hikashop_product_quantity_field_'.$i.'" name="quantity"&gt;&lt;option value="25"&gt;25&lt;/option&gt;&lt;option value="50"&gt;50&lt;/option&gt;&lt;option value="75"&gt;75&lt;/option&gt;&lt;option value="100"&gt;100&lt;/option&gt;&lt;/select&gt;'.$html;
}

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

15 years 5 months ago [\#16948](#16948) by [breto33](/forum/user/2005-breto33 "View breto33's Profile")  Replied by *[breto33](/forum/user/2005-breto33 "View breto33's Profile")* on topic *[Re: Restricting quantity ordered.](/forum/4-how-to/15254-restricting-quantity-ordered#16948 "Good afternoon,  I wanted to thank the developers for making this great program. I am waiting for the UPS shipping plugin to be made, but in the meantime I'm taking the shipping into my own hands.  Now to the question: How can I restrict the quantity that people order? I want to have a drop down box for quantities instead of typing in my own amount. (i.e. 25, 50, 75, 100 and nothing in between). Is this possible?  Thanks!")*

I need this to work on both the product and the cart/checkout page.

I tried your over-ride method above for the cart page, but it didnt work.

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

Less More

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

15 years 5 months ago [\#16953](#16953) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Restricting quantity ordered.](/forum/4-how-to/15254-restricting-quantity-ordered#16953 "Good afternoon,  I wanted to thank the developers for making this great program. I am waiting for the UPS shipping plugin to be made, but in the meantime I'm taking the shipping into my own hands.  Now to the question: How can I restrict the quantity that people order? I want to have a drop down box for quantities instead of typing in my own amount. (i.e. 25, 50, 75, 100 and nothing in between). Is this possible?  Thanks!")*

For the cart/checkout, you need to directly edit the cart file of the views checkout and product via the menu Display-&gt;Views and change the code which displays the input field.

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

15 years 5 months ago [\#16957](#16957) by [breto33](/forum/user/2005-breto33 "View breto33's Profile")  Replied by *[breto33](/forum/user/2005-breto33 "View breto33's Profile")* on topic *[Re: Restricting quantity ordered.](/forum/4-how-to/15254-restricting-quantity-ordered#16957 "Good afternoon,  I wanted to thank the developers for making this great program. I am waiting for the UPS shipping plugin to be made, but in the meantime I'm taking the shipping into my own hands.  Now to the question: How can I restrict the quantity that people order? I want to have a drop down box for quantities instead of typing in my own amount. (i.e. 25, 50, 75, 100 and nothing in between). Is this possible?  Thanks!")*

ok, thats fine, but how do i display a dropdown menu on the product page instead of a text box, your over ride does not work.

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

Less More

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

15 years 5 months ago [\#16958](#16958) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Restricting quantity ordered.](/forum/4-how-to/15254-restricting-quantity-ordered#16958 "Good afternoon,  I wanted to thank the developers for making this great program. I am waiting for the UPS shipping plugin to be made, but in the meantime I'm taking the shipping into my own hands.  Now to the question: How can I restrict the quantity that people order? I want to have a drop down box for quantities instead of typing in my own amount. (i.e. 25, 50, 75, 100 and nothing in between). Is this possible?  Thanks!")*

The override should work.
Do you use the latest version of HikaShop ?
Did you replace YOUR_TEMPLATE by the name of the folder of your template ?
Could you double check the path of the file ?

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

15 years 5 months ago [\#16961](#16961) by [breto33](/forum/user/2005-breto33 "View breto33's Profile")  Replied by *[breto33](/forum/user/2005-breto33 "View breto33's Profile")* on topic *[Re: Restricting quantity ordered.](/forum/4-how-to/15254-restricting-quantity-ordered#16961 "Good afternoon,  I wanted to thank the developers for making this great program. I am waiting for the UPS shipping plugin to be made, but in the meantime I'm taking the shipping into my own hands.  Now to the question: How can I restrict the quantity that people order? I want to have a drop down box for quantities instead of typing in my own amount. (i.e. 25, 50, 75, 100 and nothing in between). Is this possible?  Thanks!")*

I am using professional version: "You have the latest stable version : 1.5.0"

webroot/templates/mytemplatenamehere/html/hikashop_button.php

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

Less More

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

15 years 5 months ago [\#16966](#16966) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Restricting quantity ordered.](/forum/4-how-to/15254-restricting-quantity-ordered#16966 "Good afternoon,  I wanted to thank the developers for making this great program. I am waiting for the UPS shipping plugin to be made, but in the meantime I'm taking the shipping into my own hands.  Now to the question: How can I restrict the quantity that people order? I want to have a drop down box for quantities instead of typing in my own amount. (i.e. 25, 50, 75, 100 and nothing in between). Is this possible?  Thanks!")*

Are you sure that you put the override in the good template ?
That override is definitely working everywhere so it should work on your website too. You must be doing something wrong...

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

15 years 5 months ago [\#16970](#16970) by [breto33](/forum/user/2005-breto33 "View breto33's Profile")  Replied by *[breto33](/forum/user/2005-breto33 "View breto33's Profile")* on topic *[Re: Restricting quantity ordered.](/forum/4-how-to/15254-restricting-quantity-ordered#16970 "Good afternoon,  I wanted to thank the developers for making this great program. I am waiting for the UPS shipping plugin to be made, but in the meantime I'm taking the shipping into my own hands.  Now to the question: How can I restrict the quantity that people order? I want to have a drop down box for quantities instead of typing in my own amount. (i.e. 25, 50, 75, 100 and nothing in between). Is this possible?  Thanks!")*

Is it maybe possible this code doesnt work in Joomla1.6?

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

Less More

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

15 years 5 months ago [\#16973](#16973) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Restricting quantity ordered.](/forum/4-how-to/15254-restricting-quantity-ordered#16973 "Good afternoon,  I wanted to thank the developers for making this great program. I am waiting for the UPS shipping plugin to be made, but in the meantime I'm taking the shipping into my own hands.  Now to the question: How can I restrict the quantity that people order? I want to have a drop down box for quantities instead of typing in my own amount. (i.e. 25, 50, 75, 100 and nothing in between). Is this possible?  Thanks!")*

No. That code is called directly by HikaShop so it's the same for 1.5 and 1.6

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

15 years 5 months ago [\#16977](#16977) by [breto33](/forum/user/2005-breto33 "View breto33's Profile")  Replied by *[breto33](/forum/user/2005-breto33 "View breto33's Profile")* on topic *[Re: Restricting quantity ordered.](/forum/4-how-to/15254-restricting-quantity-ordered#16977 "Good afternoon,  I wanted to thank the developers for making this great program. I am waiting for the UPS shipping plugin to be made, but in the meantime I'm taking the shipping into my own hands.  Now to the question: How can I restrict the quantity that people order? I want to have a drop down box for quantities instead of typing in my own amount. (i.e. 25, 50, 75, 100 and nothing in between). Is this possible?  Thanks!")*

Well I assure you it is in the right folder, when i add plain text to the file it shows up above the product detail - see the attached. So your code isnt working.  [ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/override.png) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/override.png "&#91;img")

- [ ![override.png](/forum/attachment/1135) ](/forum/attachment/1135 "override.png") [ ](/forum/attachment/1135?download=1 "override.png")

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

Less More

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

15 years 5 months ago [\#16982](#16982) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Restricting quantity ordered.](/forum/4-how-to/15254-restricting-quantity-ordered#16982 "Good afternoon,  I wanted to thank the developers for making this great program. I am waiting for the UPS shipping plugin to be made, but in the meantime I'm taking the shipping into my own hands.  Now to the question: How can I restrict the quantity that people order? I want to have a drop down box for quantities instead of typing in my own amount. (i.e. 25, 50, 75, 100 and nothing in between). Is this possible?  Thanks!")*

Could you send us an FTP access and back end access to your website so that we can check on the problem ?

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

15 years 5 months ago [\#17040](#17040) by [breto33](/forum/user/2005-breto33 "View breto33's Profile")  Replied by *[breto33](/forum/user/2005-breto33 "View breto33's Profile")* on topic *[Re: Restricting quantity ordered.](/forum/4-how-to/15254-restricting-quantity-ordered#17040 "Good afternoon,  I wanted to thank the developers for making this great program. I am waiting for the UPS shipping plugin to be made, but in the meantime I'm taking the shipping into my own hands.  Now to the question: How can I restrict the quantity that people order? I want to have a drop down box for quantities instead of typing in my own amount. (i.e. 25, 50, 75, 100 and nothing in between). Is this possible?  Thanks!")*

No, this is a client website that I can not provide access to.

I guess it is not possible to do.

Another question, where in the he11 is this code generated, the width:100% being added to the head of my page is destroying my layout

&lt;style type="text/css"&gt;

\#hikashop_category_information_menu_111 div.hikashop_subcontainer {
background:#FFFFFF;
}
\#hikashop_category_information_menu_111 .hikashop_rtop *,#hikashop_category_information_menu_111 .hikashop_rbottom *{
background:#FFFFFF;
}

\#hikashop_category_information_menu_111 div.hikashop_subcontainer {
text-align:center;
}
\#hikashop_category_information_menu_111 div.hikashop_container {
text-align:center;
}

\#hikashop_category_information_menu_111 div.hikashop_container {
margin:10px 10px;
}
\#hikashop_category_information_menu_111 div.hikashop_category,#hikashop_category_information_menu_111 div.hikashop_product{
float:left;
width:100%;
}

&lt;/style&gt;

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

Less More

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

15 years 5 months ago [\#17055](#17055) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Restricting quantity ordered.](/forum/4-how-to/15254-restricting-quantity-ordered#17055 "Good afternoon,  I wanted to thank the developers for making this great program. I am waiting for the UPS shipping plugin to be made, but in the meantime I'm taking the shipping into my own hands.  Now to the question: How can I restrict the quantity that people order? I want to have a drop down box for quantities instead of typing in my own amount. (i.e. 25, 50, 75, 100 and nothing in between). Is this possible?  Thanks!")*

That code IS working and has been used by other users of HikaShop with success. There must be a problem with how you're setting it up on your website but I'm out of ideas as I already told you the different possibilities I could think of.

It is generated in administrator/components/com_hikashop/helpers/module.php
That code has to be generated dynamically so that it works properly. You don't want it, an easy solution would be to set a margin of 0 on your menu/module's hikashop options and then set the margin manually in CSS. That will remove the width:100%

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

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

Less More

- Posts: 11
- Thank you received: 0
-
-

14 years 11 months ago [\#28975](#28975) by [tjsan](/forum/user/4321-tjsan "View tjsan's Profile")  Replied by *[tjsan](/forum/user/4321-tjsan "View tjsan's Profile")* on topic *[Re: Restricting quantity ordered.](/forum/4-how-to/15254-restricting-quantity-ordered#28975 "Good afternoon,  I wanted to thank the developers for making this great program. I am waiting for the UPS shipping plugin to be made, but in the meantime I'm taking the shipping into my own hands.  Now to the question: How can I restrict the quantity that people order? I want to have a drop down box for quantities instead of typing in my own amount. (i.e. 25, 50, 75, 100 and nothing in between). Is this possible?  Thanks!")*

I also tried this modification and found that it only works if the option for "Display the quantity field on the product page" is set to Ajax Input. When set to "normal" the dropdown does not appear.

Hope this helps.

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

Less More

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

14 years 11 months ago [\#28977](#28977) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Restricting quantity ordered.](/forum/4-how-to/15254-restricting-quantity-ordered#28977 "Good afternoon,  I wanted to thank the developers for making this great program. I am waiting for the UPS shipping plugin to be made, but in the meantime I'm taking the shipping into my own hands.  Now to the question: How can I restrict the quantity that people order? I want to have a drop down box for quantities instead of typing in my own amount. (i.e. 25, 50, 75, 100 and nothing in between). Is this possible?  Thanks!")*

Ah yes, that's a good remark!

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

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

Less More

- Posts: 69
- Thank you received: 5
-
- [](http://www.gomindstorm.com)
-

13 years 7 months ago [\#94699](#94699) by [mindstorm](/forum/user/2931-mindstorm "View mindstorm's Profile")  Replied by *[mindstorm](/forum/user/2931-mindstorm "View mindstorm's Profile")* on topic *[Re: Restricting quantity ordered.](/forum/4-how-to/15254-restricting-quantity-ordered#94699 "Good afternoon,  I wanted to thank the developers for making this great program. I am waiting for the UPS shipping plugin to be made, but in the meantime I'm taking the shipping into my own hands.  Now to the question: How can I restrict the quantity that people order? I want to have a drop down box for quantities instead of typing in my own amount. (i.e. 25, 50, 75, 100 and nothing in between). Is this possible?  Thanks!")*

Where do we update this in the Cart View? I tried changing the input 'text' to 'select' and it did not work?

also will this need to be changed in ALL of the cart views?

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

Less More

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

13 years 7 months ago [\#94733](#94733) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Restricting quantity ordered.](/forum/4-how-to/15254-restricting-quantity-ordered#94733 "Good afternoon,  I wanted to thank the developers for making this great program. I am waiting for the UPS shipping plugin to be made, but in the meantime I'm taking the shipping into my own hands.  Now to the question: How can I restrict the quantity that people order? I want to have a drop down box for quantities instead of typing in my own amount. (i.e. 25, 50, 75, 100 and nothing in between). Is this possible?  Thanks!")*

The code on this thread is to change the quantity input field to a dropdown on the product page.

For the carts, you will have to edit the file "cart" of the views "checkout" and "product" and modify the quantity input line. The simplest is to just display the value instead of an input box.

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

- **[nui\_meibao](/forum/user/35137-nui-meibao "View nui&#95;meibao's Profile")**
- [![nui&#95;meibao's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35137-nui-meibao "View nui&#95;meibao's Profile")
- [ Offline](/forum/user/35137-nui-meibao)

Less More

- Posts: 5
- Thank you received: 0
-
-

11 years 7 months ago -  11 years 7 months ago [\#194254](#194254) by [nui\_meibao](/forum/user/35137-nui-meibao "View nui&#95;meibao's Profile")  Replied by *[nui\_meibao](/forum/user/35137-nui-meibao "View nui&#95;meibao's Profile")* on topic *[Re: Restricting quantity ordered.](/forum/4-how-to/15254-restricting-quantity-ordered#194254 "Good afternoon,  I wanted to thank the developers for making this great program. I am waiting for the UPS shipping plugin to be made, but in the meantime I'm taking the shipping into my own hands.  Now to the question: How can I restrict the quantity that people order? I want to have a drop down box for quantities instead of typing in my own amount. (i.e. 25, 50, 75, 100 and nothing in between). Is this possible?  Thanks!")*

thanks!

Last edit: 11 years 7 months ago by [nui\_meibao](/forum/user/35137-nui-meibao "View nui&#95;meibao's Profile"). Reason: found the solution.

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

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

[](#top)
