Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Wonky shopping cart


Recommended Posts

Hi All,


Having a problem with my site that I need to fix before we start adding products?


There is one product available at the moment which, if I click on the ?Buy? button on:-




I?m taken to:-




And it says ?Your shopping cart is empty? ? Not a login page.


Has anyone had a similar problem? Or know of a thread that has talked about this?


Kind Regards,


Link to comment
Share on other sites

It looks to me like your domain doesnt accept the cookies its being sent, b/c I see a page that says this


Cookie Usage


Cookie Privacy and Security


Cookies must be enabled to purchase online on this store to embrace privacy and security related issues regarding your visit to this site.


By enabling cookie support on your browser, the communication between you and this site is strengthened to be certain it is you who are making transactions on your own behalf, and to prevent leakage of your privacy information.


We have detected that your browser does not support cookies, or has set cookies to be disabled.


To continue shopping online, we encourage you to enable cookies on your browser.


For Internet Explorer browsers, please follow these instructions:


Click on the Tools menubar, and select Internet Options

Select the Security tab, and reset the security level to Medium

We have taken this measurement of security for your benefit, and apologize upfront if any inconveniences are caused.


Please contact the store owner if you have any questions relating to this requirement, or to continue purchasing products offline.


On this page, try to work around this page & it should work, but I don't know how.






Link to comment
Share on other sites

I have enabled in my browser to accept all cookies & thats not even working.




Thanks for taking a look for me Michael. I?ve just tried from a different browser and got the same message!


So, now I get two different errors when trying to buy a product using Internet Explorer on two different computers.


Result 1


This happens on Computer 1 using IE6 or AOL 9.0?


The cookie_usage.php page is displayed saying ?domain doesnt accept the cookies?


Michael (mrgtec) and I, have changed browser settings to accept all cookies - but no change.


Does anyone know what piece of code calls cookie_usage.php to help me with debugging?


In addition, below is my file catalog/includes/configure.php


Does anyone see anything stupid I?ve done wrong here, or does it look ok?


 osCommerce, Open Source E-Commerce Solutions

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://www.datanetworks-uk.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.datanetworks-uk.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'www.datanetworks-uk.com');
 define('HTTPS_COOKIE_DOMAIN', 'www.datanetworks-uk.com');
 define('HTTP_COOKIE_PATH', 'shop/');
 define('HTTPS_COOKIE_PATH', 'shop/');
 define('DIR_WS_HTTP_CATALOG', '/shop/');
 define('DIR_WS_HTTPS_CATALOG', '/shop/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 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_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', '/usr/home/callaght/public_html/shop/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

// define our database connection
 define('DB_SERVER', 'db16b.pair.com'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', '******');
 define('DB_SERVER_PASSWORD', '******');
 define('DB_DATABASE', '**********');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'



Result 2


This happens on Computer 2 using IE6?


The shopping_cart.php page is displayed saying, ?Your shopping cart is empty?




I?ve taken a look at the code that shows ?Your shopping cart is empty?.


What I?ve found is?


In catalog/shopping_cart.php (roughly around line 184) there?s this code:-


$back = sizeof($navigation->path)-2;
if (isset($navigation->path[$back])) {


If -


? is false?


?Then it?ll execute the code that shows ?Your shopping cart is empty?.


Can anyone tell me what




What are the reasons for this to be false?


Thanks in advance for any help!



Link to comment
Share on other sites

Ok, ok! I don't search the forums hard enough first! I've found the answer here...




Thanks for your input Michael.


By the way, the fix...


ADMIN->Configuration->Sessions->Force Cookie Use->False


Can anyone tell me what this means?


Are there any potential security risks/performance issues by setting it to false?




Link to comment
Share on other sites


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

  • Create New...