Salla Docs
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipment API
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Change Log
Salla CLI
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipment API
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Change Log
Salla CLI
Salla - Opensource
Salla - Developers Community
  1. Home Components
  • Getting Started
    • Create a theme
    • Develop a theme
    • Setup a theme
    • Publish a theme
  • Requirements & Review
    • Overview
    • Main Requirements
    • Review Process
      • UI / UX Review
      • Technical Review
      • Metadata Review
      • Pre-Launch Review
  • Files and Folders Structure
    • Directory structure
    • Twilight.json
  • Twig Template Engine
    • Basic syntax
    • Twilight flavoured twig
  • Theme Architecture
    • Layouts
      • Overview
      • Master Layout
      • Global Variables
      • CSS Variables
      • Salla Icons
      • Custom Fonts
      • Hooks
      • Localizations
    • Pages
      • Overview
      • Home Page
      • Product Pages
        • Products listing
        • Single product
      • Customer Pages
        • Profile
        • Orders list
        • Order details
        • Wishlist
        • Notifications
      • Blog Pages
        • Blog listing
        • Single blog
      • Brand Pages
        • Brands listing
        • Single brand
      • Common Pages
        • Cart
        • Loyalty
        • Thank you
        • Single page
        • Landing Page
    • Componenets
      • Overview
      • Home Components
        • Youtube
        • Fixed banner
        • Testimonials
        • Parallax background
        • Photos slider
        • Store features
        • Square photos
        • Fixed products
        • Products slider
        • Featured products - Style 1
        • Featured Products - Style 2
        • Featured Products - Style 3
        • Brands
        • Enhanced Square Banners
        • Main Links
        • Enhanced Slider
        • Slider Products with Headers
        • Latest Products
        • Vertical Menu with Slider
      • Product Components
        • Essentials
        • Options
      • Common Components
        • Header Components
        • Footer Components
        • Comments component
  • Change Log
  1. Home Components

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#

Featured Products Style 1

Variables#

HomeFeaturedProductsStyle1
items
array [object {7}] 
optional
Shared variable in all layout, index.twig, and all components views.
title
string 
optional
Section title.
name
string 
optional
Alias for title.
type
enum<string> 
optional
Allowed values:
categorymost_saleslatest_productschosen_products
featured_product
../models/Product.json
optional
Cannot dereference external references
products
../models/Product.json
optional
Cannot dereference external references
limit
integer 
optional
The limit number of products that can be shown.
id
string 
optional
Section id.
main_product
array [object {4}] 
optional
The details of the main product in featured product style component.
id
string 
optional
Main product id of type string.
title
string 
optional
Offer title.
value
string 
optional
Product name.
product
string 
optional
The product in featured product style component.
position
integer 
optional
Storing block.

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.
Modified at 2024-02-12 13:22:57
Previous
Products slider
Next
Featured Products - Style 2