Please help, no "my account" or "order history"
I have been trying to figure this out for more then a week now and nobody seems to have the same problem. I'm using the latest version of ZC and it's my first one.
Whenever your logged in to my site all the "my account" links just reload the main page. I think it's something I did by accident while trying to fix a different problem, for a while it took you to a page that said "this page cannot be found on this server".
The problem continues if I change the template or use the link in the sale conformation.
I have looked through loads of php. files and can't find the code and even if I did I don't know where to point it.
Thanks, J
Re: Please help, no "my account" or "order history"
The code is in the file at about line 48:
includes/templates/yourtemplate/common/tpl_header.php
or
includes/templates/default_template/common/tpl_header.php
It should look like this:
Code:
<?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 {
As a first step compare what you have to that...
Re: Please help, no "my account" or "order history"
Thanks for your response but all that code seems to be perfect.
Is there somewhere else it could be?
Thanks again, J
Re: Please help, no "my account" or "order history"
Re: Please help, no "my account" or "order history"
The main shop site is www.Trickstreet.net.
Thanks again for your time.
J
Re: Please help, no "my account" or "order history"
I went to your site, and saw that while I'm a "Guest" the "My Account" link is present in the footer. The reason it gets all squirrely is that the "My Account" page wants to be bound to a customer (and I'm not one as Guest).
Since there's no option for "My Account" in the footer in the standard 1.38a, I'm guessing you've got a custom includes/YOURTEMPLATE/common/tpl_footer.php. Wrap the 'if' statement that niccol suggested around the href for the FILENAME_ACCOUNT link.
Re: Please help, no "my account" or "order history"
Thanks, I'll give that a try but if you are logged in as a customer all the my account links direct you to the main page. Doesn't that mean it has tp be pointed to the wrong place?
I've never done anything on purpost to get the my account link in the footer either.
I'll have a look now.
Re: Please help, no "my account" or "order history"
I suspect you've got missing or damaged files in /includes/modules/pages/account/ or maybe that whole folder is missing?
Re: Please help, no "my account" or "order history"
I have account_newsletter, account__notifications and
account_password but nothing just named account. If this is my problem is there a way for me to get that page without needing to re-upload the whole thing?
Re: Please help, no "my account" or "order history"
There should be:
account
account_edit
account_history
account_history_info
account_newsletters
account_notifications
account_password
and many more.
If the folders are missing, then the solution is to upload the missing ones.