Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2012
    Posts
    4
    Plugin Contributions
    0

    Default Existing site: can't locate images/text

    Hello,

    First of all, let me say that I am very much a novice when it comes to PHP and ZenCart. However, the actions I wish to perform are fairly basic 'tweaks', and so I hope this is something that can be sorted out without too much trouble.

    The tweaks are:


    - editing/replacing the image in the header (this is a custom image named logo.jpg, not the default ZenCart header image)

    - editing the content of the Copyright notice in the footer bar (again, this is a custom notice, and not the default ZenCart one)

    I have downloaded the entire site (built using ZenCart v139h) to my computer and am using Dreamweaver (CS6). However, when I use the 'Find' function in the Find and Replace facility to try to locate the name of the header image (logo.jpg), Dreamweaver is unable to locate this file name. I have pored through the files themselves, looking in the commonly suggested locations for the header image. I have also checked the images in Assets (sorted A-Z), but am unable to find the image file (logo.jpg) anywhere.

    Likewise, when I try using Find & Replace to look for specific words in the Copyright notice in the footer (e.g. the name of the web development company who created the site), these cannot be found. I have searched both Text and Source code, across the entire site. However, I AM able to locate other elements that sit within the footer bar (such as links to Twitter and Facebook), in the following file: includes\languages\english\extra_definitions\andover_modern\footer_menu_defines. php

    These are the settings I am using in Find and Replace to try to locate the above elements:

    --------------------
    Find In: Entire Current Local Site
    Search: Source Code (also tried Text)
    Find: logo.jpg (also searched for name of web design company, exactly as it appears in copyright notice)

    Options:

    Match case: Unchecked
    Match whole word: Unchecked
    Ignore white space: Unchecked
    Use regular expression: Unchecked

    Click "Find all" button.

    ----------------

    I would be extremely grateful if somebody here could indicate where I might be going wrong with this. Is the reason that I'm unable to locate these files because they are somehow "hidden"? If so, does this mean that I will be able to "discover" the files once I have set up a PHP testing server?

    Thank you for reading my post.
    Last edited by nutsinmay; 21 Jun 2012 at 09:04 PM.

  2. #2
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: Existing site: can't locate images/text

    For the logo:

    inludes/languages/english/YOUR_TEMPLATE/header.php
    look for
    define('HEADER_LOGO_IMAGE', 'logo.gif');
    change to name of your image, you could/should set width, and height too, lines above.

    For the footer:
    includes/templates/YOUR_TEMPLATE/common/tpl_footer.php

    Anyhow you'd better forget dreamweaver, and get yourself a simple text editor (google for notepad++), and also to search for the stuff either use the editor, or the development tool kit in your admin backened under tools, there you can search for your terms, and it'll tell you where it is, for commodity you could use the last search on the bottom.

    Also get yourself firefox, and firebug extension for it, if you need to tweak more in the future.

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,269
    Plugin Contributions
    3

    Default Re: Existing site: can't locate images/text

    Quote Originally Posted by nutsinmay View Post

    I have downloaded the entire site (built using ZenCart v139h) to my computer and am using Dreamweaver (CS6).
    Put Dreamweaver back in its box. It is useful ONLY if you have advanced PHP knowledge, and understand zencart's core schema perfectly.

    Dreamweaver is more likely to break your site if you don't have sufficient PHP knowledge, or an understanding of ZC's structure.

    If you need to find elements, use the function under the TOOLS menu in your admin panel (Developers Toolkit).

    PHP (and all other code files, including CSS) are best edited using a PLAIN TEXT EDITOR such as Crimson Editor or Notepad++ .
    20 years a Zencart User

  4. #4
    Join Date
    Jun 2012
    Posts
    4
    Plugin Contributions
    0

    Default Re: Existing site: can't locate images/text

    keneso and schoolboy, thank you both very much for taking the time to reply to me, and for your helpful advice. Using 'Look-up in All Files' in the Developers Tool Kit in Admin, I've located the .php file containing the website copyright information that I have been requested to amend. The location is given as:
    /home/[COMPANY NAME]/public_html/shop/includes/languages/english.php

    However, I'm unable to find this file in the directory hierarchy. When I call up all the english.php files sitting within in the directory (which contains the entire site), then open each english.php file in Notepad ++, none contain the copyright text that I need to edit. Confused by this.

  5. #5
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: Existing site: can't locate images/text

    It is there then, have you tried the search within the english.php file?
    Anyhow in the original zencart package it is at line 16 of that file.

    Like said you can override it by going to the includes/templates/andover_modern/common/tpl_footer.php and edit it as you please; andover_modern being YOUR_TEMPLATE.

  6. #6
    Join Date
    Jun 2012
    Posts
    4
    Plugin Contributions
    0

    Default Re: Existing site: can't locate images/text

    Quote Originally Posted by keneso View Post
    It is there then, have you tried the search within the english.php file?
    Anyhow in the original zencart package it is at line 16 of that file.

    Like said you can override it by going to the includes/templates/andover_modern/common/tpl_footer.php and edit it as you please; andover_modern being YOUR_TEMPLATE.
    Hi, keneso, thank you again for your advice on this. Have to say, I'm reluctant to amend the template footer at present, as already quite a number of customisations have been carried out to the footer.

    What concerns me is I've searched all files across the entire website using Agent Ransack (which normally picks up all text content, including within .php files), and am not picking up the aforementioned Copyright string. So really have no idea how to locate or access this file. I've tested it on several other elements of code however, and its able to locate them just fine.

    Can anyone offer any pointers on this?

  7. #7
    Join Date
    Jun 2012
    Posts
    4
    Plugin Contributions
    0

    Default Re: Existing site: can't locate images/text

    Hey, I have managed to find a solution to this. I was able to find the relevant file (below) without any problem whatsoever on the remote site, but not among the downloaded files webfiles, which included many .php files. Interesting!

    /home/[COMPANY NAME]/public_html/shop/includes/languages/english.php

    I was able to successfully make the necessary to the live site.

    Thank you once again guys for your help with this - it is very much appreciated.

 

 

Similar Threads

  1. v153 Can I Use Elements of Zen Cart in An Existing Site?
    By chome4 in forum General Questions
    Replies: 3
    Last Post: 15 Jul 2015, 01:48 PM
  2. Can I add this shopping cart to my existing site?
    By Nae Nae in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Aug 2012, 01:52 PM
  3. Can I just upload buy buttons to my existing site?
    By Acorn1 in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 8 Mar 2009, 04:32 PM
  4. Can ZenCart be integrated into an existing site?
    By RubiconCSL in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 16 Dec 2006, 01:37 AM
  5. Can it be integrated into existing site's product pages?
    By MikeyJ in forum General Questions
    Replies: 2
    Last Post: 21 Sep 2006, 02:11 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