Jump to content

Dynamic Pricing


auav

Recommended Posts

Hi,

 

How can I display dynamic pricing for each product on the catalogue page? I have a form with a logic to take user input and calculate distance for each visitor. In order to show each product price, I need to multiply product base price X distance for actual product price to be show.

 

Example:

Unit price in the shop = $5/km

Distance = 20 km

Show price = $100

 

 

Visitors cannot go to the catalogue page without distance

 

Thanks

Link to comment
Share on other sites

for presta 1.5 it might work relatively easy

Try to override priceCalculation method from Product class and return your price calculated with distance. Make sure you also include the distance inside cacheid

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...