Hoppa till huvudinnehåll
Alla ändringar nedan ingår redan i int_kleep_sfra. Om du har åsidosatt dessa mallar i din anpassade varumärkespatron kan du ta bort Kleep-versionerna från int_kleep_sfra/cartridge/templates/default.

Kleep-knappen (PDP + produktspårning)

Lägg till i båda:
  • app_custom_brand/.../experience/components/dynamic/product/productDetails.isml
  • app_custom_brand/.../product/productDetails.isml
<iscomment> CUSTOM KLEEP </iscomment>
<isinclude template="product/components/kleepButton" />
Placera precis före:
<!-- Attributes and Quantity -->
<isinclude template="product/components/mainAttributes" />
Du kan duplicera <isinclude>-taggen var som helst på PDP — alla knappar delar en enda iframe/modal.

Kassaspårning

Lägg till i din kassasmall:
<iscomment> CUSTOM KLEEP </iscomment>
<isinclude template="common/kleepTracking" />
Placera precis efter:
<!-- Step 3: Payment and Billing-->
<isinclude template="checkout/billing/billing" />

Bekräftelsespårning

Lägg till i app_custom_brand/.../checkout/confirmation/confirmation.isml:
<iscomment> CUSTOM KLEEP </iscomment>
<isinclude template="checkout/confirmation/kleepCheckoutCompletedTracking" />
Placera precis efter:
<isscript>
var assets = require('*/cartridge/scripts/assets.js');
assets.addCss('/css/checkout/checkout.css');
assets.addJs('/js/checkoutRegistration.js');
</isscript>