Results 1 to 9 of 9
  1. #1
    Join Date
    Jan 2009
    Location
    Cen Cal
    Posts
    2
    Plugin Contributions
    0

    Default How to get into the php admin area?

    I'm using Zen Cart 1.3.8a

    I have spent two days searching tutorials and trying to find the area that I can edit the html. It refers to the php file. I ahve entered the php through the sql in my control panel on my server access.

    The php files that I'm refered to in the tutorials seems to be aluding me.

    Can anybody help me find this area that is being refrenced in the tutorials?

    I'm trying to change the "Sales Message Goes Here" on the top of the page.

    See http://carol.4x4him.com/shoppingmall/

  2. #2
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: How to get into the php admin area

    Zen Cart uses php to build most of the HTML on the fly depending on user requests, so there isn't really any HTML to edit.

    MySQL has nothing to do with the php files. That's your database.

    The php files are exactly where they're said to be in the tutorials. Unzip a copy of Zen Cart on your computer (it doesn't have to be able to run). You'll be able to see the folder and file structure and things will be clearer for you.

    To edit php files, use a good text editor like Notepad++ or Crimson Editor.

    To upload your changes to your website, use an FTP client like Filezilla.

    All the programs I mentioned are available free from the net.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  3. #3
    Join Date
    Jan 2009
    Location
    Cen Cal
    Posts
    2
    Plugin Contributions
    0

    Default Re: How to get into the php admin area

    I don't understand,.....I loaded my Zencart through the C-Panel of my server host Lunar Pages. So I don't have the program loaded onto my PC.

    Should I delete the host upload and go straight to ZernCart to download on my PC ?

  4. #4
    Join Date
    Mar 2006
    Location
    Fresno, California
    Posts
    620
    Plugin Contributions
    0

    Default Re: How to get into the php admin area

    You could start by downloading the entire zen cart files to your computer. An FTP program will do this. Try Filezilla.

    Then edit files, and upload to the server.

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

    Default Re: How to get into the php admin area

    No, what Afo was talking about is having a reference set of the files to look at and edit on your pc. Once you have made edits on files, you need to upload them to your server by FTP.

    Do not try to edit PHP files in your host's control panel - those editors may corrupt your files.

  6. #6
    Join Date
    Mar 2007
    Location
    Serbia, Niš
    Posts
    79
    Plugin Contributions
    1

    Default Re: How to get into the php admin area

    Quote Originally Posted by ZuperDave View Post
    I'm using Zen Cart 1.3.8a

    I have spent two days searching tutorials and trying to find the area that I can edit the html. It refers to the php file. I ahve entered the php through the sql in my control panel on my server access.

    The php files that I'm refered to in the tutorials seems to be aluding me.

    Can anybody help me find this area that is being refrenced in the tutorials?

    I'm trying to change the "Sales Message Goes Here" on the top of the page.

    See http://carol.4x4him.com/shoppingmall/
    Too much help, sometimes goes astray.
    What you want is to change or to delete "Sales Message Goes Here" so...
    - Throught cpanel on your server and File Manager in folder:

    public_html / includes/ languages/english/ ... find header.php

    - Open header.php and there find text:

    define('HEADER_SALES_TEXT', '<h1>Sales Message Goes Here</h1>');

    Than change or erase the text in red.
    That should solve your problem.

    IF.... you have more than one languge, just find the same file in other languages folders, and change it.

  7. #7
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: How to get into the php admin area

    Quote Originally Posted by svampola View Post
    Too much help, sometimes goes astray.
    What you want is to change or to delete "Sales Message Goes Here" so...
    - Throught cpanel on your server and File Manager in folder:

    public_html / includes/ languages/english/ ... find header.php

    - Open header.php and there find text:

    define('HEADER_SALES_TEXT', '<h1>Sales Message Goes Here</h1>');

    Than change or erase the text in red.
    That should solve your problem.

    IF.... you have more than one languge, just find the same file in other languages folders, and change it.
    As Glenn pointed out, using the editor in CPanel can corrupt php files and lead to more problems that it's worth. It's far better to edit the file locally using a good text editor and then use an FTP client to upload the changes to your custom folder. If you edit the files that come with Zen Cart directly and don't save your changes to a custom folder, all your changes will be lost with the next upgrade/update.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  8. #8
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: How to get into the php admin area

    In describing his need (change "Sales Message Goes Here"), ZuperDave actually alerted us to a much more important issue...

    ... he's not at all familiar with the protocol of editing PHP files.

    So it makes absolute sense to take him back a couple of steps, and to explain these protocols.

    As the process of editing PHP is used very often, it's vital that new users understand the principal differences between HTML and PHP.

    ... and yes, it's NOT a good idea to edit in C-Panel...

  9. #9
    Join Date
    Mar 2007
    Location
    Serbia, Niš
    Posts
    79
    Plugin Contributions
    1

    Default Re: How to get into the php admin area

    Well, I usually make a copy of file before I change anything, and if something goes wrong, I just rename it back, but .....

    Afo & fairestape, thanks for your tip.
    Thought I didn't have any problems using CPanel editor - I'll take your advice for granted, and from now on - I'll edit files only locally.

 

 

Similar Threads

  1. Can not get into the admin area - Windows 7 Ultimate + Xampp
    By deemurphy in forum Installing on a Windows Server
    Replies: 0
    Last Post: 20 Aug 2011, 02:39 AM
  2. Can't get into the Admin area.....
    By EiigyPocrOffCom in forum General Questions
    Replies: 1
    Last Post: 21 Jan 2011, 07:22 PM
  3. How can PHP be inserted into the Products Description area?
    By Donn in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 1 Nov 2010, 01:54 AM
  4. Get Into Admin Area
    By gtruk9 in forum General Questions
    Replies: 1
    Last Post: 1 Jan 2008, 05:50 PM
  5. Cant Get into Admin Area
    By vjsibley in forum Basic Configuration
    Replies: 2
    Last Post: 13 Jul 2006, 02:03 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR