Skip to content

Commit

Permalink
Ability to inject custom JS
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Moffat authored and Mark Moffat committed Jan 7, 2020
1 parent 0d44ce7 commit bc3e33d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/baseSchema.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
"googleAnalytics": {
"type": "string"
},
"injectJs": {
"type": "string"
},
"customCss": {
"type": "string"
},
Expand Down
1 change: 1 addition & 0 deletions config/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions views/layouts/layout.hbs
Original file line number Diff line number Diff line change
@@ -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">
Expand Down

0 comments on commit bc3e33d

Please sign in to comment.