Support

Home Forums Multiple Event Registration Add-on Shopping Cart to show End Date also

Shopping Cart to show End Date also

Posted: March 28, 2013 at 8:37 am


Francis Porter

March 28, 2013 at 8:37 am

Hi Is it possible in the shopping cart to have instead of ‘DATE’ field showing just the START date for it to also show the END date?

WP 3.5.1
3.1.30.7P Business Licence
http://www.fpdesigntest.co.uk/quest/event-registration


Sidney Harrell

March 28, 2013 at 8:55 am

You’ll want to copy the two files, event_list.php and event_list_display.php from plugins/event-espresso/templates to uploads/espresso/templates
Then in the copy in uploads, change line 75 of event_list_display.php to be:

<p id="event_date-<?php echo $event_id ?>"><span class="section-title"><?php _e('Date:', 'event_espresso'); ?></span>  <?php echo event_date_display($start_date, get_option('date_format')) . " - " . event_date_display($end_date, get_option('date_format')) ?>


Francis Porter

March 28, 2013 at 9:12 am

I have just done this but nothing seems to have changed. I have already edited the event_list_display.php file so just updated the version in uploads/espresso/templates.
Any ideas?


Josh

  • Support Staff

March 28, 2013 at 11:34 am

Hi Francis,

Sidney’s instructions were for the event list, if you want to modify how the date is displayed on the cart page, you can adapt the sample code into shopping_cart.php where it displays the date.


Francis Porter

March 29, 2013 at 8:09 am

Excellent – got this. Thanks

The support post ‘Shopping Cart to show End Date also’ 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