Plugin is calculating shipping charges multiple times!

[ad_1]

Hello @vgnavada,

One major update of Dokan version 3.7.19 is the split shipping functionality in the Dokan Lite version. You will be able to use the split shipping functionality in the updated version of the Dokan Lite version.

Regarding your request to disable the split shipping functionality, any default option is currently unavailable. However, I have a code snippet that you can apply to achieve this. Any default option is unavailable to remove the split shipping function. Kindly apply the following code snippet to the function.php file of your child’s theme.

#-- 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( '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.

I hope this information will be helpful.

Thanks!

Hello @fayeakuzzaman

Thank you for the response.

We added the code and now it’s working fine ☺️.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer