Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

what file changes the index page?


osfalcon

Recommended Posts

A basic list of your page elements is as follows:

 

Header – catalog/includes/header.php

Footer - catalog/includes/footer.php

Left side boxes - catalog/includes/ column_left.php

Right side boxes - catalog/includes/ column_right.php

 

The above listed files are used for the basic layout of all your pages. If you look at your cart pages in your catalog root folder, you will notice that each one of them references these files in their content as a required file.

 

Example- <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

 

This PHP statement is telling the page to render the contents of the file footer.php in the browser. So when you look at your page, you will see your footer.

If you were to remove this string, you would no longer have footer, and the contents it contained.

 

Language files

All of the language files located in: catalog/includes/languages determine the text that your visitors see on your pages.

The text is defined, one time, in the language file for use on all your pages where they are called to be viewed.

 

Example- define('HEADER_TITLE_CREATE_ACCOUNT', 'Create an Account');

 

So, wherever you see an echo string with a predetermined variable, the text that was defined for that variable will be shown.

 

Example- <?php echo HEADER_TITLE_CREATE_ACCOUNT; ?>

 

This will instruct the page to display the words “Create an Account” wherever the echo command is located.

So you probably ask, “Why not just write: Create an Account?”

 

Well the answer is simple, with a defined variable, you can change the one instance of “Create an Account” to “Would you like to create an Account?” in your language file, and the change would reflect on all your pages in one shot!

 

 

The osCommerce pages are made up of different elements to create the “whole”. Now that you know a little about how the pages are rendered, it is possible for you to adjust, modify, exclude, and add to your osCommerce cart layout!

Link to comment
Share on other sites

thanks for the help,

 

the image of the mac computer is called "pic12" but I dont see that file in the code of my header.php file? Also, how would i change the text next to that image?

 

 

http://www.onchrome.com/shop/index.php

 

 

thanks

 

 

 

 

 

A basic list of your page elements is as follows:

 

Header ? catalog/includes/header.php

Footer - catalog/includes/footer.php

Left side boxes - catalog/includes/ column_left.php

Right side boxes - catalog/includes/ column_right.php

 

The above listed files are used for the basic layout of all your pages. If you look at your cart pages in your catalog root folder, you will notice that each one of them references these files in their content as a required file.

 

Example- <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

 

This PHP statement is telling the page to render the contents of the file footer.php in the browser. So when you look at your page, you will see your footer.

If you were to remove this string, you would no longer have footer, and the contents it contained.

 

Language files

All of the language files located in: catalog/includes/languages determine the text that your visitors see on your pages.

The text is defined, one time, in the language file for use on all your pages where they are called to be viewed.

 

Example- define('HEADER_TITLE_CREATE_ACCOUNT', 'Create an Account');

 

So, wherever you see an echo string with a predetermined variable, the text that was defined for that variable will be shown. 

 

Example- <?php echo HEADER_TITLE_CREATE_ACCOUNT;  ?>

 

This will instruct the page to display the words ?Create an Account? wherever the echo command is located.

So you probably ask, ?Why not just write: Create an Account??

 

Well the answer is simple, with a defined variable, you can change the one instance of ?Create an Account? to ?Would you like to create an Account?? in your language file, and the change would reflect on all your pages in one shot!

The osCommerce pages are made up of different elements to create the ?whole?. Now that  you know a little about how the pages are rendered, it is possible for you to adjust, modify, exclude, and add to your osCommerce cart layout!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...