pronetis / pronetis-random-widget
Magento 2 widget for displaying random products in a grid layout.
Package info
github.com/pronetis-pl/pronetis-random-widget
Type:magento2-module
pkg:composer/pronetis/pronetis-random-widget
1.0.0
2025-05-22 10:14 UTC
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