Skip to content

Commit

Permalink
KSCU-39, KSCU-40, KSCU-11, KSCU-10, KSCU-4, KSCU-3: clean-up & condit…
Browse files Browse the repository at this point in the history
…ional adjustment.
  • Loading branch information
dknight-mazegroup committed Mar 29, 2023
1 parent e93505e commit 8ae4b80
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<isif condition="${pdict.klid}">
<isinclude template="klaviyo/klaviyoID" />
</isif>
<isif condition="${dw.system.Site.getCurrent().getCustomPreferenceValue('klaviyo_email_selectors')}">
<isif condition="${dw.system.Site.getCurrent().getCustomPreferenceValue('klaviyo_email_selectors') && !empty(dw.system.Site.getCurrent().getCustomPreferenceValue('klaviyo_email_selectors'))}">
<isinclude template="klaviyo/klaviyoListeners" />
</isif>
</isif>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<iscomment>
The JS in this template captures the selectors set in Business Manager and applies klaviyo to the correspondingiing input fields
The JS in this template captures the selectors set in Business Manager and applies klaviyo listeners to the corresponding input fields
so users can be identified when filling out either phone number or email fields within any part of the site. This template is included in
klaviyoFooter.isml within both SFRA & SiteGen.
</iscomment>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<isif condition="${pdict.klid}">
<isinclude template="klaviyo/klaviyoID" />
</isif>
<isif condition="${dw.system.Site.getCurrent().getCustomPreferenceValue('klaviyo_email_selectors')}">
<isif condition="${dw.system.Site.getCurrent().getCustomPreferenceValue('klaviyo_email_selectors') && !empty(dw.system.Site.getCurrent().getCustomPreferenceValue('klaviyo_email_selectors'))}">
<isinclude template="klaviyo/klaviyoListeners" />
</isif>
</isif>
1 change: 0 additions & 1 deletion site_template/common/meta/custom-preference_KSCU-39.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
<type>set-of-string</type>
<mandatory-flag>false</mandatory-flag>
<externally-managed-flag>false</externally-managed-flag>
<default-value>large</default-value>
</attribute-definition>

</custom-attribute-definitions>
Expand Down

0 comments on commit 8ae4b80

Please sign in to comment.