Jump to content

How does Presta work with tpl?


Claudio10
 Share

Recommended Posts

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

Share this post


Link to post
Share on other sites

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 php
2. 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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More