Add footer path.
This commit is contained in:
@@ -24,7 +24,7 @@ export default async function RenderTemplate(
|
|||||||
let { contextData, useShopSpecificTemplate } = await fetchContextData(
|
let { contextData, useShopSpecificTemplate } = await fetchContextData(
|
||||||
templateObject
|
templateObject
|
||||||
);
|
);
|
||||||
console.log(templateObject.name)
|
console.log(templateObject.name);
|
||||||
const { ignoreCustomMargins } = Templates[templateObject.name];
|
const { ignoreCustomMargins } = Templates[templateObject.name];
|
||||||
|
|
||||||
let reportRequest = {
|
let reportRequest = {
|
||||||
@@ -60,6 +60,7 @@ export default async function RenderTemplate(
|
|||||||
...templateObject.variables,
|
...templateObject.variables,
|
||||||
...templateObject.context,
|
...templateObject.context,
|
||||||
headerpath: `/${bodyshop.imexshopid}/header.html`,
|
headerpath: `/${bodyshop.imexshopid}/header.html`,
|
||||||
|
footerpath: `/${bodyshop.imexshopid}/footer.html`,
|
||||||
bodyshop: bodyshop,
|
bodyshop: bodyshop,
|
||||||
offset: bodyshop.timezone, //moment().utcOffset(),
|
offset: bodyshop.timezone, //moment().utcOffset(),
|
||||||
},
|
},
|
||||||
@@ -185,6 +186,7 @@ export async function RenderTemplates(
|
|||||||
// ...rootTemplate.templateObject.variables,
|
// ...rootTemplate.templateObject.variables,
|
||||||
// ...rootTemplate.templateObject.context,
|
// ...rootTemplate.templateObject.context,
|
||||||
headerpath: `/${bodyshop.imexshopid}/header.html`,
|
headerpath: `/${bodyshop.imexshopid}/header.html`,
|
||||||
|
footerpath: `/${bodyshop.imexshopid}/footer.html`,
|
||||||
bodyshop: bodyshop,
|
bodyshop: bodyshop,
|
||||||
offset: moment().utcOffset(),
|
offset: moment().utcOffset(),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user