• Resolved sand0r21

    (@sand0r21)


    Hi there,

    I want to add a customfield/name to the packing slib
    it’s already in the admin order page name calls “order_delivery_date_new” and gives me the delivery date

    I’ve looked in the documentation [wcj_product_meta] but can’t get it to work

    Is there anyone who can help me with this?

    Thanks in advance

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

    I don’t think using [wcj_product_meta] is going to help here.

    Algoritmika

    (@algoritmika)

    Hi,

    To add any custom checkout field to the invoice you need to use [wcj_order_checkout_field] shortcode in invoice template. Something like this should work:

    [wcj_order_checkout_field field_id="order_delivery_date_new"]

    In case that wouldn’t work, please try [wcj_order_meta] shortcode, something like this:

    [wcj_order_meta meta_key="order_delivery_date_new"]

    or

    [wcj_order_meta meta_key="_order_delivery_date_new"]

    As for [wcj_product_meta] shortcode, Pablo is correct – no [wcj_product_] shortcodes should be used in invoices (as order can have more than one product in it).

    Best regards,
    Tom

    Thread Starter sand0r21

    (@sand0r21)

    Thanks for the quick reply’s and it worked

    [wcj_order_meta meta_key=”order_delivery_date_new”] did the job (Y)

    Algoritmika

    (@algoritmika)

    Happy to hear it worked. Please let us know if you have any more questions.

    Best regards,
    Tom

    Thread Starter sand0r21

    (@sand0r21)

    Hi,

    I’ve tried adding more “custom” fields to the packing slip template
    The field i want to add is called “billing_mobile” and it’s added beneath billing_phone

    I tried following options

    – [wcj_order_billing_mobile]
    – [wcj_order_checkout_field field_id=”billing_mobile”]
    – [wcj_order_custom_field name=”billing_mobile”]

    What is wrong?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Get custom meta value on packing slip’ is closed to new replies.