• Resolved nishitm

    (@nishitmorakhia)


    I have created a custom field (hsn)for products.
    How do i display the custom field (hsn value)in PDF Invoice columns along with item_name?

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

    Go to Woocommerce > Booster Settings > PDF INVOICING & PACKING SLIPS > Templates. For Invoice template find wcj_order_items_table. You will have to add column item_product_input_fields (and its name and width).

    For example:

    [wcj_order_items_table table_class="pdf_invoice_items_table"
    	columns="item_number|item_name|item_product_input_fields|item_quantity|line_total_tax_excl"
    	columns_titles="No|Product|Fields|Qty|Total"
    	columns_styles="width:5%;|width:65%;|width:10%;|width:15%;|width:5%;text-align:right;"]
    Thread Starter nishitm

    (@nishitmorakhia)

    Thank you for your reply.
    My Custom field name is “hsn”
    So where do i need to put the “hsn” so that its value is displayed.
    Do i need to put in place of item_product_input_fields?

    Hi,

    All custom fields that are available for that product will be displayed. I would suggest using item_product_input_fields_with_titles instead if you want the titles to be shown.

    [ Signature deleted ]

    • This reply was modified 6 years, 4 months ago by Jan Dembowski.
    Thread Starter nishitm

    (@nishitmorakhia)

    I am not sure i am getting what you saying.
    Using item_product_input_fields_with_titles, how will it know to display the value (ie 7112) of custom field name “hsn” in the column.
    And i dont want all custom fields available for the product to display in the column. I just want one custom field ie value of hsn, to be displayed

    Hi,

    I’m sorry, at the moment you can only display all custom fields.

    [ Signature deleted ]

    • This reply was modified 6 years, 4 months ago by Jan Dembowski.
    Thread Starter nishitm

    (@nishitmorakhia)

    What does [wcj_product_custom_field] do?

    Thread Starter nishitm

    (@nishitmorakhia)

    solved

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Product Custom field display’ is closed to new replies.