• Resolved kmraja

    (@kmraja)


    Hi

    After cloning the order, can we get the same meta data whatever saved for previously form the wp_postmeta table? Is it possible?

    Thanks

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

    (@fahadmahmood)

    It was expected to be cloned same/all of the fields, can you please dig it more so you can see what is missing? Query the the order_id and make sure the fields cloned.

    Thread Starter kmraja

    (@kmraja)

    Hi

    Thanks for the reply.

    I have the event booking website with generating tickets for the purchased person. These tickets information are not getting clone. These details were saved in wp_postmeta table in the DB. Mow, only the order details are cloning. Is it possible to clone all the these meta data?

    Thanks

    • This reply was modified 1 year, 8 months ago by kmraja.
    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Yes, it is possible to clone and even you can hook the function as well.

    add_action('wc_os_after_order_split', 'yourfunc_after_order_split_callback', 10, 2 );
    function yourfunc_order_split_callback($new_order_ids=array(), $originalorderid=0){
    Thread Starter kmraja

    (@kmraja)

    Thanks for the reply. Can I get the function?

    Since I’m not a developer, unable to write.

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Actually I usually prefer to release a new version for the plugin users convenience but whenever a developer is extremely busy so either adds a new hook or provide a way around like I did. I cannot provide a function now, sorry for that.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Clone order with meta data’ is closed to new replies.