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

#   Allow remove item from cart but not edit quantity?

##

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

Less More

- Posts: 324
- Thank you received: 4
-
-

5 years 10 months ago [\#327578](#327578) by [DogPeople](/forum/user/57755-dogpeople "View DogPeople's Profile")  *[Allow remove item from cart but not edit quantity?](/forum/25-install-update/901543-allow-remove-item-from-cart-but-not-edit-quantity#327578 "Hi,  A while back, I changed a setting that removed the option to edit the quantity on the cart / checkout process.  However, while i don't want users to edit the quantity. How can I do that?  Also, I assume that if the item had a quantity of 1, and it was removed from the cart, it would go back to the store with a quantity of 1?  Thanks!")* was created by *[DogPeople](/forum/user/57755-dogpeople "View DogPeople's Profile")*

Hi,

A while back, I changed a setting that removed the option to edit the quantity on the cart / checkout process.

However, while i don't want users to edit the quantity. How can I do that?

Also, I assume that if the item had a quantity of 1, and it was removed from the cart, it would go back to the store with a quantity of 1?

Thanks!

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

5 years 10 months ago -  5 years 10 months ago [\#327589](#327589) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Allow remove item from cart but not edit quantity?](/forum/25-install-update/901543-allow-remove-item-from-cart-but-not-edit-quantity#327589 "Hi,  A while back, I changed a setting that removed the option to edit the quantity on the cart / checkout process.  However, while i don't want users to edit the quantity. How can I do that?  Also, I assume that if the item had a quantity of 1, and it was removed from the cart, it would go back to the store with a quantity of 1?  Thanks!")*

Hello,

I see **2** solutions for you :
**1.** Easy and quick =&gt; Use some **Css** to don't display quantity and relative elements with this kind of css command : Code:

.checkout_html_class .quantity_input_class, .checkout_html_class .quantity_input_plus_class, .checkout_html_class .quantity_input_minus_class { display: none; }

**Note :** Have a look on **[ this tutorial](https://www.hikashop.com/support/documentation/272-hikashop-display-by-color.html#custom)** to see how to add custom css to your frontend css files

**2.** You directly edit your checkout cart **view**, this will required **php/html knowledge**, and will be more long to implement, but this for sure prevent the input quantity to be used because this will truly able you **completely remove html element** that display quantity input elements.
For this have a look on this documentation to create an override view.
**Note :** To find the **required view** to custom, you can use the display view file, from **Main HikaShop Configuration**, in **Advanced** tab
[ ![alt](https://i.ibb.co/s3gkGVy/Display-View-File.png) ](https://i.ibb.co/s3gkGVy/Display-View-File.png "alt")

Hope this will help you to achieved what you need.
Regards

Last edit: 5 years 10 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 324
- Thank you received: 4
-
-

5 years 10 months ago [\#327631](#327631) by [DogPeople](/forum/user/57755-dogpeople "View DogPeople's Profile")  Replied by *[DogPeople](/forum/user/57755-dogpeople "View DogPeople's Profile")* on topic *[Allow remove item from cart but not edit quantity?](/forum/25-install-update/901543-allow-remove-item-from-cart-but-not-edit-quantity#327631 "Hi,  A while back, I changed a setting that removed the option to edit the quantity on the cart / checkout process.  However, while i don't want users to edit the quantity. How can I do that?  Also, I assume that if the item had a quantity of 1, and it was removed from the cart, it would go back to the store with a quantity of 1?  Thanks!")*

Hi,

Added the CSS, but it's still showing up. I had a look in the checkout / show_block_cart.php html, but I am not sure what I should be changing there. Can you give me some more information?

Thanks.

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

5 years 10 months ago -  5 years 10 months ago [\#327645](#327645) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Allow remove item from cart but not edit quantity?](/forum/25-install-update/901543-allow-remove-item-from-cart-but-not-edit-quantity#327645 "Hi,  A while back, I changed a setting that removed the option to edit the quantity on the cart / checkout process.  However, while i don't want users to edit the quantity. How can I do that?  Also, I assume that if the item had a quantity of 1, and it was removed from the cart, it would go back to the store with a quantity of 1?  Thanks!")*

Hello

Advice for create a good priority css command :
**1.** Check that your selector is well written, good **class** html and no mistake or typo
**2.** If your command is visible in your **inspector tool**, but is overrided (css command crossed out), then his priority isn't strong enough.

**=&gt;** Some css priority system explanation :
From less to the highest priority :
**.html\_class\_element {command: value}
.html\_class\_module .html\_class\_element {command: value}
.html\_class\_page .html\_class\_module .html\_class\_element {command: value}
.html\_class\_page .html\_class\_module .html\_class\_element {command: value !important;}**

Note, that if **2** css command have strictly the **same selector**, then the last written in the css file will be the one used.

For **override view**, you can use with your **display view file**, the navigator **inspector tool**, for this you can point your quantity input, then **right-click** =&gt; **Inspect** (inspector tool etc...).
you will see a new window that will show you **html elements** and more especially this will help you to find this elements in your **view file**.
Then you can use comments in order to "*shut down*" this required part.

Hope this will help you to achieved what you need.
Regards

Last edit: 5 years 10 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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