![]() |
storeconstants problem |
Post Reply ![]() |
Author | |
AndreaPou ![]() Newbie ![]() Joined: 19-November-2010 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() Posted: 14-April-2011 at 4:25pm |
Hi Everyone,
I've been testing orders and surfing on our shopping cart. (I'm on version v4.1 BTO). I noticed we were having problems when the address bar switched from: http://www.mydomain.com/ to http://mydomain.com/ Things would drop from the shopping cart and other fun login/logout issues. I traced the links and saw that it was not hard-coded in any of my header or footer files like that. When I did a search in the ProductCart folder, I found the culprit in storeconstants.asp. When I check storeconstants.asp, the scStoreURL for the store is http://mydomain.com. If I change it to http://www.mydomain.com it SOLVES all the issues. I was so excited, then I tried to log in and add more products. BUT, I am locked out of the Control Panel and it tells me my license is invalid and says I'm trying to use the same installation on a different storefront and that the license is only good for one store. If I take the www. back out I can log in, but then I have the surfing problem again. Thoughts? Thank you so much. -Andrea |
|
![]() |
|
ProductCart ![]() Admin Group ![]() ProductCart Team Joined: 01-October-2003 Status: Offline Points: 135 |
![]() ![]() ![]() ![]() ![]() |
Hi Andrea,
We can reset your license but you will need to send us an e-mail and we will let you know what we need from you to verify your license, etc. Please send the e-mail to is at info(at)earlyimpact.com. |
|
![]() |
|
Hamish ![]() Admin Group ![]() Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
![]() ![]() ![]() ![]() ![]() |
Hi Andrea,
The reson for the loss of cart contents is that, to the server, the www and non-www views are separate sites, so a new session is started when you switch. To prevent this see http://wiki.earlyimpact.com/developers/timeout-issues#use_of_different_domain_names |
|
![]() |
|
bodyexposed ![]() Newbie ![]() Joined: 16-September-2008 Location: London UK Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
Hi Hamish,
I have had a similar problem with users (and Google) entering my domain name incorrectly, and have added your wiki code to stringfunctions.asp. This works well, except in the case where a user goes to a page with a SEO URL. This gives an error message when adding to cart, as the URL is misformed. Have you tested the wiki code with SEO URLs turned on ? |
|
Richard Bonfield
Underwear store for men http://www.bodyexposed.co.uk |
|
![]() |
|
Greg Dinger ![]() Certified ProductCart Developers ![]() ![]() Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
![]() ![]() ![]() ![]() ![]() |
Richard, I can't speak to that code, but we have a different approach to the issue.
On our IIS6 servers we run www.helicontech.com ISAPI Rewrite. On IIS7 gear we have URL Rewrite. Using those tools we create rules that handle the www versus non-www requests and it works seamlessly. You may want to ask your host if either is available.
|
|
![]() |
|
AndreaPou ![]() Newbie ![]() Joined: 19-November-2010 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
I just wanted to let you know the problem is fixed. Early Impact support reset my license and I was able to change it to http:www.mydomain.com AND log into the control panel afterward.
Thanks so much Cedric & the rest of the Early Impact Support team. Best wishes, Andrea |
|
![]() |
|
bodyexposed ![]() Newbie ![]() Joined: 16-September-2008 Location: London UK Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
Greg, thanks for the suggestion. It has fixed the problem for me.
|
|
Richard Bonfield
Underwear store for men http://www.bodyexposed.co.uk |
|
![]() |
|
Greg Dinger ![]() Certified ProductCart Developers ![]() ![]() Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
![]() ![]() ![]() ![]() ![]() |
were you on IIS6 or 7?
|
|
![]() |
|
bodyexposed ![]() Newbie ![]() Joined: 16-September-2008 Location: London UK Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
I don't know - I just asked my host first-web.net to redirect one domain to the other.
|
|
Richard Bonfield
Underwear store for men http://www.bodyexposed.co.uk |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |