Component usage
Add latest products section to your home page:Variables
Array of product objects (automatically populated from latest products)
Sorting number for component placement on the page (starts from zero)
Component attributes
Set to
"latest" to automatically fetch and display the newest productsExample with custom title
Example with limit
To control the number of products displayed, add thelimit attribute:
Translation key
The component uses the translation keyblocks.home.latest_products for the default heading:
- Arabic: “أحدث المنتجات”
- English: “Latest Products”
Features
The component automatically:- Fetches the most recently added products
- Displays products in a responsive grid
- Adapts layout for mobile and desktop
- Shows product cards with standard styling
- Includes product images, names, prices, and add to cart buttons
This is a simple, static component without tabs or sliders. For more advanced layouts, consider using the Featured products or Product slider components.
Styling
The component includes:- Top margin spacing:
mt-6 sm:mt-8 - Container wrapper for proper alignment
- Section title with standard heading style
- Product grid with automatic responsive columns