kevin_pre Posted May 12, 2011 Share Posted May 12, 2011 Hallo,hat schon jemand versucht die Bilder im Homefeatered Modul bei jedem neunen Aufruf der Seite zu wechseln ?Falls jemand schon Erfahrungen hat wäre ich für eine kurze Info sehr Dankbar! Link to comment Share on other sites More sharing options...
Falk Posted May 18, 2011 Share Posted May 18, 2011 Hi,eigentlich ganz easy wenn man weiss wo :-)In der homefeatured.php function hookHome($params) { global $smarty; $category = new Category(1, Configuration::get('PS_LANG_DEFAULT')); $nb = (int)(Configuration::get('HOME_FEATURED_NBR')); $products = $category->getProducts((int)($params['cookie']->id_lang), 1, ($nb ? $nb : 10));<- einfügen shuffle($products); $smarty->assign(array( 'products' => $products, 'add_prod_display' => Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'), 'homeSize' => Image::getSize('home'))); return $this->display(__FILE__, 'homefeatured.tpl'); }} Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now