Hi @sarzany,
Yes, it is possible to hide the product variations and the SKU from the reminder email using the custom code. We have created a custom code to display the product name without SKU and variations in the reminder email. ?
Kindly add the below provided custom code in the “functions.php” file of your active theme. So the SKU and variation information will not be added with the Product name in the abandoned cart reminder email.
Path: <WordPress Installation Directory> / wp-content / themes / <Your active theme folder>/ <HERE>
The code is:
function modify_name( $name, $v ) {
$product_id = $v->product_id;
if ( isset( $v->variation_id ) && '' != $v->variation_id ) { // variable product
$prod_name = get_post( $product_id );
$name = $prod_name->post_title;
}
return $name;
}
add_filter( 'wcal_after_product_name', 'modify_name', 10, 2 );
Once you will add the provided code at the respective place, please check and let us know whether the provided code snippet is working fine or not.
Regards,
Priyanka Jagtap