You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The module configuration page in PS 8.1.5 (on Windows) is displayed poorly, because the paypal/views/css/paypal_bo.css file and the paypal/views/js/admin.js file are missing.
I attach a screenshot of the page.
Apparently the problem arises because these 2 files are imported using the constant _PS_MODULE_DIR_ as follows in the file controllers/admin/AdminPaypalConfigurationController.php:
Describe the bug and add screenshots
The module configuration page in PS 8.1.5 (on Windows) is displayed poorly, because the
paypal/views/css/paypal_bo.css
file and thepaypal/views/js/admin.js
file are missing.I attach a screenshot of the page.
Apparently the problem arises because these 2 files are imported using the constant
_PS_MODULE_DIR_
as follows in the filecontrollers/admin/AdminPaypalConfigurationController.php
:By changing the constant
_MODULE_DIR_
withThis solution also works in PS 1.7.
Can I create a PR with the edit?
Thank you.
Expected behavior
That the configuration page is displayed correctly
Steps to reproduce
In PS 8 go to the module configuration page and you will see the problem
PrestaShop version(s) where the bug happened
8.1.5
PHP version(s) where the bug happened
all
The text was updated successfully, but these errors were encountered: