Tagged: woocommerce
-
AuthorPosts
-
July 26, 2022 at 12:41 am #1359422
My client’s site was working great up until about mid-June. Now the shipping calculator doesn’t seem to work on the cart page, and when you proceed to checkout, we get a critical error message. We have deactivated all plug-ins and did some troubleshooting. Finally, after deactivating the Enfold theme and activating the Storefront theme, the issue went away, and the site functioned correctly. So we have determined there is some sort of conflict between Enfold and WooCommerce with the shipping address. Basically, I see that WooCommerce doesn’t process the address on the cart page and doesn’t trigger the rate calculation and hence no shipping methods.
July 26, 2022 at 6:09 am #1359427Hi Tanya,
I just checked your site, added products, go to the cart page and tried to checkout and I don’t seem to see any issue.
The calculator seems to be working properly and the checkout page doesn’t show any errors.Best regards,
NikkoJuly 26, 2022 at 4:21 pm #1359479What browser were you using? We are still having the issue with Firefox and Chrome. When we add something to the cart, then click calculate shipping, enter a city and zip code and click calculate, nothing happens, we don’t get any shipping options to choose from. Then when you click proceed to cart, we get an error page. The error says at bottom There has been a critical error on this website.
These issues go away when we change our theme. Can you tell me what state, city and zip code you used? If there were a place to upload images, I could show you the screenshots.
Just to make sure, you are going to https://www.laglernorthamerica.com/
- This reply was modified 2 years, 5 months ago by tmjake.
July 27, 2022 at 10:22 am #1359525Hi tmjake,
I was able to see the issue and it seems this code in your child theme is responsible for the issue:
function reset_default_shipping_method( $method, $available_methods ) { $default_method = 'wf_ups_woocommerce_shipping:UPS_GROUND'; //provide here the service name which will selected default if( array_key_exists($method, $available_methods ) ) return $default_method; else return $method; } add_filter('woocommerce_shipping_chosen_method', 'reset_default_shipping_method', 10, 2);
I have commented out the filter, please review your site.
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.