Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

Additional user meta and order meta shows only on Parent Order

WCMp Core

Resolved
Viewing 4 reply threads
  • Author
    Posts
    • #97484
      vargas.flavio
      Participant

      We have some additional custom fields required by Brazilian market on checkout form that goes to the order as you can see in the image bellow.

      Those fields are added to the order using the hook “woocommerce_checkout_create_order”.

      The problem is that those fields aren´t passed to the sub-order.

      Maybe if you tell Us wich hook is used by WCMP to create the sub-order, We can try hook our functions to it.

      Or if You have a snippet that does it.

      Regards
      Flavio Vargas

    • #97645

      Hi @vargas.flavio, thanks for getting in touch with us.

      Since you are using 3rd party plugin to add custom fields in the checkout, You need to follow below steps to achieve the custom fields data with suborder :
      1. Ask your plugin author about fetching the custom field data
      2. Use our hook to display custom field data in your desirable section( ex : order details page )
      do_action(‘wcmp_vendor_dash_order_items_after_line_items’, $order->get_id());
      3. fetch the custom field data ( Process provided by your plugin author ) using the suborder id which is given with our hook

    • #102562
      halisonbianco
      Participant

      Hello!

      I need the same thing, I need to add the custom field that appears in the main order (_billing_cpf) to be added in the sub orders …

      Thanks

    • #102581
      WCMp Admin
      Keymaster

      Hi @halisonbainco,

      You need to follow below steps to achieve the custom fields data with suborder :
      1. Ask your plugin author about fetching the custom field data
      2. Use our hook to display custom field data in your desirable section( ex : order details page )
      do_action(‘wcmp_vendor_dash_order_items_after_line_items’, $order->get_id());
      3. fetch the custom field data ( Process provided by your plugin author ) using the suborder id which is given with our hook

    • #110053

      We have not received any update from you for a long. Hope this ticket is already been resolved.

      We are now closing this ticket. Kindly create a new one if you need any further help.

Viewing 4 reply threads

The topic ‘Additional user meta and order meta shows only on Parent Order’ is closed to new replies.