New Landing How can we help? Themeforest Theme Support Neighborhood Change Woocommerce order email?

Viewing 4 posts - 1 through 4 (of 4 total)
  • #50818
    jeppevinum
    Member
    Post count: 156

    Are there when, that I can change the email design on the final order email in Woocommerce?

    #50965
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    HI,
    Please open to edit functions.php at wp-content/themes/neighborhood/ .

    // THIS FUNCTION WILL OVERRIDE YOUR CURRENT EMAIL DESIGN . SO PLEASE EDIT CAREFULLY 
    function woo_email_order_swift( $order_id ) {
            $order = new WC_Order( $order_id );
            $to = '[email protected]'; // PLEASE CHANGE IT YOUR EMAIL
    	        $subject = 'New Order Completed';
    	        $headers = 'From: My Name ' . "\r\n";
    	        
    	        $message = 'A new order has been completed.\n';
    	        $message .= 'Order ID: '.$order_id.'\n';
    	       // HERE YOU CAN USE YOUR DESIGN .JUST CONCATENATE YOUR DESIGN WITH $message 
    	        
    	        
    	        @wp_mail( $to, $subject, $message, $headers );
           
    }
    add_action( 'woocommerce_thankyou', 'woo_email_order_swift' );
    #51130
    jeppevinum
    Member
    Post count: 156

    How would it look like, if i change it?

    #51131
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I just told a way to change email template . It will not look good as you want and you need to make your email template and put here .

    With Best Regards
    Swiftideas Themes

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register