Generate PDF after a custom order through PHP
-
Hi,
I use the below code which is a simple method to create a custom order from my functions.php file.$user = wp_get_current_user(); $order = new WC_Order(); $order->set_customer_id($user->ID); $product = wc_get_product(123); $order->add_product($product); $order->save();
Is there a way to generate also the invoice details (Invoice Number and Invoice Date)?
Image: https://i.ibb.co/yqRDXzS/2019-05-17-02-39-44.pngThank you,
Yiannis
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Generate PDF after a custom order through PHP’ is closed to new replies.