The Info Sections API allows you to create and manage info sections, which can then be assigned to products using the Products API.
Info sections are displayed on your site, allowing store owners to provide detailed, organized, and comprehensive information about their products.
This API provides all the necessary functionality to manage a bank of info sections, which can be applied to products to ensure a consistent info sections experience across your store.
With the Info Sections API, you can:
It’s important to note the following points before starting to code:
getCatalogVersion()
[https://dev.wix.com/docs/sdk/backend-modules/stores/catalog-provision/get-catalog-version] to get the site's Stores catalog version before using any of the Info Sections V3 API methods. If the site uses Stores Catalog V1, the Info Sections V3 API methods will not be available.To use the InfoSectionsV3 API, install the @wix/stores
package using npm or Yarn:
or
Then import { infoSectionsV3 }
from @wix/stores
:
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates multiple info sections.
Info sections to create.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Deletes multiple info sections.
IDs of info sections to delete.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves multiple info sections by ID or uniqueName
, or creates multiple info sections if those with the passed uniqueName
don't exist.
Note: If an info section with the passed uniqueName
doesn't exist, the uniqueName
and title
fields are required to create a new info section.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Updates multiple info sections.
Each time an info section is updated, revision
increments by 1.
The current revision
must be passed when updating an info section.
This ensures you're working with the latest info section and prevents unintended overwrites.
List of info sections to update.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates an info section.
To assign the info section to a product, include the infoSection.id
or infoSection.uniqueName
when creating or
updating a product.
Info section to create.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.