Jump to content

[TIPS] Random New Product


caparuni

Recommended Posts

tampilan di blok produk baru akan random setip kali load page

edit .../modules/blocknewproducts/blocknewproducts.php (skitar line 69)

cari :

$newProducts = Product::getNewProducts(intval($params['cookie']->id_lang), 0, Configuration::get('NEW_PRODUCTS_NBR') );



ganti dengan :

$newProducts = Product::getNewProducts(intval($params['cookie']->id_lang), 0, 50);
shuffle($newProducts);
array_splice($newProducts, Configuration::get('NEW_PRODUCTS_NBR') );




:: semoga berguna ::

Link to comment
Share on other sites

  • 1 year later...

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...