Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author priyankajagtap

    (@priyankajagtap)

    Hi @laurameeks,

    Sorry for the delay in response to this due to the weekend.

    Kindly add the below-provided filter code to the “functions.php” file of your currently active theme to achieve your requirements.

    add_filter( ‘wcdn_order_item_fields’, ‘wcdn_remove_sku’, PHP_INT_MAX, 3 );

    function wcdn_remove_sku( $fields, $product, $order ) {
    unset( $fields[‘sku’] );
    return $fields;
    }

    Once you have replaced the above code snippet, please check and let us know if the SKU is getting removed or not.

    Do let us know the results.

    Thread Starter laurameeks

    (@laurameeks)

    This did not remove the sku.

    The code works OK, you just need to replace all the quotes. Delete the characters and write them again yourself – they got mismatched by the encoding.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.