jaimesks Posted December 17, 2018 Share Posted December 17, 2018 Hola, quisiera cargar o introducir un script realizado php en el footer ¿alguna idea? he intentado utilizar smarty pero no logro pasar las variables Link to comment Share on other sites More sharing options...
gusman126 Posted December 18, 2018 Share Posted December 18, 2018 Lo mejor seria que desarrollaras un modulo , indicar en el modulo que use el hook de footer, añadir el codigo y enviar las variables al fichero tpl del modulo. o añadir un override con el codigo que necesites añadir. Link to comment Share on other sites More sharing options...
jaimesks Posted December 22, 2018 Author Share Posted December 22, 2018 ya me cree un modulo Link to comment Share on other sites More sharing options...
gusman126 Posted December 26, 2018 Share Posted December 26, 2018 Pues para enviar o añadir una variable y que lo muestre en el tpl se usa en el php -> $this->context->smarty->assign('minprecio', $minprecio); en el tpl {$minprecio} , se recomienda añadir |escape.....} https://www.smarty.net/docsv2/es/language.modifier.escape.tpl Link to comment Share on other sites More sharing options...
burrots Posted March 4, 2019 Share Posted March 4, 2019 (edited) WTF???? script php en el tpl a saco.... 😵😵😵 Solo pensarlo ya me descojono !! 🤣🤣🤣 Edited March 4, 2019 by burrots (see edit history) Link to comment Share on other sites More sharing options...
gusman126 Posted March 4, 2019 Share Posted March 4, 2019 (edited) hace 6 horas, burrots dijo: WTF???? script php en el tpl a saco.... 😵😵😵 Solo pensarlo ya me descojono !! 🤣🤣🤣 ademas de descojonarte , puedes ofrecer algo mas? Edited March 4, 2019 by gusman126 (see edit history) 1 Link to comment Share on other sites More sharing options...
Eusebio100 Posted March 4, 2019 Share Posted March 4, 2019 hace 6 minutos, gusman126 dijo: ademas de descojonarte , puedes ofrecer algo mas? +1 Link to comment Share on other sites More sharing options...
burrots Posted March 7, 2019 Share Posted March 7, 2019 On 3/4/2019 at 11:02 PM, Eusebio100 said: +1 Si dieras mas información, como por ejemplo el codigo q tienes hecho o exactamente lo que quieres hacer, te podriamos ayudar... 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