• Resolved mohamedattia35

    (@mohamedattia35)


    We try to add an order meta data as in your example in the pdf invoice (%sku%) under section “Item Name Additional Info” located at page=wc-settings & tab=jetpack & wcj-cat=emails_and_misc & section=pdf_invoices, but it failed to display the required meta data.

    Please, let us know how we can include order meta data to the pdf invoice.

    thanks …

    https://www.ads-software.com/plugins/woocommerce-jetpack/

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter mohamedattia35

    (@mohamedattia35)

    Dear Val,

    Thanks for your reply and I have good news for you.

    We get it work but by debugging your plugin code and add a new short code [wcj_order_custom_meta_field] with this handling function as wcj_order_custom_meta_field.

    function wcj_order_custom_meta_field( $atts ) {
    		if ( '' == $atts['field_id'] ) return '';
    		$field_value = $this->the_order->$atts['field_id'];
    		return ( isset( $field_value ) ) ? $field_value : '';
    	}

    when we make the same test as you mention in your post (<p>Custom checkout field: [wcj_order_checkout_field field_id=”billing_wcj_checkout_field_1″]</p>) but we use the new short code as (<p>Custom checkout field: [wcj_order_custom_meta_field field_id=”field_id”]</p>), it works great and return the value that we need.

    Here is the output as Custom checkout field: 123456789

    Please, include this new option in your new version, so, it will be helpful to anyone that need this feature.

    Thanks a lot for your time and efforts.

    Hi,

    Thanks for the code, we will try to do our best to make it available in one of next releases. We make you know when it available.

    BR,
    Val

    Thread Starter mohamedattia35

    (@mohamedattia35)

    Hi,

    Thanks for your reply and we are waiting for the next release.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘PDF invoice get order item meta data’ is closed to new replies.