| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Issue with Authentication/Login box | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() Ok, best way to explain it is to have you just log in and see what happens.
If you go to http://www.rjroffroad.com and on the left menu bar about halfway down is the login box. Go ahead and log in (live site, keep in mind): username: test password: account Now that you're logged in, you can see that the login box didn't get switched to the "logged in" version. You will actually find the logged in version, down at the bottom of that left menu bar column. I suppose I could just re-order it so they're stacked right against eachother, but how do I get it to remove the one, and replace it with the other?
__________________
rjroffroad.com x-cart 4.1.3 +ez checkout +remember anonymous carts |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() Here's my code, should've posted that.
It calls auth.tpl on line 17, and calls authbox on line 93. Every attempt to re-arrange it on my part leads to my site not functioning and just showing smarty errors. Code:
__________________
rjroffroad.com x-cart 4.1.3 +ez checkout +remember anonymous carts |
|||||||||
#3
|
|||||||
|
|||||||
![]() You've got kind of a mess there. Replace this:
{if $login eq "" } {/if} {if $login eq "" } { include file="news.tpl" } {else} { include file="authbox.tpl" } {/if} with this: { include file="news.tpl" } {if $login eq "" } {include file="auth.tpl" } {else} {include file="authbox.tpl" } {/if}
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#4
|
|||||||||
|
|||||||||
![]() Quote:
I couldn't agree more. I originally did this over a year ago when I was still really new at this. I did your version, it seems to have added another auth login at the bottom. So I moved it up to line 73, and deleted the other junk that was on 73...works just like it should now! Thanks!
__________________
rjroffroad.com x-cart 4.1.3 +ez checkout +remember anonymous carts |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|