Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Who's Online not showing whats in cart


Guest

Recommended Posts

Posted

I'm using MS 2 which has been running fine, but over the last week I noticed when viewing "Who's Online", it is not showing what is in the customer carts.

 

Running a test cart shows me online but not the cart contents... strange.

 

I'm not sure if this would be something through SQL or a file problem?

 

Anyone having the same issue?

Posted

I replaced the whos_online.php and it still does not show.

Posted

Hello

 

I have experienced the same problem - any suggestions are welcome.

 

Sincerely

Cornelius

dog1.jpg Who let the dog out ?!!! Newer trust a smiling dog!
Posted

I have found that most of the sesion errors come from the two configure files. One in catalog/includes/configure.php and the other in admin/includes/configure.php.

the very last line is probably just two single quotes. The default is file /tmp but you have to set this up in the root directory to work, I find putting mysql between the quotes works great.

I don't believe that whos_online is or will show you what is in a customers shopping cart only what page they are on. To see the shopping cart I believe you have the cache turned on and the pathway set in configure.php and then use cache manager.....

Posted

Hello

 

I don't believe that whos_online is or will show you what is in a customers shopping cart only what page they are on.

 

I'm not a shark to php coding - this is the last part of the whos_online.php script - it look like it will show the items an sub total of the cart for the selected costumer in who's online. Can anyboddy figure out what could be wrong in other osc scripts if this isen't working.

 

if (PHP_VERSION < 4) {

        $broken_cart = $cart;

        $cart = new shoppingCart;

        $cart->unserialize($broken_cart);

      }

 

      if (is_object($cart)) {

        $products = $cart->get_products();

        for ($i=0; $i<sizeof($products); $i++) {

          $contents[] = array('text' => $products[$i]['quantity'] . ' x ' . $products[$i]['name']);

        }

 

        if (sizeof($products) > 0) {

          $contents[] = array('text' => tep_draw_separator('pixel_black.gif', '100%', '1'));

          $contents[] = array('align' => 'right', 'text'  => TEXT_SHOPPING_CART_SUBTOTAL . ' ' . $currencies->format($cart->show_total(), true, $currency));

        } else {

          $contents[] = array('text' => ' ');

 

Sincerely

Cornelius

dog1.jpg Who let the dog out ?!!! Newer trust a smiling dog!
Posted

Hello

 

Sometimes it help to ask a question to find the solution self.

 

  if (PHP_VERSION < 4)
is the key. Change it to a higher digit than your running php version - find that in admin/tools/server info - now it's working again.

 

My web provider has changed their php version from 3.something to 4.3 and the shopping cart functionallity stopped working!

 

Sincerely

Cornelius

dog1.jpg Who let the dog out ?!!! Newer trust a smiling dog!
Posted

It worked!

 

I changed the " if (PHP_VERSION < 4) "

 

to

 

if (PHP_VERSION < 5)

 

and everything works fine now.

 

Thanks.....Jeff

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...