How Can I Create An Woocommerce Order Programmatically

How can I create an Woocommerce Order Programmatically

You can use wc_create_order() to setup an Woocommerce order object and assign data you would like.

0 0 vote
Article Rating
Notify of
Newest Most Voted
Inline Feedbacks
View all comments
Sajjad Hossain Sagor
8 months ago

Great Post! But how do i assign this order to an customer? And Update Status ‘completed’… isn’t it should be ‘wc-completed’?? And if you can please publish a post about how to trigger woocommerce payment process like checkout but it should process in the background!!