pronetis / pronetis-random-widget
Magento 2 widget for displaying random products in a grid layout.
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
pkg:composer/pronetis/pronetis-random-widget
Requires
- php: ^7.4 || ^8.0
- magento/module-catalog-widget: *
README
Magento 2 widget module that displays a random set of products in a grid format.
Features
- Renders products using native
Magento_CatalogWidgetgrid template - Random product order (uses
ORDER BY RAND()) - Simple integration with default widget interface
- Basic cache control
Installation
composer require pronetis/module-random-widget bin/magento module:enable Pronetis_RandomWidget bin/magento setup:upgrade
Usage
- Go to Content > Widgets > Add Widget
- Choose type: Catalog Products List
- Set design theme and proceed
- In widget options:
- Set widget type to use
Pronetis\RandomWidget\Block\Widget\Random - Set number of products (default: 5)
- Set widget type to use
- Save and clear cache
License
MIT