Frontend cartridge release notes

The frontend cartridge (link_constructor_frontend) adds Constructor to your SFRA storefront: the beacon, the Autocomplete UI, and the PLP UI. You can download it from the Salesforce AppExchange listing.

To see which version is running, look for the sfra-cnstrc-cartridge meta tag in your storefront's page source. Its cartridge_version value is the installed version. You can also open cartridges/link_constructor_frontend/cartridge/constants/version.js in your cartridge code.

3.1.0

  • Purchase tracking now uses the same variable names as the beacon:
    • variantId is now variation_id.
    • itemId is now item_id.
  • Added a price field to purchase items.

3.0.0

  • Added support for one Index key per locale. You can now set the Constructor_ApiKey site preference to a JSON object of locale and key pairs:

    {
      "en_US": "key_xxxxxxxxxx",
      "en_GB": "key_yyyyyyyyyy",
      "fr_FR": "key_zzzzzzzzzz"
    }
  • UI components use the Index key that matches the locale of the current request.

❗️

Breaking change: set up your Index key again

Uploading the new metadata file clears the Constructor_ApiKey site preference. Set it up again after the upload.

2.1.0

  • Added built-in support for the PLP UI component, on both search and browse pages.
  • Added 3 site preferences and some overlay files to customize your PLP experience.

2.0.0

  • Moved 4 functions into their own files:
    • enableBeaconForRoute, from all controllers.
    • getAutocompleteConfig, from hooks/html-head.js.
    • getBeaconBundleName, from hooks/html-head.js.
    • cioAutocompleteUiOnSubmit, from autocomplete-ui.isml.
🚧

Manual updates necessary

If you overlaid any of these functions, move your changes to the new files.

1.4.0

1.3.0

  • The Autocomplete UI now loads from its CDN. The minified copy was removed from the cartridge.
  • Added the Constructor_Autocomplete_Version site preference to choose which Autocomplete UI version to load. See all versions in the Autocomplete UI releases.

1.2.2

  • Added a read-only site preference that tracks the version of the other site preferences.
  • The frontend cartridge now has its own version number, separate from the Connect cartridge.
  • Added the sfra-cnstrc-cartridge meta tag. It shows the cartridge version, the site preferences version, whether the beacon loaded, and whether autocomplete is on.
  • Added a meta tag that shows debug information from the controllers, when relevant.

1.2.1

  • Fixed a compatibility issue with SFRA 5.3.0, where the beacon failed to load on the Order-Confirm page.

1.2.0

  • Added SFCC TypeScript types to the cartridge, for better code completion in your editor.
  • Added built-in support for the Autocomplete UI component.
  • Added 3 site preferences and some overlay files to customize your autocomplete experience.

1.0.1

  • The beacon now loads on the Order-Confirm page, and the cartridge exposes the ConstructorPurchaseData window object. See Data-driven event tracking.

1.0.0

  • First version. It adds the Constructor beacon to your SFRA storefront.

Did this page help you?