Daniel Shaw
Forum Replies Created
-
Hello @clintd75
Thanks for the links but unfortunately I can’t access them. You should be able to change the permissions on those files to allow viewing without a Google account.
In the meantime: if you’re on WooCommerce 7.2, please note there’s a 7.2.2 release now available: https://developer.woocommerce.com/2022/12/21/woocommerce-7-2-2-fix-release/. It’s worth updating to the latest version, especially since the initial 7.2 release was buggy.
Hello @clintd75
There’s a few details that will help with troubleshooting this:
- The version of WooCommerce you currently have installed
- A screenshot of your Shipping page (find this at WooCommerce > Setttings > Shipping)
- A screen shot of a shipping method you’ve set up
- A link to the site, if currently visible
Once you provide these details we’ll have a good starting point to work out what the issue might be.
Forum: Plugins
In reply to: [New Zealand Shipping Zones for WooCommerce] No Shipping Options FoundThanks for the update, great to hear it’s back on track!
Just to help out anyone else who may come across this thread: based on your update and presuming you upgraded to WooCommerce 7.1.0, the NZ shipping zones bug in that release is almost certainly behind the initial issue you observed.
This plugin has been updated to support the new NZ region codes WooCommerce now uses but currently requires a fresh install i.e upgrading this plugin doesn’t update the NZ region codes previously stored in the database and used internally by WooCommerce to the new format (WooCommerce has a fix pending that will handle this in future). Per the steps in my first reply, a fresh install means removing all shipping zones previously added by this plugin before reinstalling and activating. Alternately, the applicable regions can be manually reset for the two non-rural shipping zones.
One last thing: this plugin can be deactivated and deleted immediately after install. Once the shipping zones have been created they don’t depend on the plugin remaining active ??
Forum: Plugins
In reply to: [New Zealand Shipping Zones for WooCommerce] No Shipping Options FoundHello @alannahjordan
Thank you for the screenshots ??
Based on this it looks like there’s a problem with the general configuration of your shipping zones. This means the issues you’re experiencing are not related to either this plugin or the recent WooCommerce NZ shipping regions bug.
Here’s the two main issues I can see with how you have shipping zones currently configured:
Missing shipping methods
For the North Island and South Island shipping zones this plugin creates, there’s no shipping rates assigned. This is what generates the “No shipping options found” notice. You can see the description “No shipping methods offered to this zone” for each of these zones in this screenshot: https://ibb.co/wsHjDsT. If you assign shipping methods to each zone you should no longer see the error notice.Shipping zone order
In this screenshot https://ibb.co/tHyMgcW it looks like the North Island (Rural) and South Island (Rural) zones this plugin creates are positioned after all the other zones. This means they can only be applicable if none of the other shipping zones apply, but this can never be true because the North Island and South Island zones will be applied first.If you need to set different rates per region, you’ll need to create them manually in Shipping Zones rather than use this plugin.
Forum: Plugins
In reply to: [New Zealand Shipping Zones for WooCommerce] No Shipping Options FoundHi @alannahjordan,
Can you please provide a screenshot of your shipping zones? Take a look at the first post in this recent thread for an example of what this will look like: https://www.ads-software.com/support/topic/code-dropping-out-with-latest-woo-update/.
Updating this plugin will not fix the current bug in WooCommerce 7.1.0 related to New Zealand shipping regions. The next WooCommerce update will hopefully include this fix: https://github.com/woocommerce/woocommerce/pull/35669.
To reinstall this plugin successfully, you need to do the following:
- deactivate and uninstall the plugin
- delete the four shipping zones the plugin generates
- install the plugin
Step 2 is necessary because the plugin won’t overwrite an existing shipping zone.
You’ll only need to create additional shipping zones if your requirements are more complex than the basic set this plugin sets up.
WooCommerce have now confirmed it’s a bug in the 7.1.0 release, likely to be addressed shortly: https://github.com/woocommerce/woocommerce/issues/35535#issuecomment-1311654228
Thanks again for taking the time, @natemossp !
To close this out, I’ve just tested manually setting up zone regions with a fresh install of WooCommerce 7.0.1, then upgrading to 7.1.0. I’m seeing the same behaviour: the regions are no longer assigned to a zone after the upgrade.
Hopefully can be addressed on the WooCommerce side ?? https://github.com/woocommerce/woocommerce/issues/35535
Hi again @natemossp
I’ve made an update to the plugin to support the new region code format in WooCommerce 7.1.0 and added an update to the FAQ ??
In the interests of having a fix quickly in place, this update will only take effect when installing a fresh version of the plugin (i.e. deleting the plugin-generated shipping zones before reactivating the plugin). I need to do some thinking about whether it’s worth extending the plugin to update shipping region codes generated prior to the latest WooCommerce release.
This means, depending on your current shipping zones configuration, you may still find it easiest to manually add back in the zone regions that disappeared from the North Island and South Island shipping zones.
Thanks again for spotting the issue!
Source of this issue: https://github.com/woocommerce/woocommerce/pull/35011/files
Hi @natemossp,
Thanks for the heads-up and clear screenshot, much appreciated!
I’ve now tested the plugin with WooCommerce 7.1.0 and can confirm I’m seeing the same behaviour. I’ll look into resolving this when I next get a free moment.
What should be happening is the non-rural zones have their zone region data assigned from WooCommerce’s built-in region list. The temporary fix for now (presuming you don’t downgrade to an earlier version of WooCommerce) is to manually reassign the correct zone regions for the North Island and South Island zones, as so:
North Island: Northland, Auckland, Waikato, Bay of Plenty, Taranaki, Gisborne, Hawke’s Bay, Manawatu-Wanganui, Wellington
South Island: Nelson, Malborough, Tasman, West Coast, Canterbury, Otago, Southland
Forum: Themes and Templates
In reply to: [Twenty Twenty-Two] Eliminate hamburger in Mobile widthYou can also manage this via the Navigation block settings. Look for the Overlay Menu toggle in the Display section:
- Off: burger will never appear
- Mobile: burger appears at a predefined breakpoint
- Always: burger always appears
Great ??
enqueue_block_editor_assets
is the hook to use for loading JS here:function mzvbycfihn_editor_scripts() { // Enqueue your script here with wp_enqueue_script(). } add_action( 'enqueue_block_editor_assets', 'mzvbycfihn_editor_scripts' );
Forum: Themes and Templates
In reply to: [Twenty Twenty-Two] Calling Custom or Global Colors in CSSIt looks like the issue is the property naming isn’t quite right.
For example, the Primary property will look like
--wp--preset--color--primary
in global styles. Note the double hyphens here! Though, in the case of “Custom red” there’ll just be the single hyphen between “custom” and “red”.To assign this in your CSS you’d do:
border-color: var(--wp--preset--color--primary);
Hmm, I can confirm that snippet works as I’m using it for my own themes.
You won’t see
<link>
tags for those assets. Instead, the contents ofpm_admin_bundle.css
and the Google font will be inlined within<style></style>
tags in the<head>
of the iframe.A quick way to check if the
pm_admin_bundle.css
styles have been injected: search for.editor-styles-wrapper
. All of your styles get automatically wrapped in that class to stop them leaking into other parts of the editor UI.Two questions:
– is your content being styled correctly, and it’s just a case of not seeing where the assets are loaded?
– do you have any JS errors in your browser console?Using the
add_editor_style()
function should get your stylesheets enqueued correctly. To load more than one stylesheet, use an array:function mzvbycfihn_editor_styles() { add_editor_style( array( 'stylesheet-one.css', 'stylesheet-two.css', ) ); } add_action( 'after_setup_theme', 'mzvbycfihn_editor_styles' );