Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114 Cart Totals | Event Espresso - Staging Server
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’.
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.
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:
Yes, you are a star! Great solution and great support – many thanks!
Viewing 4 reply threads
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.