Title: The cart link can increase the quantity but can not decrease it
Last modified: July 9, 2019

---

# The cart link can increase the quantity but can not decrease it

 *  Resolved [Manjunathpmf](https://wordpress.org/support/users/manjunathpmf/)
 * (@manjunathpmf)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/the-cart-link-can-increase-the-quantity-but-can-not-decrease-it/)
 * Thank you Soft79 for this awesome piece of code.
 * Issue: The cart link can increase the quantity but can not decrease it.
 * Example:
 * > [http://www.example.com?fill_cart=3×44](http://www.example.com?fill_cart=3×44)
 * This URL will populate the cart with 2x item with id 44.
 * > [http://www.example.com?fill_cart=5×44](http://www.example.com?fill_cart=5×44)
 * This URL will increase the quantity to 5x from 2x
 * But URL
 * > [http://www.example.com?fill_cart=1×44](http://www.example.com?fill_cart=1×44)
 *  doesn’t reduce the quantity to 1x from 5x.
 * Hope this can be addressed.
    Thanks, Manju
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fthe-cart-link-can-increase-the-quantity-but-can-not-decrease-it%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Soft79](https://wordpress.org/support/users/josk79/)
 * (@josk79)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/the-cart-link-can-increase-the-quantity-but-can-not-decrease-it/#post-11778697)
 * Use ?set_cart= instead of ?fill_cart= to replace the cart contents. Please note
   that this will clear the cart and then add to items supplied in the url.
 *  Thread Starter [Manjunathpmf](https://wordpress.org/support/users/manjunathpmf/)
 * (@manjunathpmf)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/the-cart-link-can-increase-the-quantity-but-can-not-decrease-it/#post-11784461)
 * That helps. Thank you so much.

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

The topic ‘The cart link can increase the quantity but can not decrease it’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/soft79-cart-links-for-woocommerce.
   svg)
 * [Cart links for WooCommerce](https://wordpress.org/plugins/soft79-cart-links-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/soft79-cart-links-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/soft79-cart-links-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/soft79-cart-links-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/soft79-cart-links-for-woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Manjunathpmf](https://wordpress.org/support/users/manjunathpmf/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/the-cart-link-can-increase-the-quantity-but-can-not-decrease-it/#post-11784461)
 * Status: resolved