How to Import Coupon Codes ?

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
ryankim
Posts: 17
Joined: 24 Jul 2020, 18:43

How to Import Coupon Codes ?

Post by ryankim » 28 Jul 2020, 21:36

Hello, Aimeos.

I try to add coupon code with excel file.
below is my guess.

Code | Count
-----------------------
test01 | 1
-----------------------
test02 | 1

Should I add more? or Am I making the wrong way?

Thank you.

User avatar
aimeos
Administrator
Posts: 7893
Joined: 01 Jan 1970, 00:00

Re: How to Import Coupon Codes ?

Post by aimeos » 29 Jul 2020, 17:16

It's correct, all possible fields are:

Code: Select all

coupon.code.code,coupon.code.count,coupon.code.datestart,coupon.code.dateend
test01,1,,
test02,1,,
The start and end dates are not required but if you want to add them, they have to be in ISO format (YYYY-MM-DD HH:mm:ss).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
ryankim
Posts: 17
Joined: 24 Jul 2020, 18:43

Re: How to Import Coupon Codes ?

Post by ryankim » 31 Jul 2020, 03:35

Hello again,

I tried to make excel file (please see attachment below).
excel file
excel file
Capture.PNG (28.82 KiB) Viewed 1277 times

However, if I import this file, nothing happens.
Could you look it up please?

Thank you

User avatar
aimeos
Administrator
Posts: 7893
Joined: 01 Jan 1970, 00:00

Re: How to Import Coupon Codes ?

Post by aimeos » 31 Jul 2020, 09:48

Make sure you run the "coupon/import/csv/code" job regularly via a cron job.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply