Error occurred during price list product assignments build

60 Views Asked by At

I'm attempting to create a price list within oro community. I'm not totally familiar with symfony however have managed to write a product assignment rule product.id in product.product_class == "Class_Name" then a calculate as pricelist[15].prices.value * 0.25 where pricelist[15] = Recommended Retail Price.

The system starts to calculate and then returns an error:

Error occurred during price list product assignments build

I'm not sure what I'm doing wrong? Any help would be greatly appreciated.

1

There are 1 best solutions below

3
On

You don't need to be familiar with Symfony to write expressions in the OroCommerce management console. There is documentation and many examples of expressions in OroCommerce: https://doc.oroinc.com/user/back-office/sales/price-lists/auto/.

The expression product.id in product.product_class == "Class_Name" doesn't make much sense as the right expression of in operator must be an array, but in your case it's boolean.