I contacted YITH Tickets plugin for help in accessing their Ticket product fields and this is the code they gave me to get the event date and start /end time for the shop loop.
<?php
add_action( 'wp_enqueue_scripts', 'oceang_enqueue_styles' );
function oceang_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
if ( function_exists( 'YITH_Tickets' ) ) {
function woocommerce_after_shop_loop_item_title_start_date() {
global $product;
if ( $product instanceof WC_Product_Ticket_Event ){
$product_id = $product->get_id();
$date = yith_wecvti_get_date_message( $product_id );
echo "";
echo ( $date[ 'message_start' ] ) . "<br>";
echo ( $date[ 'message_end' ] );
echo "";
}
}
add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_after_shop_loop_item_title_start_date', 5 );
}
?>
This is the Code to access the info about vendor:
1) "By" Vendor/Organiser: This is from the Yith Multivendor Plugin
$vendor = yith_get_vendor( 'current', 'user' );
2) Ticket price range? Is it possible to pull the low-to high
This is just getting the price of the product "$product->get_price()"
3) Category, Tag
$term = get_term_by( 'id', $product_id, 'product_cat' )
$term = get_term_by( 'id', $product_id, 'product_tag' )
Can you please explain how those functions can work with Toolset to create the custom templates?
Thanks