Jump to content

Distance based pricing


Recommended Posts

Hi,

 

I am building a transportation site and new to Prestashop. Wondering if someone can point me into the right direction for the following:

  1. How to add 2 custom form fields (origin & destination) and a submit button on the home page? Will use google maps API to to determine the distance between them.
  2. Once I have the distance, I want to use it as a unit and multiply it with the base price.
  3. Only show product page/price once after the distance is calculated - perhaps what is the best way to achieve this?
  4. Re-use destination for shipping fields

Thank you so much in advance.

Edited by auav (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...