View Full Version : Empty Shopping Cart...
notset4life
3-17-04, 05:23 PM
I've seen the various threads on this and a lot of people have had the same problems. I have tried them all and still can't seem to get past the cookie issue. Osscomerce appears to swith back and forth from secure to non-secure, and after adding to cart and trying to checkout, it always says cart is empty. Has anyone found a solution to this...and if so, please advise. I've swithed back and forth from using www, and not using www, from making the sercure domain the same as the non-secure one, but the same problems still exist. TIA.
Here is my configure file:
/ Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://www.cybermidi.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://cybermidi.secure.powweb.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.cybermidi.com');
define('HTTPS_COOKIE_DOMAIN', 'cybermidi.secure.powweb.com');
define('HTTP_COOKIE_PATH', '/catalog/');
define('HTTPS_COOKIE_PATH', '/catalog/');
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/');
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', '/www/c/y/cybermidi.com/htdocs/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', 'xxxxx');
define('DB_SERVER_PASSWORD', 'xxxxx');
define('DB_DATABASE', 'xxxxx');
define('DB_TABLE_PREFIX', xxxxx');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>
Try this change:
define('HTTP_COOKIE_DOMAIN', 'cybermidi.com');
The cart works fine on my store.
notset4life
3-17-04, 07:38 PM
thanks for the reply, but I tried that (as I said in the post, tried with and without www.) I am at a loss right now. Has anyone gotten it to work using the secure.yoursite.powweb.com https server url? If so, what does the config look like and how is it different from mine above? TIA
The only thing that comes to mind is that you may have the "force cookies" option turned on. It will not work on a shared ssl.
Set your cookie domain to what Steve suggested, and turn the cookies off if that's the case.
notset4life
3-17-04, 09:23 PM
here's what it is set to now:
[qoute]
/ Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://cybermidi.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://cybermidi.secure.powweb.com'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'cybermidi.com');
define('HTTPS_COOKIE_DOMAIN', 'cybermidi.com');
define('HTTP_COOKIE_PATH', '/catalog/');
define('HTTPS_COOKIE_PATH', '/catalog/');
define('DIR_WS_HTTP_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/catalog/');
[/quote]
After logging in, and logging in, I see
WHAT's IN MY CART
http://cybermidi.com/catalog/shopping_cart.php
(the same if I click cart contents...and there is an item.
But clicking on checkout bring me to
https://cybermidi.secure.powweb.com/catalog/login.php?osCsid=13ba6384685663d98d60cffbeb269643
WELCOME, PLEASE SIGN IN
I have disabled everything in admins/sessions. I'm on the verge of giving up here :)
Originally posted by notset4life
define('HTTP_COOKIE_DOMAIN', 'cybermidi.com');
define('HTTPS_COOKIE_DOMAIN', 'cybermidi.secure.powweb.com');
This should work
tbonekkt
3-17-04, 10:34 PM
Actually that should be:define('HTTP_COOKIE_DOMAIN', 'cybermidi.com');
define('HTTPS_COOKIE_DOMAIN', 'cybermidicom.secure.powweb.com');
Originally posted by tbonekkt
Actually that should be:define('HTTP_COOKIE_DOMAIN', 'cybermidi.com');
define('HTTPS_COOKIE_DOMAIN', 'cybermidicom.secure.powweb.com');
that's only if HTTPS_SEREVER is set to https://cybermidicom.secure.powweb.com
The old settings still work
tbonekkt
3-17-04, 10:40 PM
Good point. :)
I am however happy about the new alternate ssl urls :)
tbonekkt
3-17-04, 10:43 PM
Originally posted by natural
I am however happy about the new alternate ssl urls :) I think most of us are. I'm also happy the old method still works. :cool:
Originally posted by tbonekkt
I think most of us are. I'm also happy the old method still works. :cool:
:D
notset4life
3-17-04, 11:05 PM
Originally posted by natural
that's only if HTTPS_SEREVER is set to https://cybermidicom.secure.powweb.com
The old settings still work
Thanks guys for the help...it FINALLY works.
For some reason, cybermidi.secure.powweb.com wouldnt work, butcybermidicom.secure.powweb.com does....go figure.
thanks again.
notset4life
3-18-04, 12:25 AM
..but now another problem...I've become crosslinked with another powweb site. My site looks fine until I click things, suddenly the categories change. I see "wreaths" now as the only category. I click it and it takes me annagifts.com...who now has MY categories. (I did a whois and it told me it's a powweb site)
????????
I assume I need to change something else now?
A guess - you enabled the Cache feature in the Admin panel and didn't change the cache directory from the default. This happened to someone else the other day.
Create a folder tmp in your top-level directory (alongside, not IN htdocs). Change the cache folder name to /www/u/username/tmp where u and username are the first letter of your master username and the username itself (similar to what you specified as DIR_FS_DOCUMENT_ROOT).
notset4life
3-18-04, 01:03 AM
saved me again.
Much appreciated.
tacimala
3-18-04, 06:52 PM
So here's a related question. That's a nice feature that they added for using the SSL server to reflect the site name rather than just the user name, but what if you use aliases/virtual domains on your server? For example, www.digitalthirdcoast.net is my main package and I paid the $25 to have a pointer set up for www.hiskingdomkards.com, one of my clients. I'm finding out that I may want to now use the secure portion of the server for hiskingdomkards.com, but will https://hiskingdomkardscom.secure.powweb.com work for the alias as well? It doesn't appear so by clicking the link. :(
No, that won't work. But please note that you're not allowed to resell portions of a hosting package, which it sounds like you are doing. Each of your clients should have their own package, and then this won't be an issue.
tacimala
3-20-04, 01:00 PM
I was unaware that you were not allowed to do that. Regardless, I'm not reselling the hosting package, I just offer web hosting as an added incentive to my web advertising. It is nice that Powweb has it so easily set up to add more domains and manage them on the same server. I'm able to keep my costs low to my customers this way. I could see how it could look like I'm doing something I shouldn't be, but please understand that this is not my intention. I just want to be able to give my customers the best service I can at the lowest prices I can. They all understand that I set them up this way and I share with them the prices to set it up.
On a somewhat related note to the beginning of the thread, I'm having problems with my shopping cart saving the items while browsing across certain areas of the site, but I'm not using the powweb secure server as I am using 2checkout to handle my processing. www.hiskingdomkards.com/catalog/index.php is the entrance to the catalog. Any ideas?
I can't help with 2checkout, but you do need to use PowWeb's secure server for the "login" part. That's separate from the checkout, I think.
BTW, what you are doing is a violation of PowWeb's policy against reselling parts of a package. You're being paid for a service which you provide through sharing a single hosting package.
tacimala
3-20-04, 05:36 PM
I'm not reselling though and I'm not making any money by doing this, that's still against the rules? I finally found the policy and have read it over and the way I read it, I'm not doing anything wrong if I'm not actually selling it. Regardless of that for now, would you recommend me buying a new package to resolve the problems with the shopping cart?
Thanks for pointing out my wrongdoings.
I don't know that separate packages would help your cart issues. I do know that you have to properly configure the HTTPS_SERVER entries in the configure.php files to be your PowWeb SSL base URL as shown in OPS. The checkout is something else entirely, I think.
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.