Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

can someone explain this to me


sadasiva

Recommended Posts

Posted

From the front page of the Store:

 

----------------------------------

 

"Editing Page Texts

 

The text shown here can be modified in the following file, on each language basis:

 

[path to catalog]/includes/languages/english/index.php

 

That file can be edited manually, or via the Administration Tool with the Languages->English->Define or Tools->File Manager modules."

 

-------------------------

 

WHAT AND WHERE IS THIS "ADMINISTRATION TOOL" -- i do not see this,, how is it used?

 

-----------------------------

 

"The text is set in the following manner:

 

define('TEXT_MAIN', 'This is a default setup of the osCommerce project...');

 

The text highlighted in green may be modified - it is important to keep the define() of the TEXT_MAIN keyword. To remove the text for TEXT_MAIN completely, the following example is used where only two single quote characters exist:

 

define('TEXT_MAIN', '');

 

More information concerning the PHP define() function can be read here."

-----------------------------------

 

 

OK -- so here is the php index file as txt

 

"<?php

/*

$Id: index.php,v 1.1 2004/08/25 22:52:08 akhan Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

define('HEADING_TITLE', 'Choose an action..');

 

define('BOX_TITLE_ORDERS', 'Orders');

define('BOX_TITLE_STATISTICS', 'Statistics');

 

define('BOX_ENTRY_SUPPORT_SITE', 'Support Site');

define('BOX_ENTRY_SUPPORT_FORUMS', 'Support Forums');

define('BOX_ENTRY_MAILING_LISTS', 'Mailing Lists');

define('BOX_ENTRY_BUG_REPORTS', 'Bug Reports');

define('BOX_ENTRY_FAQ', 'FAQ');

define('BOX_ENTRY_LIVE_DISCUSSIONS', 'Live Discussions');

define('BOX_ENTRY_CVS_REPOSITORY', 'CVS Repository');

define('BOX_ENTRY_INFORMATION_PORTAL', 'Information Portal');

 

define('BOX_ENTRY_CUSTOMERS', 'Customers:');

define('BOX_ENTRY_PRODUCTS', 'Products:');

define('BOX_ENTRY_REVIEWS', 'Reviews:');

 

define('BOX_CONNECTION_PROTECTED', 'You are protected by a %s secure SSL connection.');

define('BOX_CONNECTION_UNPROTECTED', 'You are <font color="#ff0000">not</font> protected by a secure SSL connection.');

define('BOX_CONNECTION_UNKNOWN', 'unknown');

 

define('CATALOG_CONTENTS', 'Contents');

 

define('REPORTS_PRODUCTS', 'Products');

define('REPORTS_ORDERS', 'Orders');

 

define('TOOLS_BACKUP', 'Backup');

define('TOOLS_BANNERS', 'Banners');

define('TOOLS_FILES', 'Files');

?>"

------------------------

 

where do I insert text? how is this done? perhaps i am in way over my head here, but i have set up sites for years, yet i cannopt get this coding - i don't see where it goes

Posted

To change text you change between the ' and '

for instance

define('TOOLS_FILES', 'Files');

could be

define('TOOLS_FILES', 'This is the files.');

 

Looks like that is the language file for your admin though, not the main page of the catelog.

 

Whatever you do, do not use the file manager.

Download the page you want to edit to your computer, edit it, then reupload it. The file manager has known bugs and can cause you many headaches.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Posted
From the front page of the Store:

 

----------------------------------

 

"Editing Page Texts

 

The text shown here can be modified in the following file, on each language basis:

 

[path to catalog]/includes/languages/english/index.php

 

That file can be edited manually, or via the Administration Tool with the Languages->English->Define or Tools->File Manager modules."

 

-------------------------

 

WHAT AND WHERE IS THIS "ADMINISTRATION TOOL" -- i do not see this,, how is it used?

 

-----------------------------

 

"The text is set in the following manner:

 

define('TEXT_MAIN', 'This is a default setup of the osCommerce project...');

 

The text highlighted in green may be modified - it is important to keep the define() of the TEXT_MAIN keyword. To remove the text for TEXT_MAIN completely, the following example is used where only two single quote characters exist:

 

define('TEXT_MAIN', '');

 

More information concerning the PHP define() function can be read here."

-----------------------------------

OK -- so here is the php index file as txt

 

"<?php

/*

  $Id: index.php,v 1.1 2004/08/25 22:52:08 akhan Exp $

 

  osCommerce, Open Source E-Commerce Solutions

  http://www.oscommerce.com

 

  Copyright ? 2002 osCommerce

 

  Released under the GNU General Public License

*/

 

define('HEADING_TITLE', 'Choose an action..');

 

define('BOX_TITLE_ORDERS', 'Orders');

define('BOX_TITLE_STATISTICS', 'Statistics');

 

define('BOX_ENTRY_SUPPORT_SITE', 'Support Site');

define('BOX_ENTRY_SUPPORT_FORUMS', 'Support Forums');

define('BOX_ENTRY_MAILING_LISTS', 'Mailing Lists');

define('BOX_ENTRY_BUG_REPORTS', 'Bug Reports');

define('BOX_ENTRY_FAQ', 'FAQ');

define('BOX_ENTRY_LIVE_DISCUSSIONS', 'Live Discussions');

define('BOX_ENTRY_CVS_REPOSITORY', 'CVS Repository');

define('BOX_ENTRY_INFORMATION_PORTAL', 'Information Portal');

 

define('BOX_ENTRY_CUSTOMERS', 'Customers:');

define('BOX_ENTRY_PRODUCTS', 'Products:');

define('BOX_ENTRY_REVIEWS', 'Reviews:');

 

define('BOX_CONNECTION_PROTECTED', 'You are protected by a %s secure SSL connection.');

define('BOX_CONNECTION_UNPROTECTED', 'You are <font color="#ff0000">not</font> protected by a secure SSL connection.');

define('BOX_CONNECTION_UNKNOWN', 'unknown');

 

define('CATALOG_CONTENTS', 'Contents');

 

define('REPORTS_PRODUCTS', 'Products');

define('REPORTS_ORDERS', 'Orders');

 

define('TOOLS_BACKUP', 'Backup');

define('TOOLS_BANNERS', 'Banners');

define('TOOLS_FILES', 'Files');

?>"

------------------------

 

where do I insert text? how is this done? perhaps i am in way over my head here, but i have set up sites for years, yet i cannopt get this coding - i don't see where it goes

 

Sam,

 

You are looking at two different things. The text you need to edit resides in your catalog language file while the text file you show is the one from the admin part of osCommerce.

If you have a default setup you should have directories like:

catalog/ and catalog/admin/

The Administration Tools you will find when you type your url like

http://www.yourdomain.com/catalog/admin/index.php

The catalog=shop part of osC you will get when typing the url like

http://www.yourdomain.com/catalog/index.php

 

So all textual parts of the shop you will find defined underneath

http://www.yourdomain.com/catalog/includes/languages

and the one you are looking for is

http://www.yourdomain.com/catalog/includes...glish/index.php

 

On beforehand it should be said that you should not use the file manager you will find within the administration tools ! It will screw up the language definitions files and only create errors. Best thing is to use a seperate file editor (notepad will do but a more sofisticated text editor (ie. Textpad is a good one) will be better on the long run).

The idea is to first make a backup of the file you are going to edit and do the editing locally on your computer. After you made the changes upload it back from where you took it and check from within your browser if the changes are correct (refresh the page or empty your browser cache to make sure you look at the latest changes).

Hope this clarifies it a little bit !

 

regards,

Howard

Posted

thanks all

yes the thing that is confising me is there are about 50 index.php files,, in different folders,, i don;t understand the hierarchy. Only on 1 can you actually edit some of the text. -- i am also trying to firgure out how to edit the individial checkout pages and none of the links refer to actual pages from the URL bar..

 

for instance trying to modify this page http://sfyoga.net/ecommerce/os/catalog/index.php?cPath=21

 

where is it? - how do i modify it or add stuff to it? --

 

every page just seems like a bunch of commands - i cannot find any of the text that is written on them or get at it..

Posted
thanks all

yes the thing that is confising me is there are about 50 index.php files,, in different folders,, i don;t understand the hierarchy. Only on 1 can you actually edit some of the text. -- i am also trying to firgure out how to edit the individial checkout pages and none of the links refer to actual pages from the URL bar..

 

for instance trying to modify this page http://sfyoga.net/ecommerce/os/catalog/index.php?cPath=21

 

where is it? - how do i modify it or add stuff to it? --

 

every page just seems like a bunch of commands - i cannot find any of the text that is written on them or get at it..

 

Just remember this:

All language related files are under catalog/includes/languages/

Textual changes you make through editing the files you find there.

 

Ie. for the english language you have:

catalog/includes/languages/english.php

catalog/includes/languages/english/<a whole lot of language related files>

catalog/includes/languages/english/images/<more sub-directories>

catalog/includes/languages//english/modules/<more sub-directories>

 

The files with coding are directly under the catalog directory and more if you look at catalog/includes/, catalog/includes/classes, catalog/includes/functions, catalog/includes/modules, catalog/includes/boxes

Those files you only touch when you are installing a contribution and/or are making changes to the behaviour of the shop yourself. These coding files use the language files which means if you look at your main page, catalog/index.php, the textual parts you see are pulled from catalog/includes/languages/english.php AND catalog/includes/languages/english/index.php.

If you go to catalog/shipping.php the textual part is pulled from catalog/includes/languages/english/shipping.php etc. etc.

 

Once you get the hang of this it is pretty simple to tell where to change what ;)

Posted

Dear HOwoard,

thank you very much for taking the time to explain that to me.. i will print this out a refer back to it.. -- onc ei understand the hierarchy i will be fine.. but because all of the files/folders look so similar, right now my head is spinning... i just started this about a week ago... so..

 

again thank you very much HOward

 

Just remember this:

All language related files are under catalog/includes/languages/

Textual changes you make through editing the files you find there.

 

Ie. for the english language you have:

catalog/includes/languages/english.php

catalog/includes/languages/english/<a whole lot of language related files>

catalog/includes/languages/english/images/<more sub-directories>

catalog/includes/languages//english/modules/<more sub-directories>

 

The files with coding are directly under the catalog directory and more if you look at catalog/includes/, catalog/includes/classes, catalog/includes/functions, catalog/includes/modules, catalog/includes/boxes

Those files you only touch when you are installing a contribution and/or are making changes to the behaviour of the shop yourself. These coding files use the language files which means if you look at your main page, catalog/index.php, the textual parts you see are pulled from catalog/includes/languages/english.php AND catalog/includes/languages/english/index.php.

If you go to catalog/shipping.php the textual part is pulled from catalog/includes/languages/english/shipping.php etc. etc.

 

Once you get the hang of this it is pretty simple to tell where to change what  ;)

Archived

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

×
×
  • Create New...