Creating large number of coupons

Phoca Cart - complex e-commerce extension
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 449
Joined: 07 Nov 2018, 14:55

Creating large number of coupons

Post by Nidzo »

I need to create 100 coupons with unique codes that will bi physically printed on gift cards.
Creating vouchers one by one is a pain. I tried to speed up the process by exporting the phocacart_coupons table and editing it in LibreOfficeCalc.
I noticed that after restoring the table it is fine except for the Rules where the category should be.
In the Phoca Cart coupon settings there is an empty field for the categories to which the coupon code applies. Then I found the phocacart_coupon_categories table which cannot be edited from PHPMyAdmin
Image

Is there a way to edit this too to speed up the process? Can an option be introduced from the Phoca Cart admin area for situations like this?
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 449
Joined: 07 Nov 2018, 14:55

Re: Creating large number of coupons

Post by Nidzo »

OK I managed it. I exported phocacart_coupon_categories table and edited coupon_id and category_id columns in LibreOfficeCalc and then reupload it.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48813
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Creating large number of coupons

Post by Jan »

OK
If you find Phoca extensions useful, please support the project
Post Reply