Posted: September 19, 2013 at 9:04 pm
|
We’re running into some issues with multi-event registration and the cart on WP 3.6.1. We’re trying to do some workarounds to provide course bundles. We have a link to add to events to the cart for the standard part of the bundle, then a category list from which they should select a third class to complete the bundle. This has worked previously, but it’s a new term so the events are new and the bundle page has been edited. Here’s the bundle page: http://nwdocumentary.org/diy-documentary-bundle I’m seeing the link in step 1 to add two events to the cart not work consistently, especially when we’ve removed items from the cart and go to re-add. In some cases it appears to work, the link changes to the View Cart link but nothing is actually in the cart. We’re also sometimes getting an error that says “An error occured, a valid price is required.” when attempting to add to cart. I’ve also seen the same error at the bottom of the cart page after successfully following the steps on the bundle page, i.e., all the items are in the cart correctly, but that same “valid price” error appears at the end of the list of items. |
Hi Tom, The link in step 1 is adding 2 events to the cart, one with an ID of 0 which should never exist (and it this case does not) and the other with an event id of 1 (which has expired) I’m unsure which events your are trying to add but if you go to the event overview you’ll see an ID column. You’ll need to amend the ‘add to cart’ shortcode to use the ID’s for the new events you wish to add. Does that make sense? |
|
|
September 23, 2013 at 10:03 pm Thanks, Tony. I noticed that in the URL but thought it was some oddity of EE, since the URL in the actual page code is correct. In the HTML editor for that page, the short code is: <pre class=”brush: text; gutter: true; first-line: 1; highlight: []; html-script: false”>[ESPRESSO_CART_LINK event_id="43-63" anchor="Click here to add DIY Documentary and Shooting Interviews to your cart."] So I’m not certain why the IDs are showing as 0 and 1 in the rendered page. Any suggestions? |
That’s odd. Is it possible to get your login details to take a further look into this? If so please send them via https://eventespresso.com/send-login-details/ *Please note login details need to be admin level. |
|
|
September 24, 2013 at 12:44 pm Hi Tony, |
Hi there, We are testing out a fix for this and if the testing goes well it will be released as a hotfix. If you’d like to test out the same fix and can FTP into your server and make a small edit, here’s the change: In /includes/functions/cart.php on line 1084: $event_ids = array_flip( $event_ids ); { You move the line starting with $event_ids below the next curly brace so it looks like this in context: } } } $event_ids = array_flip( $event_ids } $event_id =implode( '-', $event_ids ); |
|
|
I’ve applied the fix and it’s looking good. |
The support post ‘Cart issues’ 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.