Jump to content

Bug discount section in Prestashop 1.7.7.1


angular

Recommended Posts

Good Morning!

 

I have a very serious problem where it is very silly. I have a multistore with Prestashop 1.7.7.1 and is that when preparing a discount rule, the conditions and actions tabs do not open or do nothing.

If I open the browser console, I see that it gives me this error 500

No route found for "GET /common/notifications": Method Not Allowed (Allow: POST)

[Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException 0]

 

The link that makes up the tab does not include any href, I think the Javascript function should go here to change the tab. I have tried to delete cache, from prestashop and by FTP, in var/cache but the problem is not there.

 

It happens in all shops in Prestashop, except one, where the tabs is working.

 

Thanks for reading me!

1.png

2.png

3.png

Link to comment
Share on other sites

I have been looking closely and in the end I was able to fix.

I thought not but the problem is due to a front-end conflict with a module called Lava Settings.

This module is responsible for importing templates and their configuration. In a js file called common.js, with JQuery code, there was a line in which it collects the tabs class and assigned the parameter href = "#" to the <a> elements. I have simply commented on this line but it has taken me an hour to analyze the code. 

For someone who can serve, I leave you the captures. To the module Lava, common.js is localizate in modules/lavasetting/view/js/common.js.

For anyone module, you should chech your modules and clear cache

4.png

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...