1

Try this $collection = $this->_orderCollectionFactory->create()->addAttributeToSelect('*'); $collection->getSelect()->join(array('order_item' => 'sales_order_item'),'main_table.entity_id = order_item.order_id'); $collection->addFieldToFilter('order_item.product_type',['neq' => 'configurable']); $collection->addFieldToFilter('...


1

you can use both condition to validate the status <?php if ($_item->getQtyBackordered() || $_item->getQtyOrdered()): ?> <?php $status = $_item->getQtyBackordered() ? $_item->getQtyBackordered() : $_item->getQtyOrdered() ?> <p style="font-size: 12px;"><?php echo $status*1 ?> Backordered.</p> ...


Only top voted, non community-wiki answers of a minimum length are eligible