renaissancecreative

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: [tribe_mini_calendar] / Mini Calendar Widget #1151966
    renaissancecreative
    Participant

    This reply is private.

    in reply to: [tribe_mini_calendar] / Mini Calendar Widget #1151593
    renaissancecreative
    Participant

    This reply is private.

    in reply to: [tribe_mini_calendar] / Mini Calendar Widget #1150851
    renaissancecreative
    Participant

    Hi Nico,

    There are currently 17000 events on the calendar.

    We have lots of recurring events, that span months, can you advise when this improvement will be actioned? Might be worth adding a note on your site in the widget section about limitations of amount of events.

    If this is going to take a long time I am going to need to code a new mini calendar(something I really don’t want to do) or get a new Event Calendar plugin(even worse option).

    Thanks,
    James

    in reply to: [tribe_mini_calendar] / Mini Calendar Widget #1150469
    renaissancecreative
    Participant

    This reply is private.

    in reply to: [tribe_mini_calendar] / Mini Calendar Widget #1150468
    renaissancecreative
    Participant

    Hi Nico,

    Thanks for the response, I have previously looked when I can view the page to see if there were JavaScript issues and didn’t have any, I have also put it online so we have the same server configurations.

    Having turned on DEBUG on the dev site, I get:

    Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 32 bytes) in /var/www/vhosts/comptonverney.org.uk/development/wp-includes/wp-db.php on line 2352

    Would this be a problem with the amount of events that the website has in its calendar?

    renaissancecreative
    Participant

    Hi Brook,

    Sorry didn’t get back sooner, you response got lost in my inbox.

    I didn’t quite understand what you were asking me to do, but I can it another try by creating a variable of
    $today = date('Y-m-d-');

    Then changed the args in tribe_get_events to be

    $events = tribe_get_events( array(
    'posts_per_page'  => 25,
    'eventDisplay'    => 'custom',
    'post_parent__in' => array( 0 ),
    'start_date' => $today,
    'tax_query'       => array(
    	'relation'	  => 'OR',
    	array(
    		'taxonomy' => 'tribe_events_cat',
    		'field'    => 'term_id',
    		'terms'    => $tax,
    		)
    	)
    ));

    Hope this helps if anyone else has this sort of issue.

    James

    renaissancecreative
    Participant

    Hi Brook,

    Sorry I think I got distracted when writing this out.

    In terms of the code, this is working however I want to change hardcoding the date to be today’s date, but when I do this it doesn’t show any recurring events that are still ongoing, it only shows events that the first occurence is today or after today.

    Does that make more sense?

    in reply to: Order Email #1065726
    renaissancecreative
    Participant

    Hey Raymond,

    I have just stumbled upon this looking for something else and have used some code I found on here for something else.

    You can use:

    add_filter( 'woocommerce_order_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] );
    	if ( $event_id ) {
    		$title = sprintf( '%s for <a href="%s" target="_blank"><strong>%s</strong></a> on %s', $title, get_permalink( $event_id ), get_the_title( $event_id ), tribe_get_start_date( $event_id ) );
    	}
    	return $title;
    }

    This displays the it as {ticket_name} for {event_name} on {event_date/time}

    And you can use this exact same code and utilise for the filter in your cart by adding

    add_filter( 'woocommerce_cart_item_name', 'woocommerce_cart_item_name_event_title', 10, 3 );

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