Skip to content

Commit be25eae

Browse files
dannyphan2000syadupathi-sf
authored andcommitted
@W-21038080: [1CC][PWA] Add new feature toggle in config to template files (#3609)
* @W-21038080: [1CC][PWA] Add new feature toggle in config to template files Signed-off-by: d.phan <d.phan@salesforce.com> * add new changelog Signed-off-by: d.phan <d.phan@salesforce.com> --------- Signed-off-by: d.phan <d.phan@salesforce.com>
1 parent 5feebe8 commit be25eae

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

packages/pwa-kit-create-app/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## v3.16.0-dev (Feb 09, 2025)
2+
- Add new One-Click Checkout configuration [#3609](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3609)
13

24
## v3.15.0-dev (Nov 05, 2025)
35
- Support email mode by default for passwordless login and password reset in a generated app. [#3525](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3525)

packages/pwa-kit-create-app/assets/bootstrap/js/config/default.js.hbs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ module.exports = {
139139
appSourceId: '{{answers.project.dataCloud.appSourceId}}',
140140
tenantId: '{{answers.project.dataCloud.tenantId}}'
141141
},
142+
// Enable one-click checkout feature
143+
oneClickCheckout: {
144+
enabled: false
145+
},
142146
// Bonus product config
143147
pages: {
144148
cart: {

packages/pwa-kit-create-app/assets/templates/@salesforce/retail-react-app/config/default.js.hbs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ module.exports = {
139139
appSourceId: '{{answers.project.dataCloud.appSourceId}}',
140140
tenantId: '{{answers.project.dataCloud.tenantId}}'
141141
},
142+
// Enable one-click checkout feature
143+
oneClickCheckout: {
144+
enabled: false
145+
},
142146
// Bonus product config
143147
pages: {
144148
cart: {

packages/template-retail-react-app/config/default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ module.exports = {
7272
tenantId: 'g82wgnrvm-ywk9dggrrw8mtggy.pc-rnd'
7373
},
7474
oneClickCheckout: {
75-
enabled: true
75+
enabled: false
7676
},
7777
partialHydrationEnabled: false,
7878
pages: {

0 commit comments

Comments
 (0)