Support

Home Forums Event Espresso Premium Can EE4 Promotions be used to reduce the total to a fixed amount?

Can EE4 Promotions be used to reduce the total to a fixed amount?

Posted: February 27, 2016 at 1:52 pm


Laurita Winery

February 27, 2016 at 1:52 pm

We want people to be able to pay a deposit fee of $50, regardless of what they put in their cart. We installed EE4 Promotions but rather having it reduce the total by an amount or percentage, I want it to just reduce the amount to $50.


Lorenzo Orlando Caum

  • Support Staff

February 27, 2016 at 3:55 pm

Hello,

The promotions system can’t be used like that. It can apply a fixed discount or a percentage based discount on a per-event basis.


Lorenzo


Laurita Winery

February 27, 2016 at 4:25 pm

Thanks for the quick response. Any custom coding suggested?


Lorenzo Orlando Caum

  • Support Staff

February 27, 2016 at 4:47 pm

Hello,

I don’t have any suggestions as this isn’t as simple as a few lines of code. If this is critical to your project, then please check with an Event Espresso professional here so they can extend the promotions add-on to add this feature:

https://eventespresso.com/developers/event-espresso-pros/


Lorenzo


Laurita Winery

February 29, 2016 at 9:44 am

I have my own team of developers working for me… but what we need to know is if this is as simple as it used to be where we’d just copy across the required files to wp-content/uploads/espresso/templates or if it would work differently?

What we want to do is add a new option to the promotion type drop-down called “fixed price” and have that value take over the total amount on the registration checkout page.

I see $price_type_selector in the plugins/eea-promotions/promotion_details_form.template.php file but I can’t seem to find where that variable is getting its options from.

Also, I can’t remember which file controls the [ESPRESSO_CHECKOUT] shortcode to do what I need to with the total field.

Can you give me any direction?


Josh

  • Support Staff

March 1, 2016 at 3:17 pm

I can give you some general direction. This should not involve customizing any of the files or templates within Event Espresso. Instead, please use the available filter and action hooks. For example, you can use the ‘AHEE__Single_Page_Checkout__before_payment_options__process_reg_step’ hook to modify the total amount owed at checkout.

Along with that, if there’s a spot where a new filter or action hook will be helpful to your project, it’s recommended to start a new pull request on our Github repository:

https://github.com/eventespresso/event-espresso-core/

The support post ‘Can EE4 Promotions be used to reduce the total to a fixed amount?’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso