Title: Quantity
Last modified: June 10, 2020

---

# Quantity

 *  Resolved [krvaM](https://wordpress.org/support/users/krvam/)
 * (@krvam)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/quantity-12/)
 * Hello, I would like if it is possible and like when I am in “Cart” when I increase
   the quantity, it increases and I don’t have to hit the Update Cart button, since
   my users may get confused and not understand what they have to do.
    [https://prnt.sc/sxecy2](https://prnt.sc/sxecy2)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Senff – a11n](https://wordpress.org/support/users/senff/)
 * (@senff)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/quantity-12/#post-12971443)
 * Hey [@krvam](https://wordpress.org/support/users/krvam/)
 * Here’s a good solution for that, using some CSS and Javascript code: [https://rudrastyh.com/woocommerce/remove-update-cart-button.html](https://rudrastyh.com/woocommerce/remove-update-cart-button.html)
    -  This reply was modified 5 years, 12 months ago by [Senff - a11n](https://wordpress.org/support/users/senff/).
 *  Thread Starter [krvaM](https://wordpress.org/support/users/krvam/)
 * (@krvam)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/quantity-12/#post-12972337)
 * Thanks bro! not fully corrected.
 * The first point is to hide the update cart button that if it worked perfectly.
 * But then add the third code and it does nothing.
    I added it here: [https://prnt.sc/sxzyap](https://prnt.sc/sxzyap)
   and here: [https://prnt.sc/sxzz1n](https://prnt.sc/sxzz1n)
 *  [Senff – a11n](https://wordpress.org/support/users/senff/)
 * (@senff)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/quantity-12/#post-12978925)
 * You need to add the code as Javascript, not as CSS.
 * To add Javascript to your site, I’d recommend to use the [Code Snippets](https://wordpress.org/plugins/code-snippets/)
   plugin.
 *  Thread Starter [krvaM](https://wordpress.org/support/users/krvam/)
 * (@krvam)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/quantity-12/#post-12981015)
 * Thank you.
    But i have this error in code [https://i.imgur.com/04lAWzR.jpg](https://i.imgur.com/04lAWzR.jpg)
 *  [Riaan K.](https://wordpress.org/support/users/riaanknoetze/)
 * (@riaanknoetze)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/quantity-12/#post-12986536)
 * Did you enqueue the jQuery library? Otherwise, JavaScript wouldn’t know what 
   to do with the “jquery” variable and ensuing selectors 🙂
 *  [Riaan K.](https://wordpress.org/support/users/riaanknoetze/)
 * (@riaanknoetze)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/quantity-12/#post-12986539)
 * Also – are you saving that as PHP or as a JS file? If it’s the former, it wouldn’t
   work; It needs to be JavaScript.
 *  Thread Starter [krvaM](https://wordpress.org/support/users/krvam/)
 * (@krvam)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/quantity-12/#post-12992938)
 * Thanks you, i solved it!
    -  This reply was modified 5 years, 11 months ago by [krvaM](https://wordpress.org/support/users/krvam/).

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Quantity’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/storefront/4.6.2/screenshot.png)
 * Storefront
 * [Support Threads](https://wordpress.org/support/theme/storefront/)
 * [Active Topics](https://wordpress.org/support/theme/storefront/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/storefront/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/storefront/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [krvaM](https://wordpress.org/support/users/krvam/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/quantity-12/#post-12992938)
 * Status: resolved