Posted: April 3, 2013 at 8:53 pm
|
I am very new to wordpress having mainly used other CMS systems in the past but really liked the look of Event Espresso so decided to give it a go. I have setup a recurring event that can be booked everyday. The event is a bus that drives around to schools and they teach children music. The bus has room for 60. Now everything is setup but I have a few issues: 1) I would like to add a surcharge of $50 for the bus and each child on the bus is $10, unfortunately this plugin adds $50 onto each ticket sale not just a one of surcharge? 2) When a school makes a booking I want the event to close so no one else can book on the same day, is there anyway to do this without having to sell all 60 seats. 3) I would like to pre-approve all sales first before the transaction is processed through paypal, what option do I need to change in a recurring event so that the event is reviewed first and then approved? 4) For some reason I can’t see the Espresso Calendar widget I am guessing there is a clash in jquery? I have tried to disable all the other plugins but makes no difference. The site is using these 4 pages for the moment, and the calendar widget doesn’t appear on any of them like it should: http://themagicbus.com.au/ The widget should be on the left hand side of the footer. Any help or suggestions would be much appreciated. |
|
Hi,
Yeah the surcharge is on a per ticket basis, we donรถt have the functionality for a one off fee like that as most events run on a per ticket basis. So you could add a surcharge of $1.00 to each ticket so a full bus would get you $60 back.
Unfortunately not no, unless you manually edit the event or have it set up differently (i.e. have the attendee limit set to 1 so that they are buying the bus rather than the individual seats).
In the General Settings, scroll down to the Advanced Settings and turn on “Enable attendee pre-approval feature?” (set to yes)
Yes there is a jQuery issue. The themes custom js is using the $ version of jQuery without having it in no conflicts mode as WordPress doesnt allow the $ usage out of the box. Please note that the calendar widget should not appear on the same page that the Calendar is on (due to conflict issues). I hope that helps let us know if you have any more questions. |
|
Thank you for answers, I have looked at the link provided and have done a bit of research on jquery conflict with wordpress. Now I am confused should I be editing the Header(header.php) or Theme Functions (functions.php)? I am looking at the code for both and they seem different to the examples provided. |
|
Theme Functions: <?php
?> |
|
Header: <html >
<link rel="icon" href="/favicon.ico” type=”image/x-icon” />
<link rel="stylesheet" type="text/css" media="all" href="/css/normalize.css” />
<body >
|
|
That was a lot of code! May be best to use a service like Pastebin in the future, plus our forums tend to strip code out making it hard to read. OK, neither file had what we are looking for, but there was reference to another file containing more functions theme-function.php which may contain it. |
|
Thanks for the pastebin tip, never heard of it before ๐ Here is the functions.php file Here is the header.php file Here is the file you suggested: This is the theme-function.php |
|
Hi Thanks for that. I had another look at the site as I cant see what I thought was happening in the files. Looks like I was slightly wrong, so apologies for that. It is still a jQuery error and still due to the fact it is using $ instead of jQuery, but I was looking in the wrong place. The file causing the issue is custom.js, found in themes/theme1336/js/custom.js. Now the name suggests this may contain code you added in the theme options(this is a guess) but it may just be a name the developer gave it. If you replace the $’s in that file with jQuery it should start working, or at the least show the next error. As an aside, the theme is loading an old version of jQuery (ver 1.6.4) instead of the default loaded with WordPress (1.7.2 as per your WP version, 1.8.4 is the latest) – it might be loading them from theme-scripts.php Also, I would advise updating WordPRess, it looks like you are still using an old release candidate version. |
|
Ok so I have updated wordpress to the lastest version & I have updated custom.js like you suggested. So the calendar is working on the homepage but still not working on the products page, bookings page (I understand the widget conflicts with the full size calendar) & the contacts page. So should I now update the theme-scripts.php file? To point to jquery somewhere else? theme-scripts.php Or am I going to have to rewrite the jquery that controls the old theme from the template? |
Hi Richard, Have you checked to see if the theme has been updated to use a more recent version of jQuery? When a theme hard codes a specific version like 1.6.4, it nevitably will lead to compatibility issues down the road. Right now, WP is shipping with jQuery version 1.8 so we need to write our scripts to be compatible with what WP scripts. You could try commenting out the lines where it deregisters the WP included jQuery library:
which will make the theme load the WP included version. |
|
|
Ok we seem to have made some progress, I have done your latest recommendations, as the widget appears on the products page now but still not on the other pages. This is where it gets weird if I set the homepage to a static page the widget disappears. If I create a blank page the widget disappears. So I have no idea why the widget is ok on these pages: But on these pages it doesn’t appear: |
|
Are all those pages using the same theme page templates? |
|
All pages are using the same theme template and options, would you like me to email the backend details to have a look what is going on? |
|
Is it possible to get your login details in order to look into this? If so, please send them via https://eventespresso.com/send-login-details/ NOTE: login details need to be Admin level. |
|
Anyone had a chancd to figure out what is causing the conflict? |
|
Hi Richard, I have had a look at your site and I know what the issue is. Widget Logic plugin. For whatever reason (and I am unsure why) it is conflicting with out widget. Deactivating Widget Logic allows the calendar to show on the pages where it previously didn’t. You could try playing around with the conditionals or just deactivate. |
|
Ok that has done the trick now I have the problem of the widget and the calendar conflicting, is there anyway to deactivate the widget so it doesn’t appear on that page? Sorry I am use to using Joomla to build sites rather then wordpress, in Joomla you can assign what pages you want a module to appear, wordpress doesn’t seem to give you the same luxury? |
|
Hi Richard, yes there is. If you go to the Calendar widget and where it says “Calendar Page” add the url for the page with the calendar on. IT will disable the calendar widget if the calendar itself is showing. |
|
Still showing up ๐ |
|
Well, it did work, but not as hoped, it removed the calendar from the footer widget. What I don’t understand and I am still looking into is why the page is showing two calendars. It is as if there is a hard coded calendar somewhere but no templates seem to be modified or anything like that. Would you mind if I did some testing by disabling the theme/plugins etc. It will temporarily make the site look weird. |
|
Sorry still not showing up after for some reason it is showing 2 calendars ๐ even though I have put the url into the widgets settings |
|
Hi, Yes I know, am I ok to do some testing with the theme and plugins? |
|
You can do whatever you like to the site ๐ it isn’t really live yet even though it is online |
|
Hi, I spent a little while having a look at this, and the most I have been able to deduce is that the theme is causing the issue. When swapped to a default theme like TwentyTwelve, only one copy of the calendar is shown. However, I have been unable to pinpoint what the exact cause is, it really could be anything, though I would put money on javascript. I disable the javascript that I could (I couldnt do it all as there was dependencies which gave errors) and even upped your jquery (its loading an old version, I have swapped it back for now). Nothing resolved the issue., It could be that one of the scripts I couldn’t stop from working may be responsible. There are no obvious jquery errors either. Right now I would suggest referring to the theme developer for their advice on what could be causing this, though ig there is one available updating the theme may help. |
|
Lets say the template company I purchased the template from were less then helpful, I end up downloading a plugin which enables you to create your own custom sidebar and choose what plugins you want to appear on each individual page. Not sure if you would like me to post a link to another developers plugin, so will only post if you think it might benefit other members. As you can see there is only one calendar now ๐ http://themagicbus.com.au/bookings/ |
Hi Richard, Please post a link to the plugin that you found to help with this. We’d all like to what it is. |
|
|
If you are looking to customize each pages widgets this plugin is great: |
|
Thanks for posting that Richard! |
The support post ‘Need some help with ticketing, recurring and calendar’ 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.