Jump to content

php_self not set on home, product page,


Antoni S

Recommended Posts

Hi,

I have encountered an issue with the ps_legalcomplaince module. It was not displaying the "Footer After" information  except for on categories pages.

I changed the following code 

if (isset($this->context->controller->php_self)) {
            if (in_array($this->context->controller->php_self, array('index', 'category', 'prices-drop', 'new-products', 'best-sales', 'search', 'product'))) {

to 

if (TRUE) {
            if (TRUE) {

and deleted the following code:

if ($this->context->controller->php_self == 'product') {
                    
                }

It works now and the information now also displays on home and product pages. However this is not a perfect solution. What should I do? I assume this is not a module-specific issue. Yhis is why I posted in general.

I use v1.7.5.1

Best regards

Edited by Antoni S (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...