Skip to content

Commit

Permalink
extra changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alanthai committed Mar 5, 2024
1 parent 4bc5608 commit 3a3668f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const { boltIgniteEnabled, isShopperLoggedIn: isBoltShopperLoggedIn } = window.B
}
await account.waitForBoltReady();

// unmounts.forEach((unmount) => unmount && unmount());
unmounts.forEach((unmount) => unmount && unmount());
unmounts = [];

const loginModalComponent = Bolt.getComponent('login_modal') || Bolt.create('login_modal');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
locale: "${pdict.locale}",
isShopperLoggedIn: ${pdict.isBoltShopperLoggedIn},
boltIgniteEnabled: ${pdict.config.boltIgniteEnabled},
boltGuestCheckoutOnly: ${pdict.config.boltGuestCheckoutOnly},
};
</script>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<isinclude template="boltEmbed" />
<isif condition="${!empty(pdict.config.boltEnable) && !pdict.customer.registeredUser}">
<isscript>
var assets = require('*/cartridge/scripts/assets.js');
assets.addJs('/js/tokenization.js');
assets.addJs('/js/eventListenerRegistration.js');
</isscript>
<isif condition="${!empty(pdict.config.boltEnable)}">
<isif condition="${!pdict.config.boltGuestCheckoutOnly || !pdict.customer.registeredUser}">
<isscript>
var assets = require('*/cartridge/scripts/assets.js');
assets.addJs('/js/tokenization.js');
assets.addJs('/js/eventListenerRegistration.js');
</isscript>
</isif>
</isif>
<div class="auto-login-div"></div>
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@
<externally-managed-flag>false</externally-managed-flag>
<default-value>false</default-value>
</attribute-definition>
<attribute-definition attribute-id="boltGuestCheckoutOnly">
<display-name xml:lang="x-default">Bolt Guest Checkout Only</display-name>
<type>boolean</type>
<mandatory-flag>false</mandatory-flag>
<externally-managed-flag>false</externally-managed-flag>
<default-value>false</default-value>
</attribute-definition>
<attribute-definition attribute-id="boltSigningSecret">
<display-name xml:lang="x-default">Signing Secret</display-name>
<type>password</type>
Expand All @@ -86,6 +93,7 @@
<attribute attribute-id="boltEnable"/>
<attribute attribute-id="boltEnableSSO"/>
<attribute attribute-id="boltIgniteEnabled"/>
<attribute attribute-id="boltGuestCheckoutOnly"/>
<attribute attribute-id="boltEnableAutoCapture"/>
<attribute attribute-id="boltAPIKey"/>
<attribute attribute-id="boltSigningSecret"/>
Expand Down

0 comments on commit 3a3668f

Please sign in to comment.