• Resolved beeky2

    (@beeky2)


    Hello,

    I’m experiencing this issue, will try to explain the scenario.
    I’ve installed WooCommerce, Dokan-lite, Dokan-pro a pluging that adds some extra fields to WooCommerce Customer fields.

    I’ve seen the issue is related to Dokan Lite:

    When an order includes products from only one vendor, the email and the vendor’s dashboard are showing the full customer’s details (default WooCommerce fields + Plugin’s additional fields) -> OK

    When an order includes products from multiple vendors, the email and the vendor’s dashboard are showing just the default WooCommerce customer’s fields. -> NO GOOD

    Is there a function, action or filter to look for this?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter beeky2

    (@beeky2)

    I’ve found the function that create sub orders in /dokan-lite/includes/Order/Manager.php

    public function create_sub_order( $parent_order, $seller_id, $seller_products )

    i see it has an array containing WooCommerce’s default fields:

    $bill_ship = array(
                'billing_country', 'billing_first_name', 'billing_last_name', 'billing_company',
                'billing_address_1', 'billing_address_2', 'billing_city', 'billing_state', 'billing_postcode',
                'billing_email', 'billing_phone', 'shipping_country', 'shipping_first_name', 'shipping_last_name',
                'shipping_company', 'shipping_address_1', 'shipping_address_2', 'shipping_city',
                'shipping_state', 'shipping_postcode'
            );

    Would be great if it can add even extra fields like it already does when the order includes only one vendor.

    Thread Starter beeky2

    (@beeky2)

    I’ve solved.

    I’m using this hook ‘dokan_checkout_update_order_meta’ to add the user extra fields to the sub order.

    Hello @beeky2 ,

    That’s awesome input for other Dokan users as well.

    Please be sure to write to us via our support channel if you have questions related to Dokan Pro if you face any other issue in the future.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘If order has sub orders the customer details are incoplete’ is closed to new replies.