antalya gergi tavan antalya duvar kağıdı

Reply To: All products are selected for Best Sellers / Featured

Home Support Free Theme: Access Shop All products are selected for Best Sellers / Featured Reply To: All products are selected for Best Sellers / Featured

#4266

Hi There,

Make following changes on those files:
on home-best-sellers.phtml
Instead of this code from line no.10

$_perrow		=	$this->getProductsPerRow();	
	$_helper 		=	$this->helper('catalog/output');
	$_productCollection	=  $this->_getAllProducts();

replace with this code:

$_perrow		=	$this->getProductsPerRow();	
	$_helper 		=	$this->helper('catalog/output');
	$_productCollection	=  $this->_getAllProducts();
   
    $_productCollection = Mage::getModel('catalog/product')->getCollection();
    $_productCollection->getSelect()->order('rand()');
    $_productCollection ->addAttributeToSelect('*');
    
    $_productCollection->addFieldToFilter(array(
        array('attribute'=>'cube_category_bestsellers','eq'=>'1'),
    ));

on home-featured.phtml
Instead of this code from line no.10

$_perrow		=	$this->getProductsPerRow();	
	$_helper 		=	$this->helper('catalog/output');
	$_productCollection	=  $this->_getAllProducts();

replace with this code:

$_perrow		=	$this->getProductsPerRow();	
	$_helper 		=	$this->helper('catalog/output');
	$_productCollection	=  $this->_getAllProducts();
   
    $_productCollection = Mage::getModel('catalog/product')->getCollection();
    $_productCollection->getSelect()->order('rand()');
    $_productCollection ->addAttributeToSelect('*');
    
    $_productCollection->addFieldToFilter(array(
        array('attribute'=>'cube_category_featured','eq'=>'1'),
    ));

Hope this helps you.
Thanks!

anal porno watch porn anal