• Hello,

    I am using your plugin for creating order on product page. When I click and fill the enquiry form, the order is created in admin which is fine. But when I check the customer which is related to order shows admin user.

    It should be the customer email in customer drop down not Admin email. so I am not able to check any order in customer dashboard(my account page).

    This is the code you are using to assign the customer to order but it’s not working.

    $currentuser = get_current_user_id();
    $order = wc_create_order(array(
    ‘customer_id’ => $currentuser,
    ));
    $order->set_customer_id(get_current_user_id());

    Note : I updated plugin but the issue is still there. Please suggest something.

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Admin – Order email always shows admin email’ is closed to new replies.