I believe at some point i thought that "templateVars" might be a bit
generic considering that these code snippets will be mixed in among what in
some cases might be multiple blocks of other custom code in SiteGen
controllers... ie, someone else might have already used "templateVars."
This isn't an issue in SFRA as our .append functions live in their own
scope. we could standardize to one or the other - just keep in mind that
never the twain shall meet in the sense that site owners will either be
adding snippets for SiteGen or using the SFRA cartridge, but not both.
On Mon, Jun 5, 2023 at 6:07 PM Claire Kolln (Integrations Ecom) <
@.***> wrote:
var KLCheckoutHelpers = require('*/cartridge/scripts/klaviyo/checkoutHelpers');
var customerEmail = KLCheckoutHelpers.getEmailFromBasket();
var KLTplVars = KLCheckoutHelpers.startedCheckoutHelper(true, customerEmail);
@aidrian-maze https://github.com/aidrian-maze is there a reason that
for SG the var name for template variables is KLTplVars and for SFRA it
is templateVars? If not can we use templateVars for both for consistency?
I believe at some point i thought that "templateVars" might be a bit generic considering that these code snippets will be mixed in among what in some cases might be multiple blocks of other custom code in SiteGen controllers... ie, someone else might have already used "templateVars." This isn't an issue in SFRA as our .append functions live in their own scope. we could standardize to one or the other - just keep in mind that never the twain shall meet in the sense that site owners will either be adding snippets for SiteGen or using the SFRA cartridge, but not both.
On Mon, Jun 5, 2023 at 6:07 PM Claire Kolln (Integrations Ecom) < @.***> wrote: