Jump to content

Call another php after cart.php


kyle2k02

Recommended Posts

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

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

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...