Support » Plugin: Giftable for WooCommerce » Metadata _is_giftable: yes gets printed on invoices

  • Resolved centuri

    (@centurimk)


    Thank you for excellent plugin, we tried on our shop with more than 5k products, all works fine only one small problem.

    We use very popular plugin for PDF invoices https://wordpress.org/plugins/woocommerce-pdf-invoices/
    And on every invoice that we have gift the following metadata is being printed below product:
    _is_giftable: yes

    Is there any fix for this?

    Thank you.

    • This topic was modified 2 years, 7 months ago by centuri.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author DecomTeam

    (@decomteam)

    @centurimk we need that meta to check is product a giftable or not, but you could ask PDF invoice developers to help you hide it, they maybe have some hook/filter to hide things like thi: '_is_giftable', 'yes'

    Thread Starter centuri

    (@centurimk)

    (in case someone else encounters the same problem here is the solution.
    I fixed the issue with the following code:

    function bewpi_alter_hidden_order_itemmeta( $hidden_order_itemmeta ) {
        $hidden_order_itemmeta[] = '_is_giftable';
        // end so on..
        return $hidden_order_itemmeta;
    }
    add_filter( 'bewpi_hidden_order_itemmeta', 'bewpi_alter_hidden_order_itemmeta', 10, 1 );
    
    Plugin Author DecomTeam

    (@decomteam)

    Thank you @centurimk for your solution, hope it help others.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Metadata _is_giftable: yes gets printed on invoices’ is closed to new replies.