• Resolved dadatdev

    (@dadatdev)


    On a previous forum topic here this workaround to disable dokan lite shipping fee to each item was said to work but I cannot ge this to work on my current version of dokan 3.9.3. Is there something I am missing?

    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' );
Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m looking as well the same solution (because if clients order from 3 different vendors don’t want to have three shipping options, need only one. Please share if you’ll find a solution. Thank you! [email protected]

    Would be great that shipping would be measured of total cart sum, not of separate items (lines on checkout). Based on sum would be fine to calculate shipping.

    Plugin Support Mobin Chowdhury

    (@mobin210385)

    Hello?@dadatdev and @dkiaulakis,

    ?Kindly apply the following code snippet to the?functions.php?the file of your child’s theme.

    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( 'init', 'dokan_lite_remove_split_shipping' );

    Once you’ve added this code snippet, the split shipping functionality will be disabled after applying the shipping settings.

    Thanks!

    Thread Starter dadatdev

    (@dadatdev)

    Thanks MD Mobin Chowdhury This worked!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Dokan plugin adding the Shipping fee to each item of cart & checkout’ is closed to new replies.