Forum Replies Created
-
AuthorPosts
-
June 21, 2013 at 1:57 am in reply to: Conflict with Fatal error: Call to undefined function add_to_cart_wooticket_btns #518301verticaParticipant
OK. I noticed in the working version on cvprofessor that there was a function for add_to_cart_wooticket_btns() which looks like this:
http://pastebin.com/US1wNC3eI added this to the vertica-careers site functions.php but it still doesn’t bring in the add to cart button. We also can’t get the price working either. Here’s our current single.php file:
http://pastebin.com/vnMRz7TYThe code is the same as cvprofessor but for some reason, it just doesn’t work. What are we missing?
Thanks for you help so far.
PhilJune 20, 2013 at 9:35 am in reply to: Conflict with Fatal error: Call to undefined function add_to_cart_wooticket_btns #517711verticaParticipantphp add_to_cart_wooticket_btns()
June 20, 2013 at 9:35 am in reply to: Conflict with Fatal error: Call to undefined function add_to_cart_wooticket_btns #517701verticaParticipantSorry, the code was stripped from above. The php causing the issue is here:
… added to stop it being stripped
June 20, 2013 at 9:34 am in reply to: Conflict with Fatal error: Call to undefined function add_to_cart_wooticket_btns #517691verticaParticipantNot yet.
Looking back at the last thread, you fixed the list.php for us (we copied over the changes single.php) – see May 8th entry here: https://theeventscalendar.com/support/forums/topic/list-ticket-price-on-event-list/.It mentioned wrapping the code first:
echo ‘Pricing data: ‘;
var_dump($wootickets_pricing);
tribe_get_ticket_form();
$price_differential = echo ‘Pricing data: ‘;
var_dump($wootickets_pricing);When we’ve brought over the same code into the live site, it no longer works – which is weird. Just wondering if anything else was changed in another file.
The issue is definately connected to as both the event list page and the single page break at this point. We thought it may be a javascript conflict but removing all plugins and deregistering the javascript calls in the theme still made no difference.
Any other ideas what we’re missing here?
June 14, 2013 at 6:22 am in reply to: Conflict with Fatal error: Call to undefined function add_to_cart_wooticket_btns #513401verticaParticipantHi Barry,
It was actually yourself who went in and added.changed some code kindly for us:
https://theeventscalendar.com/support/forums/topic/list-ticket-price-on-event-list/#post-46758Not sure if you remember but you got it working. Was there something specific you changed that we need to copy over?
1verticaParticipantHi Barry, my developer found a wrapping conditional IF statement just before the pricing field:
Commenting this out displays the price just fine now on the single event page. Thanks for your help.
1verticaParticipantNo probs Barry – you’re right, I do have a developer who checks my questions here and implements any changes suggested.
I’ll ask him to modify the events description page using the same methods you have suggested for the listings page – it’s just that when we tried it before it didn’t work on the event description page.
This resulted in back and forth on here and eventually you coming in and correcting the code that wasn’t working.
Just thought there might be a quick answer in case that functionality still doesn’t work when we try it.
Will keep you posted if we need any more input on this.
1verticaParticipantNope – as far as I understand it we haven’t done anything since you have implemented your changes.
Please view an example listing event above on our site to see what we mean … That’s appeared since you have changed things – we thought you were helping us out as this would be our next request as per earlier in the post but it is clearly something else??1verticaParticipantHi Barry
Great news – we were thinking it must be something simple that was sescaping us.
There are a couple of final things we require that don’t seem to be working. .. this is around having a ‘Book’ button on both the events listing page and the event details page that adds the product to the cart.So
1) we require a ‘Book’ link on the event list page – this should just add one ticket to the cart and redirect straight to there
2) there is a ‘Book’ link in 2 places on the event details pages – this is great as it is what we want – however, it doesn’t work!Thanks again for the help
1verticaParticipantThis reply is private.
1verticaParticipantHi Barry, we have included the snippet in our list.php file and see nothing different in the page. We have now also copied the events folder to the TwentyTwelve theme and tested its working with a h2 header at the top of the page so we know the template overrides are working, just not outputting anything.
1verticaParticipantI’ve even created a new event in this theme with it’s own ticket and price so that everything is fresh and still nothing.
see http://cvprofessor.com/workshops for the list and the event ‘Third twenty-twelve event’ is the one just created.1verticaParticipantHi Barry
I have done this here http://cvprofessor.com/workshop/test-event/
And the price is not displaying on the listingas you can see.I will again ask my developer to look into this – is there anything else in the back-end we should be looking at?
The post earlier in this thread mentions something
1verticaParticipantHi Barry
We have pasted your templates as is and price still isn’t pulling through.
Don’t really know where to go from here – perhaps it’s a setting in the back-end we’re missing?
I can send you a login for the back-end for you to take a look?We have loaded a couple of events onto a test domain – http://cvprofessor.com
1verticaParticipantHi Barry,
We pasted this line into the tickets.php file and we still don’t see any price coming in on either the events list page nor the single event page.
Latest tickets.php file is now http://pastebin.com/BBP4XDEG
Rob -
AuthorPosts