• Resolved ganeshkumarmistry

    (@ganeshkumarmistry)


    Hi,

    The email which sent includes the name of the product with SKU and variation sizes.
    how we can hide/remove the SKU and variation info from the product name?

    Just a product name is enough.

    Can you assist in solving this problem?

    Thank You.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support oluisrael

    (@oluisrael)

    @ganeshkumarmistry, use the code below to remove the SKU details from the reminder emails:

    function wcap_item_sku( $wcap_product_sku ) {
         return false;
    }
    add_filter( 'wcap_product_sku', 'wcap_item_sku', 10 , 2 );

    To remove the variation sizes, use the code below:

    function hide_variations( $show_variations ) {
         return false; // false: hide | true: show
    }
    add_filter( 'wcap_add_variation_in_product_name', 'hide_variations', 10, 1 );

    Both codes need to go to your active theme’s functions.php file or you add them via the Code Snippets plugin.

    Plugin Support oluisrael

    (@oluisrael)

    @ganeshkumarmistry, I’ll need you to use the code snippet below to hide the SKU:

    add_filter( 'wcal_email_sku', 'hide_sku', 10, 2 );
    function hide_sku( $sku, $product_id ) {
        $sku = '';
        return $sku;
    }

    vixel

    (@vixel)

    Hello, I tried to add the filter you suggested to hide the SKU but it seems that emails stop arriving, is there a new filter to add?

    Thanks

    Plugin Support oluisrael

    (@oluisrael)

    @vixel, that is the same filter we deploy to hide the SKUs and I can confirm it still works.

    Ensure you return as blank, so that the SKU will be hidden in the reminder email.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hide/Remove SKU and product variations from Product name’ is closed to new replies.