• Hello,

    How to remove course list from invoice only need course name amount table not other filed you can see in screenshot lot of courses display invice i want invoice in one page

    Invoice Screenshot: https://prntscr.com/m0wi1n
    Remove list of courses from invoice.

    Original invoice display in two pages : https://prntscr.com/m0wite

    Please tell us solution for this Problem

    Thanks,

    Sopan

Viewing 1 replies (of 1 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hello Sopan,
    If this is included in the product name (presumably by a third party plugin, then you may be able to remove it with the following filter:

    
    add_filter( 'woocommerce_order_item_name', 'woocommerce_order_item_name', 999, 3);
    function woocommerce_order_item_name ($item_name, $item, $bool) {
    	return $item->get_name();
    }
    

    If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters.

    What this snippet effectively does is that it resets the product name to the original ‘base’ name of the product. If that doesn’t work, it means that the plugin you use for the course list actually sets this in the base name, and there’s not much we can do about that. But I think we have a good shot ??

    Let us know if that works!

Viewing 1 replies (of 1 total)
  • The topic ‘How to remove course list from invoice’ is closed to new replies.