Woocommerce quick checkout form [closed]
I got it by using wc_create_order here is the full code `if ( isset( $_POST[‘submitted’] ) ) { $address = array( ‘first_name’ => $_POST[‘fullname’], ’email’ => $_POST[’email’], ‘phone’ => $_POST[‘phone’], ‘address_1’ => $_POST[‘address’], ‘city’ => $_POST[‘city’], ); $order = wc_create_order(); $order->add_product( get_product( get_the_id() ), $_POST[‘quantity’] ); $order->set_address( $address, ‘billing’ ); $order->set_address( $address, ‘shipping’ ); $order->set_payment_method( … Read more