• Resolved pryme

    (@pryme)


    Hello,
    first of all many thanks for this great plugin. Basically it works fine, but the Api request to Google always only transfers the postcode and not the street. I have noticed that the 2nd address line which is actually meant for additional information like apartment number is transferred as street information via the Api. As soon as I enter the street in this field I get the correct distance. How can I change this so that the normal street field is used?
    Many thanks in advance!

    Tim

Viewing 8 replies - 16 through 23 (of 23 total)
  • Plugin Author Sofyan Sitorus

    (@sofyansitorus)

    I also found that your cart page not working how it suppose to be. In cart page, once you submit the shipping calculation form, the previous submitted form data and calculation results will always there no matter how many times you reload your browser. Not really sure how, but I think by trying to deactivate all WooCommerce related plugins then try to reactivate one by one can find to which WooCommerce related plugins is the conflict.

    The “login-step” between cart and checkout is insert by the common plugin “Woocommerce Germanized”. But the problem also exists, if I deactivate this plugin.

    I have not tested it in the checkout with the older versions.

    Plugin Author Sofyan Sitorus

    (@sofyansitorus)

    Here is the cart page I mentioned above. https://www.partyverleih38.com/?page_id=200

    Thank you. I have found the plugin which causes the conflict and deactivated it now.

    But I have another problem: https://www.youtube.com/watch?v=ej2HMZSLX2Q

    On the cart page I have the following fields to add the address:

    – Stadt (city)
    – Stra?e (street)
    – Adresszusatz (adress addition)
    – PLZ (postcode)

    After calculate the distance (click on the button), the informations from postcode and city would be inserted into the adress addition field “postcode stadt” (without my will). After clicking again the calculation button, the distance would change on the correct value. I think you have an assignment error. Can you check this?

    Is it also possible to change the order of the fields? The preverred order is:
    – Stra?e (street)
    – Adresszusatz (adress addition)
    – PLZ (postcode)
    – Stadt (city)

    Plugin Author Sofyan Sitorus

    (@sofyansitorus)

    Oh I see, will take a look the wrong field address value. And for the fields order, it is a WooCommerce standard, but I will think about it, for now I will leave it as is.

    Plugin Author Sofyan Sitorus

    (@sofyansitorus)

    @miksbl Issue for wrong value for address 1 & 2 in the shipping calculator form is fixed in version 2.0.3 that just been released moment ago.

    Thank you!!

    But the distance calculation ist still not correct. I insert two different street informations in the same city (about 2 km apart): https://www.youtube.com/watch?v=qHlhZR7ZlVU

    Plugin Author Sofyan Sitorus

    (@sofyansitorus)

    The distance selected will refer to the “Preferred Route” options you selected in the admin settings. And of course the data will use what was Google API server responded. I cannot magically change it to follow how is google maps response when using google maps web version. If you feel the Google Map web version is better and more accurate, go ahead to use that. This plugin is made as is. No warranty it accurate 100%.

    You can check the raw data send by Google API by turned on the WooCommerce shipping debug mode and the copy and paste the debug output line “API Request URL:” into your browser.

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘Wrong distance calculation because of missing street information at Api request’ is closed to new replies.