[wp-trac] [WordPress Trac] #54501: Addition of each vendors fees in one shipping method_Woocommerce+Dokan
WordPress Trac
noreply at wordpress.org
Wed Nov 24 08:23:25 UTC 2021
#54501: Addition of each vendors fees in one shipping method_Woocommerce+Dokan
-------------------------------------+-------------------------------------
Reporter: afronaturopathie | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 5.8.2
Severity: major | Keywords: dev-feedback needs-
Focuses: administration, coding- | codex
standards |
-------------------------------------+-------------------------------------
I use Dokan to handle my wordpress multivendor website. I am in charge of
dealing with all clients deliveries. So vendors are not responsible for.
However, in the checkout page, the fees of each vendors are separately
display and I don't want it to be this way. The below code help me to
resolve one part of my issue as now, only one shipping fees appear in the
check out page. However, with this code, the shipping fees per vendors are
added. Ex : if vendors fees A is 4$ and vendor B also 4$, the result will
be 8$. As I apply a unique flat rate for all deliveries I don't want the
addition of each vendors fees. Hope is clear as English is not my native
language and espacially I hope someone could save me :).
Thank you !
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')
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54501>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list