Bug: Specific Product Quantity Condition not working in Sitecore Commerce 9

if you are planning on using Commerce Connect conditional renderings for personalization, be advised that currently the Specific Product Quantity Condition does not work. The reason is because ProductQuantity property in the Sitecore.Commerce.Rules.Conditions.SpecificProductQuantityCondition is declared as uint while the Execute() method of Sitecore.Commerce.Rules.Conditions.BaseCartMetricsCondition expects it to be Decimal.

If you still want to use this functionality at this point, just derive your own condition class off the BaseCartMetricsCondition and declare the ProductQuantity as Decimal. We did it in our implementation and it works just fine.

2 Replies