Title: Quantities problem
Last modified: February 17, 2020

---

# Quantities problem

 *  Resolved [giokoykoy](https://wordpress.org/support/users/giokoykoy/)
 * (@giokoykoy)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/quantities-problem/)
 * Hello,
 * I have a shoe eshop and I have two problems with quantities.
 * 1) after the order, if I cancel the order the quantities aren’t updated.
    example:
   size 36= 1 quantity –> (after order change to 0 quantity)–> (after cancel) remains
   to 0 quantity. 2) even if my product has zero quantity in one size the size still
   remains to appear in dropdown select in frontend. example: size 37=0 quantity–
   > size 37 is appearing in select dropdown (but I can’t order it). I want everything
   that has 0 quantity to disappear from select dropdown. ps. I have checked the
   option to hide the zero stock products.

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

 *  [Phillip C. a11n](https://wordpress.org/support/users/phillipwoo/)
 * (@phillipwoo)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/quantities-problem/#post-12452866)
 * Hi [@giokoykoy](https://wordpress.org/support/users/giokoykoy/),
 * If the order has been paid and then canceled, refunding the order will automatically
   restock. Otherwise, use the following code to achieve this:
 * [https://www.wpwiseguys.com/762-woocommerce-snippet-restock-automatically-with-wordpress-themes/](https://www.wpwiseguys.com/762-woocommerce-snippet-restock-automatically-with-wordpress-themes/)
 * You can add that code to your site using something like [https://wordpress.org/plugins/code-snippets/](https://wordpress.org/plugins/code-snippets/)
 * As for hiding the out-of-stock variations, you should be able to accomplish that
   with the same Code Snippets plugin above and the code mentioned in the first 
   section of this article:
 * [https://iconicwp.com/blog/hide-stock-products-woocommerce-catalog-pages/](https://iconicwp.com/blog/hide-stock-products-woocommerce-catalog-pages/)
 * I hope this helps!
 *  Thread Starter [giokoykoy](https://wordpress.org/support/users/giokoykoy/)
 * (@giokoykoy)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/quantities-problem/#post-12453933)
 * Unfortunately the code for the zero quantity variation it doesn’t work in my 
   case..
    I have used it at the past also. I don’t know what else to do.
 *  [Phillip C. a11n](https://wordpress.org/support/users/phillipwoo/)
 * (@phillipwoo)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/quantities-problem/#post-12457377)
 * If the code I’ve linked to does not work then you may need to enlist the help
   of a developer to achieve this functionality. If things do not change when the
   custom code is added, there may be a caching issue preventing it from being seen
   or used. Please ensure all caching and/or CDNs used to speed content delivery
   are flushed before testing. Also, are you seeing any errors in the site logs?**
   WooCommerce → Status → Logs tab** is where you will find these if they exist.
 *  [Phillip C. a11n](https://wordpress.org/support/users/phillipwoo/)
 * (@phillipwoo)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/quantities-problem/#post-12487847)
 * Hi,
 * We haven’t heard from you on this. I am going to mark this issue as <b>Resolved
   </b> at this time. If you have more on this or anything else, feel free to open
   a new forum post.
 * Take care!

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

The topic ‘Quantities problem’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [quantities](https://wordpress.org/support/topic-tag/quantities/)
 * [quantity](https://wordpress.org/support/topic-tag/quantity/)

 * 4 replies
 * 2 participants
 * Last reply from: [Phillip C. a11n](https://wordpress.org/support/users/phillipwoo/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/quantities-problem/#post-12487847)
 * Status: resolved