Forum Replies Created
-
AuthorPosts
-
February 13, 2017 at 4:11 am in reply to: Shortcode for events list – hide event after start date reached #1233729ChrisParticipant
Hi thanks for getting back to me.
I currently use the Avada shortcade to output a list of or the next single event available:
[fusion_events cat_slug="courses" number_posts="1" columns="1"/]
I want the list to only show future events – not those currently running. Could I use the below function but perhaps change the ‘_EventEndDate’ to ‘_EventStartDate’ to override the above shortcode default behaviour of showing an event in the list until the end date is reached?
Cheers
- This reply was modified 7 years, 2 months ago by Chris.
ChrisParticipantSORTED!
Thanks for your guidance:
<?php // Ensure the global $post variable is in scope global $post; // Retrieve 2 Past Events $args = array ( 'post_type' => 'tribe_events', 'eventDisplay' => 'past', 'posts_per_page' => 2, 'order' => 'DESC', 'tax_query' => array( array( 'taxonomy' => TribeEvents::TAXONOMY, 'field' => 'slug', 'terms' => array('london-butler-school-courses'), 'operator'=>'IN' , ), ), ); $events = tribe_get_events( $args ); // Loop through the events: set up each one foreach ( $events as $post ) { setup_postdata( $post ); ?>
- This reply was modified 7 years, 11 months ago by Chris.
March 17, 2016 at 7:06 am in reply to: Events Calendar Pro License on Multisite (only 1 sub-site) #1090246ChrisParticipantOK – I guess I just update manually.
Thanks for your time.
March 16, 2016 at 8:53 am in reply to: Events Calendar Pro License on Multisite (only 1 sub-site) #1089708ChrisParticipantYes – this is on Multisite – not network activated only on the single site.
March 16, 2016 at 3:11 am in reply to: Events Calendar Pro License on Multisite (only 1 sub-site) #1089571March 16, 2016 at 3:10 am in reply to: Events Calendar Pro License on Multisite (only 1 sub-site) #1089570March 15, 2016 at 7:49 am in reply to: Events Calendar Pro License on Multisite (only 1 sub-site) #1089051ChrisParticipantThis reply is private.
March 15, 2016 at 7:06 am in reply to: Events Calendar Pro License on Multisite (only 1 sub-site) #1089031ChrisParticipantThat didn’t work either – can you tell me where Pro saves its license keys in the database – I’ve search but not found anything related.
Thanks
March 14, 2016 at 8:05 am in reply to: Events Calendar Pro License on Multisite (only 1 sub-site) #1088451ChrisParticipantThanks – I tried that but as soon as I enter it into the site the dev… reappears on the my licenses page.
Could it be a database setting that’s been carried over from the development stage?
March 14, 2016 at 7:52 am in reply to: Events Calendar Pro License on Multisite (only 1 sub-site) #1088443ChrisParticipantThe plugin works fine – just no auto update as you say.
How can I update the ‘Site URL’ section on my licenses page – it still is set to dev.british…
Thanks
November 30, 2015 at 7:55 am in reply to: Events Calendar using same email template a Woocommerce Sensei #1032631ChrisParticipantHi – thanks for this.
Please can you look a the modified hook you mention – it really needs to keep the message for complete orders only so customers are not let guessing.
Many thanks
November 25, 2015 at 2:18 pm in reply to: Events Calendar using same email template a Woocommerce Sensei #1030958ChrisParticipantThanks Nico…
1) Yes! I would ideally like to remove this message as it would not longer be relevant.
2) OK – will take a look
3) OK! It seems to be a common Woocommerce problem.
November 25, 2015 at 3:16 am in reply to: Events Calendar using same email template a Woocommerce Sensei #1030518ChrisParticipantThanks – I’ve got Woocommerce currently working on this as they’ve now confirmed there’s a bug at their end.
Related to this I have a few more questions:
1) I notice that when a refunded order is processed the message “You’ll receive your tickets in another email.” Still appears underneath the order table. Can this be removed?
2) In your order confirmation emails when a product has been purchased you have the message “Your order is complete. Download your plugins at…” at the top of the order. Can you let me know how to add this to our emails (also Woocommerce)?
3) All refund emails say “Your order has been partially refunded” even when fully refunded – is there a way around this or is this a Woocommerce issue?
Many thanks
ChrisParticipantForgot the last!
This is the one:
function tribe_events_count_available_related_tickets( $event = null ) { $count = 0; if ( null === ( $event = tribe_events_get_event( $event ) ) ) { return 0; } foreach ( Tribe__Events__Tickets__Tickets::get_all_event_tickets( $event->ID ) as $ticket ) { $count += $ticket->stock; $html .= sprintf( '<dd><strong>Places available: </strong>%s</dd>', $count ); } if ( $ticket->stock > 0 ) { echo $html; } if ( $count < 1 ) { // if all tickets sold or no tickets echo '<dd><strong>COURSE SOLD OUT</strong></dd>'; } }
ChrisParticipantTa
-
AuthorPosts