• Resolved Tim Burkart

    (@bigmoxy)


    I have a store offers order pickup and delivery. Pickup and delivery are product attributes. Is it possible to tailor the email text based on product attributes?

Viewing 1 replies (of 1 total)
  • Plugin Support Gilbert Hernandez

    (@ghernkadence)

    Hello @bigmoxy,

    Unfortunately, there aren’t settings to accomplish the goal you described. However, you can develop a solution using PHP by overwriting the email templates found at wp-content\plugins\kadence-woocommerce-email-designer\templates\woo\emails\.

    For example, the admin-new-order.php file has a note that reads “…template can be overridden by copying it to yourtheme/woocommerce/emails/admin-new-order.php.”

    The template has code that reads:

    $additional_enable = Kadence_Woomail_Customizer::opt( 'additional_content_enable' );
    if ( isset( $additional_content ) && ! empty( $additional_content ) && apply_filters( 'kadence_email_customizer_additional_enable', $additional_enable, $email ) ) {
    	echo wp_kses_post( wpautop( wptexturize( $additional_content ) ) );
    }

    You can add code to check for product attributes and adjust the $additional_content as necessary. However, you have to develop a solution beyond that.

Viewing 1 replies (of 1 total)
  • The topic ‘Can I control the email text according to order type?’ is closed to new replies.