• Resolved chatingtou

    (@chatingtou)


    Hi,

    I have add 2 text field named ‘Name’ and ‘Postal Code’ for a single product, I want to show them in frontend, I try some methods in snippets but still not works, Could you show me an example to retrieve them? Many thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Wombat Plugins

    (@maartenbelmans)

    Hi @chatingtou

    They should appear on your product page automatically. If that does not happen, I will need more information to help you. Please send screenshots showing your field configuration and also a link to the product they should appear on.

    Thread Starter chatingtou

    (@chatingtou)

    sorry to make you confused, I actually want to get the value of these 2 fields from the orders.

    Plugin Author Wombat Plugins

    (@maartenbelmans)

    Ah, I understand now. Our plugin stores everything as standard WooCommerce “order item meta data” so you can use the standard WooCommerce functions to get the values out of the order.

    You can probably use something like wc_get_order_item_meta(). The meta key is the label you added in the settings of the field.

    Thread Starter chatingtou

    (@chatingtou)

    It works, Thanks

    Plugin Author Wombat Plugins

    (@maartenbelmans)

    Glad it works! Please consider leaving a quick rating here to support our free plugin and support. That would be much appreciated as it helps us maintain the plugin.

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