• Resolved fongmh

    (@fongmh)


    Hi all

    I run an online bookshop that enables customers to choose between three shipping options: Free shipping, flat rate, and local pickup. Until a few days ago, this has been working fine until we realised that all online customers were opting for local pickup only to message us later to ask for shipping instead. It was then I discovered that the shipping options defaulted to the last one available, and no longer gave customers the ability to choose.

    Inspecting the page on Chrome shows the following javascript error:

    Incorrect use of <label for=FORM_ELEMENT>
    The label's for attribute doesn't match any element id. This might prevent the browser from correctly autofilling the form and accessibility tools from working correctly.
    To fix this issue, make sure the label's for attribute references the correct id of a form field.
    3 resources
    Violating node
    Violating node
    Violating node
    Learn more: The label elements

    Following is the element in question
    <label for="shipping_country" class="">Country / Region&nbsp;<abbr class="required" title="required">*</abbr></label>

    The violating nodes point to the shipping option. I have tried disabling plugins and reverting to the default Storefront Theme to try and fix the issue but nothing has worked. However, several days ago, I had removed some autoloaded options from my wp_options table in phpMyadmin after WordPress’ site health check advised that I had too many autoloaded options. I don’t know if this might have caused the issue as I had deleted several theme-related options.

    Does anyone have any suggestions for a fix? Thank you.

    Woocommerce Status Report

    WordPress Environment<br><br>WordPress address (URL): https://litbooks.com.my<br>Site address (URL): https://litbooks.com.my<br>WC Version: 9.1.4<br>Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site.<br>Action Scheduler Version: ? 3.8.1<br>Log Directory Writable: ?<br>WP Version: 6.6.1<br>WP Multisite: –<br>WP Memory Limit: 2 GB<br>WP Debug Mode: –<br>WP Cron: ?<br>Language: en_GB<br>External object cache: ? Server Environment<br><br>Server Info: LiteSpeed<br>PHP Version: 8.3.1<br>PHP Post Max Size: 2 GB<br>PHP Time Limit: 1200<br>PHP Max Input Vars: 5000<br>cURL Version: 7.87.0<br>OpenSSL/1.1.1w<br><br>SUHOSIN Installed: –<br>MySQL Version: 10.11.8-MariaDB-cll-lve<br>Max Upload Size: 2 GB<br>Default Timezone is UTC: ?<br>fsockopen/cURL: ?<br>SoapClient: ?<br>DOMDocument: ?<br>GZip: ?<br>Multibyte String: ?<br>Remote Post: ?<br>Remote Get: ? Database<br><br>WC Database Version: 9.1.4<br>WC Database Prefix: wpk5_<br>Total Database Size: 1955.29MB<br>Database Data Size: 1622.52MB<br>Database Index Size: 332.77MB<br>wpk5_woocommerce_sessions: Data: 150.57MB + Index: 5.54MB + Engine MyISAM<br>wpk5_woocommerce_api_keys: Data: 0.00MB + Index: 0.01MB + Engine MyISAM<br>wpk5_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wpk5_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wpk5_woocommerce_order_items: Data: 1.59MB + Index: 0.85MB + Engine MyISAM<br>wpk5_woocommerce_order_itemmeta: Data: 16.19MB + Index: 9.13MB + Engine MyISAM<br>wpk5_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wpk5_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wpk5_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wpk5_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wpk5_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wpk5_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wpk5_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wpk5_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wpk5_actionscheduler_actions: Data: 7.70MB + Index: 1.85MB + Engine MyISAM<br>wpk5_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wpk5_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM<br>wpk5_actionscheduler_logs: Data: 3.30MB + Index: 2.27MB + Engine MyISAM<br>wpk5_atum_export_templates: Data: 0.14MB + Index: 0.03MB + Engine InnoDB<br>wpk5_atum_logs: Data: 22.55MB + Index: 9.09MB + Engine InnoDB<br>wpk5_atum_logs_cache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wpk5_atum_logs_cache_var: Data: 5.52MB + Index: 4.03MB + Engine InnoDB<br>wpk5_atum_order_itemmeta: Data: 2.76MB + Index: 2.15MB + Engine MyISAM<br>wpk5_atum_order_items: Data: 0.31MB + Index: 0.17MB + Engine MyISAM<br>wpk5_atum_product_data: Data: 0.46MB + Index: 0.32MB + Engine MyISAM<br>wpk5_commentmeta: Data: 1.52MB + Index: 0.50MB + Engine MyISAM<br>wpk5_comments: Data: 7.19MB + Index: 3.41MB + Engine MyISAM<br>wpk5_cron_logs: Data: 972.98MB + Index: 176.41MB + Engine InnoDB<br>wpk5_depicter_documents: Data: 0.14MB + Index: 0.03MB + Engine InnoDB<br>wpk5_depicter_leads: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wpk5_depicter_lead_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wpk5_depicter_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpk5_depicter_options: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wpk5_dgwt_wcas_stats: Data: 0.14MB + Index: 0.00MB + Engine InnoDB<br>wpk5_gla_budget_recommendations: Data: 0.22MB + Index: 0.14MB + Engine InnoDB<br>wpk5_gla_merchant_issues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpk5_gla_shipping_rates: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wpk5_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wpk5_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wpk5_litespeed_img_optm: Data: 1.52MB + Index: 0.64MB + Engine InnoDB<br>wpk5_litespeed_img_optming: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wpk5_litespeed_url: Data: 0.42MB + Index: 1.44MB + Engine InnoDB<br>wpk5_litespeed_url_file: Data: 2.44MB + Index: 8.28MB + Engine InnoDB<br>wpk5_ms_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpk5_nextend2_image_storage: Data: 0.01MB + Index: 0.00MB + Engine MyISAM<br>wpk5_nextend2_section_storage: Data: 0.03MB + Index: 0.01MB + Engine MyISAM<br>wpk5_nextend2_smartslider3_generators: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wpk5_nextend2_smartslider3_sliders: Data: 0.03MB + Index: 0.00MB + Engine MyISAM<br>wpk5_nextend2_smartslider3_sliders_xref: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wpk5_nextend2_smartslider3_slides: Data: 0.02MB + Index: 0.01MB + Engine MyISAM<br>wpk5_options: Data: 153.79MB + Index: 1.07MB + Engine MyISAM<br>wpk5_pimwick_gift_card: Data: 0.03MB + Index: 0.02MB + Engine MyISAM<br>wpk5_pimwick_gift_card_activity: Data: 0.08MB + Index: 0.03MB + Engine MyISAM<br>wpk5_postmeta: Data: 56.62MB + Index: 23.52MB + Engine MyISAM<br>wpk5_posts: Data: 9.19MB + Index: 2.43MB + Engine MyISAM<br>wpk5_pos_warehouse: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpk5_smush_dir_images: Data: 0.14MB + Index: 0.06MB + Engine MyISAM<br>wpk5_snippets: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wpk5_tec_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wpk5_tec_occurrences: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wpk5_termmeta: Data: 0.18MB + Index: 0.13MB + Engine MyISAM<br>wpk5_terms: Data: 0.12MB + Index: 0.24MB + Engine MyISAM<br>wpk5_term_relationships: Data: 0.29MB + Index: 0.74MB + Engine MyISAM<br>wpk5_term_taxonomy: Data: 0.12MB + Index: 0.12MB + Engine MyISAM<br>wpk5_usermeta: Data: 10.12MB + Index: 6.99MB + Engine MyISAM<br>wpk5_users: Data: 0.81MB + Index: 0.73MB + Engine MyISAM<br>wpk5_wc_admin_notes: Data: 0.09MB + Index: 0.01MB + Engine MyISAM<br>wpk5_wc_admin_note_actions: Data: 0.05MB + Index: 0.01MB + Engine MyISAM<br>wpk5_wc_category_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM<br>wpk5_wc_customer_lookup: Data: 0.76MB + Index: 0.68MB + Engine MyISAM<br>wpk5_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wpk5_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB<br>wpk5_wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wpk5_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wpk5_wc_order_coupon_lookup: Data: 0.05MB + Index: 0.09MB + Engine MyISAM<br>wpk5_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wpk5_wc_order_product_lookup: Data: 1.96MB + Index: 1.83MB + Engine MyISAM<br>wpk5_wc_order_stats: Data: 0.87MB + Index: 0.52MB + Engine MyISAM<br>wpk5_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wpk5_wc_product_attributes_lookup: Data: 0.06MB + Index: 0.05MB + Engine InnoDB<br>wpk5_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wpk5_wc_product_meta_lookup: Data: 0.43MB + Index: 0.71MB + Engine MyISAM<br>wpk5_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wpk5_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine MyISAM<br>wpk5_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM<br>wpk5_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wpk5_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpk5_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wpk5_wfconfig: Data: 3.48MB + Index: 0.00MB + Engine InnoDB<br>wpk5_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpk5_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpk5_wffilemods: Data: 14.55MB + Index: 0.00MB + Engine InnoDB<br>wpk5_wfhits: Data: 3.02MB + Index: 0.55MB + Engine InnoDB<br>wpk5_wfhoover: Data: 0.22MB + Index: 0.05MB + Engine InnoDB<br>wpk5_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wpk5_wfknownfilelist: Data: 7.52MB + Index: 0.00MB + Engine InnoDB<br>wpk5_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wpk5_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpk5_wflogins: Data: 0.47MB + Index: 0.16MB + Engine InnoDB<br>wpk5_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wpk5_wfls_role_counts: Data: 0.00MB + Index: 0.00MB + Engine MEMORY<br>wpk5_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpk5_wfnotifications: Data: 0.13MB + Index: 0.00MB + Engine InnoDB<br>wpk5_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wpk5_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpk5_wfsecurityevents: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpk5_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wpk5_wfstatus: Data: 1.06MB + Index: 0.14MB + Engine InnoDB<br>wpk5_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpk5_wfwaffailures: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpk5_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpk5_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpk5_wpmailsmtp_debug_events: Data: 0.05MB + Index: 0.00MB + Engine InnoDB<br>wpk5_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpk5_wpml_mails: Data: 13.52MB + Index: 0.00MB + Engine InnoDB<br>wpk5_wpmm_subscribers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpk5_wpns_backup_report: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wpk5_wpns_files_scan: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wpk5_wsal_metadata: Data: 71.19MB + Index: 47.35MB + Engine MyISAM<br>wpk5_wsal_occurrences: Data: 65.95MB + Index: 14.08MB + Engine MyISAM<br>wpk5_wsal_sessions: Data: 0.38MB + Index: 0.05MB + Engine MyISAM<br>wpk5_wt_iew_action_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpk5_wt_iew_mapping_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpk5_xoo_wl_list: Data: 0.04MB + Index: 0.03MB + Engine MyISAM<br>wpk5_xoo_wl_list_meta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM<br>wpk5_yith_pos_register_sessions: Data: 1.52MB + Index: 0.00MB + Engine InnoDB<br>wpk5_yoast_indexable: Data: 4.52MB + Index: 2.55MB + Engine InnoDB<br>wpk5_yoast_indexable_hierarchy: Data: 0.31MB + Index: 0.44MB + Engine InnoDB<br>wpk5_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wpk5_yoast_primary_term: Data: 0.08MB + Index: 0.09MB + Engine InnoDB<br>wpk5_yoast_seo_links: Data: 0.14MB + Index: 0.09MB + Engine InnoDB<br>wpk5_zp_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM Post Type Counts<br><br>attachment: 5921<br>atum_inventory_log: 335<br>atum_supplier: 28<br>condition_group: 9<br>custom_css: 4<br>forum: 1<br>him_pickup_account: 1<br>is_search_form: 2<br>mc4wp-form: 2<br>ml-slider: 1<br>nav_menu_item: 17<br>order_status: 4<br>page: 27<br>pos-station: 2<br>post: 137<br>product: 3529<br>product_variation: 51<br>pt_view: 2<br>reply: 1<br>revision: 2<br>shop_coupon: 15<br>shop_order: 10316<br>shop_order_refund: 46<br>sidebar: 4<br>sp_wps_shortcodes: 2<br>topic: 1<br>tribe_events: 80<br>tribe_organizer: 3<br>tribe_venue: 1<br>wp_global_styles: 2<br>wp_show_posts: 5<br>yith-pos-receipt: 1<br>yith-pos-register: 2<br>yith-pos-store: 1 Security<br><br>Secure connection (HTTPS): ?<br>Hide errors from visitors: ? Active Plugins (42)<br><br>WP Activity Log (Premium): by Melapress – 5.1.0<br>Advanced Database Cleaner: by Younes JFR. – 3.1.4<br>FiboSearch - AJAX Search for WooCommerce: by FiboSearch Team – 1.28.1<br>Akismet Anti-spam: Spam Protection: by Automattic - Anti-spam Team – 5.3.3<br>ATUM Export PRO: by Stock Management Labs? – 1.6.2<br>ATUM Inventory Management for WooCommerce: by Stock Management Labs? – 1.9.39.2<br>Custom Order Status Manager for WooCommerce: by Bright Plugins – 1.1.3.2<br>Code Snippets: by Code Snippets Pro – 3.6.5.1<br>Content Aware Sidebars: by DEV Institute – 3.20<br>Content Views: by Content Views – 4.0<br>Cron Logger: by Palasthotel (Edward Bock) – 1.2.2<br>Depicter: by Depicter Slider and Popup by Averta – 3.2.2<br>DX Delete Attached Media: by nofearinc – 2.0.6<br>Site Kit by Google: by Google – 1.133.0<br>Hide Categories and Products for Woocommerce: by N.O.U.S. Open Useful and Simple – 1.2.9<br>HitPay Payment Gateway: by <a>HitPay Payment Solutions Pte Ltd</a> – 4.1.6<br>Import and export users and customers: by codection – 1.27.1<br>LiteSpeed Cache: by LiteSpeed Technologies – 6.4.1<br>PW WooCommerce Gift Cards Pro: by Pimwick<br>LLC – 3.4<br><br>Qlicknpay: by Qlicknpay – 1.1.1<br>Really Simple SSL: by Really Simple Plugins – 8.1.6<br>Recent Posts Widget With Thumbnails: by Kybernetik Services – 7.1.1<br>Simple Local Avatars: by 10up – 2.7.11<br>The Events Calendar: by The Events Calendar – 6.6.1<br>UpdraftPlus - Backup/Restore: by UpdraftPlus.Com<br>DavidAnderson – 1.24.4<br><br>Waitlist woocommerce( Back in stock notifier ): by – 2.7.2<br>Hide Shipping Methods for WooCommerce: by Rynaldo Stoltz – 1.7<br>Product Customer List for WooCommerce: by Kokomo – 3.1.7<br>Checkout Field Editor for WooCommerce: by ThemeHigh – 2.0.3<br>Advanced Order Export For WooCommerce: by AlgolPlus – 3.5.3<br>Product Slider and Carousel with Category for WooCommerce: by WP OnlineSupport<br>Essential Plugin – 3.0<br><br>WooCommerce.com Update Manager: by Automattic – 1.0.3<br>Print Invoice & Delivery Notes for WooCommerce: by Tyche Softwares – 5.1.0<br>Extra Product Sorting Options for WooCommerce: by SkyVerge – 2.10.0<br>WooCommerce: by Automattic – 9.1.4<br>Wordfence Security: by Wordfence – 7.11.7<br>Yoast SEO: by Team Yoast – 23.3<br>WP Crontrol: by John Blackbourn – 1.17.0<br>WP Mail Logging: by WP Mail Logging Team – 1.12.0<br>WP Mail SMTP: by WP Mail SMTP – 4.1.1<br>WP Rollback: by WP Rollback – 2.0.7<br>WP Show Posts: by Tom Usborne – 1.1.6 Inactive Plugins (3)<br><br>DHL Ecommerce APAC: by DHL APAC – 1.1.1<br>Gift Wrapper: by Little Package – 6.1.9<br>YITH Point of Sale for WooCommerce: by YITH – 3.7.0 Dropin Plugins ()<br><br>object-cache.php: LiteSpeed Cache - Object Cache (Drop-in) Must Use Plugins (1)<br><br>Endurance Page Cache: by Mike Hansen – 2.2.1 Settings<br><br>API Enabled: –<br>Force SSL: –<br>Currency: MYR (RM)<br>Currency Position: left<br>Thousand Separator: ,<br>Decimal Separator: .<br>Number of Decimals: 2<br>Taxonomies: Product Types: external (external)<br>grouped (grouped)<br>pw gift card (pw-gift-card)<br>simple (simple)<br>variable (variable)<br><br>Taxonomies: Product Visibility: exclude_from_catalog (exclude_from_catalog)<br>exclude_from_search (exclude_from_search)<br>exclude-from-catalog (exclude-from-catalog)<br>exclude-from-search (exclude-from-search)<br>featured (featured)<br>outofstock (outofstock)<br>rated-1 (rated-1)<br>rated-2 (rated-2)<br>rated-3 (rated-3)<br>rated-4 (rated-4)<br>rated-5 (rated-5)<br>simple (simple)<br><br>Connected to WooCommerce.com: ?<br>Enforce Approved Product Download Directories: –<br>HPOS feature enabled: –<br>Order datastore: WC_Order_Data_Store_CPT<br>HPOS data sync enabled: – Logging<br><br>Enabled: ?<br>Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2<br>Retention period: 30 days<br>Level threshold: –<br>Log directory size: 830 KB WC Pages<br><br>Shop base: #2580 - /shop/<br>Basket: #2581 - /cart/ - Contains the [woocommerce_cart] shortcode<br>Checkout: #2582 - /checkout/ - Contains the [woocommerce_checkout] shortcode<br>My account: #2583 - /my-account/<br>Terms and conditions: ? Page not set Theme<br><br>Name: Lit Books Child<br>Version: (update to version 0 is available)<br>Author URL:<br>Child Theme: ?<br>Parent Theme Name: Storefront<br>Parent Theme Version: 4.6.0<br>Parent Theme Author URL: https://woocommerce.com/<br>WooCommerce Support: ? Templates<br><br>Overrides: – Pimwick Plugins<br><br>PW WooCommerce Gift Cards Pro: License key: PW-606bff67b42c1<br>Result: success<br>Cached: 2024-08-20 Admin<br><br>Enabled Features: activity-panels<br>analytics<br>product-block-editor<br>coupons<br>core-profiler<br>customize-store<br>customer-effort-score-tracks<br>import-products-task<br>experimental-fashion-sample-products<br>shipping-smart-defaults<br>shipping-setting-tour<br>homescreen<br>marketing<br>mobile-app-banner<br>navigation<br>onboarding<br>onboarding-tasks<br>product-custom-fields<br>remote-inbox-notifications<br>remote-free-extensions<br>payment-gateway-suggestions<br>shipping-label-banner<br>subscriptions<br>store-alerts<br>transient-notices<br>woo-mobile-welcome<br>wc-pay-promotion<br>wc-pay-welcome-page<br>launch-your-store<br><br>Disabled Features: experimental-blocks<br>minified-js<br>pattern-toolkit-full-composability<br>product-pre-publish-modal<br>printful<br>settings<br>async-product-editor-category-field<br>product-editor-template-system<br><br>Daily Cron: ? Next scheduled: 2024-08-21 04:15:43 +08:00<br>Options: ?<br>Notes: 193<br>Onboarding: completed Action Scheduler<br><br>Canceled: 4<br>Oldest: 2024-08-12 15:19:34 +0800<br>Newest: 2024-08-12 15:19:39 +0800<br><br>Complete: 2,475<br>Oldest: 2024-07-21 00:26:33 +0800<br>Newest: 2024-08-20 22:21:00 +0800<br><br>Pending: 8<br>Oldest: 2024-08-20 22:21:02 +0800<br>Newest: 2024-08-23 03:57:14 +0800 Status report information<br><br>Generated at: 2024-08-20 22:21:17 +08:00<br>

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support omarfpg a11n

    (@omarfpg)

    Hi @fongmh,

    I run an online bookshop that enables customers to choose between three shipping options: Free shipping, flat rate, and local pickup. Until a few days ago, this has been working fine until we realised that all online customers were opting for local pickup only to message us later to ask for shipping instead. It was then I discovered that the shipping options defaulted to the last one available, and no longer gave customers the ability to choose.

    Thank you for bringing this to our attention. I’ve tried the checkout on your site to learn more, but I see you’ve recurred to a workaround of only having a shipping method available with a notice and a wide store notice about this.

    Inspecting the page on Chrome shows the following javascript error:

    The label’s for attribute doesn’t match any element id. This might prevent the browser from correctly autofilling the form and accessibility tools from working correctly.

    I didn’t see the JS errors, maybe because there aren’t multiple shipping options at this moment. However, this error you shared is regarding accessibility (which is also important!). Can you set up at least two options or, even better, a staging site to test this without disrupting the live site for your customers? You can ask your hosting provider if they offer Staging capabilities, or you can try a plugin like WP Staging.

    However, several days ago, I had removed some autoloaded options from my wp_options table in phpMyadmin after WordPress’ site health check advised that I had too many autoloaded options. I don’t know if this might have caused the issue as I had deleted several theme-related options.

    If you noticed the issue after clearing options from your options table, it might require further troubleshooting than the default conflict test (which you mention you’ve already tried by deactivating every other plugin except WooCommerce and using a default theme. However, if you set up a Staging site it could be helpful to test this way, too). Can you share more about the options you deleted and how did you do this?

    Another possible thing to try is review that your caching plugin is properly configured for WooCommerce: https://developer.woocommerce.com/docs/how-to-configure-caching-plugins-for-woocommerce/#0-excluding-pages-from-the-cache.

    Thanks!
    -OP

    Thread Starter fongmh

    (@fongmh)

    Hi OP, thanks for your reply.

    I did as you suggested and created a staging site. The errors were replicated so I started messing around with the staging site only to discover that adding a new shipping method seemed to have resolved the issue. Inspecting the page on chrome checkout also showed that there were no longer any javascript issues. I did the same on my main page, and voila, problem resolved.

    At this point, I’m still not sure what caused the error in the first place but it seems that the fix is to add a new shipping method which, presumably, repopulates the database with some vital information. I don’t have the knowledge or patience to try and understand it any more than that, I’m afraid.

    But thank you for your suggestions as creating the staging site was a good idea to let me just try crazy things until something worked!

    Hi @fongmh,

    Glad to hear it – thanks for letting us know!

    I’ll mark this thread as resolved now. If you have any further questions, I recommend creating a new thread.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Customers unable to choose between shipping options’ is closed to new replies.