Try our conversational search powered by Generative AI!

Quantity interval (Service API 11.2)


Can Episerver handle interval quantity?

We have a min. quantity on a product, say 6. The product is of type Variation.
But the customer should only be able to buy quantity multiplied by min. quantity. Ex. 6, 12, 18, 24 etc.

Is this possible in standard Episerver?

May 02, 2018 10:55

In this case, I think you need some customizations.

  • In case using workflow: customize "ValidateLineItemsActivity" and set quantity to an interval of min. quantity (or return validation error)
  • In case using abstraction API: override ILineItemValidator.Validate() and set quantity (or return validation error)

/Viet Anh

May 02, 2018 13:00

You can have a package - 6 of "ThatVariation", which is much easier to handle and process.

May 02, 2018 13:17

Cool. Thanks, didnt think of that.

May 02, 2018 13:19
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.