Problem in Customer Resgisration Template

General ShopSite user discussion

Problem in Customer Resgisration Template

Postby priscila » Mon Dec 10, 2007 4:44 am

I am using custom template for shopping cart & customer registration pages. Here, I am facing a problem. After I logged in , it should show a message like 'Welcome .... .....' , which is customer's first name & last name and a sing out link in header section of [-- DEFINE View_Edit --] page of customer registration template. But, it doesn't show the message & shows sign in/registration link in [-- DEFINE View_Edit --] page. Again, if I click view cart link in that page it goes to [-- DEFINE ShoppingCart --] page of shopping cart template and shows the message & sign out link correctly. And after that if I click My Account option to see my profile & others in [-- DEFINE View_Edit --] then it shows everything correctly. These portion are in header section of my pages and I am using a common header for both these customer registration & shopping cart template. I used the code provided in cr_configure.cgi for customer registration link. I can't solve this problem. Can anyone help me?
priscila
 
Posts: 29
Joined: Mon Oct 22, 2007 10:59 pm

RE: Problem in Customer Resgisration Template

Postby ShopSite Lauren » Wed Dec 19, 2007 3:59 pm

There are 2 sets of registration links in the code of the page, with JavaScript looking for a customer registration cookie to determine if the shopper is logged in or not and display the appropriate links. The cookie is not being set when the shopper logs in, but rather by the shopping cart order.cgi when they leave the Customer Registration screens after logging in. This is because there is a higher probability that the secure registration screen is at a different domain than the store pages, and it is more likely that the shopping cart will be the same domain as the store pages, so the cookie is set from there so it can be read by JavaScript on the store pages.

Because of this, there is no way to have the customer registration links change until after the customer leaves the customer registration screens. If they return to the customer registration screens then it will show that they are signed in, but until they leave the customer registration screens and the customer registration cookie gets set, the links for customer registration on the customer registration pages will not change.

-Lauren
ShopSite Lauren
 
Posts: 889
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT

customer registration template

Postby priscila » Sat Jan 05, 2008 9:47 pm

Thanks for your help.
Now I understood where the problem is. But, can't I do anything for that ? If I want to exit that registration.cgi after sign in & go another page (any page like index.php in my site ) , is it possible? So that the cookie will be set ( i assumed ) .

Thanks again.
-Priscila
priscila
 
Posts: 29
Joined: Mon Oct 22, 2007 10:59 pm

RE: customer registration template

Postby ShopSite Lauren » Sun Jan 06, 2008 12:48 am

There is no way to change that. The registration cookie is set by the order.cgi so the links at the top of the page will not reflect that the customer has signed in until they have gone to the shopping cart.

-Lauren
ShopSite Lauren
 
Posts: 889
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT

template problem

Postby priscila » Sun Jan 06, 2008 5:08 am

Can't I go directly to the shopping cart page after sign in ?

Thanks.
-Priscila
priscila
 
Posts: 29
Joined: Mon Oct 22, 2007 10:59 pm

Postby Jim » Sun Jan 06, 2008 8:20 pm

Going to a non-secure page (first shopping cart screen) from a secure page (registration screen) when submitting the form will result in a warning message to the shopper saying that they are leaving a secure screen and being directed to a non-secure one. This is why ShopSite directs to an intermediate screen which has an href link to the shopping cart screen, href links don't cause the browser warning like the form submission does.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: Bing [Bot] and 112 guests

cron