kapastratos Posted October 14, 2013 Share Posted October 14, 2013 (edited) Hello, How do I display the "assigned template variables" inside a displayajax() function (I am using prestashop 1.5.6.0). If you go to: sitedomain/index.php?id_product=1&controller=product you see the product but if you go to: sitedomain/index.php?id_product=1&controller=product&ajax=true you see a blank page to have some output in that page I added this function in ProductController.php and it works: public function displayAjax() { echo "something"; } How can I access all the "assigned template variables" that I see usually in the debug console of prestashop...like $combinations $groups... Thank you! Edited October 14, 2013 by kapastratos (see edit history) Link to comment Share on other sites More sharing options...
kapastratos Posted October 14, 2013 Author Share Posted October 14, 2013 (edited) public function displayAjax() { $array= $this->context->smarty->tpl_vars['combinations']; foreach($array as $k => $v) { //some code } } Edited October 14, 2013 by kapastratos (see edit history) 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