How to Create a Discount on next purchasing for purchasing a specific product in Moqui Promotion System?

Hello everyone,

I’m working on setting up a promotion in Moqui where customers will receive a discount if they already purchased a specific product (Product A). If Product A is purchased already they will get a discount on any product when they try to buy again.

Could anyone guide me on the best approach to implement this? Specifically:

  1. How to configure the promotion using Moqui’s entities.
  2. Setting up the conditions for the promotion to trigger.
  3. Linking the discount action to Product A.

If anyone has examples, best practices, or documentation references, it would be greatly appreciated!

Thank you in advance!