Support

Home Forums Event Espresso Premium Only First Day of Weeklong Event Showing in Cart

Only First Day of Weeklong Event Showing in Cart

Posted: March 27, 2014 at 1:39 pm

Viewing 1 reply thread


lculberson

    March 27, 2014 at 1:39 pm

    I’m using this code: [ESPRESSO_CART_LINK event_id=”THE EVENT ID HERE” direct_to_cart=1 moving_to_cart=”Redirecting to cart…”] on an event that starts on June 23rd and ends on June 27th. When you click ‘register here’, it takes you to the cart as normal, but it only shows the first date (June 23). Is there a way to force it to show all of the dates (June 23-June 27)?


    Dean

    • Support Staff

    March 28, 2014 at 1:32 am

    Hi,

    It can be done but requires a template edit.

    in the shopping_cart.php at approx line 79 you will see this

    <?php echo event_date_display( $r->start_date, get_option( 'date_format' ) ) ?>

    change it to this

    <?php echo event_date_display( $r->start_date, get_option( 'date_format' ) ) . ' - ' . event_date_display( $r->end_date, get_option( 'date_format' ) ) ?>

    If you copy the shopping_cart.php template over to wp-content/uploads/espresso/templates and edit the file there, updates will not over write the changes.

    Viewing 1 reply thread

    The support post ‘Only First Day of Weeklong Event Showing in Cart’ 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 - Staging Server