Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Nov 2011
    Posts
    6
    Plugin Contributions
    0

    Default Old Links still visible?

    Greetings all.

    I recently took over the administration tasks of a Zen Cart based web store. Although I am new to Zen Cart, I am not new to websites.
    The first thing that I did was create backups of the site and its relative databases. After looking through the site's code, I realized that the previous admin had a *lot* of modifications in place that did not seem to come from add-ons or modules(no or minimal commenting and poor formatting). The ones that did originate from modules or add-ons were easily recognized(full commenting and formatted to blend in). So, in an effort to keep the development moving forward, I set up an exact copy of the site in a new directory - complete with it's own (cloned and renamed) database and edited configure files. The backup site works, almost. I have spent many hours looking through the code in an attempt to separate the original, the modules,/add-ons, and my predecessor's code. No, it isn't much fun to do that. The problem I am having is that links still want to point back to the live site and that can not happen for testing and future development. I *think* I tracked the issue down to "zen_href_link". If I am on the right trail, where is this defined? I looked through the code and all the database tables, but I could not find it. I did try to use the developers tools, but the results were not helpful. If I am wrong in my assumption of "zen_href_link" being the issue, does anyone have a suggestion about the way to repair this? I will need to continue to modify the site to fit the owners needs, but I can not do this to a live site. I have to use a test site to accomplish my goals.

    Thank you in advance for any help you can provide.
    Omen

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    18,051
    Plugin Contributions
    1

    Default Re: Old Links still visible?

    If I understand, you'll need to edit the path information in admin/includes/configure.php and includes/configure.php.

    If the site has URLs from the old site hard-coded in, say, EZ pages, you'll have to edit those manually.

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    20,981
    Plugin Contributions
    25

    Default Re: Old Links still visible?

    Any internal URLs that are coded as absolute should be changed to relative, as Zen Cart uses a <base href= > which will handle relative links correctly no matter where the cart is installed.

    "http://yoursite.com/index.php?main_page=login" ----> "index.php?main_page=login"

  4. #4
    Join Date
    Nov 2011
    Posts
    6
    Plugin Contributions
    0

    Default Re: Old Links still visible?

    OK, I did a full (redundant - manually and with grep) sweep of the code looking for hard coded links. I fixed any that point back to the original website, following gjh42's advice.
    Except, I did not find any of the EZ pages that were mentioned.
    Where would I find those? In the database?
    I also confirmed that the config files pointed to the correct directory.

    This is maddening.

    Omen

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    18,051
    Plugin Contributions
    1

    Default Re: Old Links still visible?

    EZ pages are contained in the database, but should be editable in Admin - Tools - EZ-pages.

  6. #6
    Join Date
    Nov 2011
    Posts
    6
    Plugin Contributions
    0

    Default Re: Old Links still visible?

    After reviewing the dozen or so ez pages, I confirmed that there were not any hard coded internal links.
    A curious thing to note is that any search and it's result seems to keep me in the original location.
    Is it possible that the easy pages need to be recreated, even though the links appear to be relative?

    Any other suggestions?


    Omen

  7. #7
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    18,051
    Plugin Contributions
    1

    Default Re: Old Links still visible?

    I wouldn't think you would need to recreate the EZ pages, but you could just to eliminate a possible problem.

    Can you cite a couple of examples of links that are pointing to the old site ? The URL of the site would help, too.

  8. #8
    Join Date
    Nov 2011
    Posts
    6
    Plugin Contributions
    0

    Default Re: Old Links still visible?

    The URL to the live site is http://www.nelsontactical.com

    On the "test" site that is in question here, the links for the categories along the top from 'Home' to 'View All' initially point to the correct directory. Once you choose a sub-category and click it, you ultimately end up back at the live site.

    If you choose anything from the 'Categories' or 'Manufacturers' side boxes, the same thing inevitably happens, as well.

    Eventually, Search seems to behave in the same manner, as you drill down to a specific product.


    Omen

  9. #9
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    18,051
    Plugin Contributions
    1

    Default Re: Old Links still visible?

    Did you also copy over the URL rewriting mod to the test site ? If so, can you turn it off temporarily ?

  10. #10
    Join Date
    Nov 2011
    Posts
    6
    Plugin Contributions
    0

    Default Re: Old Links still visible?

    I'm afraid I don't know what that is.

    Link to info?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. help, someone added non visible links to my home page?
    By simondirect in forum General Questions
    Replies: 2
    Last Post: 2 May 2011, 10:18 AM
  2. Website not visible - help!
    By backinthesaddle in forum General Questions
    Replies: 1
    Last Post: 18 Feb 2010, 06:07 PM
  3. Drop Down Bo Not visible in IE7
    By Access in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 14 Oct 2007, 08:45 PM

Bookmarks

Posting Permissions

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