• Resolved amir3065

    (@amir3065)


    hi
    We have several vendors, but all orders are sent from one place
    Our problem is that when the customer place an order and for each supplier, the shipping fee is added to the amount.
    That is, if the order must be supplied from 3 vendors, the shipping cost will be tripled
    We want the dokan not to affect the delivery methods.
    Thank you for your guidance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support sazdhossain

    (@sazdhossain)

    Hi @amir3065,

    To disable the split shipping feature from Dokan, you can add the following snippet to your child theme’s functions.php file:

    #-- Remove Split Shipping | Dokan Lite --#

    function dokan_lite_remove_split_shipping() { dokan_remove_hook_for_anonymous_class( 'woocommerce_cart_shipping_packages', 'WeDevs\Dokan\Shipping\Hooks', 'split_shipping_packages', 10 ); dokan_remove_hook_for_anonymous_class( 'woocommerce_checkout_create_order_shipping_item', 'WeDevs\Dokan\Shipping\Hooks', 'add_shipping_pack_meta', 10 ); dokan_remove_hook_for_anonymous_class( 'woocommerce_shipping_package_name', 'WeDevs\Dokan\Shipping\Hooks', 'change_shipping_pack_name', 10 ); }

    add_action( 'wp_head', 'dokan_lite_remove_split_shipping' );

    Hope this helps!

    Thread Starter amir3065

    (@amir3065)

    this code is not working!

    I opened the hooks file in the shipping folder and converted the following codes into comment and the problem was solved.

    add_filter( 'woocommerce_cart_shipping_packages', [ $this, 'split_shipping_packages' ] );
    add_action( 'woocommerce_checkout_create_order_shipping_item', [ $this, 'add_shipping_pack_meta' ], 10, 4 );
    add_filter( 'woocommerce_shipping_package_name', [ $this, 'change_shipping_pack_name' ], 10, 3 );
    Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @amir3065,

    Great to know that the issue has been resolved. As the purpose of this topic has been served, I am marking this as resolved. Feel free to open a new one for any further queries or issues.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘The problem of shipping methods’ is closed to new replies.