Add distance calculation to Estimation & Payment Forms

Hello Support Team,

I try to add a calculation of different distances to my E&P Form.
I want the form to calculate a price per kilometer and afterwards add it to the price summary.
Is this task possible for this Plugin? I already generated an API Key for Google Maps like it is said in the oficial doc.
But then I don’t know how to make it happen that a User put in an Address field his contact Informations and automaticaliy the from calculate distance and price.

Can you help me out with this issue?

Thank you for your time

Hi @ArtOfSpring,

Thanks for reaching out.

I’m not sure which issue you’re getting from your form, would you mind providing what you’re expecting to see? Then may I know what’s needed to be calculated? For the meantime, please try this calculation

[price] = [distance_314-312-255-317_257-312-255-256_km]*[variable-15]

And does [variable-15] works? I can’t find it as I can’t translate the selections of the dropdown. Once I understand the setup you’re expecting to see, like what is the multiplier then I’ll reproduce it on my install to see what issue it’s getting. I checked this on E&P documentation directly from their site and you have the correct setup, what I can’t confirm is the calculations as they don’t have any sample.

Thanks!

Hello @rad,

first thank you for helping me with this issue.

We want the Form to calculate a distance to the total price of the product.
So we need a fix address (start point: Berlin) and then the costumer should put in his address and at the end his distance costs shoud be added to the total price below.

This is the distance variable.

I tried to put it in the right element but I am not sure wich element is the right on in combination of the issue to calculate distances/ price in that way.
I thought the calculation should be like this: Distance and its price per kilometer + the total price of the product? This should happen in the last step of the form wehre the costumer is asked to put in his contact information.

Do you have an idea how to fix this?

Thank you for your time!

Hi @ArtOfSpring,

The calculation is not the final price, it only represents the current price of an element. It’s added to the total of all other prices. But, if there is only one element that has the price that happens to have that calculation, and there is no base price, then that basically make it as the final price.

I tried on my install and it seems not possible to have fixed address. Perhaps, that would require custom development in which we can’t provide here in the forum. Would you mind providing valid and complete addresses that I can use for testing? If it’s still not going to work, then I’m afraid it’s not currently possible. Plus, I don’t think that feature is properly using the coordinates based on address, as I can’t make it work regardless of address. We may forward this to the plugin developer in case this is a bug.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.