Lady Berry

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 26 total)
  • Author
    Posts
  • in reply to: Ticket option not showing since update! #1251698
    Lady Berry
    Participant

    Hi,

    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 138

    in reply to: License renewal not updated #1251180
    Lady Berry
    Participant

    This reply is private.

    in reply to: Default Event Time #1078595
    Lady Berry
    Participant

    Thats perfect thank you 🙂

    one small question – does this support minutes? (ie 9:30 – 13)

    Thanks
    Ben

    in reply to: Force – Out Of Stock #1078592
    Lady Berry
    Participant

    No 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.php

    MY 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”;
    }

    }
    }
    ?>

    in reply to: Show Similar #1078590
    Lady Berry
    Participant

    Thats 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.php

    is 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-events

    Thanks
    Ben

    Lady Berry
    Participant

    Hi,

    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 🙁

    Lady Berry
    Participant

    That 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_message could 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.
    Lady Berry
    Participant

    OK, 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_Time

    in reply to: Event List + Thumbnail Image #1064205
    Lady Berry
    Participant

    Geoff – 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 🙂

    in reply to: Event List + Thumbnail Image #1063400
    Lady Berry
    Participant

    Wow!!!!!!!!!!!!!!!!!!!!!!

    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
    Ben

    in reply to: Event Grouping By Category? #1062233
    Lady Berry
    Participant

    Awesomeeeeee!!!! thank you so much 🙂

    in reply to: Event Grouping By Category? #1062110
    Lady Berry
    Participant

    This reply is private.

    in reply to: Event Grouping By Category? #1061091
    Lady Berry
    Participant

    Hi 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

    in reply to: Event Grouping By Category? #1060690
    Lady Berry
    Participant

    Hi 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.
    in reply to: Event Grouping By Category? #1060517
    Lady Berry
    Participant

    Ive 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.
Viewing 15 posts - 1 through 15 (of 26 total)