| @@ -5,8 +5,10 @@ | ||
| 5 | 5 | * @package Timetics |
| 6 | 6 | */ |
| 7 | 7 | namespace Timetics\Core\Integrations\Woocommerce; |
| 8 | 8 | |
| 9 | +defined( 'ABSPATH' ) || exit; | |
| 10 | + | |
| 9 | 11 | /** |
| 10 | 12 | * WooCommerce Product class |
| 11 | 13 | */ |
| 12 | 14 | class Product { |
| @@ -33,8 +35,13 @@ | ||
| 33 | 35 | $product->set_status( 'publish' ); |
| 34 | 36 | $product->set_category_ids( [$product_category_id] ); |
| 35 | 37 | |
| 36 | 38 | $product->update_meta_data( 'timetics_meeting_id', $meeting->get_id() ); |
| 39 | + | |
| 40 | + // Store meeting details as product meta for checkout/email display | |
| 41 | + $product->update_meta_data( 'timetics_duration', $meeting->get_duration() ); | |
| 42 | + $product->update_meta_data( 'timetics_timezone', $meeting->get_timezone() ); | |
| 43 | + | |
| 37 | 44 | $product_id = $product->save(); |
| 38 | 45 | |
| 39 | 46 | $meeting->update( [ |
| 40 | 47 | 'wc_product_id' => $product->get_id(), |