I ask you for the help. My head is already boiling

I can not show statuses without "out of stock". Only all are shown.
What was done:
1. Added to controller category.php
Code: Select all
'quantity' => $result['quantity'], 'status_stock' => $result['stock_status'],
3. In the template I add a phrase( {{status_stock}} ) and frame it in product['quantity']>1.
With this option, the status of absence in the warehouse is not displayed on goods with less than one quantity, but is displayed where the amount is greater than zero. I think it is necessary to make so that "status_id = 3"(out of stock) was not displayed in the category. But how to do that?

Please excuse me for my bad English.