• Resolved Vivek Athalye

    (@vnathalye)


    Hi Dan,

    I’m exploring the possibility of using WBS for a multivendor plugin.
    I’ve managed to register WBS with the multivendor plugin. And individual vendor can select WBS from their shipping settings.
    The issue I’m facing is: When the vendor tries to edit WBS settings,(using Edit link on specific shipping zone page), the multivendor plugin opens up a modal dialog but it can not show any fields related to WBS.

    I know that, even in a single vendor scenario, when site admin tries to edit WBS settings, it doesn’t show up in modal dialog and instead redirects the user to wp-admin/admin.php?page=wc-settings&tab=shipping&instance_id=***.

    I can tweak the multivendor plugin (myself or ask the author) to not show the modal dialog and redirect the user to the given URL in case of WBS, but the problem is: individual vendors will not have access to WC Settings page wp-admin/admin.php?page=wc-settings******.

    Can you suggest a better approach for making WBS available for multiple vendors?

    Multi Vendor Plugin: https://www.ads-software.com/plugins/dc-woocommerce-multi-vendor/ (Version: 3.3.4)
    WC Version: 3.5.7
    WP Version: 4.9.10
    PHP Version: 7.0.33

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Dan

    (@dangoodman)

    Hi Vivek,

    Thank you for the detailed explanation.

    We have a technical issue with showing WBS settings in the popup mode. The plugin also shows its own large popup to edit settings of a single shipping rule.

    In WooCommerce, shipping methods (descendants of the WC_Shipping_Method class) declare whether they support the popup mode or not, with the WC_Shipping_Method->supports property. It can have instance-settings and/or instance-settings-modal switches. So, since it’s a common approach induced by WooCommerce, there should be other shipping plugins without support of the popup mode (instance-settings-modal).

    Given that, I’m wondering wouldn’t it be better for the multi-vendor plugin to support both modes thus to cover more shipping plugins out of the box? Actually, in theory, adding support for both modes would make the multi-vendor plugin compatible with all shipping plugins.

    • This reply was modified 5 years, 11 months ago by Dan.
    • This reply was modified 5 years, 11 months ago by Dan.
    • This reply was modified 5 years, 11 months ago by Dan.
    Thread Starter Vivek Athalye

    (@vnathalye)

    Yes, I agree with you Dan. And I know about supports property and its values instance-settings & instance-settings-modal.

    But as I said, the WBS edit link takes the user to wp-admin/admin.php?page=wc-settings&tab=shipping&instance_id=***. This link works for site admin but doesn’t work for individual vendors. They don’t have access to page=wc-settings.

    That’s where I’m looking for your help: can we have a different page to edit the WBS rules? This page will / should be accessible by all vendors. If we can have such a link, I can tweak the multivendor plugin (myself or ask the author) to take user to that page.

    Plugin Author Dan

    (@dangoodman)

    The wp-admin/admin.php?page=wc-settings&tab=shipping&instance_id=*** url is controlled by WooCommerce, not by WBS. The url would be same for all other shipping plugins. I believe, you can learn how WooCommerce renders shipping method settings pages and do it in a similar way.

    • This reply was modified 5 years, 11 months ago by Dan.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘want to support WBS for a multivendor plugin’ is closed to new replies.