Jump to content

Ajax display of assigned template variables


kapastratos

Recommended Posts

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 by kapastratos (see edit history)
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...