Support

Cart Totals

Posted: March 27, 2013 at 1:00 pm


Francis Porter

March 27, 2013 at 1:00 pm

Hi
When I have added events to Cart and go back and Add another event the number of tickets reverts back to 0 it loses the previous settings although the Total is correct, can this be changed as it would confuse Users? Also can the default be ‘1’ rather than ‘0’.

screenshot attached


Sidney Harrell

March 27, 2013 at 3:18 pm

The cart totals are only saved when you hit the “Enter Attendee Information” button. If you really want the dropdowns to default to 1 instead of 0, you can go into includes/functions/cart.php and change line 934 to be:

for ($i = 1; $i <= $qty; $i++):

but I wouldn’t recommend it, both because you will lose the modification the next time you upgrade, and if you put more than one price on an event, both price levels will default to 1.


Francis Porter

March 27, 2013 at 3:22 pm

Thanks for the support


Josh

  • Support Staff

March 27, 2013 at 3:48 pm

Hi Francis,

Alternatively, you could add a bit of jQuery to the shopping_cart.php template to accomplish the same thing. There’s some example code in this related thread:

https://eventespresso.com/topic/cart-ticket-dropdown-defaults-to-0/#post-36838


Francis Porter

March 27, 2013 at 3:55 pm

Yes, you are a star! Great solution and great support – many thanks!

The support post ‘Cart Totals’ 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