[email protected] Posted July 14, 2011 Share Posted July 14, 2011 HI i need to display extra info on my home page so i have added 2 new fields in my Home Text Editor Module thru editorial.php page and i have manually created separate DB table in my prestashop database. now iam getting that fields displayed in my Back Office Home Text Editor Module but am unable to insert the data in to my table i have written insert code just like used for other field s but am failed to insert the datas . Can any one suggest me the code for doing this and in which corresponding pages i should make changes .THANKS IN ADVANCE. iam using Prestashop version 1.4.1. Link to comment Share on other sites More sharing options...
vivek tripathi Posted July 14, 2011 Share Posted July 14, 2011 Hi I have added two extra field in home text editor (i.e. editor module) download the attached zip file and extract copy EditorialClass.php and editorial.php in module->editorial folderuninstal your module from admin pannel and then reinstall the module. It will automatically add two field in database table editorial_lang and two text field in the page .for your security reason backup your editorial module I hope your problem will resolve nowthese are applicable above prestashop 1.4+ editorial.zip Link to comment Share on other sites More sharing options...
[email protected] Posted July 14, 2011 Author Share Posted July 14, 2011 Thank you very much Mr Vivek Kumar Tripati for responding soon with a error free code for my problem. I need to further disturb you by asking one single query that the new fields 'body_newfield1' 'body_newfield2' i entered in the Home Text Editor Module can be stored in a new table rather than existing table if yes can u pls provide me the code for that bcos i have tried this in the same manner (100% no change !!!) u have done it in this files u have sent but tried to add it with different table but failed i think u can help me out in this manner. Any How thanks A Response Means a Lot.... AnilBangalore Link to comment Share on other sites More sharing options...
vivek tripathi Posted July 15, 2011 Share Posted July 15, 2011 Hi AnilI am sending new files I hope which will meet you requirement in this file a seprate table name new_test is being created and value of two fields(new field1, new field2) will be stored in that for each language option you can get the these value from that table while displaying in front office editorial.zip Link to comment Share on other sites More sharing options...
[email protected] Posted July 15, 2011 Author Share Posted July 15, 2011 Thank you Very much Mr Vivek it helped me a lot and let us keep the same momentum for any other querys. ANIL Link to comment Share on other sites More sharing options...
[email protected] Posted July 18, 2011 Author Share Posted July 18, 2011 Hi Mr Vivek. Today i have come up with new query i think u can solve my problem easily. Thing is that i need to add a youtube video in my product page like in i can add videos in Home page thru Home Text Editor option. if there ia any option like that please tell me in steps to resolve my problem. Thanks in Advance Anil. Link to comment Share on other sites More sharing options...
vivek tripathi Posted July 21, 2011 Share Posted July 21, 2011 Hi AnilI have created module To embed youtube video’s in product pagereffer the following linkhttp://www.prestashop.com/forums/viewthread/120475/ Signature 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