roroPrestashop Posted April 22, 2016 Share Posted April 22, 2016 Hi Everyone, I know that it's possible to install Prestashop in a sub-folder of an existing website (ie http://www.site.com/store) while having separate pages, in other sections of the site. But is it possible to display the shopping cart preview in the header outside of "/store" ? So that if someone goes to the store, adds some things in his cart, then goes to a different section (ie http://www.site.com/about) and still see his cart preview? Thanks for any insights!! Link to comment Share on other sites More sharing options...
roroPrestashop Posted April 24, 2016 Author Share Posted April 24, 2016 Hey guys, can anyone help me out with this? Thanks again Link to comment Share on other sites More sharing options...
Prestachamps Posted May 5, 2016 Share Posted May 5, 2016 Hi, It can be possible by creating a custom page that contains only the top hook, and modifying the header.tpl and footer.tpl, to not be shown on that specific page. Then hide all other modules of the top hook(except blockcart) from Prestashop modules->position(i believe you will need to create a custom controller for this page). Regards, Leo Link to comment Share on other sites More sharing options...
roroPrestashop Posted May 6, 2016 Author Share Posted May 6, 2016 Thanks Leo, But then I still need to use the entire Prestashop engine this way, don't I? Or can I just use an iFrame to get that specific "empty" page? Link to comment Share on other sites More sharing options...
Prestachamps Posted May 11, 2016 Share Posted May 11, 2016 Hi, you can use an iframe, or a better nicer solution would be to use an ajax call to that Empty page, then in the onload event of the main page to display the cart in your frontend, this will not slow down the rendering of your page(while the prestashop's empty page response is coming back) As an alternative : for a quicker result you can call the ajax request for the url : http://yourshop.com/yourshopfolder/order?content_only=1 , this will contain the content of the cart page(wihtout the left , top and footer part). from this you can parse the values for the number of products and total sum of the cart, to display at the button, and on hover for the button to display the cart in a popup/dropdown where the client can proceed to the checkout Regards, Leo Link to comment Share on other sites More sharing options...
roroPrestashop Posted May 11, 2016 Author Share Posted May 11, 2016 nice I'll give it a shot with a new project. Thanks Leo! 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