Home › Forums › WoodMart support forum › Problems processing orders after update to 7.6.0 › Reply To: Problems processing orders after update to 7.6.0
September 4, 2024 at 10:23 am
#595078
Artem Temos
Keymaster
Try to add the following PHP code snippet to the child theme functions.php file to fix this
if ( ! function_exists( 'woodmart_enqueue_emails_styles' ) ) {
/**
* Add custom CSS for Woodmart emails.
*
* @param string $css WooCommerce email CSS code.
*
* @return string
*/
function woodmart_enqueue_emails_styles( $css ) {
ob_start();
wc_get_template( 'emails/wd-email-styles.php' );
$css .= ob_get_clean();
return $css;
}
add_filter( 'woocommerce_email_styles', 'woodmart_enqueue_emails_styles', 20, 2 );
}