Jump to content

Random "on sale" products in home page


Hyrion Hyrius

Recommended Posts

 

Hello everyone, I would like to modify the "on sale" form on the home page by sorting through id to random sorting, I think it is the ps_specials module, you give me a tip on the fly on the point where to change the code admitted that I have correctly identified the module hehe

Link to comment
Share on other sites

yes i know, 

I found this line of code (around 280)

 

(int)Context::getContext()->language->id, 0, (int)Configuration::get('BLOCKSPECIALS_SPECIALS_NBR')

 

the problem is that I just add

$random = true, $random_number_products: = 4

the page goes wrong, where am i wrong?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...