Support

Home Forums Multiple Event Registration Add-on Multiple Event Registration Doesn't seem to be working

Multiple Event Registration Doesn't seem to be working

Posted: February 28, 2013 at 3:05 pm

Viewing 5 reply threads


Randy

February 28, 2013 at 3:05 pm

I just installed the multiple event registration to my site. I am using 3.1.30.7 and MER 1.04 in WP 3.5

I can’t seem to figure out why my events still seem to function as single registrations. I don’t seem to have an option to add to cart or even view cart.

I’ve gone through a test registration and completed it without being given an opportunity to add it to cart and continue to shop for other registrations.

Is there some other steps to turn this add-on on? The documentation seems to say that there is nothing to do so I’m a bit confused.

Thanks for any help.


Randy

February 28, 2013 at 3:37 pm

Okay, I just found an old post at https://eventespresso.com/forums/2012/01/multi-event-registration-how-do-i-get-this-to-work/ and I realized that what I actually wanted was the add to cart link in the registration page display. The add to cart link does work in the event list.

The post said to add a line in the registration_page_display.php file which I did but I still do not see the add to cart link.

I also found a listing of short codes for add events to cart. The short codes seem to contain an event ID code along with the add to cart short code. So can I just add the following to my php file to get access to the cart via the event registration page or do I need to add a short code to every event I create?

This is the code that is mentioned in Josh’s post I referred to:

thanks for your help.


Dean

March 1, 2013 at 12:26 am

Hi Randy,

It’s best to use a service like Pastebin when adding code to the forums, if you’re not an admin/staff then it can strip out the code.

Anyway. The post you linked to is a year old so I wouldn’t necessarily trust the code there due to the post age.

To add a link to the event registration page that will add to cart you have two options.

1) add the shortcode to the event description

[ESPRESSO_CART_LINK event_id=”X” anchor=”Register for This Event”]

Change X to the event ID number.

2) and some PHP code to the registration_page_display.php template. This has the benefit of adding once, working on all events.

<?php echo do_shortcode('[ESPRESSO_CART_LINK anchor="Add to cart" event_id="' . $event->id . '"]'); ?>

I modified the default code slightly to automate the event ID.

You may also want to edit the event and turn off the registration form so tyhe user only has the add to cart link, but of course that’s up to you.


Randy

March 1, 2013 at 7:43 am

Dean,

Thanks for the help and the advice on posting links. I did add your updated code to the registration_page_display.php file. The first time I added it, I had a link in my event that said “Add to Cart”. When I clicked on it, the link changed to “View Cart”. I thought; great this is just what I wanted. Then clicking on view cart took me to the cart but I had an error listed:

Warning: implode () [function.implode]: Invalid aruguments passed in /home…./templates/shopping_cart.php on line 21.

I removed the code in the registration_page_display.php and started over. Now when I add the code you gave me, it immediately says “View Cart” and never shows me the words add to cart. Clicking on view cart still gets the error on line 21 of shopping_cart.php.

Any suggestions?

thanks for your help.


Dean

March 1, 2013 at 9:25 am

Hey Randy.

Lets take this in reverse order.

The reason it is still showing View cart and not add to cart is because the “session” is still active, the item is still in the cart. You can clear this (for testing) by going to the cancellation page (default is registration-cancelled).

Regarding the first part, sorry about that. Try,

<?php echo do_shortcode('[ESPRESSO_CART_LINK anchor="Add to cart"]'); ?>


Randy

March 1, 2013 at 10:35 am

Dean, thanks for the new code that worked great and yeah I still had the event in the cart so that was why it was showing view cart. Everything seems to be working now.

thanks for your help.

Viewing 5 reply threads

The support post ‘Multiple Event Registration Doesn't seem to be working’ 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