Results 1 to 7 of 7
  1. #1
    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!

  2. #2
    Join Date
    Sep 2005
    Location
    ny
    Posts
    630
    Plugin Contributions
    0

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

  3. #3
    Join Date
    Jun 2006
    Posts
    7
    Plugin Contributions
    0

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


  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

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

    Quote Originally Posted by 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.

    Quote Originally Posted by vairvixen
    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?
    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 do
    1. 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.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Jun 2006
    Posts
    7
    Plugin Contributions
    0

    Default 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!

  6. #6
    Join Date
    Jun 2006
    Posts
    7
    Plugin Contributions
    0

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

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


  7. #7
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

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

    Quote Originally Posted by 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.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 

Similar Threads

  1. Two problems
    By NekkidFish in forum PayPal Express Checkout support
    Replies: 12
    Last Post: 25 Jan 2011, 07:01 AM
  2. problems with SSL setup on two pages
    By stressstress in forum General Questions
    Replies: 5
    Last Post: 23 Jul 2010, 04:42 PM
  3. Two Problems no waiting
    By Mongo in forum General Questions
    Replies: 3
    Last Post: 10 Sep 2009, 09:35 PM
  4. i'm having two problems with downloadable products
    By kjoistudios in forum General Questions
    Replies: 3
    Last Post: 12 Sep 2007, 12:55 AM
  5. Two problems with IE7 vs Firefox
    By digger149 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Jul 2007, 01:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg