Thanks in advance!
]]>I would like that when ticket A is sold out, ticket B can no longer be purchased.
How can this be realized?
Thank you very much for your help.
]]>is it possible to use an external ticket link instead of the build-in ticket system?
I want to use a button (like the “tickets” button when you set up tickets for an event) which leads to another website.
Thanks in advance.
Before raising a ticket, please ensure:
When raising a ticket, please include:
Thanks
This code creates a product in woocommerce when you create an event. This will make it easier for you to define specific discount codes
Add it to child-theme/functions.php
function create_woocommerce_product_from_event($post_id, $post, $update) {
// Verify that it is an event from The Events Calendar
if ('tribe_events' !== $post->post_type) {
return;
}
// Avoid infinite loops
if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {
return;
}
// Extract event data
$event_title = $post->post_title;
$event_description = $post->post_content;
$start_date = get_post_meta($post_id, '_EventStartDate', true);
$event_price = get_post_meta($post_id, '_EventCost', true); // Assuming the event has a cost.
// Create or update a product in WooCommerce
$product_id = get_post_meta($post_id, '_woocommerce_product', true);
$product_args = array(
'post_title' => $event_title,
'post_content' => $event_description,
'post_status' => 'publish',
'post_type' => 'product',
);
if ($product_id) {
// Update the product if it already exists
$product_args['ID'] = $product_id;
wp_update_post($product_args);
} else {
// Create a new product
$product_id = wp_insert_post($product_args);
update_post_meta($post_id, '_woocommerce_product', $product_id);
}
// Configure product metadata
update_post_meta($product_id, '_regular_price', $event_price ? $event_price : '0'); // Product price
update_post_meta($product_id, '_price', $event_price ? $event_price : '0');
update_post_meta($product_id, '_stock_status', 'instock');
update_post_meta($product_id, '_virtual', 'no');
update_post_meta($product_id, '_tribe_event_id', $post_id); // Relationship with the event
}
add_action('save_post', 'create_woocommerce_product_from_event', 10, 3);
]]>I am wanting to use this plugin for a client, but I was wondering if there is way to generate a QR code through the plugin?
The idea is that that the customer will book a bunch of activities, and it will send a QR code in the confirmation email.
On the day of the booking, when the QR code is scanned, it should display all the data from the order (customer info, activities booked, etc…)
Also, we need to have a subscription system. So that a user that is paying a yearly or monthly subscription can book activities for free. Could we do that with the “Prices and Credits” add-on?
Thanks!
]]>