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": { "googleAnalytics": {
"type": "string" "type": "string"
}, },
"injectJs": {
"type": "string"
},
"customCss": { "customCss": {
"type": "string" "type": "string"
}, },

View File

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

View File

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