Skip to content

Instantly share code, notes, and snippets.

@lorenzocaum
Last active May 19, 2016 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lorenzocaum/8e84a4ea039196be6c20 to your computer and use it in GitHub Desktop.
Save lorenzocaum/8e84a4ea039196be6c20 to your computer and use it in GitHub Desktop.
How to show the full date range in the shopping cart (Multiple Events Registration add-on) in Event Espresso 3

This can be done by adjusting the some templates files for Event Espresso 3.

Here the steps to do so:

  1. Login to your WordPress site with your preferred SFTP or FTP client. FileZilla and Cyberduck are free options. Try Transmit for Mac

  2. Browse to this location: /wp-content/plugins/event-espresso/templates

  3. Locate the following file and download a copy of them to your local computer:

shopping_cart.php

  1. Using your preferred FTP or SFTP client, browse to this location: /wp-content/uploads/espresso/templates

  2. Upload the file that you recently downloaded to the location above

  3. Open the shopping_cart.php file for editing and go to about line 79. You’ll see some coding like this:

<?php echo event_date_display( $r->start_date, get_option( 'date_format' ) ) ?>
											<?php /*_e( ' to ', 'event_espresso' ); ?> <?php echo event_date_display( $r->end_date, get_option( 'date_format' ) )*/ ?>
  1. Change it to the following and save changes (i.e. change display to list):
<?php echo event_date_display( $r->start_date, get_option( 'date_format' ) ) ?>
<?php _e( ' to ', 'event_espresso' ); ?> <?php echo event_date_display( $r->end_date, get_option( 'date_format' ) ) ?>

Be sure to the save changes to the files that were edited above. You can then begin a registration on your site via the Multiple Events Registration add-on for an event and you'll see the start date through end date in the shopping cart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment