Events Made Easy › Forums › Bug fixed or feature request implemented › Discount import and usage
Tagged: discount
- This topic has 2 replies, 2 voices, and was last updated 3 years, 4 months ago by
Anonymous.
-
AuthorPosts
-
Wed 15 Jun 2022 at 12:48 #64341
Anonymous
InactiveI want to use discounts with an event. the event is an attendance-only event and i have set up an csv which looks like this:
name,coupon,value,type,maxcount,dgroup
“Discount_Approbiert1″,”HCVSHV”,”50″,”1″,”1″,”Approbiert”
“Discount_Approbiert2″,”LKGSTA”,”50″,”1″,”1″,”Approbiert”
“Discount_Approbiert3″,”JAHZWT”,”50″,”1″,”1″,”Approbiert”
“Discount_Approbiert4″,”OLHADS”,”50″,”1″,”1″,”Approbiert”
“Discount_Approbiert5″,”MNUZTL”,”50″,”1″,”1″,”Approbiert”
“Discount_Approbiert6″,”PLTZSA”,”50″,”1″,”1″,”Approbiert”
“Discount_Approbiert7″,”IOSHJD”,”50″,”1″,”1″,”Approbiert”the import works well, but i realized that i need to set the option “Track discount usage per booked seat” to YES for the discount to work. when this option is not set, i get an error saying “You did not enter a valid discount code”.
therefore i modified the csv like this and the option “Track discount usage per booked seat” is set to YES on import
name,coupon,value,type,maxcount,dgroup,use_per_seat
“Discount_Approbiert1″,”HCVSHV”,”50″,”1″,”1″,”Approbiert”,”1″
“Discount_Approbiert2″,”LKGSTA”,”50″,”1″,”1″,”Approbiert”,”1″
“Discount_Approbiert3″,”JAHZWT”,”50″,”1″,”1″,”Approbiert”,”1″
“Discount_Approbiert4″,”OLHADS”,”50″,”1″,”1″,”Approbiert”,”1″
“Discount_Approbiert5″,”MNUZTL”,”50″,”1″,”1″,”Approbiert”,”1″
“Discount_Approbiert6″,”PLTZSA”,”50″,”1″,”1″,”Approbiert”,”1″
“Discount_Approbiert7″,”IOSHJD”,”50″,”1″,”1″,”Approbiert”,”1″but i keep getting the error “You did not enter a valid discount code”.
When i edit each discount and setting the option “Track discount usage per booked seat” to YES manually, the discount can be used and no error comes up.
What am i doing wrong?
Best
ThomasWed 15 Jun 2022 at 14:03 #64342Franky
KeymasterIt is not related to the “Track discount usage per booked seat” but to the valid_from/to values set upon import. They are then not empty strings (but 0000-00-00 00:00:00) and so a check in EME failed for that. When you then edited a discount, those values were set correctly as empty, causing you to think it was related to “Track discount usage per booked seat”.
This fixes it:
https://plugins.trac.wordpress.org/changeset/2742865/Wed 15 Jun 2022 at 14:08 #64343Anonymous
InactiveThank you Franky for your quick answer!
-
AuthorPosts
- The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.