Claudio10 Posted June 5, 2010 Share Posted June 5, 2010 Hi folks,If I want to change the way that shows the shopping cart, I have to change the module (blockcart.tpl). Could I do this from the theme?I thought that if i created a blockcart.tpl in my new theme, Presta takes this as a replacement which was defined in the core modules.My goal is to leave the core the most original possible in order to easily update my sites.How does Prestashop work ?Many greetings and thanks for your help!Claudio Link to comment Share on other sites More sharing options...
rocky Posted June 6, 2010 Share Posted June 6, 2010 Did you copy modules/blockcart/blockcart.tpl into themes/yourtheme/modules/blockcart/blockcart.tpl? That should override the module's file in your theme only. Link to comment Share on other sites More sharing options...
Marghoob Suleman Posted June 6, 2010 Share Posted June 6, 2010 Well... First of all good luck for that...I would suggest you to make a copy of your theme/prestashop folder. and change whatever you want in your new one(newly copied folder). So you have copy of original one. take backup whenever you want Prestashop is based on smarty template engine. That is the best template engine... i guess... you can find more about smarty at http://www.smarty.net/only two steps. 1. Set smarty array in php2. fetch in tpl or you can say make layout with smarty array.All the best.Regards,MS Hi folks,If I want to change the way that shows the shopping cart, I have to change the module (blockcart.tpl). Could I do this from the theme?I thought that if i created a blockcart.tpl in my new theme, Presta takes this as a replacement which was defined in the core modules.My goal is to leave the core the most original possible in order to easily update my sites.How does Prestashop work ?Many greetings and thanks for your help!Claudio 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