Jump to content

Edit History

Antoni S

Antoni S

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

Antoni S

Antoni S

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 use v1.7.5.1

Best regards

×
×
  • Create New...