0

I would like to get matching product id's from condition serialize value of catalog rule.

Let's take an example to explain in brief. For Eg. i have a condition serialize value like below.

{"type":"Magento\\CatalogRule\\Model\\Rule\\Condition\\Combine","attribute":null,"operator":null,"value":"1","is_value_processed":null,"aggregator":"all","conditions":[{"type":"Magento\\CatalogRule\\Model\\Rule\\Condition\\Product","attribute":"gender","operator":"{}","value":["80","81","82","83"],"is_value_processed":false}]}

And i would like to get matching product id of this condition. how can i get?

Note: I don't wan to use $rule->getConditions()->validate() function, because i don't want to validate condition i want to get matching product id's from condition serialize.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.