Jump to content

How to add an editable field for the current product price?


samz

Recommended Posts

Hello,

A non programer friend want a philanthropic (non-profit) PrestaShop website, that I'm installing/configuring for him. He would like something really weird like this:

on the product detail page, the price should appear in a editable field, and the visitor could be able to change the price typing a new price (even zero) in this field. Then this price (in the field) is used in the checkout process and the final invoice. The default price in this field is the price of the default combination. Clicking a combination will update the field value with the price of the clicked combination.

  1. Where (in which PS files) should I start to add this crazy option?
  2. Should I do this job in PHP or JS or both?
  3. Where/when are stored the product id, quantity, combinations while the user is shopping? I guess in PHP cookies.

The first draft using PrestaShop 1.5.6.2: http://www.airfirst.ch/s/

Thanks and regards.

Edited by samz (see edit history)
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...