
Originally Posted by
Roadrunner
I read another tutorial. It says to change the index.php to a custom folder. Haven't found that yet. I changed my text and uploaded. It doesn't change the site.
I would guess that you have some experience in working with HTML sites - where you call up a page (xxxxxxx.html) in your WYSIWYG html editor, make alterations, and then send xxxxxxx.html back to the server...
HTML pages are known as STATIC pages. They inherently contain all they need to display in a browser.
Zencart (like all "CMS" platforms) does not work on the basis of STATIC HTML.
In fact, there are NO STATIC HTML PAGES IN ZENCART - so in one sense, there is no "html" for you to edit.
Zencart is therefore not STATIC, but DYNAMIC.... The code CREATES PAGES according to what the visitor needs to see. It does this through the PHP code.
PHP "assembles" pages on-the-fly - gathering up all the components and piecing them together, and then structuring a html framework in which to "render" the requested information - which is then sent down the internet to the visitor's screen.
That "page" is compiled in milli-seconds - and is compiled ONLY FOR THE USER REQUESTING IT.
When that user clicks another link, or an "action button" (such as Add-To-Cart), the "page" they are on EVAPORATES FOREVER. POOF... !!! it VANISHES into the ether.
Then, the PHP starts to build up ANOTHER unique "page" for that visitor - gathering up all the necessary "bits" and again putting it into a html framework, which it then sends back to the visitor's screen.
SO... if you can't "edit html" then WHAT can you edit?
You can edit CONTENT (which includes DATA, DEFINE CONSTANTS, CSS, JCRIPT and IMAGES).
DATA lives in the DATABASE - and in 99% of cases where you need to edit DATA, you will do this via your zencart admin console.
DEFINE CONSTANTS (with their associated VARIABLES) are MOSTLY contained in LANGUAGE PHP FILES. (you will have seen a folder called "languages" in the main "includes" folder. In there are a large number of PHP files that contain DEFINE CONSTANTS and their VARIABLES. The bit you edit is the VARIABLE.
For example, a DEFINE STATEMENT looks like this:
PHP Code:
define('TEXT_NO_FEATURED_PRODUCTS', 'More featured products will be added soon. Please check back later.');
The UPPER_CASE_CONSTANT is never edited...
define('TEXT_NO_FEATURED_PRODUCTS',
The VARIABLE can be edited - and that's the second bit of that line of code:
'More featured products will be added soon. Please check back later.');
But you DO NOT remove or change the bits in RED (above) Just the "variable text":
'We occasionally have featured products. Right now, there are no featured products.');
STYLE is largely controlled by the CSS - and there are good tutorials at w3schools.com
IMAGES can live in various places.
PRODUCT images live in the MAIN IMAGES FOLDER.
DESIGN IMAGES relate to the template being used, and are inside an images folder located in the template's folder.