Skip to content
This repository was archived by the owner on Feb 8, 2023. It is now read-only.
This repository was archived by the owner on Feb 8, 2023. It is now read-only.

custom uploaded JavaScript is included/executed only after first login #9

Description

@ovidiugabriel

Platform: Prestashop 1.7
Operating System: Windows 10 Pro
Browser: Opera GX LVL1 (core: 67.0.3575.105)

Steps to reproduce

  1. add a simple test.js file with console.log('test.js') in the content box plugin
  2. open a new incognito window and visit the prestashop online store
  3. observe the console logs, you can see there is not "test.js" in the logs
  4. login as a user to the website
  5. observe that 'test.js' is printed at page refresh
  6. logout and refresh the page
  7. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions