Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to edit my php files?


hqizil

Recommended Posts

I've searched for weeks on information on how to edit the php files for my site. I have no experience with php at all and only recently began using OsCommerce due to money restraints. I downloaded DzSoft PhP editor and still can not figure out how to edit, for example, my about.php to show the text I want.

 

To see how far I was able to get you can go to www.hqemart.biz and click the "about us" tab. It simply takes you to a separate html page, which is what I created in DzSoft. Apparently it's not as simple as creating the about us in html and then saving it as a php file, because that's what I did. I then replaced the about us in my catalog folder of the store. Obviously not right.

 

Can anyone simplify this process for me? I will need to edit my contact us, FAQ and about us.

Link to comment
Share on other sites

I've searched for weeks on information on how to edit the php files for my site. I have no experience with php at all and only recently began using OsCommerce due to money restraints. I downloaded DzSoft PhP editor and still can not figure out how to edit, for example, my about.php to show the text I want.

 

To see how far I was able to get you can go to www.hqemart.biz and click the "about us" tab. It simply takes you to a separate html page, which is what I created in DzSoft. Apparently it's not as simple as creating the about us in html and then saving it as a php file, because that's what I did. I then replaced the about us in my catalog folder of the store. Obviously not right.

 

Can anyone simplify this process for me? I will need to edit my contact us, FAQ and about us.

 

download editplus at http://editplus.com

downlaod your entire site to your local computer

open the about.php

inside there will be something like : echo TEXT_ABOUT

echo means 'print to screen'

this text is control in separate files called language files.

these language files are at /include/languages/english.php and also all the files in the /include/languages/english/* directory.

 

inside one of these files wil be the text for the about us page - and every other page on your site.

if you want to edit the text, then change the text in the appropriate language file, and re-upload into the correct directory.

if you want to edit the placement of the text, move the :

<? echo TEXT_ABOUT_WHATEVER ?>

line in the page you are referencing.

 

here is a sample of the language file :

http://oscommerce-reference.swisscart.com/...php.source.html

 

be careful what you edit - AND ALWAYS BACK UP YOUR FILE BEFORE EDITTING.

If you put in a word with a single quote like : don't

you have to escape the apostrophe like this :

don\'t

 

hth, david

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...