xxcoder Posted September 19, 2012 Share Posted September 19, 2012 Hi, I am new to prestashop and I am to modify an already built website using prestashop. I have able to understand the basic architecture regarding front end. but i am having serious problems in understanding how data flows from DB to front end and if i want to insert some data then what would be the way. Although its open source and every thing is visible but i cant seem to get it. Here is an example http://www.traceprint.com/product.php?id_product=549 there is an instant calculator on the left. it shows some attributes of the product which are extracted from database. I really need to go back from the product.tpl to DB and understand how it s flowing. I hope you understand my question. Any guidance regarding this will be of great help. Regards Link to comment Share on other sites More sharing options...
math_php Posted September 20, 2012 Share Posted September 20, 2012 Hi I can not see 'instant calculator' and can not add product to the cart. Give us basic operations you want to make, everything is possible with prestashop Regards Link to comment Share on other sites More sharing options...
xxcoder Posted September 20, 2012 Author Share Posted September 20, 2012 I am sorry. Try this link http://www.traceprint.com/product.php?id_product=551 Basicaly we want to add a form to our website where customers can add their custom quote to order some product. you can take an example of a form with one field "First Name". On submit it goes to Controller layer and then to DB layer (Classess) and then to Phyical Database. We want to understand the core programming of prestashop. Its Variable, functions, classes, etc etc. Link to comment Share on other sites More sharing options...
math_php Posted September 21, 2012 Share Posted September 21, 2012 Hi Adding a dynamic form (options depending on product) in product page will require : - Overriding ProductController : to send customized form (if it varies with product) to product.tpl - Product.tpl : must be modified to use new var sent by override and display them. - CartController must be overrided to use form values (both ajax and also cart.php display). Custom values must also be saved somewhere. That will be for a display product, quote, options and saved in shopping cart. Your request is wide, I can help you on very specific issues then find also information in http://doc.prestashop.com/display/PS14/English+documentation Regards 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