itxl Posted September 12, 2011 Share Posted September 12, 2011 Hiya, I would like to ask for your help please with a specific block of code... But first here's what Im trying to achieve, i've added a second description (description2) field, so now in my edit/add products page I have a second box for description2, problem is when I enter details in description2 nothing is saved after clicking save button. So i am a bit stuck with prestashop code: in file: admin/tabs/AdminProducts.php I found the updating part of code but somehow I can't find where exactly is the mysql statement that does the saving part, i've searched high and low for days and can't find what i am looking for.. and what does this line of code means? Can someone please tell me where it goes? Hook::updateProduct($object); Thank you very much. Link to comment Share on other sites More sharing options...
Optim'Informatique Posted September 12, 2011 Share Posted September 12, 2011 Hi, The mysql statements is in save function ( in fact in add and update functions ), in ObjectModel.php. ( ObjectModel is the parent class of the Product ). Hook::updateProduct calls the function updateProduct of the Hook class. I hope this will help you. Link to comment Share on other sites More sharing options...
itxl Posted September 15, 2011 Author Share Posted September 15, 2011 Thank you very much for your help Optim'Informatique! Link to comment Share on other sites More sharing options...
Carl Favre Posted September 15, 2011 Share Posted September 15, 2011 Hi itxl, Is your problem fixed ? If it is, could you add [resolved] in your title ? To do so, edit your first post and use the full editor. Thanks 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