[woocommerce]-[New Feature Request] Preview Email not showing template versions
-
function woocommerce_preview_emails() in woocommerce-admin-functions.php
Does not preview the template version of the email being sent out.
upon editing the email templates there no way to preview those changes without processing an order.
just to dumby up something for what we needed. i added (Copied from the email builder) then added a Preview version of the customer Processing order’s template to remove the header, (it was being output twice. i was in a hurry and couldn’t go looking for that portion as well.)
$order = new WC_Order( $order_id );//Where $order_id = 0 or null // Buffer ob_start(); // Get mail template woocommerce_get_template('emails/preview-customer-processing-orders.php', array( 'order' => $order, 'email_heading' => $email_heading )); // Get contents $message = ob_get_clean();
Please update this to reflect the Template Edits so that the preview link works as expected.
also, add more links to represent the types of emails being sent.
- The topic ‘[woocommerce]-[New Feature Request] Preview Email not showing template versions’ is closed to new replies.