Set up Bolt on SAP Commerce Cloud
Install the Bolt backoffice and Spartacus frontend modules on SAP Commerce Cloud (hybris).
Install Bolt on SAP Commerce Cloud (also known as hybris) by adding the Bolt backoffice extensions and wiring the Bolt Checkout module into your Spartacus storefront.
The SAP integration is delivered by your Bolt CSM as a package. Contact your CSM to get the Bolt file before you start.
Platform support
This guide is for SAP Commerce Cloud. Other platforms and custom web apps have their own quickstarts.
Prerequisites
- Bolt merchant account
- SAP Commerce Cloud (hybris) installation with access to
/hybris/config - A Spartacus storefront
- The Bolt integration file provided by your CSM
Backoffice setup
- Unzip the Bolt file from your CSM to a temporary folder.
- Copy the
boltbackofficeandboltoccdirectories into your Commerce Cloud installation. - In
/hybris/config/localextensions.xml, register the extensions:
<extension name="boltocc" />
<extension name="boltbackoffice" />- Restart the server (Commerce Cloud: Deploy with Recreate; local:
ant clean all, start the server, then run a system update).
Expected result: the Bolt tab appears in the backoffice menu. If it does not, refresh the backoffice: press F4, open the menu icon, and select Reset Everything.
Frontend setup (Spartacus)
- Copy the Bolt-Checkout folder into
project folder/js_storefront/spartacusstore/src/app/Spartacus. - Import
BoltCheckoutModuleincheckout-feature.module.ts(spartacus/features/checkout) and add it to the moduleimports:
import { BoltCheckoutModule } from '../../bolt-checkout-base/bolt-checkout.module';
@NGModule({
declarations: [],
imports: [CheckoutRootModule, BoltCheckoutModule],
providers: [
provideConfig(<CmsConfig>){
featureModules: {
[CHECKOUT FEATURE]: {
module: () =>
import('../../bolt-checkout-base/bolt-checkout.module').then(
(m) => m.BoltCheckoutModule
),
},
},
},
],
})- Copy the files under
spartacus/features/shared. - In
apps.module.ts, addBoltMessageComponentModuletoimportsand...boltErrorHandlerstoproviders.
Expected result: the Bolt Checkout module builds with your Spartacus storefront.
Production checklist
- Switch to production API keys and dashboard
- Approved production domain
- Processor live credentials configured in the Bolt dashboard
Troubleshooting
- Bolt tab missing in backoffice: reset the backoffice (F4 > menu icon > Reset Everything).
- Extensions not loading: confirm both
boltoccandboltbackofficeare registered inlocalextensions.xmland that a system update ran.