Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

The Basics of osCommerce


Snoboreders

Recommended Posts

Posted

Ok, I've got a PHPNuke website, and am pretty familiar with it. I noticed that osCommerce is similar to PHPNuke, except things are a bit varied. Can somebody please inform me how to change the text on the main page? I checked the index.php and couldn't find it.

 

In PHPNuke, you just edit a module...but the admin module is a bit different and doesn't offer the same accessibility. If somebody could help me out, I'd greatly appreciate it.

Posted

The instructions on how to edit the index.php is on index.php itself when you view it.

 

You need to go into your /includes/languages/english/index.php or whichever language(s) you are using.

 

Pretty much every main file has a language file that goes with it that you can find in the language folder. If you can't find the text you want to edit look on the main language folder inside of /includes/languages/

 

:)

Wendy James

 

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

Posted

Thank You Wendy. I downloaded that Ms2 documentation, and took a look at it. Helpful, but she'll be a pain to read on the computer. I don't know why, but I bought that osCommerce book off of Amazon for 29.99. I know I know...it's probably a waste of $30 on my part, but I can always sell it used for 25 and make my money back. Anyways, by me not really going out tonight, I saved 30 bucks, so why not.

 

This should be a fun next month or two learning this program.

Posted

Basically what I was hoping to learn (before the book arrives) is how to edit or change the text the default "What's New Here" or "New Products for August" sections.

Posted
Basically what I was hoping to learn (before the book arrives) is how to edit or change the text the default "What's New Here" or "New Products for August" sections.

 

includes/languages/english.php

Posted

includes/languages/english/index.php

and all of the files inside the english folder have the text for the site that you can edit.

 

Or whichever languages you are using.

Wendy James

 

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

Posted
Ok, I've got a PHPNuke website, and am pretty familiar with it. I noticed that osCommerce is similar to PHPNuke, except things are a bit varied. Can somebody please inform me how to change the text on the main page? I checked the index.php and couldn't find it.

 

In PHPNuke, you just edit a module...but the admin module is a bit different and doesn't offer the same accessibility. If somebody could help me out, I'd greatly appreciate it.

Use ftp to edit files not the admin tool, it never works.

 

The files in catalog/

ie catalog/index.php handle the layout of pages and what is displayed. Best left alone at first

 

The files in catalog/includes/languages/english/

hold a corresponding file which contains editable text.

catalog/includes/languages/english/index.php will hold the text you want to change first.

 

So look in your address bar for the file you are displaying, find it in the above directory, download it, edit, save, upload and job done.

I would recommend regular backups. one too many tags and the whole thing seems to bork.

Posted

Where are people finding this index.php file? I am in the control panel and cant find it. This is going to take a while. Thanks.

 

Scott

Posted

Do not use the file manager that comes with osCommerce.

You need to log into your site via FTP, download the file, edit it, then reupload. Some hosts have editers built in their control panel that are ok to use and some have one that totally messes up your code. FTP is the safest thing to do.

 

The index.php for the languages is inside your main catalog folder/includes/languages/english or whichever language you are using.

 

You also have language files for the admin side in your main catalog folder/admin/includes/languages/english or whichever

Wendy James

 

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

Posted

<?php

/*

$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

define('TEXT_MAIN', 'This is a default setup of the <font color="#f0000"><b>' . PROJECT_VERSION . '</b></font> project with custom design <font color="#f0000"><b># ' . TEMPLATE_NUMBER . '</b></font> implemented, products shown are for demonstrational purposes, <b>any products purchased will not be delivered nor will the customer be billed</b>. All work you see here (including graphics) is <b>protected by copyright</b>. The original version at: <a href="http://www.oscommerce.com" target="_blank"><u>osCommerce.com</u></a>.');

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {

define('HEADING_TITLE', 'Let\'s See What We Have Here');

define('TABLE_HEADING_IMAGE', '');

define('TABLE_HEADING_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Product Name');

define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

define('TABLE_HEADING_QUANTITY', 'Quantity');

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_WEIGHT', 'Weight');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');

define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');

define('TEXT_SHOW', '<b>Show:</b>');

define('TEXT_BUY', 'Buy 1 \'');

define('TEXT_NOW', '\' now');

define('TEXT_ALL_CATEGORIES', 'All Categories');

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'What\'s New Here?');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

?>

 

 

 

 

That's my index.php...don't see any text blocks that I can edit besides the TEXT_MAIN.

Posted

You can edit every single one of the lines in your post.

 

Example

define('HEADING_TITLE', 'What\'s New Here?');

could be

define('HEADING_TITLE', 'Welcome and this is the new stuff baby!');

 

 

Just make sure that you have all of the ' where they need to be and pay attention to works like What's. It has to be 'What\'s

 

Any word with an apostrophe in it needs the backwards slash.

Wendy James

 

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

Posted

Thank You Wendy, that makes much more sense. I was looking for there there to be the default text in that section. Also, I wasn't sure if it had to be an HTML section in the PHP with the <td> tag.

 

This should be an interesting night. Thanks again.

Posted

Wendy,

Thats all well and good, but how do I get into them to change the text/what I want to put in place of WHATS NEW HERE, etc.

 

Scott

Posted
Wendy,

Thats all well and good, but how do I get into them to change the text/what I want to put in place of WHATS NEW HERE, etc.

 

Scott

 

You open the files with a text editor, make the changes you want, save them, close the file, and ftp upload it back to your webhost.

 

For example, change...

 

define('HEADING_TITLE', 'What\'s New Here?');

 

to

 

define('HEADING_TITLE', 'This is what\'s new');

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

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

  • 2 months later...

Archived

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

×
×
  • Create New...