Load product from database to show image in emails

This commit is contained in:
 Ján Mikláš 2024-09-07 10:57:05 +02:00
parent 85719a7e94
commit 5400f6f257
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class WC_Admin {
$product->set_image_id( 30 );
$order = new WC_Order();
$order->add_product( $product, 2 );
$order->add_product( wc_get_product(43), 2 );
$order->set_id( rand(1000000, 9000000) );
$order->set_date_created( time() );