Is there a way to get Maximum Quantity set for a variant other than via OrderGroup extensions like UpdateInventoryOrRemoveLineItems.
The reason for it is, I am trying to display a message to user in the product page is that they can only order the max quantity set for the variant eventhough the stock quantity is high.
Scenario:
Product x
Stock Quantity: 250
Maximum Quantity: 10
Product Page:
Available Quantity: 250
*Maximum quantities can be ordered per order is 10
I couldnt find a method to get Maximum Quantity or as part of InventoryRecord. Iwould like to know if there is a way to get it.
Is there a way to get Maximum Quantity set for a variant other than via OrderGroup extensions like UpdateInventoryOrRemoveLineItems.
The reason for it is, I am trying to display a message to user in the product page is that they can only order the max quantity set for the variant eventhough the stock quantity is high.
Scenario:
Product x
Stock Quantity: 250
Maximum Quantity: 10
Product Page:
Available Quantity: 250
*Maximum quantities can be ordered per order is 10
I couldnt find a method to get Maximum Quantity or as part of InventoryRecord. Iwould like to know if there is a way to get it.
Thanks in advance.