kyle2k02 Posted June 26, 2013 Share Posted June 26, 2013 Hi there I'm a very newie in Prestashop (sorry for any stupid question) and I would like to know how to call blockuserinfo.php after cart.php is loaded. The question is that once cart.php is loaded (this is the last php loaded in my site) and the basket is updated, I would like to call blockuserinfo.php to load information what I need after... How can I do it? Kind regards Kyle. Link to comment Share on other sites More sharing options...
vekia Posted June 26, 2013 Share Posted June 26, 2013 you don't have to use this module, you can use customer class Customer::something(); all function available here: classes/customer.php Link to comment Share on other sites More sharing options...
kyle2k02 Posted June 26, 2013 Author Share Posted June 26, 2013 Hi vekia and thanks for your answer Sorry but I don't understant you. When I load my site (checking with firebug) I can see a bunch of urls loaded. The last one is cart.php (or blockcart.php). What I want to do is to load blockuserinfo.php also (or a customized php which loads user information and overrides user_info_data in the user_info placeholder) I'm setting up a varnish in front of the prestashop. Everything works as expected but when the user logs into the site. Varnish caches everything except cart.php (to let the cookie reach the backend and to retrieve the cart to the user), and I would like to do the same with the userinfo block. It's similar than to use ESI but at the moment I haven't found how to set up ESI in Prestashop.. so the question, if possible, is how can I do it? Where I can define the order of the php files what I want to load? Kind regards Kyle 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