Viewing 3 replies - 1 through 3 (of 3 total)
  • moksha shah

    (@mokshasharmila13)

    Hi @nknights

    We are looking into this issue and forwarded to our developer as soon as possible we will provide you solution.

    Regards, Moksha.

    Thread Starter nknights

    (@nknights)

    Thank you for the quick response, Moksha – I really appreciate it!

    We have been scratching our heads over this one for a while…

    moksha shah

    (@mokshasharmila13)

    Hi @nknights

    For adding product categories in our invoice, please add the below code in your active theme’s functions.php file or use a plugin like Code Snippets:

    function add_product_categories( $product_name, $item ) {
        $product_id    = $item['product_id'];
        $product = $item->get_product();
       	$product_categories = $product->get_categories();
            echo $product_name;
    	echo '<br>' . $product_categories ;
       
    }
    add_filter( 'wcdn_order_item_name', 'add_product_categories', 10, 2 );

    Please let us know if you have any queries.

    Regards, Moksha.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add Product Categories (max last 3 in tree) to Invoice’ is closed to new replies.