Featured products - Style 1
Featured products list, which is a pre-defined component, is a collection created in a specific design to draw customers' attention to see a certain collection of products primarily.
Twilight comes with three pre-styled featured products components, and this is the style-1 component.Following is the location of this component.Example#
Variables#
HomeFeaturedProductsStyle1
Shared variable in all layout, index.twig, and all components views.
Allowed values:categorymost_saleslatest_productschosen_products
The limit number of products that can be shown.
main_product
array [object {4}]
optionalThe details of the main product in featured product style component.
Main product id of type string.
The product in featured product style component.
Usage#
In general, this pre-styled featured products component starts with checking if there is a main product to display in bigger size:After that, the component list the rest products as pre a pre-defined style. Developer has the option to edit that style. 
扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升

扫码加入交流群Modified at 2025-02-20 07:53:20