Indiesservice Posted May 3, 2013 Share Posted May 3, 2013 hi friends i am new prestashop developer in shooping cart summary page , i need to display the new price below the Total price in mycustom modules how can solve this problem, which controller override in my custom modules i can put the image bellow how can solve the problem Link to comment Share on other sites More sharing options...
vekia Posted May 3, 2013 Share Posted May 3, 2013 controllers / front / cartcontroller.php for php code themes / your_theme / shopping-cart.tpl for template change Link to comment Share on other sites More sharing options...
Indiesservice Posted May 3, 2013 Author Share Posted May 3, 2013 hi..vekia thanks your help but i not understands your answer pls more explain how can we start mycustom modules... Link to comment Share on other sites More sharing options...
vekia Posted May 3, 2013 Share Posted May 3, 2013 now i don't understand what you exactly expect. You said that you want to add new field into shopping cart page. In this case you should edit template file of shopping cart. It is located in your theme directory: themes / Your_Theme / shopping-cart.tpl as i said this is template file of shopping cart section, you can add there own code which will appear in cart page. if you want to add new filed, just add the code in right place (exactly there where you want to display new field) Moreover, prestashop is based on MVC model, which mean that PHP script isn't located in template files, but in controlles / models. Cart controller is located here: controllers / front / cartcontroller.php if you want to add own php script to the cart, edit controller and pass all variables via smarty to the shopping-cart.tpl. to figure out how to deal with all of this - you must know something about smarty / php / object programming / mvc and how prestashop works... Link to comment Share on other sites More sharing options...
Indiesservice Posted May 3, 2013 Author Share Posted May 3, 2013 (edited) thanks for your answer but i edit template file of shopping cart with new fields but when we put the mycustom modules then its not display the cart page can we override the template file in my custom modules? Edited May 3, 2013 by Indiesservice (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 3, 2013 Share Posted May 3, 2013 you may need to turn force compilation on Link to comment Share on other sites More sharing options...
Recommended Posts