I want to add a new cart rule programmatically with condition to allow only specific category.

I found the code here to add rule programmatically and its working fine, but how to add the category selection condition?

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.