-1
Ich möchte zufällig die Produkte, die in Producttabslider Modul erscheinen.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');
Ich habe versucht, shuffle() einzugeben; aber es macht zufällig nur die neuesten Produkte hinzugefügt, und nicht den gesamten Katalog. Wer hilft mir? diese
Ich tat, was du mir gesagt hat, aber es funktioniert nicht. Sie können es in einem Tab "In saldo" und "Ich più venduti" "In saldo" -> specialProducts "Ich più venduti" -> Bestseller http://www.sexyshopwebstore.it/new_site/ – user2077311