Support » Plugin: WC Marketplace » Shipping cost management in DB

  • Resolved Casper Braske



    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 one shipping_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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Khokan Sardar


    Hi @casper-braske Thanks for reaching WCMp Support!!

    Currently, WC Marketplace creates only one shipping item per vendor. Having said that, we will soon integrate the option where vendor can have multiple shipping items.

    You can defiantly add your code in out GitHub.

    Regarding the deprecated hook, we will fix this in our next update.

    Currently, WC Marketplace creates only one shipping item per vendor.

    Actually I’m authoring a plug-in that separates packages by vendors to have their shipping calculated based on the vendors post code (method used by Correios shipping company). That’s why they can be separated into more than one package in my application.

    A simple filter will solve my issue and might be helpful to others in the future.

    And thank you very much for responding so quickly.

    Plugin Contributor Khokan Sardar


    Hi @casper-braske, you can defiantly contribute this code in our GitHub. We will review this further and get back to you.

    Just to keep you posted, we will soon publish an page, where we will add all our compatible plugin lists. We would be happy to add your plugin too. You can get in touch with us over our forum also –

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shipping cost management in DB’ is closed to new replies.