Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Page heading


squarede

Recommended Posts

I have an issue that it seems should have and easy solution, but I can not for the life of me figure it out. I would like to change the page heading "let's see what we have here" to a heading that reflects the category that is being displayed. I would also like to get rid of the category image that is also displayed.

Thanks for any and all help.

Ray

Link to comment
Share on other sites

I have an issue that it seems should have and easy solution, but I can not for the life of me figure it out. I would like to change the page heading "let's see what we have here" to a heading that reflects the category that is being displayed. I would also like to get rid of the category image that is also displayed.

Thanks for any and all help.

Ray

 

index.php can be a hard file to understand for people who are relatively new to osCommerce.

 

It breaks into 3 parts ..

 

  if ($category_depth == 'nested') {
   // Loads of code here to produce nested categories
 } elseif ($category_depth == 'products' || isset($HTTP_GET_VARS['manufacturers_id'])) {
   // Loads of code here to produce the html for products/manufactures listings
 } else { // default page
 // Code here for the default index page
 }

 

the bits you want to change are ( 3 of them ) ..

 

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

 

If you take the code for the nested example (categories)

 

You would change it to ..

 

<td class="pageHeading"><?php echo $category['categories_name']; ?></td>

 

Having said that I wouldn't do this I would add a good Seo Package to do this and meta tags .. keep your eyes open for the release of KissMY SEO Dynamic Meta Tags or see the KissMT development topic

Link to comment
Share on other sites

Robert,

Thanks for your reply.

Indeed, I have been using osCommerce for four years and I find the index file one of the hardest parts to understand (admittedly I am not a programmer and have learned by trial and error.

We suffered from a hack which grabbed our email list and I am taking the opportunity to start from scratch and try some of the things that I never had the time for.

I'd like to learn more about KissMT

Thanks again,

Ray

Link to comment
Share on other sites

index.php can be a hard file to understand for people who are relatively new to osCommerce.

 

It breaks into 3 parts ..

 

  if ($category_depth == 'nested') {
   // Loads of code here to produce nested categories
 } elseif ($category_depth == 'products' || isset($HTTP_GET_VARS['manufacturers_id'])) {
   // Loads of code here to produce the html for products/manufactures listings
 } else { // default page
 // Code here for the default index page
 }

 

the bits you want to change are ( 3 of them ) ..

 

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

 

If you take the code for the nested example (categories)

 

You would change it to ..

 

<td class="pageHeading"><?php echo $category['categories_name']; ?></td>

[/url]

 

I did try this change and was not able to get the category names to show. However, I did get the 'what do we have here' to not show.

Any other ideas? I would still like to get rid of the category image as well.

 

I wouldn't mind getting rid of this table altogether.

 

Thanks again,

Ray

Link to comment
Share on other sites

 

Any other ideas?

Thanks again,

Ray

 

No because for categories that works.

 

For product/manufacturer listing you have to edit the next ..

 

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

 

which takes a bit of code change .. as I said better to add a decent meta tag and seo contribution.

 

To remove the category/product image you have to find the relevant code in the same file.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...