Guest Posted December 26, 2005 Share Posted December 26, 2005 Hi i have had a few problems with getting this right. Here is my site http://www.nelsco.co.uk/index.php The 1st thing wrong is i can't get text at the to of the page (Welcome to Nelsco) define('TEXT_MAIN', 'Welcome to Nelsco Computer systems.'); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); As i no the code is right but it does not show up. I also want to remove the Manufacturers show case. Here is the rest of the code for index.php if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', ''); 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'); } ?> Link to comment Share on other sites More sharing options...
sidlondon Posted December 26, 2005 Share Posted December 26, 2005 Hi i have had a few problems with getting this right. Here is my site http://www.nelsco.co.uk/index.php The 1st thing wrong is i can't get text at the to of the page (Welcome to Nelsco) define('TEXT_MAIN', 'Welcome to Nelsco Computer systems.'); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); As i no the code is right but it does not show up. I also want to remove the Manufacturers show case. Here is the rest of the code for index.php if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', ''); 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'); } ?> Hi you have avery impressive index.php where do you get the template ? or do you of site where i can get free templates ? Link to comment Share on other sites More sharing options...
Guest Posted December 27, 2005 Share Posted December 27, 2005 Hi you have avery impressive index.php where do you get the template ? or do you of site where i can get free templates ? am not sure i got it done for me. Link to comment Share on other sites More sharing options...
Guest Posted December 28, 2005 Share Posted December 28, 2005 Can no one sort this problem for me. please help Link to comment Share on other sites More sharing options...
stevennickelby Posted December 28, 2005 Share Posted December 28, 2005 That looks like the 'catalog/languages/english/index.php' .....maybe theres no path for to it in the 'categories/index.php' that could be one reson why it doesn't display, Or i guess the other could be something to do with html, can't blame a man for trying! Link to comment Share on other sites More sharing options...
♥toyicebear Posted December 28, 2005 Share Posted December 28, 2005 Hi i have had a few problems with getting this right. Here is my site http://www.nelsco.co.uk/index.php The 1st thing wrong is i can't get text at the to of the page (Welcome to Nelsco) define('TEXT_MAIN', 'Welcome to Nelsco Computer systems.'); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); As i no the code is right but it does not show up. I also want to remove the Manufacturers show case. Here is the rest of the code for index.php if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', ''); 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'); } ?> Because of your template not all the language defines will show up.... To get the effect you want, you will have to edit the index.php file , which for your site is located in the root folder. The file has 3 sections, the part you will have to modify is the 3 and last section of the index.php file. Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here] Link to comment Share on other sites More sharing options...
Guest Posted December 28, 2005 Share Posted December 28, 2005 Because of your template not all the language defines will show up.... To get the effect you want, you will have to edit the index.php file , which for your site is located in the root folder. The file has 3 sections, the part you will have to modify is the 3 and last section of the index.php file. Ok thank you for helping me out. i got the index.php but what is it i'am looking to edit do you no. i'am not to good with PHP but no some. I can post the code to the index.php if you need to have a look. Thanks for all your help. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.