Forums / Templates, Stylesheets, Page Layout / My log in is actually log off

My log in is actually log off

Started by bladecris on 22 Nov 2011, 8:17 AM · Views: 471

Results 1 to 3 of 3
22 Nov 2011, 8:17 AM
#1
bladecris avatar

bladecris

New Zenner

Join Date:
Sep 2011
Posts:
40
Plugin Contributions:
0

My log in is actually log off

Hy there guys. I got zencart 1.3.9h with ZJ Black 2 and my problem with it is: When I click the "Log in button" it's actually wants to log me off from the site how can i make it to go to the create_account page?

Thank you.

22 Nov 2011, 9:11 AM
#2
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: My log in is actually log off

There is some broken and missing code in the head of thaw template so open your template default and then common>tpl_header.php and look for this code

<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li> <?php if ($_SESSION['customer_id']) { ?> <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li> <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li> <?php } else { if (STORE_STATUS == '0') { ?> <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li> <?php } } ?>

copy and then paste it over the code from your tpl_header.php Or better yet choose a different template as that one has issues.


Play with it long enough and you will break it.
22 Nov 2011, 9:25 AM
#3
bladecris avatar

bladecris

New Zenner

Join Date:
Sep 2011
Posts:
40
Plugin Contributions:
0

Re: My log in is actually log off

Fixed it, thx a lot.