Change the maximum quantity of the dropdownfield

  • Posts: 26
  • Thank you received: 1
7 years 2 months ago #277380

Hi all,

When customers try to order products in my webshop and want a larger quantity of the same product, the maximum of products they can order is 15 when I select the "use selected" (Configuration -> Display -> Product options -> Quantity lay out on product page). This is the maximum in the drop down list.
Where can I change the maximum number that is in this dropdown list?

(For now I changed the setting back to "Standard" ,so people have to type the number themselves)

Last edit: 7 years 2 months ago by OtenKing1.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
7 years 2 months ago #277388

Hi,

You can change that option to "show select by price" and enter prices in your product for different minimum quantities and the system will pick all these minimum quantity of the prices as values in the dropdown.

For the "show select", we limit to 15 as to not have an enormous dropdown. If you set a maximum quantity per order in your product, the system will automatically use that value to know the number of values you want in the dropdown.

If you want to change the way the dropdown is generated to add more values, turn on the "display view files" setting of the HikaShop configuration in order to know how which view file is used to generate the dropdown on your website (it can come from different files based on how you configured your HikaShop and which page you want to do it). Once you know, edit the view file via the menu Display>Views and you'll be able to change the code for that.
For example, if it's the view file layouts / quantity.php , you'll find that line:
$max_quantity = (int)$min_quantity * 15;
where you can change the 15 text to what you want.

The following user(s) said Thank You: OtenKing1

Please Log in or Create an account to join the conversation.

  • Posts: 26
  • Thank you received: 1
7 years 2 months ago #277441

Thank a lot! Solved it.

Please Log in or Create an account to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum