Province/State/County/Region issue
-
In order for Canada Post to properly calculate shipping fees for an order to somewhere in Canada/USA, a province/state is required. Because of this, I have made this field required.
When some countries are selected (e.g., Germany), the state/province/region/county field disappears. The order still demands this field be entered, and the order cannot be completed.
Are you able to offer any assistance?
-
Hello,
In order for Canada Post to properly calculate shipping fees for an order to somewhere in Canada/USA, a province/state is required. Because of this, I have made this field required.
How did you make province/state required? By default, this field should be required already:
Link to image: https://snipboard.io/bm9BHz.jpg
If you’d like us to take a closer look, please share a copy of your site’s System Status. You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.
Hi @maykato I think I had made province not mandatory before, because of the issue I am experiencing. I took some screen shots, but don’t see how I can upload them. In the screenshot you have provided, Canada is the country/region. I find that if the country is changed to Germany (and other countries), the Province box, where it says “Select an option…” completely disappears. For customers from Germany, and other countries, they can’t choose a province, and since doing so is required, they can’t complete the order.
I am pasting the System Report below as you requested.
### WordPress Environment ### WordPress address (URL): https://www.transportbooks.com Site address (URL): https://www.transportbooks.com WC Version: 6.2.0 REST API Version: ? 6.2.0 WC Blocks Version: ? 6.7.3 Action Scheduler Version: ? 3.4.0 WC Admin Version: ? 3.1.0 Log Directory Writable: ? WP Version: 5.9 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: en External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.3.33 PHP Post Max Size: 256 MB PHP Time Limit: 300 PHP Max Input Vars: 1000 cURL Version: 7.81.0 OpenSSL/1.1.1m SUHOSIN Installed: – MySQL Version: 5.7.37-cll-lve Max Upload Size: 256 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 6.2.0 WC Database Prefix: wp_ Total Database Size: 445.43MB Database Data Size: 402.66MB Database Index Size: 42.77MB wp_woocommerce_sessions: Data: 228.85MB + Index: 0.83MB + Engine MyISAM wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_order_items: Data: 0.08MB + Index: 0.05MB + Engine MyISAM wp_woocommerce_order_itemmeta: Data: 0.48MB + Index: 0.35MB + Engine MyISAM wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM smackuci_events: Data: 0.00MB + Index: 0.00MB + Engine MyISAM smackuci_history: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_actionscheduler_actions: Data: 59.61MB + Index: 14.76MB + Engine MyISAM wp_actionscheduler_claims: Data: 0.59MB + Index: 1.78MB + Engine MyISAM wp_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_actionscheduler_logs: Data: 10.54MB + Index: 5.52MB + Engine MyISAM wp_aws_index: Data: 24.81MB + Index: 0.00MB + Engine MyISAM wp_bwg_album: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_bwg_album_gallery: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_bwg_gallery: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_bwg_image: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_bwg_image_comment: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_bwg_image_rate: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_bwg_image_tag: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_bwg_option: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_bwg_shortcode: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_bwg_theme: Data: 0.03MB + Index: 0.00MB + Engine MyISAM wp_commentmeta: Data: 0.15MB + Index: 0.08MB + Engine MyISAM wp_comments: Data: 0.85MB + Index: 0.15MB + Engine MyISAM wp_cpabc_appointments: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cpabc_appointments_discount_codes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cpabc_appointment_calendars: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cpabc_appointment_calendars_data: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cpk_wpcsv_export_queue: Data: 0.12MB + Index: 0.07MB + Engine MyISAM wp_cpk_wpcsv_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_import_detail_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_import_log_detail: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_import_postID: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_litespeed_img_optm: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_litespeed_optimizer: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_options: Data: 8.50MB + Index: 1.16MB + Engine MyISAM wp_pmxi_files: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pmxi_history: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pmxi_images: Data: 0.03MB + Index: 0.01MB + Engine MyISAM wp_pmxi_imports: Data: 0.15MB + Index: 0.00MB + Engine MyISAM wp_pmxi_posts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pmxi_templates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_postmeta: Data: 36.74MB + Index: 11.38MB + Engine MyISAM wp_posts: Data: 13.33MB + Index: 1.77MB + Engine MyISAM wp_qss: Data: 0.02MB + Index: 0.01MB + Engine MyISAM wp_smackcsv_file_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_smush_dir_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_spidercalendar_calendar: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_spidercalendar_event: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_spidercalendar_event_category: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_spidercalendar_theme: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_spidercalendar_widget_theme: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_termmeta: Data: 0.06MB + Index: 0.05MB + Engine MyISAM wp_terms: Data: 0.02MB + Index: 0.05MB + Engine MyISAM wp_term_relationships: Data: 0.32MB + Index: 0.64MB + Engine MyISAM wp_term_taxonomy: Data: 0.02MB + Index: 0.04MB + Engine MyISAM wp_ultimate_csv_importer_acf_fields: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ultimate_csv_importer_log_values: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ultimate_csv_importer_manageshortcodes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ultimate_csv_importer_mappingtemplate: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ultimate_csv_importer_media: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ultimate_csv_importer_shortcodes_statusrel: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ultimate_csv_importer_shortcode_manager: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_usermeta: Data: 0.14MB + Index: 0.05MB + Engine MyISAM wp_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcpdf_invoice_number_2021: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcpdf_packing_slip_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_notes: Data: 0.03MB + Index: 0.00MB + Engine MyISAM wp_wc_admin_note_actions: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_wc_category_lookup: Data: 0.02MB + Index: 0.03MB + Engine MyISAM wp_wc_customer_lookup: Data: 0.02MB + Index: 0.02MB + Engine MyISAM wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_order_product_lookup: Data: 0.05MB + Index: 0.05MB + Engine MyISAM wp_wc_order_stats: Data: 0.03MB + Index: 0.03MB + Engine MyISAM wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine MyISAM wp_wc_product_meta_lookup: Data: 0.45MB + Index: 0.44MB + Engine MyISAM wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfBlockedIPLog: Data: 0.03MB + Index: 0.02MB + Engine MyISAM wp_wfBlocks7: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfConfig: Data: 0.42MB + Index: 0.02MB + Engine MyISAM wp_wfCrawlers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfFileChanges: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfFileMods: Data: 6.99MB + Index: 1.49MB + Engine MyISAM wp_wfHits: Data: 0.33MB + Index: 0.07MB + Engine MyISAM wp_wfHoover: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfIssues: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_wfKnownFileList: Data: 3.60MB + Index: 0.45MB + Engine MyISAM wp_wfLiveTrafficHuman: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfLocs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfLogins: Data: 0.14MB + Index: 0.04MB + Engine MyISAM wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfNotifications: Data: 0.04MB + Index: 0.01MB + Engine MyISAM wp_wfPendingIssues: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfReverseCache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfSNIPCache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfStatus: Data: 0.08MB + Index: 0.04MB + Engine MyISAM wp_wfTrafficRates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_square_customers: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_wpgmza: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpgmza_categories: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpgmza_category_maps: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpgmza_circles: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpgmza_maps: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpgmza_polygon: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpgmza_polylines: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpgmza_rectangles: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_WP_SEO_404_links: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_WP_SEO_Cache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_WP_SEO_Redirection: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_WP_SEO_Redirection_LOG: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wt_iew_action_history: Data: 0.03MB + Index: 0.00MB + Engine MyISAM wp_wt_iew_cron: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wt_iew_ftp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wt_iew_mapping_template: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_yoast_indexable: Data: 4.09MB + Index: 0.56MB + Engine MyISAM wp_yoast_indexable_hierarchy: Data: 0.11MB + Index: 0.32MB + Engine MyISAM wp_yoast_migrations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_yoast_primary_term: Data: 0.04MB + Index: 0.04MB + Engine MyISAM wp_yoast_seo_links: Data: 0.07MB + Index: 0.02MB + Engine MyISAM wp_yoast_seo_meta: Data: 0.18MB + Index: 0.19MB + Engine MyISAM ### Post Type Counts ### amn_exact-metrics: 1 attachment: 8798 birs_location: 1 birs_service: 1 birs_staff: 3 custom_css: 1 ecwd_calendar: 1 ecwd_event: 149 ecwd_organizer: 24 ecwd_venue: 24 nav_menu_item: 6 oembed_cache: 6 page: 10 post: 82 product: 5258 revision: 1709 shop_order: 330 shop_order_refund: 21 tribe_events: 12 tribe_organizer: 1 tribe_venue: 1 wp_global_styles: 1 yith_wc_surveys: 4 yith-wcbm-badge: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (18) ### Akismet Anti-Spam: by Automattic – 4.2.2 API KEY for Google Maps: by GeoDirectory – 1.2.0 WooCommerce Canada Post Shipping Plugin with Print Label: by PluginHive – 2.6.9 Yoast Duplicate Post: by Enrico Battocchi & Team Yoast – 4.4 Facebook for WooCommerce: by Facebook – 2.6.9 Header and Footer Scripts: by Digital Liberation – 2.2.1 Pay in Store WooCommerce Payment Gateway: by Papaki – 1.2.6 Spacer: by Justin Saad – 3.0.5 The Events Calendar: by The Events Calendar – 5.14.0.1 Advanced Editor Tools (previously TinyMCE Advanced): by Automattic – 5.6.0 Virtue/Ascend/Pinnacle Toolkit: by Kadence WP – 4.9.6 Checkout Fields Manager for WooCommerce: by QuadLayers – 5.5.4 WooCommerce - Store Exporter: by Visser Labs – 2.7.1 WooCommerce Extra Product Sorting Options: by SkyVerge – 2.9.0 WooCommerce POS: by kilbot – 0.4.27 WooCommerce Square: by WooCommerce – 2.9.0 WooCommerce: by Automattic – 6.2.0 Smush: by WPMU DEV – 3.9.5 ### Inactive Plugins (20) ### Advanced Woo Search: by ILLID – 2.48 Antispam Bee: by pluginkollektiv – 2.11.0 Beaver Builder Plugin (Lite Version): by The Beaver Builder Team – 2.5.1.3 Elementor: by Elementor.com – 3.5.5 Enable Gzip Compression: by Moki-Moki Ios – 1.0.3 Google Analytics Dashboard for WP (GADWP): by ExactMetrics – 7.3.4 Gutenberg: by Gutenberg Team – 12.6.0 Hummingbird: by WPMU DEV – 3.3.0 Jetpack: by Automattic – 10.6 Kadence Blocks – Gutenberg Blocks for Page Builder Features: by Kadence WP – 2.2.7 Media File Renamer: by Jordy Meow – 5.3.6 Media Library Assistant: by David Lingren – 2.99 Product CSV Import Export (BASIC): by WebToffee – 2.1.7 Simple CSV/XLS Exporter: by Shambix – 1.5.8 WooCommerce - Product Importer: by Visser Labs – 1.5.2 Woocommerce Pay in Store Gateway: by emspace.gr – 1.0.0 WooCommerce PDF Invoices & Packing Slips: by WP Overnight – 2.13.1 WooCommerce Product Archive Customiser: by jameskoster – 1.0.5 WP Fastest Cache: by Emre Vona – 0.9.8 WP Google Maps: by WP Google Maps – 8.1.20 ### Dropin Plugins (3) ### advanced-cache.php: advanced-cache.php db.php: db.php object-cache.php: object-cache.php ### Must Use Plugins (1) ### installatron_hide_status_test.php: by – ### Settings ### API Enabled: ? Force SSL: – Currency: CAD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog-2) exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) outofstock (outofstock-2) rated-1 (rated-1) rated-1 (rated-1-2) rated-2 (rated-2) rated-3 (rated-3) rated-3 (rated-3-2) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: ? ### WC Pages ### Shop base: #4 - / Cart: #5 - /cart/ Checkout: #6 - /checkout/ My account: #7 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: Virtue Version: 3.4.6 Author URL: https://kadencewp.com/ Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ? ### Templates ### Overrides: virtue/woocommerce/archive-product.php virtue/woocommerce/content-product.php virtue/woocommerce/content-single-product.php virtue/woocommerce/loop/loop-end.php virtue/woocommerce/loop/loop-start.php virtue/woocommerce/loop/price.php virtue/woocommerce/loop/rating.php virtue/woocommerce/loop/sale-flash.php virtue/woocommerce/single-product/add-to-cart/external.php virtue/woocommerce/single-product/add-to-cart/grouped.php virtue/woocommerce/single-product/add-to-cart/simple.php virtue/woocommerce/single-product/add-to-cart/variable.php virtue/woocommerce/single-product/price.php virtue/woocommerce/single-product/product-image.php virtue/woocommerce/single-product/product-thumbnails.php virtue/woocommerce/single-product/sale-flash.php virtue/woocommerce/single-product.php virtue/woocommerce/content-product_cat.php virtue/woocommerce/taxonomy-product_cat.php virtue/woocommerce/taxonomy-product_tag.php ### Square ### Environment: Production Tokenization Enabled: – Debug Mode: Off ### Action Scheduler ### Complete: 1,579 Oldest: 2022-02-01 11:52:05 -0500 Newest: 2022-02-21 21:50:02 -0500 Failed: 161,857 Oldest: 2020-03-05 23:00:00 -0500 Newest: 2022-02-21 21:46:57 -0500 Pending: 3 Oldest: 2022-02-21 22:14:29 -0500 Newest: 2022-02-25 22:43:23 -0500 ### Status report information ### Generated at: 2022-02-21 22:01:50 -05:00
Here is the link to my checkout page when Germany is selected.
Hello,
Thanks for sending this information.
To clarify, can you also provide a screenshot of your shipping settings? They are at:
WooCommerce > Settings > Shipping
.For screenshots you may want to use https://snipboard.io – please follow the instructions on that page, then paste the URL in this thread.
Thank you.
Hi Igor,
Here are 4 different screenshots, hopefully they help.
James
Shipping Zones – https://snipboard.io/zvO4Wl.jpg
Shipping Options – https://snipboard.io/ilefjq.jpg
Shipping Classes – https://snipboard.io/c1Z4FN.jpg
Canada Post – https://snipboard.io/GufJwx.jpgHi @transportsr
Looking at this screenshot, your checkout page shows
Province / State *
but there is no dropdown underneath. By default, when Germany is selected, the Province/State field gets hidden – which means customers can place orders without filling that field.
Link to image: https://snipboard.io/SCiXF2.jpgSince your checkout page doesn’t work as expected, your site may be having a theme/plugin conflict. The best way to determine this is to temporarily switch your theme back to Storefront and disable all plugins except for WooCommerce. If that resolves the issue, then re-enable plugins one-by-one until you find the one that’s causing the conflict. If you have added custom codes to your site in the past, please also disable that temporarily too.
You can find a more detailed explanation on how to do a conflict test here: https://docs.woocommerce.com/document/how-to-test-for-conflicts/
We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.
- The topic ‘Province/State/County/Region issue’ is closed to new replies.