Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #64341
    Anonymous
    Inactive

    I 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
    Thomas

    #64342
    Franky
    Keymaster

    It 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/

    #64343
    Anonymous
    Inactive

    Thank you Franky for your quick answer!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.
Scroll to Top