Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

From actual Catalog, then clicking My Account, whoa, big dif


Jared Waites

Recommended Posts

Most likely a configuration issue in your /includes/configure.php or you need to set:

  define('STORE_SESSIONS', 'mysql');

 

But without a URL to peek at and a bit more info ... it's kind of hard to help you out ... 8)

Link to comment
Share on other sites

In your files:

 

/includes/configure.php

 

There are settings for the MySQL ... one of the settings is where to store the sessions.

 

Make sure this is:

define('STORE_SESSIONS', 'mysql');

 

 

There could be other problems with these files as well, but this is one thing to check first.

Link to comment
Share on other sites

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

 define('HTTP_SERVER', 'http://www.saltwaterfrags.com'); // eg, http://localhost - should not be empty for productive servers

 define('HTTPS_SERVER', 'https://www.saltwaterfrags.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.saltwaterfrags.com');

 define('HTTPS_COOKIE_DOMAIN', 'www.saltwaterfrags.com');

 define('HTTP_COOKIE_PATH', '/catalog/catalog/');

 define('HTTPS_COOKIE_PATH', '/catalog/catalog/');

 define('DIR_WS_HTTP_CATALOG', '/catalog/catalog/');

 define('DIR_WS_HTTPS_CATALOG', '/catalog/catalog/');

 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/local/psa/home/vhosts/saltwaterfrags.com/httpdocs/catalog/catalog/');

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

 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');



// define our database connection

 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

 define('DB_SERVER_USERNAME', '**********');

 define('DB_SERVER_PASSWORD', '*********');

 define('DB_DATABASE', 'catalog1');

 define('USE_PCONNECT', 'false'); // use persistent connections?

 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

 

There you go Linda, I appreciate the help. By the way, in order for secure checkout, what files do I copy over to https://? I just moved the whole catalog folder over, probably not how you should do things...let me know, Thanks a bunch.

 

- Jared

Link to comment
Share on other sites

Sounds like either you do not have a symbolic link between your secure and non-secure directory or your secure directory does not have the same images and settings as your non-secure directory where the main differences should just be the configure.php files.

Link to comment
Share on other sites

All of the code that is in /httpdocs has to match all of the code in /httpsdocs

 

Let's say you change a definition in the language file in your non-secure file /includes/languages/english.php ... if you do not copy that same change over to the secure directories /include/lanugages/english.php you are reading what it read last time you loaded it and would no longer see the change you just made.

 

The two need to basically be mirrors of one another.

 

You can check with the fellow you are hosting with and see if there is a method to set up a symbolic link for the secure server and then you just need one directory worth of files. Otherwise, you have to remember that what you change on the non-secure files has to be copied also to the secure directories.

Link to comment
Share on other sites

Thanks a bunch. now do you want to help me with a new problem Linda?

 

I'm selling corals and other items via my os commerce site. i'd like to be able to have it setup, like http://www.aquaprop.com he has available if he has it in stock and Sold if its not, if its sold, it stays up on the web, so people can see what he did have. All items are unique, so I'd only have 1 of them anyway...any idea's? I'm also trying to incorporate the contribution that Denis Stankovski made...the product listing, but it doesn't work right, I couldn't get it to work, I just ended up with a blank product page :(

 

- Jared

Link to comment
Share on other sites

another question, on the secure server, does it need to be exactly the same, as in like /catalog/catalog, or will /catalog, be fine?  The non-secure side has /catalog/catalog...

 

- Jared

 

The location isn't so much what matters ... it is that the files are the same.

Link to comment
Share on other sites

Thanks a bunch.  now do you want to help me with a new problem Linda?

 

I'm selling corals and other items via my os commerce site.  i'd like to be able to have it setup, like http://www.aquaprop.com  he has available if he has it in stock and Sold if its not, if its sold, it stays up on the web, so people can see what he did have.  All items are unique, so I'd only have 1 of them anyway...any idea's?  I'm also trying to incorporate the contribution that Denis Stankovski made...the product listing, but it doesn't work right, I couldn't get it to work, I just ended up with a blank product page :(

 

- Jared

 

In the checkout_process.php file is a setting where when the quantity is <= 0 it sets the products_status to 0

 

This needs to be commented out so it does not turn it off.

 

Then, you need to find all the places where a product shows a buy now/in cart button and change that to a sold out or put something in the application_top.php where things that are attempted to be added to the cart do not get added.

 

I usually prefer to edit the buy now/in cart buttons so they read sold out and take you to the product_info.php for the product rather than put something in the cart.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...