Open M4RtY opened 1 month ago
Probably another example of a bad result from an unnecessary switch to BEM. I'm guessing the module's scripts use .some-class-selector
but in Hummingbird it got changed to .some--class__selector
causing expected object to be null. Check the .js scripts of the module and update the selectors.
Hello, I have found out interesting issue that is related to the Hummingbird theme. This is official module, and I was trying to install it on "clear" themes (classic and hummingbird). When I switch to classic theme, this module works like a charm, when I activate the hummingbird theme, I am getting the JS errors in console.
Replication steps: 1) Install module from this repository (official) https://github.com/Zasilkovna/prestashop 2) Activate the module and connect to delivery option 3) Create the order and initiate the "Packeta" module 4) Open console and check the logs
Stacktrace:
Conclusion: I know this error comes from the module itself, but it seems that JS is not loaded from the module as expected or there is some conflict. The interesting part is that this module works like a charm with Classic theme, only hummingbird theme is affected. It was not needed to register JS from the module for classic theme and I presume, it should be able to work with the hummingbird theme as well without any compilations.