1

What is the best practice for creating a fixed amount coupon programmatically in a custom module?

I want to calculate a value and then create a coupon code for that fixed amount it programmatically.

Thanks

Hochmania
  • 65
  • 3
  • 9

1 Answers1

0

Check out answer here:

https://drupal.stackexchange.com/questions/88484/is-there-a-way-to-programatically-create-a-commerce-coupon-fixed-amount

Also check the tutorial from within the answer.

Community
  • 1
  • 1
MilanG
  • 6,994
  • 2
  • 35
  • 64