modules/brands · npm: @86d-store/brands
Installation
config.json:
Configuration
string
default:"\"100\""
Maximum number of products returned by the brand products endpoint. This value is a string for module config compatibility.
Store endpoints
Store endpoints are public and return only active brands. Inactive brands are hidden from the Storefront.Admin endpoints
Admin endpoints require authentication and return brands of all statuses.Components
Add these components to your MDX Template files. Thebrands Module must be listed in config.json.
BrandList
Renders a grid of active brands. Fetches its own data.
number
Maximum number of brands to display.
FeaturedBrands
Renders a row or grid of featured brands. Fetches its own data.
number
Maximum number of featured brands to display.
Types
Notes
- A product can belong to only one brand. Assigning a product to a new brand automatically removes it from its previous brand.
- Store endpoints return only active brands.
getBrandForProductreturnsnullfor inactive brands. - Deleting a brand cascades and removes all associated
BrandProductrecords. - Bulk assign and unassign operations are idempotent. Already-assigned products are skipped, and the return value is the count of new assignments only.