From 51843f364b621ee2bff8455139db5e31c255833a Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Thu, 21 Apr 2022 10:04:39 -0700 Subject: [PATCH] Add footer path. --- client/src/utils/RenderTemplate.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/utils/RenderTemplate.js b/client/src/utils/RenderTemplate.js index 463a56fac..a79e2698b 100644 --- a/client/src/utils/RenderTemplate.js +++ b/client/src/utils/RenderTemplate.js @@ -24,7 +24,7 @@ export default async function RenderTemplate( let { contextData, useShopSpecificTemplate } = await fetchContextData( templateObject ); - console.log(templateObject.name) + console.log(templateObject.name); const { ignoreCustomMargins } = Templates[templateObject.name]; let reportRequest = { @@ -60,6 +60,7 @@ export default async function RenderTemplate( ...templateObject.variables, ...templateObject.context, headerpath: `/${bodyshop.imexshopid}/header.html`, + footerpath: `/${bodyshop.imexshopid}/footer.html`, bodyshop: bodyshop, offset: bodyshop.timezone, //moment().utcOffset(), }, @@ -185,6 +186,7 @@ export async function RenderTemplates( // ...rootTemplate.templateObject.variables, // ...rootTemplate.templateObject.context, headerpath: `/${bodyshop.imexshopid}/header.html`, + footerpath: `/${bodyshop.imexshopid}/footer.html`, bodyshop: bodyshop, offset: moment().utcOffset(), },