Zen Cart Logo
Forums / Basic Configuration / I'm an idiot with two problems...

I'm an idiot with two problems...

Locked

Views: 1,894

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
10 Jun 2006, 4:36 AM
#1
vairvixen avatar

vairvixen

New Zenner

Join Date:
Jun 2006
Posts:
7
Plugin Contributions:
0

I'm an idiot with two problems...

  1. Somewhere along the way I decided that DELETING code out of one of the files to remove the ZenCart header from all pages was a good idea... WRONG! Now I can't remember what page I deleted it from or what code to put back into the page to make it come back.

  2. Some of the links, such as for "Contact Us" point to a different page than the one I would like customers going to. I have set up a good Contact page in the normal site that I would prefer customers to use. Where is the "Contact Us" link located so I can modify it?

Thank you very much for putting up with my ignorance!

10 Jun 2006, 4:43 AM
#2
jewelrylady avatar

jewelrylady

Totally Zenned

Join Date:
Sep 2005
Location:
ny
Posts:
434
Plugin Contributions:
0

Re: I'm an idiot with two problems...

I would just reload the file via FTP. I am guessing you have any added of your own touches yet?? Then BACKUP! then you can play. :thumbsup:

10 Jun 2006, 4:53 AM
#3
vairvixen avatar

vairvixen

New Zenner

Join Date:
Jun 2006
Posts:
7
Plugin Contributions:
0

Re: I'm an idiot with two problems...

Thanks, but it's too late... another common problem with being an idiot. I have already done most of the customization, and was hoping I could just pop the header back in and go, but again, can't remember where it goes.

:(

10 Jun 2006, 10:03 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: I'm an idiot with two problems...

vairvixen:

  1. Somewhere along the way I decided that DELETING code out of one of the files to remove the ZenCart header from all pages was a good idea... WRONG! Now I can't remember what page I deleted it from or what code to put back into the page to make it come back.There's no question here.

vairvixen:

  1. Some of the links, such as for "Contact Us" point to a different page than the one I would like customers going to. I have set up a good Contact page in the normal site that I would prefer customers to use. Where is the "Contact Us" link located so I can modify it?Assuming that you are not displaying the contact link anywhere other than in the information sidebox where it appears by default, you can achieve this by creating an override for the information.php sidebox module.

To do1. this create a new directory called includes/modules/sideboxes/YOUR_TEMPLATE_NAME/
2. Copy includes/modules/sideboxes/information.php into the new directory
3. Edit the line below to remove the link generated by the zen_href_link function for the Zen Cart contact page with a link to your preferred external contact page> $information[] = '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>';Unfortunately you can't just edit the FILENAME_CONTACT_US constant as Zen Cart would still assume that the contact us page was internal to the site and try to act accordingly.

11 Jun 2006, 2:17 AM
#5
vairvixen avatar

vairvixen

New Zenner

Join Date:
Jun 2006
Posts:
7
Plugin Contributions:
0

Re: I'm an idiot with two problems...

  1. Somewhere along the way I decided that DELETING code out of one of the files to remove the ZenCart header from all pages was a good idea... WRONG! Now I can't remember what page I deleted it from or what code to put back into the page to make it come back.

The questions that go along with this issue are:

  1. What template file is supposed to contain the link to the header?
  2. What code is necessary to make the template file link to and display the header on all pages?

Thanks!

11 Jun 2006, 2:19 AM
#6
vairvixen avatar

vairvixen

New Zenner

Join Date:
Jun 2006
Posts:
7
Plugin Contributions:
0

Re: I'm an idiot with two problems...

Thank you, Kuroi, for the "Contact Us" link information. I will try that out tonight!

:thumbsup:

11 Jun 2006, 9:44 AM
#7
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: I'm an idiot with two problems...

vairvixen:

Thank you, Kuroi, for the "Contact Us" link information. I will try that out tonight!Before you do - ditch what I said earlier ... here's a much easier way of achieving what you want.

Go to Admin > Tools > EZ-Pages and create a new file. Give it a page title of Contact Us. Then set the header, sidebox and footer to be "yes" or "no" depending upon where you want to display it and enter an order value for each that you choose to be "yes". Leave the HTML content box blank and enter a link to your "Contact Us" page in the external link URL field.

Ensure that EZ-Pages are turned on in Admin > Configuration > EZ-Pages Settings.

Turn of the Zen Cart "Contact Us" link in Admin > Configuration > Define Page Status.

And that's it, a much better and more maintainable approach. My apologies for the earlier answer.