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
Add to Cart button not going away | Event Espresso - Staging Server

Support

Home Forums Multiple Event Registration Add to Cart button not going away

Add to Cart button not going away

Posted: June 28, 2012 at 8:49 pm

Viewing 4 reply threads


Jake Nyman

June 28, 2012 at 8:49 pm

The add to cart button is not going away when I have multiple registration enabled and I don’t need anyone to register for the event. The event is open to all, but the add to cart is still there. How do I get rid of that?


Josh

June 29, 2012 at 7:33 am

You can get rid of that by modifying event_list_display.php. On line 141 (current version) there’s an else:

<?php } else { ?>

below that, look for and remove:

<?php echo isset($cart_link) && $externalURL == '' ? $cart_link : ''; ?>

Also, see this guide on where to move custom templates: http://staging.eventespresso.com/wiki/put-custom-templates/

  • This reply was modified 12 years, 6 months ago by Josh. Reason: code formatting
  • This reply was modified 12 years, 6 months ago by Josh. Reason: code formatting


Jake Nyman

July 5, 2012 at 12:50 pm

This took away the add to cart button for some listings, but not for the ones that did not require registration.See the listing screenshot attached.


Josh

July 5, 2012 at 1:36 pm

Be sure you removed the line after the else. I’ve outline the one in red:
event_list_display.php


Jake Nyman

July 6, 2012 at 9:02 am

That seems to have done it! Thanks again!

Viewing 4 reply threads

The support post ‘Add to Cart button not going away’ 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