Posted: April 21, 2013 at 7:38 pm
|
I am trying to add the suggested code to the registration_page_display.php that was identified at the bottom of this post: https://eventespresso.com/topic/multiple-event-registration-doesnt-seem-to-be-working/ but I get an error when I try to view the registration page: Parse error: syntax error, unexpected ‘<‘ in /home/content/72/3357672/html/florencethomas/wp-content/plugins/event-espresso/templates/registration_page_display.php on line 153 |
|
Hi Kim, Well the error says there is an unexpected < so you have something wrong in the code. The code at the bottom of that post is now slightly wrong (due to a change in our code syntax highlighter on the website). it should read <php echo do_shortcode('[ESPRESSO_CART_LINK anchor="Add to cart"]'); ?> However, depending on where you are putting this code, the starting <php and ending ?> may not be necessary. |
|
Thanks, Dean – The new code fixed the error – however I still have a ‘submit’ button instead of an ‘add to cart’ button to allow for multiple events. Is there another step I missed? |
Does your shortcode include the |
|
|
I’m not sure I understand Chris…from what I read in the forum responses, there are two options, to post shortcode into each event or to edit the template file to have it apply to all events. I would like anyone that registers for one event (in my case workshop) to be able to add additional events. Here’s one of the registration pages: http://www.florenceartschool.org/workshop-registration-2/?ee=41 |
Hi Kim, When you add the “add to cart” shortcode link to the registration page it doesn’t automatically remove the single event registration that’s there by default. To make that go away, you can set the “Display registration form” option to No in the event editor under Event Options. |
|
|
I’m just a chain of troubles today…when I uncheck the ‘Display Registration Form’ option I get a text link to “Register” – when I click on that, the text link becomes “view cart”….when I click on that I get: ” It looks like you are attempting to refresh a page after completing your registration or your cart is empty. Please go to the events page and try again.” |
Hi Kim, Can you try clearing the cache of the browser and test again? I checked and this is what I see when I click register then view cart -> |
|
|
I’ve tried it in two different browsers – cleared cache – no change. I’m so frustrated, what could I be doing wrong? |
Hi Kim, Which browsers did you try? Were you logged in or logged out at the time? |
|
|
I tried it in both Chrome and Safari – logged in as well as logged out. |
|
OK, had someone else try it that wouldn’t have any cache built up and they got the same “refresh” message that I did. It looks like it’s almost working – see this page (http://www.florenceartschool.org/workshop-categories/acrylic-workshops/) where it lists both options to ‘register’ or ‘add to cart’….but I can’t figure out how to allow them to actually ‘view their cart’. |
Hi Kim, If you click “Add to Cart” the link text will change to say “View Cart”. Please make sure that JavaScript is enabled in your browser or it will not work. If you’d like to add a “View Cart” link in a widget or elsewhere, you can add this html to make that happen: <a href="http://www.florenceartschool.org/workshop-registration-2/?regevent_action=show_shopping_cart" rel="nofollow">View Cart</a> |
|
|
I have verified that I do indeed have JavaScript enabled in my browser, so that is not the problem. I tried out the html code you sent and it does place a “vew cart” in the side bar – but when clicked on – I get the same error: “It looks like you are attempting to refresh a page after completing your registration or your cart is empty. Please go to the events page and try again.” |
Hi Kim, I checked your site again and it’s all working from my end. When you go to this page: http://www.florenceartschool.org/workshop-categories/acrylic-workshops/ and click any of the “Add to Cart” links what happens? |
|
|
When I click on the “Add to Cart” link it then switches to a “View Cart” link….when I click on that, I get the attempting to refresh page error. |
|
I also tried this in Chrome, FireFox and IE 10 and it worked fine. |
The support post ‘Can't get the multiple event template code to work’ 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.