Jump to content

[SOLVED] Put php code in a tpl file


nunoprud

Recommended Posts

I´m trying with a link in a blockmyaccountfooter.tpl for example, get the customer id and show the php page for him.

 

After some search i tried {php} {/php} and also { }  tags but no sucess. 

 

I have the version 1.6.0.8 of prestashop.

 

Anybody have tried some similar thing?

 

Regards,

 

nunoprud

Link to comment
Share on other sites

{php}{/php} arent accepted in prestashop anymore

 

 

 

I´m trying with a link in a blockmyaccountfooter.tpl for example, get the customer id and show the php page for him.

what you're trying to achieve? i don't understand well what you said above.

you mean that you want to create link with customer id? link to where?

Link to comment
Share on other sites

Hi vekia,

 

I´m sorry for the 'spam', i read some theads in the forum and php tags not working :(.

 

My objective is from the myaccount page (contains the links for orders, vouchers, personal information, ...), add another personal link based in the customer id.

 

Mean while i read this link http://www.phpeveryday.com/articles/Smarty-Template-My-First-Smarty-P609.html

and editing the MyAccountController.php i get the userid that i need :D

 

You marked topic solved.

 

Thanks for you time.

 

Regards,

Link to comment
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
×
×
  • Create New...