• Resolved Bawse1010

    (@bawse1010)


    Hello!

    I have partnered with Groupon for event reservations on my site. They’ve sent me a list of about 600 codes (3 csv files with 200 codes) that discount the number of seats purchased. I realize that the best way to incorporate the Groupon codes are to use the CODE (3) Type and create a filter. My question is how do I create the functions for each PAINLESSLY??!! 600 codes is A LOT!

    Here’s an example of the codes:

    If customer purchases 1 seat using code THISFIRSTCODE, it’d discount to $0.
    If customer purchases 2 seats using code ANOTHERCODE, it’d discount to $0.
    If customer purchases 4 seats using code FOURSEATCODE, it’d discount to $0.

    It’s discounting to $0 because the customer would have already purchased the seat via Groupon for the discounted price.

    SO please help me with the filters for these. 🙂 Do I need a plugin to make a child theme for the filters? HELLPP!!

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Franky

    (@liedekef)

    If you just want the price to be 0 based on a discount, why not just import the discounts in EME as fixed price discounts (or percentage)?
    So just create a discount group and then import the discounts into that group (see the doc), with per discount code a max usage of 1 (I imagine) and as discount a fixed price (if your event costs 100 dollar per seat, the discount price for THISFIRSTCODE would be 100, for ANOTHERCODE 200, for FOURSEATCODE 400). People can then use the discount code only once (and of course it is up to them to decide which one matches best, the resulting price to pay will never be a negative number anyway).
    In your event you can then point to the created discount group. No coding required, I’d say.

    Thread Starter Bawse1010

    (@bawse1010)

    That’s the way it is set to now but the problem with that is that it’ll discount every seat. If i use one of my codes i have uploaded, it makes it 0 no matter what number I change the seat count to. I have 3 different Groupon offers (1 seat, 2 seats, or 4 seats). A regular priced event is $30. If 1 seat is purchased on Groupon, customer can get it for $19 which is why I need for it to zero out when the customer enters the code. If i used fixed numbers, it’ll zero out every seat. So if someone uses code FOURSEATCODE but has 7 seats selected, it’ll always make it $0 no matter what the seat count is and that will not work as I’ll be selling free seats! So i need the codes to be based on the seat counts 1,2 and 4…

    Plugin Author Franky

    (@liedekef)

    That can only happen if you use “Fixed per seat” as discount type (or “Percentage” and set the percentage to 100). Use discount type “Fixed” and set the total discount that code can have. That should be enough.

    Thread Starter Bawse1010

    (@bawse1010)

    I tried that but fixed per seat functions the same as fixed. It’s only reducing the cost of the seat by whatever number is in the Value field. I read on your plugin site that the CODE type allows you to put in a if/then kinda thing and i like that. So if the Number of seats equals 2, then code ANOTHERCODE could be applied…. if they had any number other than 2 seats selected ANOTHERCODE would be invalid… i NEED it to function so that so that no other amount of seats can be purchased with the code.

    Plugin Author Franky

    (@liedekef)

    “Fixed” is a fixed discount, not related to the number of seats.
    If you want people to not use a 2-seat discount when ordering 4 seats, then you’ll have to code that part up using a filter that checks for that, you can use eme_eval_booking_form_post_filter for that, see the doc at https://www.e-dynamics.be/wordpress/category/documentation/12-hooks-and-filters/ (it is not that obvious to do what you want).
    Although I don’t think it is that bad for people to use a 2-seat discount when ordering 4 seats …
    The function-type discount doesn’t allow for entering a discount code, since it is using coded logic for calculating the discount. It is not possible to use your 600 codes there without recoding everything from scratch …

    Thread Starter Bawse1010

    (@bawse1010)

    🙁 *sighhh* alright. Well I suppose I’ll use Fixed per seat for my codes.. Any chance an update in the future to allow for conditional discounts 🙂 ? Or at least a max seat option to limit the number of seats that can be purchased on one coupon?

    Plugin Author Franky

    (@liedekef)

    Like I said: use discount type “Fixed” and set the total discount that code can have.

    Thread Starter Bawse1010

    (@bawse1010)

    And like I said, that doesn’t work for me because if a customer enters in 2 seats or 3 seats or 10 seats, but has a 1 seat coupon code, it’ll give free seats. It’ll only work if there is a limit on the number of seats that can be purchased with the coupon. If there was, I could put 1, 2 or 4 in the max seat field and the coupon will only work if 1, 2 or 4 seats are selected…. if any other number is enter, the customer will pay regular price for the seat. Hence, my suggestion for an update to allow limiting the number of seats that can be used on one coupon.

    Plugin Author Franky

    (@liedekef)

    If you really want to match the number of seats to be exactly what you want (to have a total price of exactly 0), then indeed you are in a bit of a jam.
    I don’t really see a need for that, but if you really want it: feel free to donate to the development of that feature in EME.

    • This reply was modified 7 years, 11 months ago by Franky.
Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Discount Codes’ is closed to new replies.