Building and Customizing sections
FastStore offers the ability to extend and customize your store components in the following ways:
Content customization with Headless CMS
Change the behavior of specific components by changing their props in the Headless CMS.
In the VTEX Admin, go to Storefront > Headless CMS and select the section where the desired component is located.
From there, you can customize the component by modifying its props. Find the available props in each native section for customization in the Headless CMS in list of available native sections.
The props changed via Headless CMS overlap the changes made through override. For example, if you change a prop through override and also change it using Headless CMS, the final prop's value will be the one added using CMS.
Theming customization
Change the store theme and component styling using theming and design tokens. For detailed instructions on customizing through these methods, refer to the Store Theme and Styling a Component documentation.
Components and sections customization
You have the following customization options for components and sections:
Type of customization | Description |
---|---|
Override native component's props | Modify the behavior of a specific component by passing additional props to it in your store code. |
Override a native component | Create a new component and override its native equivalent to achieve the desired functionality. |
Create a new section | If the available FastStore native sections do not meet your business requirements, you can create a new section and make it available in the Headless CMS. |
Considerations for customizing components and sections
Use for advanced customizations
Consider using overrides when FastStore design tokens (theming tools) or Headless CMS props alone cannot achieve the customization you need.
Overrides are suitable for making changes in component behavior or replacing components entirely.
Manage Analytics
The
__experimentalProductCard
and SearchInput
components are FastStore components that need to be customized carefully, since they can affect the triggering of events and impact your Intelligent Search Analytics store report.
To understand how these components can affect store analytics while customizing them, refer to the List of native sections and overridable components.API extension
Add new data to existing queries on the FastStore API by extending it. Refer to the API extension guide for more information.