Skip to content

Instantly share code, notes, and snippets.

@J-H-Mojumder
Created May 13, 2022 03:42
Show Gist options
  • Save J-H-Mojumder/72b70dc02394a141c54df2c38c86cc9f to your computer and use it in GitHub Desktop.
Save J-H-Mojumder/72b70dc02394a141c54df2c38c86cc9f to your computer and use it in GitHub Desktop.
Show only one shipping fee in case of multivendor checkout
<?php
//Show only one shipping fee in case of multivendor checkout
remove_filter( 'woocommerce_cart_shipping_packages', 'dokan_custom_split_shipping_packages' );
remove_filter( 'woocommerce_shipping_package_name', 'dokan_change_shipping_pack_name');
remove_action( 'woocommerce_checkout_create_order_shipping_item', 'dokan_add_shipping_pack_meta');`
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment