| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Hide if logged or not logged in | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Ok it's my turn to answer a question today
![]() im trying to hide or show certain tabs depending on if the user is logged in or not logged in. for example I have 4 tabs in the template "LOGIN / REGISTER, YOUR ACCOUNT, RECOVER PASSWORD & ORDER HISTORY" if not logged in only "LOGIN / REGISTER" & " RECOVER PASSWORD" should be shown if LOGGED IN only "YOUR ACCOUNT" & "ORDER HISTORY" should be shown. i've managed to hide the tabs I want to hide when logged in but I cant work out how to hide the tabs when NOT logged in this is the code i've got so far Code:
i know it's something simple i've missed but the question is what??? Cheers for any help THIS IS FOR VERSION 4.0.3
__________________
x-cart 4.0.5 (live and heavily modded) Server: freebsd |
|||||||
#2
|
|||||||||
|
|||||||||
![]() you probably want to use
{if $login ne ""} eq - equals ne - not equals see http://smarty.php.net for all this and more
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#3
|
|||||||
|
|||||||
![]() Bingo!!!
Cheers Shan, on another note how is your diary fixed for some mods i need doing. i'll email you the full specs of what im trying to do.
__________________
x-cart 4.0.5 (live and heavily modded) Server: freebsd |
|||||||
#4
|
|||||||
|
|||||||
![]() Hi COTC2001,
Do you know if your code below would work on the 4.1.9 version? Thanks! Quote:
__________________
Win2003 IIS6, PHP 5.2.3, MySQL 5.0.45 and X-Cart 4.1.9 |
|||||||
#5
|
|||||||
|
|||||||
![]() Cant tell for certain but it should do
__________________
x-cart 4.0.5 (live and heavily modded) Server: freebsd |
|||||||
|
|||
X-Cart forums © 2001-2020
|