Hi
Could you please forward me your URL, I don't seem to recall seeing these red stars in any OpenCart install I have done.
-Dave
Could you please forward me your URL, I don't seem to recall seeing these red stars in any OpenCart install I have done.
-Dave
Professional Website Services - http://www.davidmgilbert.com/
Active Member
The red stars mean that the item is out of stock.
If you go the store admistration, menu Admin->Configuration->Setting... click on the Stock tab and set Check Stock to yes.
you will get a warning message on the page as well as the stars.
I can't really see the point of OpenCart showing the stars without the warning. Your customers may be confused by them too.
If you go the store admistration, menu Admin->Configuration->Setting... click on the Stock tab and set Check Stock to yes.
you will get a warning message on the page as well as the stars.
I can't really see the point of OpenCart showing the stars without the warning. Your customers may be confused by them too.
Yes,
In catalog\controller\cart.php change
to
and in catalog\template\\cart.tpl change
to
cheers
Bruce
In catalog\controller\cart.php change
Code: Select all
$view->set('error', ((!$cart->hasStock()) && ($config->get('config_stock_check')) ? $language->get('error_stock') : NULL));
Code: Select all
$view->set('error', ((!$cart->hasStock()) && ($config->get('config_stock_check')) ? $language->get('error_stock') : NULL));
//
// Bug Fix: no longer incorrectly show the three red stars if we are not checking stock.
$view->set('config_stock_check', $config->get('config_stock_check'));
Code: Select all
<?php if (!$product['stock']) { ?>
<span>***</span>
<?php } ?>
Code: Select all
<?php // Bug Fix: no longer incorrectly show the three red stars if we are not checking stock. ?>
<?php if (!$product['stock'] && $config_stock_check) { ?>
<span>***</span>
<?php } ?>
Bruce
Who is online
Users browsing this forum: No registered users and 4 guests