Chris

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • Chris
    Participant

    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?

    http://pastebin.com/uHCEjEiB

    Cheers

    • This reply was modified 7 years, 2 months ago by Chris.
    in reply to: Past Course Feed #1115258
    Chris
    Participant

    SORTED!

    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.
    Chris
    Participant

    OK – I guess I just update manually.

    Thanks for your time.

    Chris
    Participant

    Yes – this is on Multisite – not network activated only on the single site.

    Chris
    Participant

    This reply is private.

    • This reply was modified 8 years, 1 month ago by Chris.
    Chris
    Participant

    This reply is private.

    • This reply was modified 8 years, 1 month ago by Chris.
    Chris
    Participant

    This reply is private.

    Chris
    Participant

    That 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

    Chris
    Participant

    Thanks – 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?

    Chris
    Participant

    The 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

    Chris
    Participant

    Hi – 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

    Chris
    Participant

    Thanks 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.

    Chris
    Participant

    Thanks – 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

    in reply to: Displaying remaining stock in related events #1029055
    Chris
    Participant

    Forgot 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>';
    		}
    
    }
    
    in reply to: Displaying remaining stock in related events #1028835
    Chris
    Participant

    Ta

Viewing 15 posts - 1 through 15 (of 19 total)