Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

base href and empty cart.


Recommended Posts

i am having an empty cart after i click buy now.



i have tried regular and mysql sessions (i could see the sessions in mySql) and it's still not registering anything in the cart. I read something about base href affect sessions, would this be the case using mySql also??? what else could it be?




i am using latest snapshot, php 4.2.3.

Link to comment
Share on other sites

Wether you store sessions in mysql or as a file should not matter.

Looking at your site I could not see anything out of the ordinary so the only thing I can think of is an error in application_top.php where the add-to-cart function is feeding the shoppingcart class. ...

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Link to comment
Share on other sites

define('HTTP_SERVER', 'http://11.11.1111.11); // anon ip address

define('HTTPS_SERVER', 'http://localhost'); // eg, https://localhost - should not be NULL for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('DIR_WS_CATALOG', '/site21/web/catalog/'); // absolute path required

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname

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_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)


define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');


Link to comment
Share on other sites


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

  • Create New...