I'm developing a small plugin for WooCommerce and I've been trying to find out how I can get the number of items submitted from the quantity field on a single-product page after the add-to-cart action has completed.
I have a custom popup for up-sells that appears after a customer has added an item to their cart and I would like to display information about the item they've just added (a success message) and their current cart totals as well as the up-sell products. I can get the product details (e.g. image, title, price etc.) and I have the cart item count and totals but what I can't seem to get is the number of items that were just submitted.
Any help please?
I have tried the $_REQUEST php super-global but no luck, WooCommerce must empty it once it has the data from the form submit. I have also tried looking in some of the WooCommerce globals too but can't find the relevant data!
I really appreciate any help or suggestions you can offer.