Support

Home Forums Multiple Event Registration Add-on 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

  • Support Staff

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: https://eventespresso.com/wiki/put-custom-templates/

  • This reply was modified 12 years, 5 months ago by Josh. Reason: code formatting
  • This reply was modified 12 years, 5 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

  • Support Staff

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