I am trying to add coupons directly into the 'coupons' table because there does not seem to be a coupon import facility.

Can anyone explain quite how coupon codes are added to the database - I can see that they are in the 'data' field as BLOB but when export the BLOB, I was hoping to see a serialised text.

Thank oyu

Comments

hunziker’s picture

The coupon is a entity. So there can be additional data that need to be stored. So there for is the data field. The entity fields are stored in separate tables.

You could try the Feeds module, this can help importing data stored as entity.

pcambra’s picture

Status: Active » Fixed

This is now integrated into Commerce Feeds module

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.