[#1019] Charging extra fee for customer location distance

Migrated from Redmine #1019 | Author: Christian Gruber
Status: Closed | Priority: Normal | Created: 2023-03-07


Our service takes place at the customers’ venue. There can be a travel distance from 1 to 150 km, and we would like to charge for that. From 0-50km it’s for free, 50-75km 50€, 75-100km 100€ and so on. We really need to have these additional transport costs in the Simplybook invoice, since we would have to create another separate invoice for all these transport costs.

We already included an additional client form field “Location address”, but it’s just for us as information where the event takes place.

We need a plugin that takes the value of this field and calculates the additional transport cost that is included in the shopping cart before payment. The invoice obviously also should include that fee.

Is it possible to calculate the price of a certain “service addon” regarding of a customer’s input? We have a programmer who would provide the function, but is there an API to Simplybook for this?

How the transport fee is calculated is not part of Simplybook. On a value change event of a user input of field X (Location address) it should call our API and the correct amount is returned and added to the shopping cart sum.

Thank you!

Christian

Redmine Admin wrote:

hi, it would be better if you contact our Live help because this question does not relate to API. In ANY case you can use service addons to solve this. Each addon may have own price and be named like “50 km distance”, etc.