Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Please help, no "my account" or "order history"

Please help, no "my account" or "order history"

Locked
This thread is locked. New replies are disabled.
4 Oct 2009, 9:29 PM
#1
jaypg1 avatar

jaypg1

New Zenner

Join Date:
Jul 2009
Posts:
25
Plugin Contributions:
0

Post #1 by jaypg1

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

4 Oct 2009, 10:04 PM
#2
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Post #2 by niccol

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:

<?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...

Nick
iszent.com

6 Oct 2009, 6:15 PM
#3
jaypg1 avatar

jaypg1

New Zenner

Join Date:
Jul 2009
Posts:
25
Plugin Contributions:
0

Post #3 by jaypg1

Thanks for your response but all that code seems to be perfect.
Is there somewhere else it could be?

Thanks again, J

6 Oct 2009, 6:27 PM
#4
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Post #4 by niccol

URL please!

Nick
iszent.com

7 Oct 2009, 10:16 PM
#5
jaypg1 avatar

jaypg1

New Zenner

Join Date:
Jul 2009
Posts:
25
Plugin Contributions:
0

Post #5 by jaypg1

The main shop site is https://www.Trickstreet.net.
Thanks again for your time.
J

8 Oct 2009, 2:15 PM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,156
Plugin Contributions:
56

Post #6 by lat9

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.

10 Oct 2009, 5:32 PM
#7
jaypg1 avatar

jaypg1

New Zenner

Join Date:
Jul 2009
Posts:
25
Plugin Contributions:
0

Post #7 by jaypg1

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.

10 Oct 2009, 5:44 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #8 by drbyte

I suspect you've got missing or damaged files in /includes/modules/pages/account/ or maybe that whole folder is missing?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

10 Oct 2009, 8:32 PM
#9
jaypg1 avatar

jaypg1

New Zenner

Join Date:
Jul 2009
Posts:
25
Plugin Contributions:
0

Post #9 by jaypg1

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?

10 Oct 2009, 8:33 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #10 by drbyte

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.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Oct 2009, 11:29 PM
#11
jaypg1 avatar

jaypg1

New Zenner

Join Date:
Jul 2009
Posts:
25
Plugin Contributions:
0

Post #11 by jaypg1

Alright, I've uploaded all the missing pages and nothing has changed. Hitting "my account" still just refreshes the page.

I remember someone trying to help me by showing me where the link was that pointed to this but I' not sure where that was.

This problem is the same in all my templates so it has to be somewhere else, right?

13 Oct 2009, 5:27 AM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #12 by drbyte

So, when you hover over the link you say you're clicking on, what IS that link?
And, then when you click on the link, what happens in the browser address bar?

And, if you go to Admin->Configuration->My Store->Missing Page Check and set it to Off, what happens now when you click on the link you're complaining about?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Oct 2009, 9:23 PM
#13
jaypg1 avatar

jaypg1

New Zenner

Join Date:
Jul 2009
Posts:
25
Plugin Contributions:
0

Post #13 by jaypg1

Progress!!
When I turned off the missing page check the link takes me to the "my account" page. Does order history show up after you make an order?

Thank you so much for your help and time!

15 Oct 2009, 9:28 PM
#14
jaypg1 avatar

jaypg1

New Zenner

Join Date:
Jul 2009
Posts:
25
Plugin Contributions:
0

Post #14 by jaypg1

Still not perfect, I created a new account and made a test order and it displays this:

OVERVIEW_PREVIOUS_ORDERS
TABLE_HEADING_DATE TABLE_HEADING_ORDER_NUMBER TABLE_HEADING_SHIPPED_TO TABLE_HEADING_STATUS Total TABLE_HEADING_VIEW

It's seems like its close to working, I'm I still missing a page?

16 Oct 2009, 4:17 AM
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #15 by drbyte

jaypg1:

Still not perfect, I created a new account and made a test order and it displays this:

OVERVIEW_PREVIOUS_ORDERS
TABLE_HEADING_DATE TABLE_HEADING_ORDER_NUMBER TABLE_HEADING_SHIPPED_TO TABLE_HEADING_STATUS Total TABLE_HEADING_VIEW

It's seems like its close to working, I'm I still missing a page?
Looks like you're missing the language file where those definitions are defined.

This FAQ explains in part why you're seeing the definition point instead of its defined value: https://www.zen-cart.com/tutorials/index.php?article=95
But if you've got missing or empty language files then the definitions will be show as you've posted.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Oct 2009, 6:05 PM
#16
jaypg1 avatar

jaypg1

New Zenner

Join Date:
Jul 2009
Posts:
25
Plugin Contributions:
0

Post #16 by jaypg1

Thanks, I'm working on figuring this out. That page is a bit confusing but I think I'm getting it now.
Cheers, J