• Resolved sohaaib

    (@sohaaib)


    I have added 3 CAD amount per km and the shipping distance is 24.4km its giving me $122.19 instead of $75

    • This topic was modified 5 years, 11 months ago by sohaaib.

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

Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Author Sofyan Sitorus

    (@sofyansitorus)

    Hi,

    What was the settings “calculation type” selected?

    Sofyan

    Thread Starter sohaaib

    (@sohaaib)

    Calculation type is per km

    Plugin Author Sofyan Sitorus

    (@sofyansitorus)

    No Sir, I mean the option calculation type right under “Enable Fallback Request” field.

    Thread Starter sohaaib

    (@sohaaib)

    whats the best option ? i have used per shipping class

    Plugin Author Sofyan Sitorus

    (@sofyansitorus)

    Hi @sohaaib,

    What is the best would be the option that fit with your needs. If you want it not multiplied, try the the Per order option. Please make sure you checked the Round Distance option to get rid the decimal from the distance.

    Sofyan

    Thread Starter sohaaib

    (@sohaaib)

    Ok the cost is $5.00 per kilometre (customer does not need to know how calculations are made on back end) but on front end customer will receive total cost (in this example 28 km X $5.00) = $140.00 plus applicable taxes.

    Plugin Author Sofyan Sitorus

    (@sofyansitorus)

    In that case choose “Per Order” option.

    Thread Starter sohaaib

    (@sohaaib)

    And where does i add price for that because there is only additional cost fields there i have added price in it there is no calculation on the checkout page

    Plugin Author Sofyan Sitorus

    (@sofyansitorus)

    Okay please send me screenshot/screencast what you see in the admin panel.

    Thread Starter sohaaib

    (@sohaaib)

    This is what i am seeing

    http://prntscr.com/jb0lbu

    Plugin Author Sofyan Sitorus

    (@sofyansitorus)

    If you already fill the API key and enabled , then try to place order for product that has shipping class “Same Day”. If the distance is 10KM, so the total cost will be 33. Sum from ( 3 x 10 ) + additional cost (3).

    During the test, please activate the Woocommerce debug option to find out if there is something wrong.

    Thread Starter sohaaib

    (@sohaaib)

    The distance between both addresses do not correspond as the same distance as found in google maps? I have added the same addresses on website and on google

    Please see attached pics.

    https://prnt.sc/jb1wuo

    https://prnt.sc/jb1wn7

    Thread Starter sohaaib

    (@sohaaib)

    Sir kindly can you please tell me what i have requested 2 days ago ? On what base distance is calculating?

    Plugin Author Sofyan Sitorus

    (@sofyansitorus)

    Hey,

    Sorry for the late of reply. I am quite busy with office things these days. Answering your question, the distance is calculated using Google Distance Matrix API services. Calculated distance result is affected by the settings of Travel Mode, Route restriction, latitude and longitude defined in the setting, also the shipping address provided characters by characters.

    I hope this the answer of your question.

    In case there was a different calculated distance result with your own application. I recommended you to turn on the WooCommerce debug option, and then copy of the API request URL that will be printed on the cart/checkout page, and then contact the creator of your app to enquire why it different by providing the API request URL.

    Sofyan

    Plugin Author Sofyan Sitorus

    (@sofyansitorus)

    What I mean shipping address provided is also including city, province/state, postal code and country

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Wrong Calculation Cost’ is closed to new replies.