SilverCart\Model\Product\Product::getRandomProducts
get some random products to fill a controller every now and then
Signature
public function getRandomProducts([integer
$amount = 4,
[boolean
$masterProduct = true]] )
Parameters
$amount
— integer- How many products should be returned?
$masterProduct
— boolean- Should only master products be returned?
Returns
- PaginatedList