• Resolved Jorge Razor

    (@jorgehoffmann)


    Is there a way to hide the product’s image, price, subtotal and total in the email send to customer? Leaving just the name and quantity.

    Thanks!

    • This topic was modified 3 years, 9 months ago by Jorge Razor.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support priyankajagtap

    (@priyankajagtap)

    Hi @jorgehoffmann,

    Yes, it is possible to hide the product’s price, subtotal, and total from the reminder email. It’s not possible currently to hide the product image in the reminder email.
    You can add the below code in the “functions.php” file of your currently active theme.

    You can use the below code to Hide the Price in the reminder email:

    add_filter( 'wcal_reminder_email_price_value', 'change_price_value', 10, 1 );
    function change_price_value( $item_subtotal) {
    $item_subtotal = ''; // Hide the price.
    return $item_subtotal;
    }

    Below code you can use to hide the subtotal in the reminder email.

    add_filter( 'wcal_reminder_email_line_subtotal_value', 'change_subtotal_value', 10, 1 );
    function change_subtotal_value( $item_total_display) {
    $item_total_display = ''; // Hide the line subtotal.
    return $item_total_display;
    }

    Below code you can use to hide the cart total in the reminder email.

    add_filter( 'wcal_reminder_email_cart_total', 'change_cart_total', 10, 1 );
    function change_cart_total( $cart_total) {
    $cart_total = ''; // Hide the cart total.
    return $cart_total;
    }

    Kindly add these custom codes to the “functions.php” file of your currently active theme and let us know whether it is working as per your requirement or not.

    Regards,
    Priyanka

    Thread Starter Jorge Razor

    (@jorgehoffmann)

    Hi! Thanks for the answer.

    I put those codes in the functions.php and try to send a test email, but I think this test email is not affected but those lines of code. So I’m waiting to receive a real e-mail from the plugin with my test user. I’ll get back to you.

    Plugin Support priyankajagtap

    (@priyankajagtap)

    Hi @jorgehoffmann,

    The provided custom code is for the reminder email so it will work in the actual reminder email. So kindly check this behavior in the actual reminder email and let us know the result.

    Regards,
    Priyanka

    Thread Starter Jorge Razor

    (@jorgehoffmann)

    It worked!

    Thanks a lot for the help!

    Plugin Support priyankajagtap

    (@priyankajagtap)

    Hi @jorgehoffmann,

    That’s great ??

    Feel free to get back to us if you have any further queries.

    Regards,
    Priyanka

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide price, subtotal and total’ is closed to new replies.