Post by daoho » Tue Jan 15, 2008 7:37 am

Why are there 3 stars in the shipping cart next to each product name? I don't find any signifiance of these stars.

Thanks
Best regards

Newbie

Posts

Joined
Thu Jan 10, 2008 3:55 am

Post by daoho » Wed Jan 16, 2008 12:44 am

Anyone can help me plz ??

Newbie

Posts

Joined
Thu Jan 10, 2008 3:55 am

Post by david.gilbert » Wed Jan 16, 2008 2:10 pm

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

Professional Website Services - http://www.davidmgilbert.com/


Active Member

Posts

Joined
Sun Jan 06, 2008 5:02 pm
Location - Mount Compass, South Australia

Post by bruce » Wed Jan 16, 2008 2:14 pm

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.

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm

Post by daoho » Thu Jan 17, 2008 6:29 am

Yep thanks bruce, I got it now !
I guess it's a bug: only the sentence saying that the item is out of stock is disabled when configuring to "no" the check of stock. The stars are currently not disappearing...

Thanks again

Newbie

Posts

Joined
Thu Jan 10, 2008 3:55 am

Post by Heilong » Wed Oct 22, 2008 4:32 pm

I'm running v0.7.7, I got the same problem.

Is there any fix for this problem ?

Thanks,

New member

Posts

Joined
Mon Sep 01, 2008 5:57 pm

Post by bruce » Wed Oct 22, 2008 5:06 pm

Yes,

In catalog\controller\cart.php change

Code: Select all

			$view->set('error', ((!$cart->hasStock()) && ($config->get('config_stock_check')) ? $language->get('error_stock') : NULL));
to

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'));
and in catalog\template\\cart.tpl change

Code: Select all

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

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 } ?>
cheers

Bruce

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm

Post by Qphoria » Wed Oct 22, 2008 7:25 pm

This has also been fixed in 0.7.9 RC1 & RC2

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by bruce » Wed Oct 22, 2008 8:18 pm

good to know  ;)

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm

Post by Heilong » Thu Oct 23, 2008 11:39 am

Thanks it works good  :)

New member

Posts

Joined
Mon Sep 01, 2008 5:57 pm
Who is online

Users browsing this forum: No registered users and 5 guests