can somene help me with adding php script to smarty tamplate i tried with {php} tag {/php} like this but i got error saying its unknown tag
can somene help me with adding php script to smarty tamplate i tried with {php} tag {/php} like this but i got error saying its unknown tag
Hello
Please use "assign" with call function in php. You will find lots of usage examples in templates.
Best regards
Robert
Hello
Please use "assign" with call function in php. You will find lots of usage examples in templates.
Best regards
Robert
hello am sorry but can you elaborate more on it
Hello
If you want to execute some php code in tpl template then do it by calling php functions from php template and not write php code in template.
Best regards
Robert
Hello
If you want to execute some php code in tpl template then do it by calling php functions from php template and not write php code in template.
Best regards
Robert
how to include the smarty template in php script or vice versa
Hello
For exmaple:
In php code call template:
Tygh::$app['view']->display('addons/your_addon/views/orders/components/payments/your_addon.tpl');
php tags in smarty in cs-cart are prohibited since logic should be separated from the look and feel
php tags in smarty in cs-cart are prohibited since logic should be separated from the look and feel
so how to add a php logic like sending post request to an api onsmarty tpl file when i cant even use onclick javascript attribute in smarty tpl file
Hello
If on frontend, please analyze file
/design/themes/responsive/templates/addons/paypal_adaptive/views/paypal_adaptive/queue.tpl
On backend
/design/backend/templates/addons/paypal/hooks/payments/properties.post.tpl
These are good examples to analyze.
Best regards
Robert
Hello
If on frontend, please analyze file
/design/themes/responsive/templates/addons/paypal_adaptive/views/paypal_adaptive/queue.tpl
On backend
/design/backend/templates/addons/paypal/hooks/payments/properties.post.tpl
These are good examples to analyze.
Best regards
Robert
am working on frontend and i cant find file queue.tpl any where is there no way to tigger an n click event in smarty tamplate
Hello
This file is in only MV version
Please look into
/design/themes/responsive/templates/views/checkout/components/terms_and_conditions.tpl
Best regards
Robert
so how to add a php logic like sending post request to an api onsmarty tpl file when i cant even use onclick javascript attribute in smarty tpl file
Onclick can be used in Smarty. What kind of issue do you face with it?