Before You Start
Install a compatible version of the Bolt Cartridge (equal to or newer than 23.5.1).
Set Up in SFCC Bussiness Manager
Step 1: Import Meta Data
- Navigate to SFCC Business Manager > Administration > Site Development > Import & Export.
- Upload system object type extensions file for product page checkout and import it.
- Navigate to Business Manager > Administration > Site Development > System Object Types.
- Click into SitePreference, then click on Attribute Grouping tab, find the group with ID Bolt Payment Setting - Embedded, click on Edit and add the
boltEnablePPCandsfccBaseVersionattribute ids to this group.
Step 2: Configure Site Preferences
- Navigate to Business Manager > Merchant tools > Site Preferences > Custom Preferences.
- Set the following values in preference group Bolt Payment Setting - Embedded:
- • Product Page Checkout: YES
- • SFCC Base Version: The version of SFCC storefront base code (
5.x.xor6.x.x)
Step 3: Configure Open Commerce API Settings
- Navigate to Administration > Site Development > Open Commerce API Settings.
- In the work space, go to
metadata-ppc/bolt-meta-import-ppc/ocapifolder. - Copy the contents of
OCAPIshop.jsonwithin Shop Type > Open Commerce API Settings. - Replace
<<client_id>>with yourclient_id. - Click Save.
- Copy the content of
OCAPIdata.jsonwithin Data Type > Open Commerce API Settings. - Select “Global (organization-wide)” from the Context Selection dropdown.
- Replace
<<client_id>>with yourclient_id. - Click Save.
Step 4: Compile and upload product page checkout cartridge
- In the work space, go to the root directory of embedded cartridges, which contains the
package.jsonfile. - Make sure
dw.jsonfile is properly configured and point to the expected SFCC instance. - Run command
npm run compilePPCto compile the product page checkout cartridge, then run commandupload:sfra_ppcto upload it.
Step 5: Configure Site Path
- Navigate to Administration > Sites > Manage Sites and select the Settings tab.
- Add
int_bolt_sfra_ppcto the cartridge path (beforeint_bolt_embedded_sfraand your custom storefront base cartridge).
INFO
Bolt uses replace mode for Controller Order-Confirm in the int_bolt_sfra_ppc cartridge. If your code also needs to use replace mode for this Controller, apply the PPC-related code in your custom logic. You can find the PPC related code by comparing Order.js file in int_bolt_sfra_ppc cartridge and Order.js file in SFRA base cartridge app_storefront_base.
Set Up in Bolt Division
Reach out to your Bolt Customer Success Manager and ask them to do the following configurations:
- Enable the following division features:
- Pre-auth order creation
- Universal Merchant API
- Frontend order creation
- Cart details side cart
- Multistep checkout
- Add Cart Display ID in Transaction View
- Separate endpoints for shipping calls and tax calls
- RemoteCheckout Orders
- Add a new credential entry for OCAPI Credentials including your SFCC account email, password, and client id and secret.
- Provide the version of SFCC storefront base code (5.x.x or 6.x.x) to your Bolt Customer Success Manager.
Customizations
Bundle Products
To enable product page checkout on a bundled product page, add the addToCartGlobal.isml template file to path [cartridge/templates/default/product/components/] in your app storefront cartridge.
Disable Product Page Checkout for Specific Products
- In Business Manager, navigate to Merchant Tools > Products and Catalogs > Products.
- Search for specific product.
- Then, in the General tab, search for attribute Hide Bolt Button PDP and update the value to Yes and save your work.
Limitations
Product Page Checkout does not support:
- Product Set Products
- Quick View Checkout
- ApplePay on Product Page