Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

What php file is this?


Guest

Recommended Posts

Posted

Hello,

 

I am trying to edit the php file that is diplayed when you click any one of a particular catagory? I would like to edit this file, but cant' seem to find it.

 

Thanks

Posted
Hello,

 

I am trying to edit the php file that is diplayed when you click any one of a particular catagory? I would like to edit this file, but cant' seem to find it.

 

Thanks

 

catalog/index.php handles all category queries except for those which are a specific product .. specific products are handled by product_info.php.

 

index.php is a hard one to view and understand if you have little knowledge of PHP but it can be made more simple. Index.php is effectively 3 files .. it is ..

 

1) NESTED i.e. when the category has more categories.

 

2) Products or manufacturers e.g. you click on a category that has loads of products or you select a manufacturer to see all their products.

 

3) Default .. this is your index page

 

How to find which is which in the confusing index.php

 

1) Scroll down to about line 58 you will see

 

if ($category_depth == 'nested') {

 

These are the categories that have categories

 

2) Find the end of the nested {}

 

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

 

These are where you click on a category and it has products or you have chosen to list the products of a manufacturer.

 

3) Find

 

} else { // default page

 

This is the start of your default index page.

 

Hope that helps.

Posted
catalog/index.php handles all category queries except for those which are a specific product .. specific products are handled by product_info.php.

 

index.php is a hard one to view and understand if you have little knowledge of PHP but it can be made more simple. Index.php is effectively 3 files .. it is ..

 

1) NESTED i.e. when the category has more categories.

 

2) Products or manufacturers e.g. you click on a category that has loads of products or you select a manufacturer to see all their products.

 

3) Default .. this is your index page

 

How to find which is which in the confusing index.php

 

1) Scroll down to about line 58 you will see

 

if ($category_depth == 'nested') {

 

These are the categories that have categories

 

2) Find the end of the nested {}

 

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

 

These are where you click on a category and it has products or you have chosen to list the products of a manufacturer.

 

3) Find

 

} else { // default page

 

This is the start of your default index page.

 

Hope that helps.

 

 

Thanks very much for your help. I think this should simplify things for me quite a bit. I am actually just trying to find out why when I click a specific category I have in the table above my product image the phrase 'TABLE_HEADING_IMAGE'. I don't understand why this is there at the moment, but now that I know which files to look through I hopefully will be able to discover the issue.

 

Thanks again.

Posted
Thanks very much for your help. I think this should simplify things for me quite a bit. I am actually just trying to find out why when I click a specific category I have in the table above my product image the phrase 'TABLE_HEADING_IMAGE'. I don't understand why this is there at the moment, but now that I know which files to look through I hopefully will be able to discover the issue.

 

Thanks again.

 

TABLE_HEADING_IMAGE

 

Is not standard osC code .. you have added a mod and by the look of it not uploaded the languages file.

Posted
Thanks very much for your help. I think this should simplify things for me quite a bit. I am actually just trying to find out why when I click a specific category I have in the table above my product image the phrase 'TABLE_HEADING_IMAGE'. I don't understand why this is there at the moment, but now that I know which files to look through I hopefully will be able to discover the issue.

 

Thanks again.

 

I have found this coding in product_listing.php:

 

$lc_text = TABLE_HEADING_IMAGE;

 

But I believe the problem might be your coding for it in includes/languages/index.php. Mine is there as follows:

 

define('TABLE_HEADING_IMAGE', '');

 

If an item is being called for in a file like you see all CAPS, it has to be defined in either index.php, english.php or one of the specific files under the english folder. I suspect you might have deleted this code from your index.php file. Notice although it is defining it, there is nothing between the 2 's, which I believe means nothing will show.

Archived

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

×
×
  • Create New...