• Resolved photogenic

    (@photogenic)


    This is a developer to developer question, probably more fit for github. I also coded a way to merge orders but I have been plagued by a bug on our live environment which I just can’t seem to fix: Sometimes merged orders are combined with random client orders.

    When looking at your code to see if you maybe had a smart idea how to approach some things, I noticed that you commented out wc_create_order function and used wp_insert_post instead. Is there any reason for it?

    Nothing else struck me as wildly different from how I did it…

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

    (@fahadmahmood)

    I am available on slack too, anyways it is not about creating an order but the selection criteria and I do not rely on the functions totally. Where I need the accuracy, I use custom MySQL queries to make sure if I am merging the correct set of orders?

Viewing 1 replies (of 1 total)
  • The topic ‘Dev – wp_insert_post’ is closed to new replies.