Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

help with cart in 2.2


Guest

Recommended Posts

Hi.

 

I have exactly the same problem, and I can't figure out why. However, when I tried to reproduce the behavior on the link you included in your post, I found that the shopping cart was okay.

 

How did you fix it

 

Thanks.

 

-Ethan Rowe

Boston, MA USA

Link to comment
Share on other sites

It's a bit frustrating, isn't it?

 

Well, when I followed your link and tried adding an item to the cart, it was fine. Of course, it was done through the "update" button rather than the "Add" button; this may take you into a different shopping cart action portion of the code (within the application_top.php file) but I don't know. Anyway, it added the item to the shopping cart no problem when I tried it.

 

I verify on my own system that session files are being created and stored, which makes me wonder if the session cookie isn't being set properly.

 

In any case, if we're both having the same problem, why would YOUR shopping cart work for ME? The only difference that I can think of is the name assigned to the server; for me, it's the URL you supplied, but are you accessing it through that URL? Are you accessing it via localhost or the computer name within a LAN or anything like that?

 

Good luck (to us both)

-Ethan

Link to comment
Share on other sites

Well, I got mine working and feel kind of stupid now.

 

Make sure that in your PHP.INI files, you have the register_globals flag set to "On". I didn't ever see this mentioned anywhere as a requirement in the 2.1 code/docs; maybe it's there and I missed it. However, as I started to install 2.2, the first thing the installer said was that register_globals needed to be set on. I decided to try turning it on and using 2.1 and the shopping cart immediately started working.

 

I would prefer to operate with it off, but I guess I won't complain. See if that fixes your problem. :?

 

-Ethan

Link to comment
Share on other sites

Tks Erowe

This is strange, I checked the site from 3 different computers and everything works fine, its only from my computer that I dont see the cart working.

:?

regards

Link to comment
Share on other sites

  • 1 year later...

I have kind of the same problem

I have just upgraded to 2.2 and after the installation I can't log into my account.

Whenever I am trying to lig in it's bringing me back to login.php screen

 

BTW where php.ini is located

Link to comment
Share on other sites

Do any of you use AOL?

 

I had problem with a customer using AOL(could not login) and solved it by changing settings in Admin/Configuration/Sessions

 

Check IP Address=False

 

I also have Force Cookie Use=False

 

 

If this doesn't work, I have no clue.

 

Much luck to you all.

 

Wendy

Link to comment
Share on other sites

  • 1 month later...

hi

 

I did have same problems and changed both the 'forced cookies' and check IP to 'FALSE' in store config.

 

It worked fine.

 

Still go on testing at my site before I officially will be online.

 

Anyone interested can test at www.dbwebtek.com

 

Regards

David B

Link to comment
Share on other sites

  • 2 years later...

your shopping cart is empty! problem...

 

I got a security warning from my hosting company about them changing the register_globals setting to off - the simple workaround if you don't have permission to change the PHP.ini file is to put this in the .htaccess file:

 

php_value register_globals 1

 

the .htaccess file (for noobs like me or if you don't use one already) sits in your root directory btw.

 

hope that helps somebody!

Link to comment
Share on other sites

  • 11 months later...
  • 4 months later...
your shopping cart is empty! problem...

 

I got a security warning from my hosting company about them changing the register_globals setting to off - the simple workaround if you don't have permission to change the PHP.ini file is to put this in the .htaccess file:

 

php_value register_globals 1

 

the .htaccess file (for noobs like me or if you don't use one already) sits in your root directory btw.

 

hope that helps somebody!

 

 

Mine is already changed, and I don't have access to php.ini (or maybe I just can't find it!).....

 

my cart is just a little bit different: I can't add at least 1 item on the site, and I cna't update anything in the cart. any ideas?

 

Thx - Janna

Link to comment
Share on other sites

Excuse my ignorance but where do I find the php.ini file and how do I set the register_globals to "on."

It is in the php folder (c:\php or where ever php is installed) or c:\windows. shows up in phpinfo.

Link to comment
Share on other sites

I am suddenly having the same problem and I cannot for the life of me figure out why! I'm beginning to think I've lost my mind...

 

Everything on the website seems to be put together fine, no other problems. When clicking on any item to add it to the cart, the cart page shows with "Shopping Cart is Empty!" I can log in to the website fine. I can browse, look at all pages, use the admin interface, etc. But I cannot add anything to the shopping cart. I'm thinking it has something to do with sessions and cookies, but no matter how many different configurations I try, nothing seems to be working.

 

No matter how many ways I try to work around it, no fix. :blink:

 

Register Globals On,

Safe Mode Off,

I have made so many adjustments to my configure.php I'm not even sure it's right anymore...

 

I am having some issues with being able to set the correct path in the configure.php, however the site was working perfectly prior to this afternoon so I know that can't be what's causing this particular issue. I corrected a problem with an incorrect path under the admin interface which was causing my shipping and payment module configurations to not display. Once I corrected that, my shopping cart stopped working. But I cannot find *anything* in the configure.php or other files that would be causing this.

 

I've posted configure.php below in the hopes someone may notice a glaring error that would solve this problem. I'm ready to bang my head on the wall...with a client breathing down my neck, I thought I was almost done with this site, and now this...!!!

 

<?php
/*
 $Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
 define('HTTP_SERVER', 'http://www.myurl.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.myurl.com');
 define('HTTPS_CATALOG_SERVER', 'https://www.myurl.com');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
 define('HTTP_COOKIE_DOMAIN', 'www.myurl.com');
 define('HTTPS_COOKIE_DOMAIN', 'myurl.com');
 define('HTTP_COOKIE_PATH', ''); 
 define('HTTPS_COOKIE_PATH', ''); 
 define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server.
 define('DIR_WS_ADMIN', '/admin');
 define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
 define('DIR_WS_CATALOG', '/');
 define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
 define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

// define our database connection
 define('DB_SERVER', 'localhost');
 define('DB_SERVER_USERNAME', 'XXXXX');
 define('DB_SERVER_PASSWORD', 'XXXXXX');
 define('DB_DATABASE', 'XXXXXX');
 define('USE_PCONNECT', 'true');
 define('STORE_SESSIONS', 'mysql');
?>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...