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

#   Limit order of a product to 1

##

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

Less More

- Posts: 18
- Thank you received: 0
-
-

14 years 6 months ago [\#47356](#47356) by [actlas](/forum/user/6359-actlas "View actlas's Profile")  *[Limit order of a product to 1](/forum/4-how-to/47356-limit-order-of-a-product-to-1#47356 "I would like to limit the maximum amount of certain products ordered to 1.  How can I remove the quantity selection box from those products. It shouldn't be displayed as they can only order 1 piece...")* was created by *[actlas](/forum/user/6359-actlas "View actlas's Profile")*

I would like to limit the maximum amount of certain products ordered to 1.

How can I remove the quantity selection box from those products.
It shouldn't be displayed as they can only order 1 piece...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3MzU2LWxpbWl0LW9yZGVyLW9mLWEtcHJvZHVjdC10by0xP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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)
-

14 years 6 months ago [\#47602](#47602) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Limit order of a product to 1](/forum/4-how-to/47356-limit-order-of-a-product-to-1#47602 "I would like to limit the maximum amount of certain products ordered to 1.  How can I remove the quantity selection box from those products. It shouldn't be displayed as they can only order 1 piece...")*

Hi actlas,

Edit the view: HikaShop &gt; Display &gt; Views, "Product / quantity.php".

And replace the lines: Code:

&lt;div class="hikashop_product_stock"&gt; &lt;?php echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_CART'),'ok',$this-&gt;params,$url,$this-&gt;ajax,'',$this-&gt;row-&gt;product_max_per_order,$this-&gt;row-&gt;product_min_per_order);

By: Code:

&lt;div class="hikashop_product_stock"&gt; &lt;?php if($this-&gt;element-&gt;main-&gt;product_max_per_order == '1'){ echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_CART'),'ok',$this-&gt;params,$url,$this-&gt;ajax,'',$this-&gt;row-&gt;product_max_per_order,$this-&gt;row-&gt;product_min_per_order); }else{ echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_CART'),'add',$this-&gt;params,$url,$this-&gt;ajax,'',$this-&gt;row-&gt;product_max_per_order,$this-&gt;row-&gt;product_min_per_order); }

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3MzU2LWxpbWl0LW9yZGVyLW9mLWEtcHJvZHVjdC10by0xP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 18
- Thank you received: 0
-
-

14 years 6 months ago [\#47823](#47823) by [actlas](/forum/user/6359-actlas "View actlas's Profile")  Replied by *[actlas](/forum/user/6359-actlas "View actlas's Profile")* on topic *[Re: Limit order of a product to 1](/forum/4-how-to/47356-limit-order-of-a-product-to-1#47823 "I would like to limit the maximum amount of certain products ordered to 1.  How can I remove the quantity selection box from those products. It shouldn't be displayed as they can only order 1 piece...")*

The add to cart button also disappears this way.
It also says there are no products in stock anymore although there are 3.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3MzU2LWxpbWl0LW9yZGVyLW9mLWEtcHJvZHVjdC10by0xP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14284
-
-

14 years 6 months ago [\#47943](#47943) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Limit order of a product to 1](/forum/4-how-to/47356-limit-order-of-a-product-to-1#47943 "I would like to limit the maximum amount of certain products ordered to 1.  How can I remove the quantity selection box from those products. It shouldn't be displayed as they can only order 1 piece...")*

In each product, you will find an option called "Maximum quantity per order" that you can use for what you want to do.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3MzU2LWxpbWl0LW9yZGVyLW9mLWEtcHJvZHVjdC10by0xP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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.054 seconds

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