Posted: May 28, 2013 at 12:54 pm
|
Hi, I’ve got a client with multiple events, where the ‘add to cart’ function does; I’ve currently got the events listed on a page with [EVENTS_LIST] below; Site is – http://www.australiansalsaopen.com.au/tickets/ Also, the ‘more’ function in the wysiwyg editor of the event does not hide the part of the description that I want. Instead, it cuts off the DIV tag of the event below, and joins it as 1 larger event box. See – http://screencast.com/t/DGQqyrrIQn Is this a WordPress theme issue? Thanks |
Hi Ben, It’s a theme issue since the theme is loading up jQuery version 1.4.4 which was released back in 2010. The current version of WordPress ships with jQuery version 1.8.3, and Event Espresso depends on there being a current version of jQuery loaded up. In this case, the theme will need to be refactored to load up a more current version of jQuery. It’s recommended to use the version that’s included with WordPress. Please see these posts for more info: https://eventespresso.com/2012/08/using-jquery-in-safe-mode/ http://pippinsplugins.com/why-loading-your-own-jquery-is-irresponsible/ |
|
|
Thanks Josh, As my client only has just over 2 weeks left until their big event is over with a view to changing their theme after the event. Would you recommend me resolving the Jquery load up as the easier fix now, for the short term, and then get a better theme post mid June, to combat this happening again? Or, bite the bullet and get a new theme in place now (with still running the risk of EE complications on setup)? |
Hi Ben, Swapping out one version of jQuery with another is pretty straightforward. It basically involves looking in the theme and finding where it’s deregistering jQuery and registering its own busted old version and remove that code. So for example, this: function super_cool_theme_js() { becomes this: wp_enqueue_script( 'jquery' ); The tricky part is this: If there are features of the theme that depend on running the older version of jQuery (basically they’d have deprecated functions that were removed from jQuery since version 1.4.4) they will not work with a more current version, then you’ll need to dig in further and update the parts of the theme and replace the deprecated functions with updated functions. So step one would be try swapping out the jQuery version, then step two test all the interactive elements of the theme. If it’s not using any of these deprecated functions it will be okay: |
|
|
Thanks Josh, I really appreciate your help, and the fully explanation on this. I had searched and tried just about everything, and after 3 hours was just about to give up, until I opened another folder hidden away, and bingo! it was there! |
Hi Ben, It looks to me like there’s an event shortcode entered within an event. Can you check the shortcodes out? You can temporarily revert to the default WP theme to rule out whether something is a theme issue too. |
|
|
Thanks Josh, It’s not a theme issue. [event_espresso] code is on a page of its away hidden away. My client has currently got a dysfunctional working setup for EE using registration links posted on a posts page, and I’m trying to get it right now by having the multiple events on 1 page or 2. The ‘Ticket’ page link in reference in my first post has the shortcode [EVENT_LIST] on that page, this is where the wrapping is occurring for the <more> tag. Do you think trying different shortcodes is going to make a difference? The only thing I changed earlier, was the ‘grid_boxes.css’ to increase the box size from 100px width to 928px. To get an event strip across the page. Any ideas will be much appreciated. thanks Ben |
Hi Ben, If you go into the event editor for the Victorian State Championship events and switch to Text mode you’ll likely see an opening div tag at the top of the description, along with a closing div tag at the end of the description. I think you can remove those tags and when you try adding the more tag it should work. The problem with the breakage in the event list is happening when the more tag hides the rest of the description content, which would include the closing div tag. See this screenshot I made that will illustrate things a bit: |
|
The support post ‘add to cart not working for multiple events’ 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.