Handle coupons content type

Hello, I have no idea how to handle coupons content type.

It supposed to have a code field (string) and also a condition field (enumeration representing different kinds of conditions? ) which defines its validity. It could apply to certain products / categories / users (with relation) and also total costs (using functions?).

I don’t know how to expose the conditions and link them with the enumeration mentioned above.

@lodisy you can create a custom controller or a lifecycle hook to handle your conditions.

1 Like