DEMO İNCELE
ÜCRETSİZ İNDİR

Prestashop Özel Ürünler Bloğu

Merhabalar

www.saatmatik.com ürün sayfasının sağında kullandığım özel ürün modülünde prestashop rastgele indirimli ürünleri gösteriyor. Burada benim belirlediğim bir kategoride ürünlerin gösterilmesini istiyorum. Böyle bir düzenleme yapmak mümkün mü ?

Yardımcı olabilecek bir arkadaş var ise çok sevinirim.

Kod:

 	public function hookRightColumn($params) 	{        		if (Configuration::get('PS_CATALOG_MODE')) 			return;                                  $this->_prepHook($params);                                  $specials_product = Product::getPricesDrop((int)$params['cookie']->id_lang, 0, Configuration::get('FIELD_SPECIALPLS_NBR'));                                      $this->smarty->assign(array(                         'specials' => $specials_product,                         'homeSize' => Image::getSize(ImageType::getFormatedName('home')),                         'mediumSize' => Image::getSize(ImageType::getFormatedName('medium'))                 ));                  if(Configuration::get('FIELD_SPECIALPLS_VERTICAL'))                     return $this->display(__FILE__, 'fieldspecialproduct_vertical.tpl');                 else                     return $this->display(__FILE__, 'fieldspecialproduct.tpl'); 		 	} 

Buradaki getPricesDrop class ‘ı aşağıdaki ile değiştirip 137 idli kategorideki ürünlerin gelmesini sağlıyorum fakat resimler ve linki gelmiyor. Bunu nasıl çözebilirim acaba ?

$specials_product = Product::getProducts((int)$params[‘cookie’]->id_lang, 0,10, ‘id_product’, ‘DESC’, 137, true);

WhatsApp Destek Hattı