Support

Home Forums Event Espresso Premium Placement of Discount Promotion Code Field Within Event Cart Checkout Process

Placement of Discount Promotion Code Field Within Event Cart Checkout Process

Posted: January 24, 2017 at 1:23 pm


Brett Stallings

January 24, 2017 at 1:23 pm

Hi, I was curious if there is any way to move the discount code field for promotions into the “Event Cart” when using multi event registration and promotions add ons? Many customers would like to see the total updated sooner in the checkout process before they “proceed to payment” just curious if this is possible? Thanks!


Josh

  • Support Staff

January 24, 2017 at 1:42 pm

Hi Brett,

There isn’t a way to move the promotion code field to the cart modal. You can, however, add a note to the cart modal that says they’ll be able to apply a discount code on the payment information page. Here’s an example of the code that you can use:

add_action( 
  'AHEE__event_cart_template__after_event_cart_table', 
  'my_event_cart_notes' 
);
function my_event_cart_notes() {
  echo '<p>You will be able to apply a discount code on the payment information step.</p>';
}

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.


Brett Stallings

January 24, 2017 at 2:51 pm

Thanks Josh! That should do the trick for now. I really appreciate the code snippet and direction. Last question, when the modal pops out on mobile it is very large and lands under my header/nav so part of it is cut off. Any way to control the size of the pop out to be smaller?

Thanks again,
Brett


Josh

  • Support Staff

January 24, 2017 at 3:04 pm

You could try making it smaller, or better yet, make sure it’s not cut off by the header/nav by making the z-index even higher, by adding some custom CSS:

#cart-results-modal-wrap-dv {
    z-index: 100001;
}


Brett Stallings

January 24, 2017 at 4:14 pm

Thanks Josh! Problem solved. That worked perfect. Looks awesome on mobile now.

The support post ‘Placement of Discount Promotion Code Field Within Event Cart Checkout Process’ 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