Jump to content

Product page: Calculate price based on height and width (curtains)


lappla

Recommended Posts

Dear Presta community,

 

My objective is to have a dynamic pricing for curtains based on the customer's desired width and height.

I use PS 1.6.

 

 On the products list page, the customer choses a fabric and then enters the product page. There, he enters his desired width and length for the curtain and the quantity of curtains of these dimensions. 

 

When the customer has entered width/length, I would like the shown price to change based on the dimensions. E.g. the fabric costs 10€/squaremeter and the customer enters 4m height and 2m width. I want to displayed price to be 2 (width) x 4 (height) x 10€ = 80€.

 

 

I have added two number inputs on the product page so far, but now I am stuck on how to proceed. I have found this

 

http://stackoverflow.com/questions/18140680/show-product-price-on-fly-to-user-before-add-to-cart-in-prestashop

 

Any help on how to get this done would be appreciated!

 

Thanks

 

Lars

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

  • 8 months later...

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...