Forums / Templates, Stylesheets, Page Layout / My account link - how do i turn it on?

My account link - how do i turn it on?

Views: 1,920

Results 1 to 20 of 20
16 Feb 2012, 9:51 AM
#1
kal avatar

kal

New Zenner

Join Date:
Jun 2008
Posts:
83
Plugin Contributions:
0

My account link - how do i turn it on?

Hi

I am using this template http://(sorry, site offline)/zc150/

How do i get 'my account' link to appear on the top so customers can log in?

Thanks

16 Feb 2012, 11:59 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: My account link - how do i turn it on?

Your link points to the standard Classic template. Is that the one you're using ?

'My Account' displays after the customer logs in, since visitors don't have accounts.

16 Feb 2012, 12:34 PM
#3
kal avatar

kal

New Zenner

Join Date:
Jun 2008
Posts:
83
Plugin Contributions:
0

Re: My account link - how do i turn it on?

stevesh:

Your link points to the standard Classic template. Is that the one you're using ?

'My Account' displays after the customer logs in, since visitors don't have accounts.

Sorry, the template i'm using is 'iC-Atheme' and i was meant to say how do i get the login page to show up there?

Thanks

16 Feb 2012, 2:03 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: My account link - how do i turn it on?

The demo of that template does show "My Account" instead of "Login" on the homepage, right above the (free shipping, sales, etc)...
It leads directly to the login page if you are not logged in.

Or was the OP a typo and you were actually looking for a "Login" link?

16 Feb 2012, 4:51 PM
#5
kal avatar

kal

New Zenner

Join Date:
Jun 2008
Posts:
83
Plugin Contributions:
0

Re: My account link - how do i turn it on?

gjh42:

The demo of that template does show "My Account" instead of "Login" on the homepage, right above the (free shipping, sales, etc)...
It leads directly to the login page if you are not logged in.

Or was the OP a typo and you were actually looking for a "Login" link?

I have no links up there, i don't have my account link, login link, or whatever that should be up there.

17 Feb 2012, 4:37 AM
#6
usernamenone avatar

usernamenone

Totally Zenned

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

Re: My account link - how do i turn it on?

This is login logoff and my account links there is a spacer in between

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

Play with it long enough and you will break it.
17 Feb 2012, 7:15 AM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: My account link - how do i turn it on?

You pointed us to the demo page for the template, which has the my account link at the top, but you say your installation does not have the links. Therefore, we would need to see what you have to be able to advise on your issue.

17 Feb 2012, 7:22 AM
#8
kal avatar

kal

New Zenner

Join Date:
Jun 2008
Posts:
83
Plugin Contributions:
0

Re: My account link - how do i turn it on?

usernamenone:

This is login logoff and my account links there is a spacer in between

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

This is what i see in my: includes/templates/iC_AthemeV1.3/common/tpl_header.php

?>
<!--bof-navigation display-->

<div id="navMainWrapper"> <div id="navMain"> <ul class="back"> **<?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_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> |</li> <li><a href="<?php echo zen_href_link(FILENAME_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_SHIPPING; ?></a></li> <?php } } ?>

Do i just add the below?

**?>
<a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a>

<?php } } ?>**

So it looks like:

?>
<!--bof-navigation display-->

<div id="navMainWrapper"> <div id="navMain"> <ul class="back"> **<?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') {** **?> <a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a> <?php } } ?>** ?> <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> |</li> <li><a href="<?php echo zen_href_link(FILENAME_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_SHIPPING; ?></a></li> <?php } } ?>

Thanks

17 Feb 2012, 8:28 AM
#9
kal avatar

kal

New Zenner

Join Date:
Jun 2008
Posts:
83
Plugin Contributions:
0

Re: My account link - how do i turn it on?

I added the extra lines, but then my website page went all blank white, so i had to take it off for it to go back to normal.

Any ideas?

17 Feb 2012, 2:22 PM
#10
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: My account link - how do i turn it on?

Your template appears to have essentially replaced

<a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a>

with

<a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>

so just reverse that, changing that part of the line back to

<a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a>

Do this just after the
if (STORE_STATUS == '0') {
Don't change anything else in the file.

17 Feb 2012, 3:49 PM
#11
kal avatar

kal

New Zenner

Join Date:
Jun 2008
Posts:
83
Plugin Contributions:
0

Re: My account link - how do i turn it on?

gjh42:

Your template appears to have essentially replaced

<a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a>

with

<a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>

so just reverse that, changing that part of the line back to

<a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a>

Do this just after the
if (STORE_STATUS == '0') {
Don't change anything else in the file.

I have done that, but still no links have appeared on the top white strip:

<!--bof-navigation display-->
<div id="navMainWrapper"> <div id="navMain"> <ul class="back"> <?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> <li><a href="<?php echo zen_href_link(FILENAME_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_SHIPPING; ?></a></li> <?php } } ?>

Is there any way i could have turned them off or deleted them?

17 Feb 2012, 6:19 PM
#13
kal avatar

kal

New Zenner

Join Date:
Jun 2008
Posts:
83
Plugin Contributions:
0

Re: My account link - how do i turn it on?

gjh42:

if (STORE_STATUS == '0') {

Is your shop set to normal store status?

Yes, it is. Also, i have just installed a new zencart to see if that has the links and it does, it's fine, look here:

http://www.robots.pollycollection.com/

I also checked the codes inside tpl_header.php of this new installed zencart and it is exactly the same as the one i'm having problems with, the things you asked to edit is not correct on that one either but the 'my account' links are still showing on the header..

17 Feb 2012, 6:39 PM
#15
kal avatar

kal

New Zenner

Join Date:
Jun 2008
Posts:
83
Plugin Contributions:
0

Re: My account link - how do i turn it on?

gjh42:

Can we see (live) the site that has the problem?

hi it's http://benzo.pollycollection.com/

i do have alot of stuff on it but just turned off.

17 Feb 2012, 10:12 PM
#16
usernamenone avatar

usernamenone

Totally Zenned

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

Re: My account link - how do i turn it on?

Replace your templates common tpl_header.php with the original one from your template.

Then start over with your modifications.


Play with it long enough and you will break it.
18 Feb 2012, 4:58 AM
#17
kal avatar

kal

New Zenner

Join Date:
Jun 2008
Posts:
83
Plugin Contributions:
0

Re: My account link - how do i turn it on?

usernamenone:

Replace your templates common tpl_header.php with the original one from your template.

Then start over with your modifications.

Just tried that my friend, no luck :no:

18 Feb 2012, 6:24 AM
#18
usernamenone avatar

usernamenone

Totally Zenned

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

Re: My account link - how do i turn it on?

Then download a clean copy of that template and replace it with a fresh copy.

When there is code like this
<div id="mainWrapper">

<table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMainWrapper" summary="content"> <tr> <td id="navColumnOne" class="columnLeft" style="width: 150px"> <div id="navColumnOneWrapper" style="width: 150px"><!--// bof: categories //--> <div class="leftBoxContainer" id="categories" style="width: 150px"> <h3 class="leftBoxHeading" id="categoriesHeading">Categories</h3> <div id="categoriesContent" class="sideBoxContent"> </div></div> <!--// eof: categories //--> </div></td> <td valign="top"> <!-- bof breadcrumb --> <!-- eof breadcrumb -->

You have not replaced that template


Play with it long enough and you will break it.
18 Feb 2012, 8:08 PM
#19
usernamenone avatar

usernamenone

Totally Zenned

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

Re: My account link - how do i turn it on?

Great, you did a fresh template and now you have you header My Account links back. :D


Play with it long enough and you will break it.
19 Feb 2012, 5:33 AM
#20
kal avatar

kal

New Zenner

Join Date:
Jun 2008
Posts:
83
Plugin Contributions:
0

Re: My account link - how do i turn it on?

Yes i did a fresh template upload, but i still see no links...but you see them????? I only see ...site tagline here (free shipping, sales, etc)... and categories header.