volume_up
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
The Max quantity is not per inventory record, but per SKU, you would need to set it like this
variantContent.MaxQuantity = 10m;
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.