Forum Replies Created
-
AuthorPosts
-
Lady Berry
ParticipantHi,
not sure whats happening I updated Event Tickets to 4.4.4 ok but just tried “the events calendar” and it appears to be stuck for the last 5 minutes.
When I try and access the site from another browser I receive:
Fatal error: Uncaught exception ‘InvalidArgumentException’ with message ‘No constructor with the tickets.handler alias is registered’ in /homepages/36/d429977844/htdocs/clickandbuilds/LBCv2/wp-content/plugins/event-tickets/common/vendor/lucatume/di52/src/tad/DI52/Container.php:138 Stack trace: #0 /homepages/36/d429977844/htdocs/clickandbuilds/LBCv2/wp-content/plugins/event-tickets/common/vendor/lucatume/di52/src/tad/DI52/Container.php(122): tad_DI52_Container->assertCtorAlias(‘tickets.handler’) #1 /homepages/36/d429977844/htdocs/clickandbuilds/LBCv2/wp-content/plugins/event-tickets/common/src/Tribe/Container.php(173): tad_DI52_Container->make(‘tickets.handler’) #2 /homepages/36/d429977844/htdocs/clickandbuilds/LBCv2/wp-content/plugins/event-tickets/src/Tribe/Tickets_Handler.php(737): tribe(‘tickets.handler’) #3 /homepages/36/d429977844/htdocs/clickandbuilds/LBCv2/wp-content/plugins/event-tickets/src/Tribe/Tickets.php(341): Tribe__Tickets__Tickets_Handler::instance() #4 /homepages/36/d429977844/htdocs/clickandbuilds/LBCv2/ in /homepages/36/d429977844/htdocs/clickandbuilds/LBCv2/wp-content/plugins/event-tickets/common/vendor/lucatume/di52/src/tad/DI52/Container.php on line 138Lady Berry
ParticipantThis reply is private.
Lady Berry
ParticipantThats perfect thank you 🙂
one small question – does this support minutes? (ie 9:30 – 13)
Thanks
BenLady Berry
ParticipantNo worries,
I have coded my own OUT OF STOCK – had just wondered if I was reinventing the wheel 🙂
Do you know which template is used for the list view?
is it:
/wp-content/plugins/the-events-calendar/src/views/list.phpMY CODE:
<?php
/* ALLOW ACCESS TO THE TICKET ON THIS PAGE */
$woo_tickets = Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance();
$tickets = $woo_tickets->get_tickets( get_the_ID() );if ( ! empty( $tickets ) ) {
foreach ( $tickets as $ticket ) {
/* SET VALUE OF THE TICKET STOCK MESSAGE */
$thisvalue = tribe_tickets_get_ticket_stock_message($ticket);
/* SET VALUE FOR EVENT URL */
$thisurl = esc_url( tribe_get_event_link() );
/* IF STOCK MESSAGE CONTAINS SOLD ALL 0 (OR FORCED THE STOCK TO 0) */
if (strpos($thisvalue, ‘Sold all 0’) !== false) {
/* SHOW SOLD OUT */
echo ‘<span style=”font-size:1.3em;”>SOLD OUT!</span>’;
}else{
/* SHOW BUY NOW */
echo “BUY NOW!</br> $thisvalue”;
}}
}
?>Lady Berry
ParticipantThats great thank you Geoff 🙂
Just going to have a quick try at customising the template.
Am i right in thinking that the file:
/wp-content/plugins/the-events-calendar/src/views/single-event.phpis the file needed to edit for the main event page? (ie the one with all the info, pics, maps etc)
Should I copy it to:
/wp-content/themes/justshop/tribe-eventsThanks
BenFebruary 15, 2016 at 10:33 am in reply to: Help with Custom Template – Pro Shorcodes – tribe_events_list category #1073362Lady Berry
ParticipantHi,
Thanks for the response – Im guessing $ticket is the ticket ID/reference for the ticket that the stock message is required for.
When using the custom template “single-event.php” how is it possible to pass $ticket (or equivelent) to the function – tribe_tickets_get_ticket_stock_message()
apologies if this is an unsupported question 🙁
February 9, 2016 at 9:18 am in reply to: Help with Custom Template – Pro Shorcodes – tribe_events_list category #1070358Lady Berry
ParticipantThat is amazing – thank you so much. Im really sorry for asking an inappropriate question however am so grateful that you pointed me in the right direction really really appreciated.
Im guessing this is also an inappropriate question but if at all possible do you know if it is possible to add logic to show when a events tickets are sold out (on the same template)?
EDIT: I have found the function
tribe_tickets_get_ticket_stock_messagecould you show me how i use this in the template ie is it:
<?php echo tribe_tickets_get_ticket_stock_message() ?>Really appreciate all your help, you guys go above and beyond with support.
Ben
-
This reply was modified 10 years, 2 months ago by
Lady Berry.
February 9, 2016 at 7:53 am in reply to: Help with Custom Template – Pro Shorcodes – tribe_events_list category #1070296Lady Berry
ParticipantOK, I have answered number 1: by adding
<span class=”list-dayname”><?php echo apply_filters( ‘tribe-mini_helper_tribe_events_ajax_list_dayname’, date_i18n( ‘F’, $postDate ), $postDate, $mini_cal_event_atts[‘class’] ); ?></span>
to my custom template- THEME/tribe-events/pro/widgets/modules/single-event.php
For reference to anyone else who is interested, I found the date masks here:
https://codex.wordpress.org/Formatting_Date_and_TimeLady Berry
ParticipantGeoff – You sir, are a gentleman. Thank you so much, this is literally 100% exactly what I needed.
Thank you so much.
Customer service & support like yours is a rarity in todays age and you have been amazing.
Thank you so much 🙂
Lady Berry
ParticipantWow!!!!!!!!!!!!!!!!!!!!!!
Spot on thank you soooo much – your plugins are awesome 🙂 so versatile!!
One little question seeing as the world is now my oyster with this custom PHP template 🙂
How do I find out other parameters available to use – for example I would now love to add a snippet of the event description – like the one shown when you hover over a date in the month calendar?
Thank you again
BenLady Berry
ParticipantAwesomeeeeee!!!! thank you so much 🙂
Lady Berry
ParticipantThis reply is private.
Lady Berry
ParticipantHi Geoff,
This may be all related to me being silly!!!
Ive just been reading up and I was under the impression that my Ticket plus license had just had the event pro plugin added to it so had done nothing about adding a new license to my wordpress site.
I found that my account has now got two separate license keys (one for ticket plus and one for event pro). When i go to add the event pro license to wordpress i get an error saying “sorry, this key is not valid” (the ticket plus one is added fine and working correctly)…
Do you have any idea?
Thanks
Lady Berry
ParticipantHi Geoff,
Thanks for your help, I have tried adding [tribe_events_list] on its own but this just outputs exactly that “[tribe_events_list]” on the page i have checked that no ‘< pre >’ or other html tags are being added. if i use [gallery] this works (hidden) correctly
Do you think there is possibly an issue with my license / version of events pro – is there anything I can do to check that it is installed correctly (other than shortcodes :-))
Ben
-
This reply was modified 10 years, 3 months ago by
Lady Berry.
-
This reply was modified 10 years, 3 months ago by
Lady Berry.
-
This reply was modified 10 years, 3 months ago by
Lady Berry.
Lady Berry
ParticipantIve tried a mix of things – had hoped <?php echo do_shortcode( ‘[tribe_events_list]’); ?>
or just the shortcode
[tribe_events_list limit=”3″]
would work but no luck – I am adding this to the editor section of a page description
-
This reply was modified 10 years, 3 months ago by
Lady Berry.
-
This reply was modified 10 years, 3 months ago by
Lady Berry.
-
This reply was modified 10 years, 2 months ago by
-
AuthorPosts
