• Hi Kim,

    Great plugin, thank you.

    I have been having quite a percentage of orders coming in with no shipping fee in the total. On checking, when a customer has not set up an account but goes through checkout as a guest, enters their address (with Autocomplete Google Address plugin prompting for correct address), there is no shipping fee calculated based on the address they put in, and the user is able to complete checkout with no distance based shipping fee shown.

    On the other hand, for a logged in registered user, the fee seems to be calculated correctly based on their address, however, if they adjust the address on the checkout page, it is jumping to an incorrect fee calculation part way through the address entry (perhaps based on the first few keystrokes), but then not updating the fee to the correct final address (and distance) entered. It does look like the final google autocomplete address is showing correctly on google maps.

    Can you give me any things to check or your thoughts on this Kim? hansaust.com/shop example address: 662/32 Bùi ?ình Tuy, ph??ng 12, Bình Th?nh, Ho Chi Minh City, Vietnam (Country: Vietnam, County: Ho Chi Minh)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter buorus

    (@buorus)

    I have an update on this Kim: As the autocomplete address contains city and country, I had removed the “City” field on checkout page (as this was doubled up information), which I can see has been the reason for no fee showing up for guests, as the “City” field is required for this plugin. I will have to research how to have autocomplete only drop in the street and district, and leave city and country to be added in the subsequent fields. (I have added the “City” field back in for the time being.)

    The issue for the registered user is still there (and hence now the same issue for the guest), and what is happening is that when entering the address details, every keystroke((s) with inbuilt dwell time by the looks of it) sees the plugin update for distance calculation based on the “google top of list assumed address” at that point. The issue I can see is that when autocomplete proposes a full address and this is then selected as the actual address, the mouse click on the “proposed” address from the list of options updates the address in the address field, but does not prompt the plugin to run another distance calculation based on this finally selected address, so it stays with fee for the incorrectly assumed address.Do you have any suggestions on this?

    Thread Starter buorus

    (@buorus)

    Example: If we type into the address field on checkout page “147 xo viet”, autocomplete provides a dropdown of addresses, probably from closest to furthest away, and the plugin based on autocomplete grading by the looks of it assumes this is “147 X? Vi?t Ngh? T?nh, Ph??ng 17, Bình Th?nh, Ho Chi Minh City, Vietnam” and gives shipping fee of VND31,788 (just a few km away)

    But if this is not the address we are after and say click desired address from the drop down list as “147 X? Vi?t Ngh? T?nh, C?m L? District, Da Nang, Vietnam” (1,000km away) the fee does not update as it drops it into the field, as there is no curser advance in the field to prompt the fee refresh.

    Plugin Author Gaylord Focker

    (@webdata)

    Hi,

    Plugin uses WooCommerce’s own add_fee function to add the fee. Every time the checkout page ajax updates, the fee will update too. This normally happens when user updates their address, postcode, city, shipping method or payment method.

    If you are using any 3rd party plugins on your checkout page, it may be the ajax is not updating normally as it should. You should try without any plugins that affects on your checkout process and try if that affects to the issue.

    Kim

    Thread Starter buorus

    (@buorus)

    Ok, thanks Kim. By leaving the Region blank and requiring an entry, this forces the ajax update with the complete address (There is still a glitch scenario if they go back and modify the address and their last action is a click of the mouse to select new address, with no subsequent keystroke, but this is a less likely action.)

    I’ll check effect of other plugins as suggested too.

    Thanks for your explanation and help.

    Ben

    I am facing this issue of not updating the shipping on address change for the user.
    Is there a way to manually update checkout page ajax?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Shipping not calculated for guest (+ not updating on address change)’ is closed to new replies.