Support

Home Forums Event Espresso Premium Display Apply Coupon section in ticket list table

Display Apply Coupon section in ticket list table

Posted: September 23, 2019 at 2:03 am

Viewing 7 reply threads


michelle@complianceaid.pro

September 23, 2019 at 2:03 am

How can we display Apply Coupon section on ticket listing page, so that user first applies coupon code, then see prices dropping and then move forward with ticket selector?


michelle@complianceaid.pro

September 23, 2019 at 2:04 am

This reply has been marked as private.


Tony

  • Support Staff

September 23, 2019 at 10:16 am

Hi there,

Currently, you can’t, at least not without significant customizations to the checkout process.

The promotion add-on applies to the transactions line items when added to the cart, at the time you want to process the promotion there are no line items. So you would need custom code to add the promotion field to that section and then process all tickets slections running them through the promotions as you go.


michelle@complianceaid.pro

September 24, 2019 at 12:33 am

Ok we can use custom code here, but if the plugin updates then what happens to our custom code.


michelle@complianceaid.pro

September 24, 2019 at 1:15 am

And is there any sample code in which we can see how it should be customized ?


Tony

  • Support Staff

September 24, 2019 at 4:24 am

Ok we can use custom code here, but if the plugin updates then what happens to our custom code.

You wouldn’t modify the plugin files themselves, you would hook into EE some of the hooks we have available throughout core.

And is there any sample code in which we can see how it should be customized ?

Not for the customization you are looking for no.

We have many examples of how to customize EE using the hooks available here:

https://github.com/eventespresso/ee-code-snippet-library

Are you familiar with using hooks? If not I recommend you contact a developer familiar with using them, the custom code you are going to need for this will be fairly significant.

The folks at codable may be able to build something custom for you.


michelle@complianceaid.pro

September 24, 2019 at 4:47 am

Ok was this feature available in Event Espresso 3 and removed in EE4, because i remember that we have Apply Promo Code button just below the ticket list table ?


Tony

  • Support Staff

September 24, 2019 at 5:11 am

Yes EE3 included the promotions field on the registration form but nothing was ‘removed’ in EE4 as it’s a completely different system to EE3. EE4 isn’t ‘an update to EE3’ per say, it’s the ‘next version’ of Event Espresso.

EE3 does include the promotion/coupon field on the registration form, which yes, is before the payment options but due to the way registrations, transactions and line items function in EE4 it was added on the payment options step to work in a similar way to most ‘checkout’ experiences.

If you want a promotion to be applied and then add in additional registrations afterwards you’ll need all of the additional logic that comes with that to compare the promotion line item with the current ticket selection and apply the additional promotion lines items on the fly to the cart, meaning it isn’t a simple modification to make.

Viewing 7 reply threads

The support post ‘Display Apply Coupon section in ticket list table’ 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