Skip to main content

All Questions

Filter by
Sorted by
Tagged with
3 votes
3 answers
3k views

Create coupon code programmatically (in Magento 2.x)

I'm trying to port over tens of thousands of coupons from a custom e-commerce website into Magento 2.0.8 and I'm having a hard time getting it to work. These are simple coupons either fixed $ or % off ...
b. mackswell's user avatar
5 votes
4 answers
3k views

Is the salesrule_coupon "expiration_date" field used for anything?

When you create a coupon code in Magento 1 or Magento 2 (a "Shopping Cart Price Rule"), you can set date range where the coupon is valid from/to. This information is stored in the salesrule table, ...
Alana Storm's user avatar
  • 44.4k