• Resolved codeflex

    (@codeflex)


    Is it possible to hide / remove the quantity and line total in the email sent out to customers?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support priyankajagtap

    (@priyankajagtap)

    Hi @codeflex,

    Yes, we do have the filters available for Quantity, Price, and the Cart total title & value columns which can be removed/edited as per your requirement. You can see the available filters on the below page.
    https://github.com/TycheSoftwares/Woocommerce-abandon-cart-lite/wiki/Hooks-for-Reminder-Emails

    Please check and use the necessary filters as per your requirements and let us know if you have any queries.

    Regards,
    Priyanka

    Thread Starter codeflex

    (@codeflex)

    Thank you, is it also possible to remove the SKU from the list displayed on the email ?

    Plugin Support priyankajagtap

    (@priyankajagtap)

    Hi @codeflex,

    Currently, it is not directly possible to hide SKU from the reminder emails. However, we have created a custom hook using which you can hide the SKU from the reminder email.
    ?
    Kindly add the below code in the “functions.php” file of your currently active theme. So the SKU will not be added with the Product name in the abandoned cart reminder email?.
    Path to the file: <WordPress Installation Directory>/wp-content/themes/<Your active theme>/<HERE>

    The code is:

    function wcal_product_sku_callback( $wcal_product_sku ) {
    return false;
    }
    add_filter( ‘wcal_product_sku’, ‘wcal_product_sku_callback’, 10 , 2 );

    Once you add the code at the respective place, please check and let us know whether the provided code snippet is working fine or not.

    Regards,
    Priyanka

    Thread Starter codeflex

    (@codeflex)

    Thanks, I’ve added the code however it didnt remove the SKU from the email.

    Plugin Support priyankajagtap

    (@priyankajagtap)

    Hi @codeflex,

    Is your product variable? If yes, then kindly add the below code in the “functions.php” file of your currently active theme to remove the SKU.

    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_reminder_email_after_product_name', 'modify_name', 10, 2 );

    Do let us know whether this code removes the SKU from the reminder email or not?

    Thread Starter codeflex

    (@codeflex)

    Hi, this code gives an error message sorry

    Plugin Support priyankajagtap

    (@priyankajagtap)

    Hi @codeflex,

    Can you please let us know exactly what error message you are getting? And what types of products you have on your website – Simple, variable, or any other product types?

    So, I will again test it at our end with the same setup and let you know if we are also getting the same error or not.

    Do let us know.

    Thread Starter codeflex

    (@codeflex)

    Hi, your code worked correctly once an error was fixed – this section here:
    && ” !=

    When pasted, the quotes were a double quote, and needed to be two single quotes.
    && ” !=

    Plugin Support priyankajagtap

    (@priyankajagtap)

    Hi @codeflex,

    Yes, you are right. It’s a type mistake, there should be 2 single quotes, not 1 double quote. Sorry for the inconvenience caused to you.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Hide Quantity and Line Total in email’ is closed to new replies.