Page 1 of 1

out of stock warning

Posted: Fri Mar 09, 2012 10:17 am
by MissLiss

I am using the latest opencart 1.5.2
I was wondering how to remove the asterisks in the cart if stock is low.
We make items on demand so there arent stock numbers to subtract from.
In catalogue/products/data i have set:
quanity as 1,
minumum qunatity as 1,
subtract stock as 'no',
out of stock status as 'in stock'

In system/settings/option i have set
display stock as 'no',
show out of stock warning as 'no' (removes the out of stock banner but doesn't remove the red asterisks!)
Store Checkout as 'yes'

I would have thought that if subtract stock was set to 'no' that i wouldn't get out of stock message at all!
Is this a bug or by design?

Thanks for any help you can provide.

Re: out of stock warning

Posted: Fri Mar 09, 2012 9:09 pm
by MissLiss

Re: out of stock warning

Posted: Tue Mar 13, 2012 12:08 am
by uksitebuilder
open: catalog/view/theme/default/template/checkout/cart.tpl

find and delete

Code: Select all

                <?php if (!$product['stock']) { ?>
                <span class="stock">***</span>
                <?php } ?>

Re: out of stock warning

Posted: Wed Mar 14, 2012 12:09 pm
by MissLiss
haha, thanks :)
Not quite what i was expecting but it will do the trick as long as we never have to worry about stock levels!