• Resolved buorus

    (@buorus)


    Set up with query going back to Google, but any address added is not recognised.Local Ho Chi Minh City, Vietnam shipping.

    Would appreciate any assistance on how to format address for recognition by Google (or how to add a map adjacent for type/selection)

    Typical address format here as it would come up on a normal google map pin would be:
    184 Hẻm 180 Nguyễn Hữu Cảnh, Phường 22, Bình Thạnh, Hồ Chí Minh, Vietnam

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Gaylord Focker

    (@webdata)

    Hi,

    Google Distance Matrix API should recognize the address same way as the Google Maps does.

    I tried on your website, and I got the error message saying “There are no shipping options available. Please ensure that your address has been entered correctly, or contact us if you need any help.”

    You can check the log page at the settings, if the Google API has left any error messages for you. Otherwise, check your WooCommerce delivery settings.

    Kim

    Thread Starter buorus

    (@buorus)

    Thanks Kim,
    Thanks for the quick response. Is this the best way to contact you, or please let me know best way.

    I must just have something not correct.

    On checkout page I sent you, if I select ‘calculate shipping’, the options for address are:

    Vietnam
    Ho Chi Minh (or other city can be selected from dropdown)
    Town/City (add text)
    Postcode/ZIP (add text)

    with “Update” button at the bottom.
    Not sure where street address should be written with this format, and whatever I enter here says “No shipping options were found for Ho Chi Minh”

    I’m not getting any error logs in Distance Based Fee Settings, or on Google Cloud Platform.The interrogations are showing up as traffic on Google Maps Metrics (with no Errors by API showing.)

    Can I send you some screen shots of shipping page and distance based fee settings page?

    Plugin Author Gaylord Focker

    (@webdata)

    There are other ways to contact, however I cannot encourage you to make an off-forum contact, that is because of the forum rules.

    I tried with the following addresses to get the API response:

    Origin: 184 Hẻm 180 Nguyễn Hữu Cảnh, Phường 22, Bình Thạnh, 70000, Hồ Chí Minh
    Destination: Phường 25, 70000, Hồ Chí Minh

    And API response was ok:
    {“distance”:{“text”:”2.3 km”,”value”:2333},”duration”:{“text”:”7 mins”,”value”:396},”status”:”OK”}

    So the issue should not be the address format. Make sure you have selected at least one shipping method from the settings and also check the “Shipping conditions” drop down menu. If you change the shipping method hiding options, you also need to save once the shipping method’s settings: WooCommerce – Settings – Shipping – Select your zone – Select shipping method and save settings once.

    You can also try to enable one of the APIs: Distance Matrix API, Places API for Web, Google Maps Geocoding API

    Kim

    Thread Starter buorus

    (@buorus)

    Making some progress. Distance based fee now showing.

    Marked fixed fee 10,000 (if above conditions not met, Use fixed fee (enter below)
    Now see Delivery, as a next line after shipping, marked at 10,000.
    On same page, fields after Api Key
    Fee name: Delivery
    Divider 2
    Price 7500
    Min dist 1
    Max dist 25
    Min cart 200000
    Kilometers
    Flat rate

    Does anything there stand out as to why conditions not met when a VND550,000 item is in the cart?

    Plugin Author Gaylord Focker

    (@webdata)

    I tried with 2 x pumpkin pie, total of 800,000 and I got delivery fee of 10,000.

    Is there still something right now that does not work as expected?

    Kim

    Thread Starter buorus

    (@buorus)

    Hey Kim,

    Thanks for trying that! 10,000 is the default fee entered below “Use fixed fee (enter below) If above conditions are not met”. So it is not providing 10,000 based on the distance, but based on conditions not being met, but I cannot see what is wrong as the distance for the address I entered was 4.2km, so should be above the base 1km minimum. If it was taking the distance into account, I would have expected it to be (4.2/2) x 7500 = 15,750

    Plugin Author Gaylord Focker

    (@webdata)

    I believe your best option is to disable all the limiting settings and then save your shipping methods settings once. This way you should be able to narrow down the cause of the issue.

    Also remember to add full address; street address, zip code and city.

    Kim

    Thread Starter buorus

    (@buorus)

    Kim, thanks for all your help. Have found that minimum cart total 200000 was the issue. Changing to 200,000 with the comma, and all worked fine. Very happy with how it is working. Good plugin. Thanks for it!!

    Thread Starter buorus

    (@buorus)

    cheers

    Plugin Author Gaylord Focker

    (@webdata)

    Glad to hear that! 🙂

    Have a great day,
    Kim

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Use with alternate country, currency (Vietnam)’ is closed to new replies.