На главную страницу попадают товары со скидкой. Что бы на главную выводились товары без скидки, нужно в макете для главной страницы сделать так:
<?php
if (Core::moduleIsActive('shop'))
{
$Shop_Controller_Show = new Shop_Controller_Show(
Core_Entity::factory('Shop', 1)
);
$Shop_Controller_Show
->xsl(
Core_Entity::factory('Xsl')->getByName('МагазинКаталогТоваровНаГлавнойСпецПред')
)
->groupsMode('none')
//->itemsForbiddenTags(array('text'))
->group(FALSE)
->limit(Лимит выводимых товаров на главной странице);
$Shop_Controller_Show
->shopItems()
->queryBuilder()
//->join('shop_item_discounts', 'shop_item_discounts.shop_item_id', '=', 'shop_items.id')
//->join('shop_discounts', 'shop_discounts.id', '=', 'shop_item_discounts.shop_discount_id')
//->where('shop_discounts.active', '=', 1)
//->where('shop_discounts.start_datetime', '<', Core_Date::timestamp2sql(time()))
//->where('shop_discounts.end_datetime', '>', Core_Date::timestamp2sql(time()))
//->where('shop_discounts.deleted', '=', 0)
->clearOrderBy()
->orderBy('RAND()');
$Shop_Controller_Show->show();
}
?>