public function getProductCollection()
{
if (isset($this->_productCollections[$this->getCurrentCategory()->getId()])) {
$collection = $this->_productCollections[$this->getCurrentCategory()->getId()];
} else {
$collection = $this->collectionProvider->getCollection($this->getCurrentCategory());
$this->prepareProductCollection($collection);
$this->_productCollections[$this->getCurrentCategory()->getId()] = $collection;
}
return $collection;
}
$backorderProductCollection = clone $this->getLayer()->getProductCollection();
$cond = ['{{table}}.backorders IN (1) AND {{table}}.manage_stock=1 AND {{table}}.qty <= 0'];
$backorderProductCollection->joinField(
'csi',
'cataloginventory_stock_item',
'is_in_stock',
'product_id=entity_id',
'(' . join(') OR (', $cond) . ')'
);
как я могу добавить условие backorders_notify_msg! = "" В коллекции выше?