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

#   Disable quantity for some products not all

##

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

Less More

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

13 years 7 months ago [\#92954](#92954) by [kristianp](/forum/user/12898-kristianp "View kristianp's Profile")  *[Disable quantity for some products not all](/forum/4-how-to/78941-disable-quantity-for-some-products-not-all#92954 "Hi,  I have the Business Version of Hikashop.  I realise that through the standard configuration it is not possible to disable the quantity box for some products but not others. You can turn it off or on but it will refect all products on a global basis.  Elsewhere in the view I have modified options on the basis of the product id e.g. if($this-&gt;row-&gt;product&#95;id != 13){ blah blah } etc.  Therefore I was wondering can I edit a view somewhere and do the same for getting rid of the quantity box? I could probably do it with a bit of jquery and take it out of the DOM but that is a faff.  Any ideas in which view I should try my idea and where. I have looked in show and show&#95;default but no matter what I do I can't get rid of it for a select few products.  Website is   www.meridiancollege.co.uk  and if you look at the clever way I have done shipping you will see I am well up for a bit of hacking of code here and there. See also the options for products where I have defaulted them to &quot;Yes&quot; for accommodation products.  Love Hikashop by the way, very clever system.")* was created by *[kristianp](/forum/user/12898-kristianp "View kristianp's Profile")*

Hi,

I have the Business Version of Hikashop.

I realise that through the standard configuration it is not possible to disable the quantity box for some products but not others. You can turn it off or on but it will refect all products on a global basis.

Elsewhere in the view I have modified options on the basis of the product id e.g. if($this-&gt;row-&gt;product_id != 13){ blah blah } etc.

Therefore I was wondering can I edit a view somewhere and do the same for getting rid of the quantity box? I could probably do it with a bit of jquery and take it out of the DOM but that is a faff.

Any ideas in which view I should try my idea and where. I have looked in show and show_default but no matter what I do I can't get rid of it for a select few products.

Website is [ www.meridiancollege.co.uk](http://www.meridiancollege.co.uk) and if you look at the clever way I have done shipping you will see I am well up for a bit of hacking of code here and there. See also the options for products where I have defaulted them to "Yes" for accommodation products.

Love Hikashop by the way, very clever system.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc4OTQxLWRpc2FibGUtcXVhbnRpdHktZm9yLXNvbWUtcHJvZHVjdHMtbm90LWFsbD90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

13 years 7 months ago [\#92962](#92962) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Disable quantity for some products not all](/forum/4-how-to/78941-disable-quantity-for-some-products-not-all#92962 "Hi,  I have the Business Version of Hikashop.  I realise that through the standard configuration it is not possible to disable the quantity box for some products but not others. You can turn it off or on but it will refect all products on a global basis.  Elsewhere in the view I have modified options on the basis of the product id e.g. if($this-&gt;row-&gt;product&#95;id != 13){ blah blah } etc.  Therefore I was wondering can I edit a view somewhere and do the same for getting rid of the quantity box? I could probably do it with a bit of jquery and take it out of the DOM but that is a faff.  Any ideas in which view I should try my idea and where. I have looked in show and show&#95;default but no matter what I do I can't get rid of it for a select few products.  Website is   www.meridiancollege.co.uk  and if you look at the clever way I have done shipping you will see I am well up for a bit of hacking of code here and there. See also the options for products where I have defaulted them to &quot;Yes&quot; for accommodation products.  Love Hikashop by the way, very clever system.")*

Hi,

Yes, you can use something similar in the "quantity" view file for that:

if($this-&gt;row-&gt;product_id != 13){ $this-&gt;params-&gt;set('show_quantity_field',0); }

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

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