Support

Home Forums Event Espresso Premium Is it possible to have a unique checkout page based on the event?

Is it possible to have a unique checkout page based on the event?

Posted: July 28, 2016 at 11:48 am


MoDiva

July 28, 2016 at 11:48 am

Hi, I would like my page header/footer to look different based on what event the customer is purchasing a ticket for. For example, I have a spring show that uses blue graphics in the header and one set of sponsor logos in the footer and I have a fall show that uses orange graphics in the header and a different set of sponsor logos in the footer.

Is it possible to have multiple checkout pages and load a specific page based on the event OR is it possible to load a unique header.php and footer.php files into the checkout page based on the event.

Thank you!


Josh

  • Support Staff

July 29, 2016 at 8:13 am

Hi there,

I can recommend a few ideas:

1) Set your logos as a featured image for the event, then you can place the featured image near/on the footer of the checkout page template. Then you add this code to your functions file so it grabs the featured image for the event in the cart:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/checkout/jf_ee_display_event_featured_image_on_spco.php

2) You can use CSS to give the checkout page unique styles depending on which event is in the cart by assigning the event to a specific category. i.e. (spring and fall). Then you add this code to your functions file:

https://gist.github.com/joshfeck/41ee6fed7fc60400e7db9c1be18f5aed

Then you add your custom styles to your stylesheet e.g.

.spring .header .graphics {color: blue;}
.fall .header .graphics {color: orange;}

The support post ‘Is it possible to have a unique checkout page based on the event?’ 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