Shipping cost management in DB
-
Hi.
I’m having an issue with your commission splitting process. In file
wcmp-core-functions.php
, lines 1743 to 1751, you are assuming that each vendor has only oneshipping_item
, which won’t be true if one splits a vendor order into several packages. WooCommerce now uses packages to calculate shipping and, if I’m not mistaken, charging shipping by product seems a little outdated.My suggestions are:
– Add a filter to manipulate$vendor_shipping
;
– Add a means to manipulate the query args.If I can be of help coding, I can send you a PR on GitHub.
Also, your code is issuing warnings about deprecated hooks at checkout:
[04-Apr-2018 01:49:42 UTC] woocommerce_add_order_item_meta is deprecated since version 3.0.0! Use woocommerce_new_order_item instead.
Best regards.
- The topic ‘Shipping cost management in DB’ is closed to new replies.