David

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Tickets reduced to 0 and cannot edit existing tickets #1098235
    David
    Participant

    Hi, yeah sorry I was pushed for time yesterday! I had to comment out references to other shopping carts in the code that you provide to move the tickets purchase form a la;

    //	'Tribe__Tickets_Plus__Commerce__EDD__Main',
    	//	'Tribe__Tickets_Plus__Commerce__Shopp__Main', // As of ETP v4.0 Shopp will generate errors when referenced, if not active. Uncomment this line if you have Shopp Active
    	//	'Tribe__Tickets_Plus__Commerce__WPEC__Main',
    		'Tribe__Tickets_Plus__Commerce__WooCommerce__Main'

    I found this in another thread on the forum but I forget which one! Apologies…
    Many thanks,
    Pete

    in reply to: Tickets reduced to 0 and cannot edit existing tickets #1097835
    David
    Participant

    Hi George, I managed to solve the problem! Thank you for getting back to me though.

    in reply to: How to get event ID from Woocommerce Product in cart? #1059971
    David
    Participant

    Never mind, I figured out a way to get what i needed.
    For anyone else that might need the event ID, here’s how;

    function get_tribe_event_ID_from_product($product_id) {
    	if ( class_exists( 'Tribe__Tickets_Plus__Commerce__WooCommerce__Main' )) {
    		$my_tribe = new Tribe__Tickets_Plus__Commerce__WooCommerce__Main();
    		$my_event_id = get_post_meta($product_id, $my_tribe->event_key, true);
    		return $my_event_id;
    	}
    }

    I’m using this to customise the checkout fields in WooCommerce based on ACF fields saved with the event and not the ticket itself.

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