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.
Stock Quantity: 250
Maximum Quantity: 10
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.
The Max quantity is not per inventory record, but per SKU, you would need to set it like this
variantContent.MaxQuantity = 10m;