Jump to content

"Continue shopping" points you to content_only=1


Norwegian Rat

Recommended Posts

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 by Norwegian Rat (see edit history)
Link to comment
Share on other sites

  • 1 month later...

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 by Axel - CBNMinéraux (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...