Ability to inject custom JS

master
Mark Moffat 2020-01-07 21:21:03 +10:30
parent 0d44ce7cbb
commit bc3e33dbb5
3 changed files with 5 additions and 0 deletions

View File

@ -61,6 +61,9 @@
"googleAnalytics": {
"type": "string"
},
"injectJs": {
"type": "string"
},
"customCss": {
"type": "string"
},

View File

@ -15,6 +15,7 @@
"menuTitle": "Menu",
"footerHtml": "<h4 class="text-center">Powered by expressCart</h4>",
"googleAnalytics": "",
"injectJs": "",
"customCss": ".footer{padding-top: 5px;}",
"currencySymbol": "£",
"paymentGateway": "stripe",

View File

@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
{{#if config.injectJs}}{{{config.injectJs}}}{{/if}}
<title>{{config.cartTitle}} - {{title}}</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">