Results 1 to 10 of 12

Hybrid View

  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
    20,021
    Plugin Contributions
    3

    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
    22,010
    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
    20,021
    Plugin Contributions
    3

    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

 

 

Similar Threads

  1. Top nav bar links still going to old folder when 'live'.
    By habsolutely in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 6 Oct 2011, 04:57 AM
  2. Replies: 1
    Last Post: 10 Sep 2007, 10:10 PM
  3. Old Product Still in Cart?
    By jacdesigner in forum Managing Customers and Orders
    Replies: 5
    Last Post: 2 Oct 2006, 02:50 PM

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