Jump to content

Edit History

@rthur

@rthur

Salut,

J'essaie d'jouter un code JS dans mon footer mais cela me crée un erreur

(1/1) SmartyCompilerException
Syntax error in template "file:/home/***/public_html/shop/themes/classic/templates/_partials/footer.tpl" on line 75 "<script type="text/javascript">window.addEventListener('load', function(){cal.initBadgeWidget({ url: 'https://url.com/monsite/rdv', text: 'Reserver un creneau', color: '#0069ff', textColor: '#ffffff', branding: true }); } )</script>" - Unexpected ".", expected one of: "}"

Voici le code d'origine

<link href="https://assets.url.com/assets/external/widget.css" rel="stylesheet">
<script src="https://assets.url.com/assets/external/widget.js" type="text/javascript" async></script>
<script type="text/javascript">window.addEventListener('load', function(){Cal.initBadgeWidget({ url: 'https://url.com/monsite/rdv', text: 'Reserver un creneau', color: '#0069ff', textColor: '#ffffff' }); } )</script>

Je suis sous la version 1.7.4.3

Une idée du problème ?

Merci

@rthur

@rthur

J'essaie d'jouter un code JS dans mon footer mais cela me crée un erreur

(1/1) SmartyCompilerException
Syntax error in template "file:/home/***/public_html/shop/themes/classic/templates/_partials/footer.tpl" on line 75 "<script type="text/javascript">window.addEventListener('load', function(){cal.initBadgeWidget({ url: 'https://url.com/monsite/rdv', text: 'Reserver un creneau', color: '#0069ff', textColor: '#ffffff', branding: true }); } )</script>" - Unexpected ".", expected one of: "}"

Voici le code d'origine

<link href="https://assets.url.com/assets/external/widget.css" rel="stylesheet">
<script src="https://assets.url.com/assets/external/widget.js" type="text/javascript" async></script>
<script type="text/javascript">window.addEventListener('load', function(){Cal.initBadgeWidget({ url: 'https://url.com/monsite/rdv', text: 'Reserver un creneau', color: '#0069ff', textColor: '#ffffff' }); } )</script>

Je suis sous la version 1.7.4.3

Une idée du problème ?

Merci

@rthur

@rthur

J'essaie d'jouter un code JS dans mon footer mais cela me crée un erreur

(1/1) SmartyCompilerException
Syntax error in template "file:/home/***/public_html/shop/themes/classic/templates/_partials/footer.tpl" on line 75 "<script type="text/javascript">window.addEventListener('load', function(){cal.initBadgeWidget({ url: 'https://url.com/monsite/rdv', text: 'Reserver un creneau', color: '#0069ff', textColor: '#ffffff', branding: true }); } )</script>" - Unexpected ".", expected one of: "}"

Voici le code d'origine

<link href="https://assets.url.com/assets/external/widget.css" rel="stylesheet">
<script src="https://assets.url.com/assets/external/widget.js" type="text/javascript" async></script>
<script type="text/javascript">window.addEventListener('load', function(){Cal.initBadgeWidget({ url: 'https://url.com/monsite/rdv', text: 'Reserver un creneau', color: '#0069ff', textColor: '#ffffff', branding: true }); } )</script>

Je suis sous la version 1.7.4.3

Une idée du problème ?

Merci

×
×
  • Create New...