View Full Version : ACNT and LOGN screens
eliboone
09-13-06, 10:21 PM
On our newly redesigned site there is a link on the nav bar called 'My Account'. www.jjdog.com (http://www.jjdog.com)
This link goes to the LOGN page so the customer can log into their account or create a new one. I just realized that when a customer is logged into their account and wants to log out that the 'My Account' link doesn't take them to the ACNT screen. Is there some kind of OpenUI token I could use that would take the customer to the ACNT screen if they are already logged in?
Also, is the code to create a Log Out link this?
https://www.jjdog.com/Merchant2/merchant.mvc?&Screen=LOGN (https://www.jjdog.com/Merchant2/merchant.mvc?&Screen=LOGN)
Thanks,
Vic - WolfPaw Computers
09-13-06, 10:43 PM
Use the OpenToken shortcut drop downs to do a conditional if the customer is logged in, with the screen = ACNT.
And no, the syntax is ACTION=LOGO the screen can be SFNT, or LOGN depending where you want to send them.
eliboone
09-14-06, 08:16 PM
Hi Vic,
So would I insert the OpenToken shortcuts in the 'Welcome Returning Customer Logged-In:' section or on all of the ACNT sections in the Headers/Footers area? I selected the following from the drop down but am not sure if it is right. 'Current Customer' Start "If Customer Logged-In" Block' and then clicked 'Insert Short-Cut'. I am pretty confused as to where to put the tokens.
Thanks,
Vic - WolfPaw Computers
09-14-06, 08:41 PM
The conditional would surround the object that your link is from.
If you're linking the account button image, then the conditional would surround that, and based on the condition, either send the customer to login, or straight to the ACNT screen if already logged in.
eliboone
09-15-06, 05:37 PM
Hi Vic,
Sorry to be a pest but would you happen to know any links to any Opentokens tutuorials, because I am clueless about what code I need to surround the link with?
Thank you kindly,
Vic - WolfPaw Computers
09-15-06, 05:57 PM
This link has the code already done for you:
http://www.wpcomp.com/support/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=2&nav=0
eliboone
09-15-06, 06:42 PM
Thanks Vic.
This is the code that I used
<td align="center">|</td><td align="center"><a href="%VAR(g.secure_sessionurl)%Screen=%IF(login)%OINF%I FEND(login)%%IF(notlogin)%LOGN&Order=1%IFEND(notlogin)%">My Account</a></td>
I made sure that the above code did not have any extra spaces, but the link is now treated like a non-link for some reason.
Any ideas?
Thanks, Eli
Vic - WolfPaw Computers
09-15-06, 06:49 PM
Did you insert %OUI% as the very first 5 charaters in the text box?
eliboone
09-15-06, 06:51 PM
I put the %OUI% code in front of the <a href like this
%OUI%<a href
Also tried <a href="%OUI%
but it still isn't working
Eli
Vic - WolfPaw Computers
09-15-06, 06:58 PM
Where are you pasting this text? Into which text box in admin?
eliboone
09-15-06, 08:30 PM
The code I displayed is part of the code that I pasted into Display Wizard Pro in the 'Enter HTML for Perpetual Header' section
Thanks,
Vic - WolfPaw Computers
09-15-06, 08:41 PM
Add %OUI% as the very first 5 characters in the Perpetual Header text box in DWP.
eliboone
09-15-06, 09:30 PM
I added the %OUI% code and the link started working. I don't want the link to go to the checkout login so I tried removing %VAR(g.secure_sessionurl) from the code hoping that the My Account link would just go to the regular Log In page but then the link wouldn't work. Do I need to add a bit of different code when I remove the %VAR(g.secure_sessionurl) code to make it go to the regular Log In?
Thanks,
Vic - WolfPaw Computers
09-15-06, 09:31 PM
Yes, change OINF to ACNT.
eliboone
09-15-06, 10:02 PM
Yes, I changed OINF to ACNT and now my code looks like this.
<a href="%Screen=%IF(login)%ACNT%IFEND(login)%%IF(notlogin) %LOGN&Order=1%IFEND(notlogin)%">
However the link is not clickable.
Thanks,
Vic - WolfPaw Computers
09-15-06, 10:16 PM
Paste my original code back in, and ONLY change OINF to ACNT.
You're missing a few %'s and the URL variable.
eliboone
09-15-06, 10:33 PM
Is there any difference between the Order: Customer Login Header (LOGN) and Customer Login Header (LOGN). The link works but goes to the Order: Customer Login Header (LOGN) which has my checkout steps image displaying in the header. I would like the link to go to the Customer Login Header (LOGN) that is not displaying my checkout steps image.
Thanks,
Vic - WolfPaw Computers
09-15-06, 11:03 PM
The difference is the Order=1 flag. Remove it or set it to Order=0.
eliboone
09-15-06, 11:38 PM
It is working exactly how I wanted it to. What a way to end the week. Thank you so much for your help Vic!
Cheers,
Vic - WolfPaw Computers
09-15-06, 11:39 PM
No problem.
Enjoy the weekend.
leslienord
09-22-06, 05:57 PM
Okay Vic - you can smack me - what is the non-tokenized URL for the logout screen?
:o
Vic - WolfPaw Computers
09-22-06, 06:51 PM
www.domain.com/Merchant2/merchant.mvc?Action=LOGO&Screen=LOGO
leslienord
09-26-06, 07:24 PM
http://www.domain.com/Merchant2/merchant.mvc?Action=LOGO&Screen=SFNT
;)
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.