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

#   Quantity field for options?

##

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

Less More

- Posts: 53
- Thank you received: 3
-
-

2 years 7 months ago [\#359846](#359846) by [yolknet](/forum/user/12476-yolknet "View yolknet's Profile")  *[Quantity field for options?](/forum/26-product-category-display/907919-quantity-field-for-options#359846 "Hi,  Is there a way to add a quantity field to the options? I want to build a shop with products with options. I know how to do that, except that several options can be ordered more than 1. So let's say I want to buy product X, and then I need to choose if I want option Y one, two, three or more times delivered with product X.  Is there a way to do this? A plugin maybe?")* was created by *[yolknet](/forum/user/12476-yolknet "View yolknet's Profile")*

Hi,

Is there a way to add a quantity field to the options? I want to build a shop with products with options. I know how to do that, except that several options can be ordered more than 1. So let's say I want to buy product X, and then I need to choose if I want option Y one, two, three or more times delivered with product X.

Is there a way to do this? A plugin maybe?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDc5MTktcXVhbnRpdHktZmllbGQtZm9yLW9wdGlvbnM/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: 86363
- Thank you received: 14296
-
-

2 years 7 months ago [\#359849](#359849) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Quantity field for options?](/forum/26-product-category-display/907919-quantity-field-for-options#359849 "Hi,  Is there a way to add a quantity field to the options? I want to build a shop with products with options. I know how to do that, except that several options can be ordered more than 1. So let's say I want to buy product X, and then I need to choose if I want option Y one, two, three or more times delivered with product X.  Is there a way to do this? A plugin maybe?")*

Hi,

It's possible. We've coded a solution for that right within HikaShop but didn't provide any interface to activate it as it is quite a niche request and there are already many options in HikaShop's interface.
To activate it, just edit the file product / option for your frontend template via the menu Display&gt;Views and change the line:
$this-&gt;show_option_quantity = false;
to:
$this-&gt;show_option_quantity = true;
near the beginning of the file and save.

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

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

Less More

- Posts: 53
- Thank you received: 3
-
-

2 years 6 months ago [\#360427](#360427) by [yolknet](/forum/user/12476-yolknet "View yolknet's Profile")  Replied by *[yolknet](/forum/user/12476-yolknet "View yolknet's Profile")* on topic *[Quantity field for options?](/forum/26-product-category-display/907919-quantity-field-for-options#360427 "Hi,  Is there a way to add a quantity field to the options? I want to build a shop with products with options. I know how to do that, except that several options can be ordered more than 1. So let's say I want to buy product X, and then I need to choose if I want option Y one, two, three or more times delivered with product X.  Is there a way to do this? A plugin maybe?")*

Hi,

Thanks, that was really easy to do.
Is it possible to have the quantity field just on *some* options and not all?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDc5MTktcXVhbnRpdHktZmllbGQtZm9yLW9wdGlvbnM/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: 86363
- Thank you received: 14296
-
-

2 years 6 months ago [\#360432](#360432) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Quantity field for options?](/forum/26-product-category-display/907919-quantity-field-for-options#360432 "Hi,  Is there a way to add a quantity field to the options? I want to build a shop with products with options. I know how to do that, except that several options can be ordered more than 1. So let's say I want to buy product X, and then I need to choose if I want option Y one, two, three or more times delivered with product X.  Is there a way to do this? A plugin maybe?")*

Hi,

It's not impossible. It would require creating a custom field of the table "product", so that you could choose which mode to use in each option product. Then, it would require modifying the code in product / option in order to take into account the value of this custom field instead of just relying on the $this-&gt;show_option_quantity variable. This would require modifications in several places of the view file so it's a bit more involved than just changing one line of code. You'll have to hire a PHP / JavaScript developer to be able to do this for you if you're not a developer yourself.

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

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