All Release Notes

Enhancements and bug fix to the Store Launchpad for B2B Manufacturing

26 June 2024
Frontend
Frontend Development
Enhancement
Store launchpadsB2B

The Store Launchpad for B2B Manufacturing underwent some changes to enhance the functionality and user experience.

Enhancements

  • A message now appears on the user account pages when there is no data to display.

  • It is now easier to customize the style of your storefront according to your brand using multiple themes. You can do this by adding CSS files to override the default Tailwind CSS. From the Studio, you can then apply a theme either to all page folders or to specific page folders.
    Previously, to apply different themes to your storefront, you had to hard-code them in your codebase.

    To apply custom themes, follow these steps:

    1. Create a .css file with your theme's configuration following the structure of the default.css file located in frontend/styles/themes. To configure multiple themes, create a .css file per theme and give them unique names.

    2. Add the .css file(s) you created to the /styles/themes folder.

    3. In the /styles/app.css file, import the .css file(s) you created.

    4. In the Studio, apply the theme in one of the following ways:

      • Apply to all page folders: go to Developer > Schemas and edit the configuration for the displayTheme field in the page folder schema. To do so, replace the default value of the values.name with the name of your theme, and replace the default value of values.value with the class name of your theme.
      • Apply to a specific page folder: go to Developer > Schemas and edit the configuration for the displayTheme field in the page folder schema. To do so, add to the values array an object with the name field set to the name of your theme and value field set to the class name of your theme. Then, go to Site builder, select the page folder you want to apply the theme to, and click Settings. Finally, edit the fields in the Display properties section by entering the name and class name of your theme.

Bug fix

  • When you are on the Cart page and change the currency from the language and currency menu, the currency now updates correctly. Previously, a bug caused the currency to update on the other pages but not on the Cart page.