Matt

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Tickets NOT being sent for 'guest' orders #1178969
    Matt
    Participant

    Hi Geoff,

    I think it’s working ! Thanks for taking a look and letting me know.

    I think I did this last year but upgraded wordpress and lost the code. This time I’ve put into a child theme.

    cheers

    Matt.

    in reply to: Can't install Event Tickets plugin #1167369
    Matt
    Participant

    I fixed it!! As you were typing your response I was deleting and reinstalling.

    I must have downloaded 4.2.7 somewhere as when I went back to downloads and installed 4.3rc2 it worked fine.

    Thanks for your help

    Matt.

    in reply to: Add ticket date to email & order info #1016488
    Matt
    Participant

    I have now fixed this: using a combination of your snippet and a function called tribe_get_start_date($event_id,true,””,null);

    here is my code which I included into functions.php

    but now I need to edit the final email template which sends out the tickets?

    Any ideas?

    add_filter( ‘woocommerce_cart_item_name’, ‘woocommerce_cart_item_name_event_title’, 10, 3 );
    function woocommerce_cart_item_name_event_title( $title, $values, $cart_item_key ) {
    $ticket_meta = get_post_meta( $values[‘product_id’] );
    $event_id = absint( $ticket_meta[‘_tribe_wooticket_for_event’][0] );
    $event_date = tribe_get_start_date($event_id,true,””,null);
    //var_dump($ticket_meta);

    if ( $event_id ) {

    $title = sprintf( ‘%s for %s (‘.$event_date.’)’, $title, get_permalink( $event_id ), $event_title);
    }
    return $title;
    }

    in reply to: Add ticket date to email & order info #1016484
    Matt
    Participant

    I have found the code to insert information into the cart (see below) but all I need is the SQL query or PHP code to pull the date for an event from the database?

    Can you point me in the right direction? (eG: tablename, fieldname etc..)?

    thanks

    Matt.

    /*
    * The Events Calendar – WooCommerce Tickets – Add Event Title to Product Title
    * add coding to theme’s functions.php
    * @version 3.12
    */
    add_filter( ‘woocommerce_product_title’, ‘tribe_add_event_title_to_tickets_title’, 10 , 2 );
    function tribe_add_event_title_to_tickets_title( $title, $product ) {
    $product_id = $product->id;

    $event_id = get_post_meta($product_id , ‘_tribe_wooticket_for_event’, true );
    $event_date = “”; // GET THE DATE FROM THE DB
    $event_title = ”;
    if ( $event_id ) {
    $event_title = ‘ – ‘ . get_the_title( $event_title ) . ‘(‘.$event_date.’)’;
    }

    return $title . $event_title;

    }

    in reply to: CSV Importer for wootickets #1014773
    Matt
    Participant

    I’ve sort of worked out a way to create a massive amount of tickets using a custom post type duplicator and then use recurring events. It’s still very time consuming but I’m getting there.

    thanks for help

    Matt.

    in reply to: Can't see event info on monthly calendar page #1014770
    Matt
    Participant

    Hi nico,

    thanks for your email. I fixed the google map issue but it didn’t help – it was a CSS override in my theme where h3 tags weren’t being displayed.

    I changed that and it worked fine.

    thanks for your help

    you can close this ticket

    Matt.

Viewing 6 posts - 1 through 6 (of 6 total)