The Store object is created during the deployment process. The Store object is the only supplementary object to the CPQ code. You must create a store record. After installing the managed package, there is no way for you can access the Storefront object. You must add a Storefront tab to access the Storefront object.

Apart from the underlying catalog, the Digital Commerce package comes with a store object and tab to map a storefront to a catalog. If you are using an MDO org, there may already be a 'store' object installed. This object is deprecated in favor of the 'Storefront' object that comes with the Digital Commerce package.

After setting up your catalog, the next step is to create a 'Storefront' record. The storefront object is very basic and contains only a couple of fields to map a storefront to a price list and logo for the guest user. The price list should look up to the price list you want the guest user to access and the logo should be an id or a URL of the logo attachment for the store. The storefront record also has a 'banner' related list that can be used to set up banners for the jumbotron component in the reference template. Remember the name of the storefront you created. This will be used in a later step to associate with a storefront codebase.

To add a storefront tab

  1. Go to Setup > Create > Tabs and click New.
  2. From Object, select Storefront.
  3. From Tab Style, select a style and click Next.
  4. Click Next and click Save.

The Storefronts tab is created. You can now create a Storefront record.

To add a storefront record

  1. Click All tabs and click Storefronts.

  2. Click New.

  3. For Storefront Name, type a mandatory name for your storefront.

  4. For Default Locale, select a locale for the users in the storefront.

  5. For Default Price List, select a price list. This is the default price list used for guest users in the storefront.

    There are three price list parameters that can be set in the application:

    • Using API headers.
    • Logged in User must be associated with Contact and Account object that has a price list.
    • Storefront account and price list.
  6. For Default Account for Guest Users, type an account name as the default account for orders placed by guest users from E-Commerce.
  7. For Translation URL, type the URL to retrieve the translation custom labels for the storefront.

  8. For Payment Callback URL, type the payment callback URL.

  9. For Guest Username and Guest Password2, enter a username and password. 

  10. For Configuration Layout, select a layout of your choice. Native is the default layout, meaning if selected, the product details page displays the default Digital Commerce configuration layout. You can select Embedded to provide the same Digital Commerce experience similar to CPQ.

    If you do not see the fields above, add them by editing the layout.

  11. To enable cart revalidation after making changes to the product configuration, select Enable Cart Revalidation. For more information, see Revalidating the Product Configuration in Partner Commerce.
  12. To enable Asset Based Ordering capabilities for your storefront, select Enable ABO.
  13. If you enabled Asset Based Ordering, use the Asset Actions field to enable them for your storefront.
  14. To enable request quote capabilities for the storefront, select Enable Request Quote.
  15. Cache Size is a read-only field specifying the number API cache left behind after clearing the API cache.
  16. To enable tax integration, select Enable Tax Calculations.
  17. To set the purpose of the storefront, select the relevant Channel Type.
  18. To enable Promotion capabilities for your storefront, select Enable Promotions.
  19. For Logo, use Notes and Attachments to attach an image file. Copy and paste the image ID in the Logo field to reference the image. You can also type a URL to reference an externally hosted logo image.
  20. For Enable API Filters, by default, this flag is set to True. To override global filters, you must set this flag to False. For more information, see Enabling API Filters.
  21. Click Save.