Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Basics


Forensics

Recommended Posts

Posted

I appreciate the hard work and willingness of the forum sharing vast knowlege and expertise.

 

I have some real basic issues:

 

First is there a way to change :/default/catalog.php to catalog.php

Second I am getting the following error:

Parse error: parse error in /home/forensic/forensicmaps-www/catalog/includes/languages/english/default.php on line 13

 

The top of the page shows "Heading Title"

and Below "Text Main"

 

I tried deleting the test page data from the code and obvioulsy did something I should not have.

 

Please be simple as I am exploring new worlds thanks to the expertise of you folks. If someone could send me the correct code in e-mail perhaps I could cut and paste. [email protected]

site is Http://www.forensicmaps.com/catalog/default.php

 

Thanks

Posted

1 - Elaborate on what it is you are tyring to accomplish. I think you may have your wording switched around here and want to move /catalog/default.php to default.php. Please clarify that.

 

2 - Copy and paste lines 10 - 15 of your /catalo/includes/languages/english/default.php file here so we can look at what the problem may be.

Posted

on the switch, I just want to make it so that the page is pointed to:

Http://www.forensicmaps.com/catalog

 

The way it is now I have to point it to /catalog/default.php

 

This looks like the code that you wanted I think..

 

@setlocale(LC_TIME, 'en_US.ISO_8859-1');

define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime()

define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()

define('DATE_FORMAT', 'm/d/Y'); // this is used for date()

define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

 

////

// Return date in raw format

// $date should be in format mm/dd/yyyy

// raw date is in format YYYYMMDD, or DDMMYYYY

function tep_date_raw($date, $reverse = false) {

if ($reverse) {

return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);

} else {

return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);

}

}

 

// if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language)

define('LANGUAGE_CURRENCY', 'USD');

 

// Global entries for the <html> tag

define('HTML_PARAMS','dir="LTR" lang="en"');

 

// charset for web pages and emails

define('CHARSET', 'iso-8859-1');

Posted
2 - Copy and paste lines 10 - 15 of your /catalog/includes/languages/english/default.php file here so we can look at what the problem may be.

 

It should look like this:

  Released under the GNU General Public License

*/



define('TEXT_MAIN', 'Main Text Here');

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

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

 

As for your site rename your default.php file to index.php file. You will also need to do this in /catalog/admin area.

 

Then open up application_top.php in /catalog/includes/ and find

define('FILENAME_DEFAULT', 'default.php');

 

Change it to:

define('FILENAME_DEFAULT', 'index.php');

 

You will also need to do that in /catalog/admin/includes/.

 

Then rename your /catalog/includes/languages/english/default.php file to index.php and do that same thing in /catalog/admin/inclues/languages/english/ as well as any other languages you may be using.

Posted

I think this is the code where my errors are:

 

define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()

define('DATE_FORMAT', 'm/d/Y'); // this is used for date()

define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

Released under the GNU General Public License

////

// Return date in raw format

// $date should be in format mm/dd/yyyy

// raw date is in format YYYYMMDD, or DDMMYYYY

function tep_date_raw($date, $reverse = false) {

if ($reverse) {

return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);

} else {

return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);

}

}

Posted

That's NOT where the problem is. Please read what leezzard asked you to post. Post lines 10-15 of your /includes/languages/english/default.php

 

You're not even looking at the correct file. :wink:

Posted

Is this it..I think I need to invest in a good .php book. I am ok with html but am lost here..sorry and thanks for the patience

 

PROJECT_VERSION . '</b></font>.<br><br>The text shown here can be modified in the following file, on each language basis: [path to catalog]/includes/languages/[language]/default.php.<br><br>That can be edited manually, or via the Administration Tool with the Languages->[language]->Define option, or by using the Tools->File Manager feature.');// page title

define('TITLE', 'osCommerce');

define('HEADING_TITLE', 'Thanks For Shopping With Us');

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

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

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

Archived

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

×
×
  • Create New...