How are coupon codes stored in the database? I have been researching online and I cant get a clear answer. I would like to write a script to import 1000 coupon codes but the Magento db schema seems to be all over the place. Can someone get me pointed in the right direction?
Share
The coupon code information is in
salesrule. Of course, it references product ID numbers and customer group ID numbers, so you will have to know those or access them programmatically if you want to restrict who can use the codes and what products the codes can discount.