wjq588jk Posted March 12, 2011 Share Posted March 12, 2011 如题,想让这些物品每次点击都显示不同的物品,因这些物品添加的多,请问要怎么实现呢?谢谢! Link to comment Share on other sites More sharing options...
21846657 Posted March 22, 2011 Share Posted March 22, 2011 如果版本是1.3.x,修改modules/homefeatured/homefeatured.php里的第72行 $products = $category->getProducts(intval($params['cookie']->id_lang), 1, ($nb ? $nb : 10)); 为 $products = $category->getProducts(intval($params['cookie']->id_lang), 1, ($nb ? $nb : 10), NULL, NULL, false, true, true, 8); 还没测试1.4的。 Link to comment Share on other sites More sharing options...
paul Posted March 24, 2011 Share Posted March 24, 2011 楼上实现,但是有个缺点不能控制多长时间更新随机一次我已经实现,联系 Link to comment Share on other sites More sharing options...
wjq588jk Posted March 24, 2011 Author Share Posted March 24, 2011 如果版本是1.3.x,修改modules/homefeatured/homefeatured.php里的第72行 $products = $category->getProducts(intval($params['cookie']->id_lang), 1, ($nb ? $nb : 10)); 为 $products = $category->getProducts(intval($params['cookie']->id_lang), 1, ($nb ? $nb : 10), NULL, NULL, false, true, true, 8); 还没测试1.4的。 很牛的代码!刚测试了,可以实现。不过在1.4里面是第98行谢谢! Link to comment Share on other sites More sharing options...
wjq588jk Posted March 24, 2011 Author Share Posted March 24, 2011 楼上实现,但是有个缺点不能控制多长时间更新随机一次我已经实现,联系 请问你说的是它自动随机更新?不刷新的情况下?如何实现的呢?谢谢! 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