Hide "Last Few" banner when product is out of stock and you dont use "out of stock banner"

Description

If you use the last few remaining banner but not the out of stock banner, the last few remaining one stays on when the product is out of stock.

Can fix this buy checking the stock on the item when deciding to display the banner or not.

To do;
Open /catalog/includes/modules/product_listing_col.php
Find around line 245;
if ($listing[$x]['products_quantity'] <= CB_LAST_FEW_NO) {
Change to;
if ($listing[$x]['products_quantity'] <= CB_LAST_FEW_NO && $listing[$x]['products_quantity'] > 0) {

Environment

None

Steps to reproduce

None

Assignee

Giles Marshall

Reporter

Scott Murphy

Labels

None

Severity

Tweak

Components

Fix versions

Affects versions

Priority

Configure