-1
producttabsliderモジュールに表示される製品をランダムに使用したいと思います。SlideTabProduct prestashop
public function hookblockPosition3($params) {
$nb = Configuration::get($this->name . '_p_limit');
$newProducts = Product::getNewProducts((int) Context::getContext()->language->id, 0, ($nb ? $nb : 5));
$specialProducts = Product::getPricesDrop((int) Context::getContext()->language->id, 0, ($nb ? $nb : 5),false,'date_add', 'DESC');
shuffle($specialProducts);
ProductSale::fillProductSales();
$bestseller = $this->getBestSales ((int) Context::getContext()->language->id, 0, ($nb ? $nb : 5), null, null);
shuffle($bestseller);
$category = new Category(Context::getContext()->shop->getCategory(), (int) Context::getContext()->language->id);
shuffle($category);
$featureProduct = $category->getProducts((int) Context::getContext()->language->id, 0, ($nb ? $nb : 5),'date_add', 'DESC');
私はシャッフル()を入力しようとしました。それはカタログ全体ではなく最新の製品だけをランダムに作成します。 誰が助けてくれますか?
私はあなたが私に言った何をしたが、それは動作しません。あなたは "サルド"と "私はサルード"のタブでそれを見ることができます - > specialProducts "私は仲間" - >ベストセラー http://www.sexyshopwebstore.it/new_site/ – user2077311