|
/ Documentation /Cart Abandonment/ Filters to Customize Product Table

Filters to Customize Product Table

WooCommerce Cart Abandonment Recovery allows customization of the email template styles using WordPress filters. This is especially helpful if you want to match the design of your product table and images to your brand.

Modify Product Table & Image Styles

You can use the following filter to adjust the styles applied to the product table and product image inside the recovery emails:

/*
* The woo_ca_email_template_table_style filter allows you to change the default styles of
* product table & product image provided by WooCommerce Cart Abandonment Recovery plugin.
*
*/

add_filter( 'woo_ca_email_template_table_style', 'wcar_product_table_styles', 10 );

function wcar_product_table_styles( $style ){

$style['product_image']['style'] = 'height: 42px; width: 42px;';

$style['table']['style'] = 'color: #636363; border: 1px solid #e5e5e5; width:250px;';

$style['table']['attribute'] = 'align="center" ';

return $style;
}

Include Cart Total with Tax and Shipping

If you’d like the product table in the recovery email to also display the cart total including tax and shipping, you can use the filter below:

// Show product table with cart total including tax and shipping cost
add_filter( 'woo_ca_recovery_enable_cart_total', '__return_true' );

Note: These filters should be added to your child theme’s functions.php file. If you’re not sure how to add custom code, please refer to this guide on adding custom code.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page