How To Enable Php Tag On My Tpl Page?

Hello Guys



I want to add php tag in my tpl page like below

{php}

echo “hi”;

{/php}

But whenever i try to do it on my payemt_list.tpl file on the checkout, page went to blank.



I have set allow php tag to true in my conf local page.

But still not working.

Can you tell me what to do?



Please help.





Thank you

Did you try this one.

```php

echo "hi";
?>

```



or use

```php

echo << your html tags here
HTML;
?>

```

[quote name='thomas' timestamp='1427274118' post='208977']

Hello Guys



I want to add php tag in my tpl page like below

{php}

echo “hi”;

{/php}

But whenever i try to do it on my payemt_list.tpl file on the checkout, page went to blank.



I have set allow php tag to true in my conf local page.

But still not working.

Can you tell me what to do?



Please help.





Thank you

[/quote]



Please use the following construction as example to use php functions:



{$param1|fn_my_function:$param2:"param3_value"}




Best regards,

CS-Market.

I have tried the follwing way on my tpl page



{php}

echo “hi”;

{/php}

Where do i have to put the below line?



{$param1|fn_my_function:$param2:“param3_value”}

i just want to display the below on my tpl page (paymen_list.tpl on cs cart version 4.2)



{php}

echo “hi”;

{/php}

[quote name='thomas' timestamp='1427280771' post='209001']

Where do i have to put the below line?



{$param1|fn_my_function:$param2:“param3_value”}

i just want to display the below on my tpl page (paymen_list.tpl on cs cart version 4.2)



{php}

echo “hi”;

{/php}

[/quote]



With your example it will be


{"hi"|echo}



{php} tag is not supported by CS-Cart anymore

{php}[color=#000000][font=Verdana, Helvetica, Arial, sans-serif] tags are deprecated from Smarty, and should not be used. Put your PHP logic in PHP scripts or plugin functions instead.[/font][/color]