Jump to content

Remote Asset not working


CarlosPopo

Recommended Posts

Hi there,

I need to add a remote js file to all the pages of my shop. It's a PS 8.1 fresh installation.

I have followed the instructions on Home > PrestaShop 8 > Themes > Getting started > Asset management

I have edited the classic theme.yml and added:

assets:
  js:
    all:
      - id: xxxx-widget
        position: bottom
        inline: true
        path: cdn.access-me.software/accssme/accssmetool.js
        priority: 20
        server: remote
        version: 33

But doesn't works, the js script tag doesn't appear in the DOM.

I also tried adding the protocol to the path.

Of course chache is disabled. The YML format is respected. No errors on console or in servers logs.

What is wrong? Is there anything I must do?

theme.yml

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