Norwegian Rat Posted December 5, 2016 Share Posted December 5, 2016 (edited) Got a little issue I'm wonderig about. Here's how to, most likely, reproduce the issue: 1. Hit "Add to cart" using the quick view option on the frontpage. 2. This takes you the summary page. Now hit "Continue shopping" 3. Now you should end up with the "content_only=1"-page of the product, which in my opinion dosen't seem right.. Does anyone know how I can make the whole page show? Using 1.6.1.9/1.6.1.10, default theme, no modifications Regards, Edited December 5, 2016 by Norwegian Rat (see edit history) Link to comment Share on other sites More sharing options...
Axel - CBNMinéraux Posted January 21, 2017 Share Posted January 21, 2017 (edited) Hello, I don't know if you still have this problem, but i just got the solution from Eolia on the french forum. So you need to edit classes/Tools.php, by adding a line around line 437 (the line to add is in bold red). public static function secureReferrer($referrer) { $referrer = str_replace('?content_only=1', '', $referrer); if (preg_match('/^http?:\/\/'.Tools::getServerName().'(:'._PS_SSL_PORT_.')?\/.*$/Ui', $referrer)) { return $referrer; } return __PS_BASE_URI__; } Eolia suggests to do a class override if you want to keep the changes when you update your Prestashop. Edited January 21, 2017 by Axel - CBNMinéraux (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