Create a Storefront Project
How you create a storefront project depends on whether you are using SFRA or SGJC.
If you are using SFRA, see Adding Custom Cartridges.
If you are using SGJC, perform the steps below.
When you have installed UX Studio and downloaded the API source cartridges, you can create a cartridge for your code.
- Start UX Studio.
- Select File > New > SiteGenesis Storefront Cartridges.
- Select a Salesforce B2C Commerce Server, and click Next.
-
Configure the cartridge, and then click
Finish.
- Create a tern project, which provides code completion in the editor. If you do not create the tern project, code completion isn't available when editing scripts with Commerce Cloud APIs in Eclipse.
Troubleshooting Cartridges
If you don't see a cartridge named myname_storefront_core, it's likely that you created aNew B2C Commerce Cartridge
instead of a
B2C Commerce Storefront Cartridge
.Fix: Delete the cartridge, and create the cartridge again.
If the server connection doesn't have two checkmarks next to it.Fix: Delete the cartridge, and create the cartridge again.