Platform: Prestashop 1.7
Operating System: Windows 10 Pro
Browser: Opera GX LVL1 (core: 67.0.3575.105)
Steps to reproduce
- add a simple test.js file with console.log('test.js') in the content box plugin
- open a new incognito window and visit the prestashop online store
- observe the console logs, you can see there is not "test.js" in the logs
- login as a user to the website
- observe that 'test.js' is printed at page refresh
- logout and refresh the page
- observe that 'test.js' is still printed at page refresh even if we are not logged in anymore.
Expected result
The script shall be included/executed at step 3 (when a new visitor enters the website)
Actual result
The script is not executed if the visitor does not login at least once. Unable to execute scripts for guest visitors.