Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mhalmann

    (@mhalmann)

    This is my own shipping plugin, that displays global settings (large form) and shipping zone specific settings (small form). If you want to replicate this on your own, then make a shipping plugin, that has 2 different forms. (one global $this->form_fields and one shipping zone specific, $this->instance_form_fields). Then put on WooCommerce 7.4.0 and there it should be.

    The problem is that shipping zone specific settings are displayed in a place where the global settings should be displayed.

    From the stack trace I can see that my plugin is loaded first and then the “problem” steps in, which loads the shipping zones and “replaces” the form.

    ~/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Shipping/ShippingController::hydrate_client_settings()

    Link to stack trace: https://snipboard.io/TqoNY4.jpg

    If I disable this “hydrate_client_settings()” then the issue is gone.

    I think this is outside the scope of site health itself. Somehow the properties of the shipping methods are cached in a place where they should not. I am looking a response from someone who is very familiar with the WooCommerce code.
    This is not the first time this issue has appeared. You used to have a “Wizard” that checks if the shipping methods are set up. This wizard called out the shipping zones same way as the current ShippingController and caused the exact same behaviour. Now it is just that, I am able to replicate the issue on my own machine, while previously only few customers got that behaviour.

    Thread Starter mhalmann

    (@mhalmann)

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