Karl

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Filtering by date? #1114269
    Karl
    Participant

    Hi Nico, just don’t have a lot of time for custom coding on this project, so a quick fix might be: buy the calendar pro plugin, it will give the option to add an additional field (and what I’m thinking is this additional field would be a drop down menu of just dates) to all our new AND existing events, we can then go in, select the date, save the event, and we can then filter on that at the filter bar on the front end. Can you see any reason why that wouldn’t work?

    in reply to: Filtering by date? #1110402
    Karl
    Participant

    Hi Nico, that’s not going to help with our needs I’m afraid. I see that there is provision for adding an “additional field”, and filtering on that – any field I guess, including startdate? Do you have a tutorial on doing that, or does anyone have any experience?

    in reply to: Where is documentation on hooks and filters? #1071504
    Karl
    Participant

    Hi, not that’s fine, I am there now – I have been doing searches too – with an offline site and trusty Dreamweaver. I find it’s pretty bad at everything except finding text!!

    When you get a full list please let me know – I’m sure there is functionality I could make use of that I have not discovered.

    in reply to: How to add Event title into tickets email? #1071503
    Karl
    Participant

    I’ve pretty much got there now. I also wanted to show the event name with ticket names in the orders admin pages – that proved to be quite a challenge but I’ve managed that with a variant of the above code. Once I’m past my deadlines I’ll paste some snippets.

    in reply to: How to add Event title into tickets email? #1070869
    Karl
    Participant

    Hi Geoff, I found that when I used that method, too many things were affected. I have limited the impact by modifying the php file and functions file, as below

    // Product name
    echo apply_filters( ‘woocommerce_order_item_name_customer_email’, $item[‘name’], $item, false );

    and

    add_filter( ‘woocommerce_order_item_name_customer_email’ , ‘woocommerce_email_item_name_event_title’, 10, 3 );

    function woocommerce_email_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] );
    if ( $event_id ) {
    $title = sprintf( ‘%s for %s‘, $title, get_the_title( $event_id ) );
    }
    return $title;
    }

    but that still messes up one of the admin mails a little – I am still working on it.

    in reply to: How to disable "Tickets" email? #1070021
    Karl
    Participant

    That is excellent Brian – that seems to work – many thanks.

    I have quite a few issues I could do with help on – I guess I’m best posting them as separate queries here, to help other people as much as anything?

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