• I don’t know how to insert custom field of product in PDF invoice. For example my order has 5 products and how to show custom field for each product in PDF invoice? Name of custom field is: uplata_partneru.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    There is item_meta column in [wcj_order_items_table] shortcode’s columns attribute, so please try adding something like this in “WooCommerce > Settings > Booster > PDF Invoicing & Packing Slips > Templates”:

    [wcj_order_items_table table_class="pdf_invoice_items_table"
    columns="item_name|item_meta=uplata_partneru|item_quantity|line_total_tax_excl" 
    columns_titles="Product|Info|Qty|Total" 
    columns_styles="width:30%;|width:20%;|width:25%;|width:25%;text-align:right;"]

    If that wouldn’t work, please try item_meta=_uplata_partneru instead of item_meta=uplata_partneru.

    Please let me know if that’s what you asked for.

    And if you like Booster, please leave us a rating.

    Best regards,
    Tom

    Thread Starter ajdinkadic

    (@ajdinkadic)

    In boot examples I receive text “is_custom:”. Please tell me what to do and you have 5 stars from me. ??

    Could you please let me know which versions of WooCommerce and Booster do you have installed?

    Tom

    Thread Starter ajdinkadic

    (@ajdinkadic)

    Booster 2.8.2 and WooCommerce 3.0.7

    Hi,

    I think I made a mistake, what you really need is item_key column, not item_meta. Could you please try:

    [wcj_order_items_table table_class="pdf_invoice_items_table"
     columns="item_name|item_key=uplata_partneru|item_quantity|line_total_tax_excl" 
     columns_titles="Product|Info|Qty|Total" 
     columns_styles="width:30%;|width:20%;|width:25%;|width:25%;text-align:right;"]

    Sorry for giving multiple solutions. If this won’t work either, please let me know and I’ll make modifications to the plugin. This should be easily fixed.

    Best regards,
    Tom

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PDF invoice and custom field’ is closed to new replies.