samz Posted March 16, 2014 Share Posted March 16, 2014 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. Where (in which PS files) should I start to add this (crazy) option? Should I do this job in PHP or JS or both? 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. Link to comment Share on other sites More sharing options...
vekia Posted March 16, 2014 Share Posted March 16, 2014 unfortunately, huge modification of prestashop core is necesarry for that. You will need to change - php controllers (code + sql queries) - database modificaiton - js files - template files Where/when are stored the product id, quantity, combinations while the user is shopping? I guess in PHP cookies. in database ps_cart and all corelated tables Link to comment Share on other sites More sharing options...
Enrique Gómez Posted March 17, 2014 Share Posted March 17, 2014 Change the core price behaviour is really hard, so, if you explain why the user needs to change the price manually, probably there will be an alternative. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now