• Resolved petfresh

    (@petfresh)


    Hi, Looked through the rest of the support topics and couldn’t see anyone have a similar question.

    Is it possible to add order meta for how many child orders there are? For Example:
    Let’s say you ordered 2 Shirts, 1 Sock, and 3 Pants. Assuming that the splitting is set to create child orders for each product. Each child would have this in the meta.
    Order #1001-1
    META- Split 1/3

    Order #1001-2
    META- Split 2/3

    Order #1001-3
    META- Split 3/3

    Thank you in advance!

    Kind Regards,
    Tristan Jones

Viewing 1 replies (of 1 total)
  • Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Dear Tristan,

    There is a WooCommerce action hook “woocommerce_order_number” for which I am using a callback function “wos_change_woocommerce_order_number”. Line 5264 in functions.php. I want you to have a look, maybe it will give you the answer. Short answer is, we are managing the same thing in a different way. There is a checkbox available on settings page “Mask Child Orders with a Sequential”. Storing this information in order meta won’t work as deletion will require immediate update in other siblings as well. So we are doing this thing with runtime query. I hope you will understand.

    Thanks,
    Fahad

Viewing 1 replies (of 1 total)
  • The topic ‘How many times split’ is closed to new replies.