How to upgrade SFCC with a customization
Learn how to upgrade your SFCC cartridge while keeping your customizations.
How to upgrade your Salesforce Commerce Cloud cartridge with a customization
You want to upgrade your Salesforce Commerce Cloud Cartridge and keep your customizations.
Open the branch of the cartridge you want to upgrade.
Before the cartridge upgrade, make sure your customisations are in the custom folder inside of the cartridge structure, as shown in the How to customize your SFCC cartridge video.
This is where you’ve saved the Terms and conditions checkbox customisation on the checkout.
Check that the customisation is active on the front-end.
To upgrade the latest release version, apply a ‘git merge’ command on the latest release.
The cartridge version will be upgraded while the folder with customisations remains unmodified.
Next, set the configuration in dw.json. Run ‘npm run build’ to upload the new cartridge to the Salesforce Commerce Cloud sandbox.
The last step is uploading the built site metadata with the matching site name into your Salesforce Commerce cloud instance through Business Manager.
Your upgrade is done!
And the best part: your customizations carried over to the new cartridge version.