Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with OSCommerce MS2


Guest

Recommended Posts

Hello Everyone,

 

I have found a place online where I was given php with MYSQL plus some other awesome features including fully loaded control Panel with 120MB of space and free hosting to pretty much have a website online all for free.

 

Now since I've never installed OSCommerce from scratch myself before, I have decided to do it this time and see what it is like.

I downloaded the latest version MS2 and installed it .. All went through just fine.

Now there is something that I do not understand.

When I select let's say a product and click on buy, I can see the product in my cart with all the buttons at the bottom like it should.

I click on checkout and go through the sign in process. Now here comes the problem.

When I login, instead of continuing with my order, it automatically says :<< Your shopping cart is empty>> and give me a continue button which when I click on, take me back to the index page and log me off as if I never signed in.

Please take a look for yourself by clicking: HERE.

 

I have also noticed something that is either I am not sure if I did downloaded the right version of oscommerce but in the MS2 that I have, some files are missing I mean compare to the version of OSCommerce I have on my other website.

Such as: account edit process with some other but I cannot remember them right now.

I noticed it when I was trying to install a contribution and saw that I didn't have certain file so I couldn't install the contributions.

Is it just me or that's how the new version is:

 

Thanks in advance.

Link to comment
Share on other sites

check your settings for sessions and your cookie paths and domains in your config.php files as the issue seems to be going in and out of SSL

 

You can check the version in includes/application_top.php

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

I am not sure what you mean but this is what's in my configure.php :

 

 

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

  define('HTTPS_SERVER', 'https://ssl.perfora.net'); // eg, https://localhost - should not be empty for productive servers

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

  define('HTTP_COOKIE_DOMAIN', 'benmardesign.com');

  define('HTTPS_COOKIE_DOMAIN', 'benmardesign.com');

  define('HTTP_COOKIE_PATH', '/');

  define('HTTPS_COOKIE_PATH', '/');

  define('DIR_WS_HTTP_CATALOG', '/');

  define('DIR_WS_HTTPS_CATALOG', '/benmardesign.com/');

  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', '/htdocs/mainwebsite_html/');

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

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

 

// define our database connection

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

  define('DB_SERVER_USERNAME', 'MYDB_Username');

  define('DB_SERVER_PASSWORD', 'MYDB_Password');

  define('DB_DATABASE', 'MYDB_Name');

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

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

 

What do you think is wrong in this?

The path I see them are set to this: (/)

Should that be changed to something else?

 

Thanks again for your time.

Link to comment
Share on other sites

Believe this line:

define('HTTPS_SERVER', 'https://ssl.perfora.net');

 

Should reflect the full path to your shared certificate:

 

define('HTTPS_SERVER', 'https://ssl.perfora.net/benmardesign.com');

 

 

Also think this:

 

define('HTTPS_COOKIE_DOMAIN', 'benmardesign.com');

 

should be:

 

define('HTTPS_COOKIE_DOMAIN', 'ssl.perfora.net/benmardesign.com')

 

Hope this works,

 

Jason

Link to comment
Share on other sites

are you using two catalogs

 

define('DIR_WS_HTTP_CATALOG', '/');
?define('DIR_WS_HTTPS_CATALOG', '/benmardesign.com/');

try

define('DIR_WS_HTTP_CATALOG', '/');
?define('DIR_WS_HTTPS_CATALOG', '/');

I ask because some shared hosting ask that you store files in htdocs and

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

I was able to create an account and place an order.

 

I selected product first, then created an account and the product was still there.

 

Sorry I had to place an order. I didn't complete it (checkout), but it was the only way I knew to see if it was working. You can delete the order.

 

Jason

Link to comment
Share on other sites

Sorry I had to place an order. I didn't complete it (checkout), but it was the only way I knew to see if it was working. You can delete the order.

 

No worries at all.

This is a test site anyway.. so no biggie.

 

It is exactly what I was saying: You cannot get pass the shopping cart , at least I cant. When I try to, it takes me back on a loop to the index page and log me off all the time. I disabled my norton auto-protect but that wasn't it.

 

It is so strange. When I click on << Log yourself in >> on the index page, it automatically recognizes me as a customer but will net let me get pass the shopping cart.

 

I just do not have ANY idea as of what is going on. I did everything you guys suggested but still it is just not working.

 

And also, I was asked if I had 2 catalogs, the answer is " NO" I do not.

 

Thanks again.

I really appreciate your time and help folks.

Link to comment
Share on other sites

Why is your SSL server one name and the HTTPS Cookie Domain different?

 

  define('HTTPS_SERVER', 'https://ssl.perfora.net'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'benmardesign.com');
 define('HTTPS_COOKIE_DOMAIN', 'benmardesign.com');

 

They should be the same such as:

 

  define('HTTPS_SERVER', 'https://ssl.perfora.net'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'benmardesign.com');
 define('HTTPS_COOKIE_DOMAIN', 'ssl.perfora.net');

 

or....

 

  define('HTTPS_SERVER', 'https://benmardesign.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'benmardesign.com');
 define('HTTPS_COOKIE_DOMAIN', 'benmardesign.com');

Link to comment
Share on other sites

I had the same problem !

 

Overcame it by changing the HTTPS cookie domain to my SSL + login as below:

 

define('HTTPS_SERVER', 'https://Secure server eg. xxx.com/~Your Login'); // eg, https://localhost - should not be empty for productive servers

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

define('HTTP_COOKIE_DOMAIN', 'http://regencywebdesign.eu.com');

define('HTTPS_COOKIE_DOMAIN', 'https://regencywebdesign.eu.com');

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

define('HTTPS_COOKIE_PATH', 'http://Secure server eg. xxx.com/~Your Login');

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

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

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

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

 

This cured my problem. My secure server is also a different address to my main site.

 

Good luck!

 

G

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...