• Resolved pavelevap

    (@pavelevap)


    Hi,

    I had some shipping methods based on general tutorials, see for example here.

    But now these methods are automatically enabled, even if not checked in adminisitration. It seems to me that $this->enabled is ignored in latest WooCommerce version?

    Thank you!

    https://wordpress.org/plugins/woocommerce/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    To simplify things, enabled is not stored at gateway level any longer. It’s stored in the shipping zone methods database table and toggled at zone level.

    Thread Starter pavelevap

    (@pavelevap)

    OK, thank you! So all older shipping methods are “broken” because it is not possible to disable them through administration? There is no backwards compatibility and we should add support for newest WooCommerce version with shipping zones immediatelly? Or is there any quick and easy fix available?

    Plugin Contributor Mike Jolley

    (@mikejolley)

    No, old shipping methods are left as-is and use the same ‘enabled’ field from before.

    Thread Starter pavelevap

    (@pavelevap)

    Yes, but this “enabled” field from before does not work? Even if I uncheck it, shipping method is still available during checkout?

    Plugin Contributor Mike Jolley

    (@mikejolley)

    No issues I’m aware of regarding ‘enabled’ for the old methods.

    Thread Starter pavelevap

    (@pavelevap)

    1) Please take this code and save it as plugin, then activate.

    2) Change $this->enabled to “no”.

    3) Go to checkout and you will see that this shipping method is still active. It is not possible to disable this shipping method.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Make sure you turn on shipping debug mode in settings -you may just be seeing cached rates.

    Thread Starter pavelevap

    (@pavelevap)

    No, there is no problem with cache, Shipping debug mode is on. I have also similar reports from other users…

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Thread Starter pavelevap

    (@pavelevap)

    Thank you!

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Older shipping methods enabled by default?’ is closed to new replies.