Helen

Forum Replies Created

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • in reply to: List events by name not date #950138
    Helen
    Participant

    What I’m trying to do is prevent the date and time showing in one category of events. I need to list the events in this category by number/name not by time and date so I’m going to set all the times to be the same but I then need to hide the time and dates for those events. I can see how I would remove the time and date for all events but not for just those dates in a specific category.

    Any thoughts would be great Thanks.

    in reply to: List events by name not date #950093
    Helen
    Participant

    Hi Brian

    Thanks for your help. Could you tell me which file it calls when I ask it to display an “event category” – I would like to be able to edit the file it calls and remove the date and time display. I know how to do that if I can find the right file to edit! Thanks

    in reply to: Change google maps pointer #950092
    Helen
    Participant

    Sorry I just realised I called you Barry – the last support guy I chatted to was called Barry – apologies Brian!

    in reply to: Change google maps pointer #950089
    Helen
    Participant

    Thanks Barry

    That plugin does work but it only allows you to alter the co-ordinates for the map on the site – not the google maps link which is what I really wanted. Thanks any way for your help.

    in reply to: Events list view separated by date not month #949311
    Helen
    Participant

    The other thing I would really like to be able to do is to colour code the different event titles according to their category – ie. all events in “Music” would have an orange title etc.

    Any pointers on this one? I realise I’m shamelessly plugging the depths of your knowledge – sorry!

    Thanks

    in reply to: Events list view separated by date not month #949307
    Helen
    Participant

    Hi Barry

    Thanks for your reply. That’s great. I know how to find and edit the files you mentioned, the only problem is my php coding is basic at best! Any pointers on what kind of code I would need to add in order to call the day and month rather than just the month? I added a line saying:
    $event_date = tribe_get_start_date( $post, false, ‘d’ );
    but it didn’t seem to do anything! I’m really paddling around in the dark here, any help would be amazing!

    Thanks

    Helen
    Participant

    Hi Geoff
    Thanks again for your help. Your suggestion above did work so thanks for that. In the end I’ve decided to just write the event name and date into the ticket name as then it shows up everywhere. I realised that even if I sorted out the emails, the event name also didn’t show up in the order when you look in “my account” at previous orders. This was essential really so people know what they’ve booked for. I got fed up tinkering with code so went the simple route!
    I have another, separate issue to this one now as well so I’ll create a new question and will probably speak to you again shortly!

    Thanks

    Helen
    Participant

    I did try that. It seemed to result in the output “checkout” like it got the page title rather than the event title. Just to be clear I am editing the woocommerce email templates not the event calendar ticket email.

    The template code is now:

    <?php
    /**
    * Admin new order email
    *
    * @author WooThemes
    * @package WooCommerce/Templates/Emails/HTML
    * @version 2.0.0
    */

    if ( ! defined( ‘ABSPATH’ ) ) {
    exit; // Exit if accessed directly
    }

    ?>

    <?php do_action( ‘woocommerce_email_header’, $email_heading ); ?>

    <p><?php printf( __( ‘You have received an order from %s. The order is as follows:’, ‘woocommerce’ ), $order->billing_first_name . ‘ ‘ . $order->billing_last_name ); ?></p>

    <?php do_action( ‘woocommerce_email_before_order_table’, $order, true, false ); ?>

    <h2>id . ‘&action=edit’ ); ?>”><?php printf( __( ‘Order #%s’, ‘woocommerce’), $order->get_order_number() ); ?> (<?php printf( ‘<time datetime=”%s”>%s</time>’, date_i18n( ‘c’, strtotime( $order->order_date ) ), date_i18n( wc_date_format(), strtotime( $order->order_date ) ) ); ?>)</h2>

    <?php echo tribe_get_events_title() ?>

    <?php echo tribe_get_event_link() ?>

    <?php echo tribe_events_title() ?>

    <?php echo the_title() ?>

    <?php echo tribe_get_start_date() ?>

    <table cellspacing=”0″ cellpadding=”6″ style=”width: 100%; border: 1px solid #eee;” border=”1″ bordercolor=”#eee”>
    <thead>
    <tr>
    <th scope=”col” style=”text-align:left; border: 1px solid #eee;”><?php _e( ‘Product’, ‘woocommerce’ ); ?></th>
    <th scope=”col” style=”text-align:left; border: 1px solid #eee;”><?php _e( ‘Quantity’, ‘woocommerce’ ); ?></th>
    <th scope=”col” style=”text-align:left; border: 1px solid #eee;”><?php _e( ‘Price’, ‘woocommerce’ ); ?></th>
    </tr>
    </thead>
    <tbody>
    <?php echo $order->email_order_items_table( false, true ); ?>
    </tbody>
    <tfoot>
    <?php
    if ( $totals = $order->get_order_item_totals() ) {
    $i = 0;
    foreach ( $totals as $total ) {
    $i++;
    ?><tr>
    <th scope=”row” colspan=”2″ style=”text-align:left; border: 1px solid #eee; <?php if ( $i == 1 ) echo ‘border-top-width: 4px;’; ?>”><?php echo $total[‘label’]; ?></th>
    <td style=”text-align:left; border: 1px solid #eee; <?php if ( $i == 1 ) echo ‘border-top-width: 4px;’; ?>”><?php echo $total[‘value’]; ?></td>
    </tr><?php
    }
    }
    ?>
    </tfoot>
    </table>

    <?php do_action( ‘woocommerce_email_after_order_table’, $order, true, false ); ?>

    <?php do_action( ‘woocommerce_email_order_meta’, $order, true, false ); ?>

    <?php do_action( ‘woocommerce_email_customer_details’, $order, $sent_to_admin, $plain_text ); ?>

    <?php do_action( ‘woocommerce_email_footer’ ); ?>

    You can see the functions I tried in the middle. You can see a screenshot of the resulting email at http://winchcombefestival.co.uk/wp-content/uploads/2015/03/Screen-Shot-2015-03-13-at-16.54.19.png
    Any thoughts?

    Thanks again.

    Helen
    Participant

    Hi Geoff I’ve tried <?php echo tribe_get_events_title() ?> and also <?php echo tribe_events_title() ?> but both show up as “upcoming events” not the event title. The date and time code worked fine thank you. Any more ideas on the title? I’ve been through the lists of functions and can’t find another relevant one. Is there something up with this function?

    The other related problem I have is that the event title doesn’t show up in the order details on the website after the transaction is completed. I guess if we can get this function sorted I could add it to that template somewhere?

    Thanks again for your help.

    Helen

    Helen
    Participant

    Hi Geoff

    Thanks for your reply. Sorry for my delay in replying again – I was expecting an email when someone replied to the post but didn’t get one for some reason.

    I inserted the code above <?php echo tribe_get_events_title() ?> into the woocommerce new order template. It didn’t insert the name of the event, only a line that reads “Upcoming Events”.

    I really need it to show the event title and ideally date and time too. Do you have any more ideas?

    Thanks for your help.

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