Support

Home Forums Event Espresso Premium Can I alter the checkout page layout?

Can I alter the checkout page layout?

Posted: July 20, 2016 at 6:40 pm

Viewing 2 reply threads


MoDiva

July 20, 2016 at 6:40 pm

Hi, is it possible to slightly alter the layout of the checkout page (payment_options_main.template.php, lines 10-13) without altering your files so my changes are not lost when I update the plugin?

If I put my own copy of this file in my child theme folder with the same name, will the plugin read my file over the “real” file (like when you want a custom header.php or functions.php)? Or is there a different/better way? Or no way at all?

For example, in the file payment_options_main.template.php, lines 10-13 it is currently:
`<th scope=”col” width=””><?php _e(‘Name and Description’, ‘event_espresso’);?></th>
<th scope=”col” width=”15%” class=”jst-cntr”><?php _e(‘Price’, ‘event_espresso’);?></th>
<th scope=”col” width=”5%” class=”jst-cntr”><?php _e( ‘Qty’, ‘event_espresso’ ); ?></th>
<th scope=”col” width=”15%” class=”jst-cntr”><?php _e(‘Total’, ‘event_espresso’);?></th> `

But I would like it to be:
`<th scope=”col” width=”” class=”jst-left”><?php _e(‘Name and Description’, ‘event_espresso’);?></th>
<th scope=”col” width=”5%” class=”jst-rght”><?php _e( ‘Qty’, ‘event_espresso’ ); ?></th>
<th scope=”col” width=”15%” class=”jst-rght”><?php _e(‘Price’, ‘event_espresso’);?></th>
<th scope=”col” width=”15%” class=”jst-rght”><?php _e(‘Total’, ‘event_espresso’);?></th>`

Thank you!


Tony

  • Support Staff

July 21, 2016 at 3:47 am

Hi there,

Yes, if you place that file within the root directory of your child theme it will load the custom version of your template from there.

That is the correct method to loading custom templates for EE.


MoDiva

July 21, 2016 at 10:49 am

Thank you, that worked perfectly!

Viewing 2 reply threads

The support post ‘Can I alter the checkout page layout?’ 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