Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Aug 2009
    Location
    Indiana
    Posts
    16
    Plugin Contributions
    0

    Default Format problem with Custom/index.php

    I have searched and searched for an answer but can't find it. I have followed tutorial article 129 step by step several times. I don't change the code or remove any tags. I simply change the words Congratulations! You have successfully installed your Zen Cart... to Welcome! and saved it in includes/languages/english/mytemplate/index.php

    I upload the page and apply the change. It changes the text to what I want but my store looses format. Suddenly the text is too big and the store is positioned to the left of the page. If I delete index.php from mytemplate folder, zencart defaults back to using the original index.php file, the format is back to normal and the zencart message is back.

    I have checked and double checked this operation and can't figure out why this happens.

    Zencart, newest version, hosted on GoDaddy.
    Last edited by candyt3; 17 Aug 2009 at 04:51 PM. Reason: fix spelling

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Format problem with Custom/index.php

    What program are you using to edit the file?

    May we see a link to your site?

  3. #3
    Join Date
    Aug 2009
    Location
    Indiana
    Posts
    16
    Plugin Contributions
    0

    Default Re: Format problem with Custom/index.php

    Store:
    http://www.vacpartsplusstore.com/zencart/

    Screenshot of problem (I was able to get rid of the tagline here)
    http://www.vacpartsplusstore.com/images/scrshot.jpg

    Editing with Epression Web. It's supposed handle php and css and I don't see any changes taking place in the code.

    I ust did a test. I copied and pasted the default index.php file into mytemplate and uploaded it. It worked find but with the original "Congratulations!..." text. As soon as I changed the text and saved and uploaded the page was back to loosing format.

  4. #4
    Join Date
    Aug 2009
    Location
    Indiana
    Posts
    16
    Plugin Contributions
    0

    Default Re: Format problem with Custom/index.php

    Editing with Expression Web. (sorry for my bad spelling above)

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Format problem with Custom/index.php

    I haven't used Expression Web, but some WYSIWYG editors add stuff to PHP files that can mess things up. Try editing the file with Notepad and see if that works.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Format problem with Custom/index.php

    Never used Expression Web, but unless you or it is FTP'ing the relevant file to your computer to edit, and then back to the server, any changes won't take permanent effect. You might try Notepad++ (free from Sourceforge) for editing - I know that works well.

  7. #7
    Join Date
    Aug 2009
    Location
    Indiana
    Posts
    16
    Plugin Contributions
    0

    Default Re: Format problem with Custom/index.php

    Quote Originally Posted by gjh42 View Post
    Never used Expression Web, but unless you or it is FTP'ing the relevant file to your computer to edit, and then back to the server, any changes won't take permanent effect. You might try Notepad++ (free from Sourceforge) for editing - I know that works well.
    I am going to try Notepad++ and see if that works. I will report back with the results.

    As a note, yes, I am using ftp back and forth. I have everything backed up on my computer and I ftp the changes to the server, open my browser to see the results.

  8. #8
    Join Date
    Aug 2009
    Location
    Indiana
    Posts
    16
    Plugin Contributions
    0

    Default Re: Format problem with Custom/index.php

    Quote Originally Posted by candyt3 View Post
    I am going to try Notepad++ and see if that works. I will report back with the results.
    It Worked!!!!!!!!!!!!!!!!!!

    A note to anyone who might have this problem when using a WYSIWYG program, even if the program is says it handles php, try using Notepad++ to edit the files and save yourself days of tearing your hair out!!

    You may ask---why am I using Microsoft Expression Web? Only because I have a client with a FrontPage enabled website.

    Thank you everyone for your help!

  9. #9
    Join Date
    Oct 2009
    Posts
    2
    Plugin Contributions
    0

    red flag Re: Format problem with Custom/index.php

    CandyT3,

    I did the same thing and got the EXACT problem you described, using Expression Web. I'm new to Zen Cart (& PHP). Do you recall which files you had to replace to bring the home page back to its original formatting? I've got a copy of my entire zen cart site saved on my hard drive but would rather replace a few files than replace the whole thing if possible.

    Thanks.

  10. #10
    Join Date
    Aug 2009
    Location
    Indiana
    Posts
    16
    Plugin Contributions
    0

    Default Re: Format problem with Custom/index.php

    It's been awhile but this is what I did:

    "I copied and pasted the default index.php file into mytemplate and uploaded it. It worked find but with the original "Congratulations!..." text. As soon as I changed the text and saved and uploaded the page was back to loosing format."

    You need to look for the index.php file and restore it. I recommend using Notepad++ or one of the other programs mentioned on the forum to modify files. You will save hours of frustration!!

    The problem with Expression Web is that it can make minor changes to the code when you save the page. That's not a problem if it's just plain HTML but not good with PHP.

    the URL to the site has moved:
    http://www.vacpartsplusstore.com/catalog/
    Last edited by candyt3; 23 Nov 2009 at 11:29 PM. Reason: adding URL

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Using Wordpress in zc - Problem with index.php URL
    By fakeDecoy in forum General Questions
    Replies: 1
    Last Post: 29 Sep 2015, 07:59 PM
  2. Problem with the index.php file
    By Craftystash in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 26 Jun 2009, 09:01 PM
  3. Problem with index.php
    By cnegfx in forum General Questions
    Replies: 2
    Last Post: 30 Apr 2007, 05:13 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