I am creating a product info page, where you can select a product modifier (e.g. size, flavor), I have an issue.
First of all, according the Expresso-Store docs:
min_order_qty
The minimum order quantity for the product. If the product has more than one SKU, this will be the maximum of all minimum order quantities. If the product does not have any minimum order quantity, this will return 1. Useful for pre-populating the item_qty field:
Found that it actually returns the minimum of all min order quantities.
Changed the Product.php file on line 132 from:
if ($item->min_order_qty < $min_order_qty) {
to...
if ($item->min_order_qty > $min_order_qty) {
That seemed to resolve the issue of not returning the maximum of minimum order quantities.
Lastly, the issue remains that I need to be able to retrieve the individual min_order_qty's for each modifier option so that I may, for instance, update the Quantity field in the document dynamically.
Since the fields allow you to map a minimum order quantity to each stock (SKU) variant, I expected to a method to retrieve each of these quantity values.
Attached is an image of an example product modifier options for context: