cancel
Showing results for 
Search instead for 
Did you mean: 

How to display random products on home page ?

How to display random products on home page ?

Hello.

In my magento home page , I have added widget to display items from different categories. 

I chose Catalog product list .

I left the cache life time empty as it should update every 24 hour. however, widget only displays the same items and never seems to update , even if i change the cache time or clear the cache .. i have chosen 4 different categories . is this normal or am i doing something wrong? 

I need to display different products each time cache life ends . any suggestion ?

Thanks

3 REPLIES 3

Re: How to display random products on home page ?

Hi @tonysar 

 

Checkout Magento 2 Subcategories Slider extension for displaying products on the home page of your Magento 2 Store. 

 

Hope it Helps

Accept as the solution and hit the Kudos Button

Thank-You.

Re: How to display random products on home page ?

Thanks. 

I am trying to avoid extensions as much as possible. this widgets seems to do the job. 

I have added 4 different widgets to the page . the only one that actually updates is the second widget other 3 shows the same products regardless of cache time or cache being flushed. 

Also , i added border around images , 2 middle images in each row , their borders are touching each other and i can not figure why .. currently developing on temporary domain , you can visit at 

https://tekwar.ca

 

Re: How to display random products on home page ?


@tonysar wrote:
Tellpizzahut

Hello.

In my magento home page , I have added widget to display items from different categories. 

I chose Catalog product list .

I left the cache life time empty as it should update every 24 hour. however, widget only displays the same items and never seems to update , even if i change the cache time or clear the cache .. i have chosen 4 different categories . is this normal or am i doing something wrong? 

I need to display different products each time cache life ends . any suggestion ?

Thanks


Did it work for you, I still facing some issue.