• Resolved mohitthkkr

    (@mohitthkkr)


    I am facing some problem with the shipping calculator button. The options in the state menu are of the default country selected. If I change the country, then the list of states are not getting updated.Please help me solve this issue.

    Example, If USA is the default country, it displays the states of USA,
    but if I change to UK, the list of states in the dropdown is still of USA only.

    https://www.ads-software.com/plugins/woocommerce/

Viewing 11 replies - 1 through 11 (of 11 total)
  • When the user changes country, a javascript should run to alter the list of states. In Chrome, if you press control-shift-j and select the console, you can see if there are any javascript errors. What do you see? or can you post your url.

    If there is some javascript conflict, try deactivating all your plugins except WooCommerce. If that resolves the problem, reactivate your plugins one at a time to try to identify the one that is causing the conflict.

    Further debug steps are available.

    Thread Starter mohitthkkr

    (@mohitthkkr)

    Thanks for your reply.

    I tried to debug using javascript console in chrome but didnt find any error.

    Here’s the link:
    https://www.indiancardmall.com

    I too didn’t find a javascript error, but “update state list dropdown on country change” is working well for me. Have you cleared your browser cache? Otherwise I don’t have any suggestions.

    Thread Starter mohitthkkr

    (@mohitthkkr)

    I tried clearing the browser cache as well as changing the browser. But still it didnt work.

    Check your browser settings to ensure javascript is enabled. Which browser are you using?

    Thread Starter mohitthkkr

    (@mohitthkkr)

    I am using chrome ..

    But I also tried it in internet explorer.. but it didnt work.

    Works for me in IE11. I don’t know what else to suggest. Anyone else?

    Seems to work correctly, but found this JS error:

    Timestamp: 8/5/2014 9:29:06 AM
    Error: TypeError: document.getElementById(...) is null
    Source File: chrome://web-developer/content/overlay/javascript/overlay.js
    Line: 7333
    Thread Starter mohitthkkr

    (@mohitthkkr)

    Thanks for the reply. But i dont know whats happening. I tried it in 3 different devices and it is not working in any of them.

    Do you know how to remove the state field only from the calculate shipping button ?? Because anyway my shipping method is based on country only.

    Sorry, as you say the state selector doesn’t work in the Shipping calculator. I was looking at the next page where it does work.

    Did you try deactivating all your plugins except WooCommerce to see if one is causing a conflict. Also, you could try temporarily switching to the default theme TwentyFourteen to be able to rule out any theme specific problem.

    Otherwise, you could try this in your custom css to hide the unwanted fields:

    select#calc_shipping_state {display: none;}

    and, if you also want to hide the zip/postcode field:

    input#calc_shipping_postcode {display: none;}

    Thread Starter mohitthkkr

    (@mohitthkkr)

    Thanks a lot ?? I removed it using custom css.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Shipping Calculator not working properly’ is closed to new replies.