Random specials

This topic has been marked as resolved.

Hi,

Is there any way that I could make the specials products changes everytime the when the page is refreshed?

Currently the specials products is fixed, it would be great if its possible to make it random changes everytime when the page is refreshed. please help.

November 28, 2011 at 5:04 am #3897

Hi,

you can try this:

open catalog/model/catalog/product.php, and GoTo line 179, which should countain:

$sort_data = array(
and add this on the next row:

'RAND()',
Then open catalog/controller/module/special.php, GoTo line 17, which should contain:

      'sort'  => 'pd.name',
and change it to:

      'sort'  => 'RAND()',

See if this works for you.

Regards,
ThemeBurn team

December 1, 2011 at 5:43 pm #4063

Hay, it works. Thank you so much. you guys are awesome. keep up the good work.

Regards

Steven

December 3, 2011 at 5:53 am #4110

Glad, we’ve helped, Steven :)

Best,
ThemeBurn team

December 4, 2011 at 7:22 pm #4163
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.