How to implement a customized entry promotion


Hi, I am trying to create a customized entry promotion. But the code snippet on the dev manual seems obsolete. I am working on Commerce 12.17.2. Could someone please give me a sample code structure similar to this:

Apr 30, 2019 19:41

What part of it do you feel is obsolete? :) At a quick glance it looked like that's the components for the new promotions

Apr 30, 2019 23:43