plaristote Posted May 20, 2012 Share Posted May 20, 2012 Hi ! I'm trying to edit the product page in order to add my own fields and display the price with my own field. And when the form is sent, I will also need for some methods of mine to be called before adding to the cart. Is it possible to do so, and if it is, how ? Thanks ! Link to comment Share on other sites More sharing options...
MEG Venture Posted May 20, 2012 Share Posted May 20, 2012 It is supposed to be possible with Prestashop native functions. I would discover the use of the customization tab of products under Back Office>Catalog as well as attributes, groups and feature tab. Link to comment Share on other sites More sharing options...
plaristote Posted May 21, 2012 Author Share Posted May 21, 2012 (edited) ?? Even if I want to calculate a price from a volume ? Because what I want to do is a bit trickier than groups and options : the price must be in €/square meters. And it's about window glass : so I also have to set thicknesses as option, which are added as a % of the price. And THEN only the price of options is added. And the user must be able to chose the size of the glass he wants. Is it really possible to do all this with the native functions of prestashop ? Edited May 21, 2012 by plaristote (see edit history) Link to comment Share on other sites More sharing options...
MEG Venture Posted May 21, 2012 Share Posted May 21, 2012 As far as I know, the answer is yes. You should discover to find out some workarounds. Link to comment Share on other sites More sharing options...
plaristote Posted May 25, 2012 Author Share Posted May 25, 2012 I've looked everywhere and tried anything without finding any way to do so. In the end, I even resigned myself to modify prestashop code to make it happen. But it's taking way to long, I would need weeks to understand how every involved parts work and how to edit them to include my code (AND it is dirty) I really need to understand how to add quantifiable attributes, and how to specify myself how they influence the price. I'm almost two weeks late on this project ! I'll be infinitely grateful to anyone who can help ! Link to comment Share on other sites More sharing options...
MEG Venture Posted May 25, 2012 Share Posted May 25, 2012 Can you explain what you want to do with an example. Link to comment Share on other sites More sharing options...
plaristote Posted May 25, 2012 Author Share Posted May 25, 2012 Thanks ! For instance, if I want to buy window, I need to chose a size (width and height), a thickness and some options. First, I must compute the price of the options : I take the base price of the window (specified in € per square meter). The price of every option is computed from a percentage of the base price. Then, I get the volume of the window, and multiply it by (base price + options). Finally, I take the last value and add the price of the thickness to it (this last one would work like a regular attribute). The equation looks like this: price = (((base price + options) * area) + thickness) Link to comment Share on other sites More sharing options...
MEG Venture Posted May 25, 2012 Share Posted May 25, 2012 Please PM me your temporary BO info and le me try to do it as an example... Then I can explain... 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