Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Let's See What We Have Here


bperfect

Recommended Posts

Hi Everyone !!

 

I would like to change the heading of every category that by default is "Let's See What We Have Here" with the category name. Suppose if the category name is "Keyboards" and when the visitor clicks on Keyboards category to see the product list under that category, he should NOT see the default message "Let's See What We Have Here" he should see "Keyboards"..

 

Any Ideas on how to do it, I could see some of the live shops have already done so... please reply..

 

Regards

Bperfect

Link to comment
Share on other sites

Thanks !! It worked perfectly...

 

One more question, On the frontpage it says "Whats New Here" can you tell me how to remove that ?. I removed it from catalog/includes/languages/english/index.php but it still shows up the blank space there...

 

Thanks in advance !! :o

Link to comment
Share on other sites

Remark out these lines near the bottom of /catalog/index.php

 

<tr>
 <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> 
 <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
</tr>

while (!succeed) {try()};

 

GMT -6:00

Link to comment
Share on other sites

define('HEADING_TITLE', $categories['categories_name']);

I made this change and it works beautifully for me, too (thank you!), except for in categories where there are sub-categories. For example, I have a category of CDs / Tapes which has a number of sub-categories like:

 

Babies

Christmas

Disney

etc.

 

On the product listings for all of the sub-categories, the title displays correctly. But for the CDs / Tapes main category, it still says "Categories."

 

Any suggestions on how to fix that?

 

TIA,

 

TerryK

Terry Kluytmans

 

Contribs Installed: Purchase Without Account (PWA); Big Images, Product Availability, Description in Product Listing, Graphical Infobox, Header Tags Controller, Login Box, Option Type Feature, plus many layout changes & other mods of my own, like:

 

Add order total to checkout_shipment

Add order total to checkout_payment

Add radio buttons at checkout_shipping (for backorder options, etc.)

Duplicate Table Rate Shipping Module

Better Product Review Flow

 

* If at first you don't succeed, find out if there's a prize for the loser. *

Link to comment
Share on other sites

I haven't tested this so buyer beware.. ;)

 

Look for this code around line 40 of catalog/includes/languages/english/index.php:

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

  define('HEADING_TITLE', 'Categories');

and change it to:

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

define('HEADING_TITLE', $categories['categories_name']);

 

Hope it works for you.

 

Tom

Link to comment
Share on other sites

Brilliant -- works like a charm!

 

Thanks so much!

 

TerryK

Terry Kluytmans

 

Contribs Installed: Purchase Without Account (PWA); Big Images, Product Availability, Description in Product Listing, Graphical Infobox, Header Tags Controller, Login Box, Option Type Feature, plus many layout changes & other mods of my own, like:

 

Add order total to checkout_shipment

Add order total to checkout_payment

Add radio buttons at checkout_shipping (for backorder options, etc.)

Duplicate Table Rate Shipping Module

Better Product Review Flow

 

* If at first you don't succeed, find out if there's a prize for the loser. *

Link to comment
Share on other sites

Look in catalog/includes/languages/english/index.php

 

I changed mine to just display the Category Name.

 

define('HEADING_TITLE', $categories['categories_name']);

 

 

HTH

nice trick...

 

do you know how to do that and with text like

define('HEADING_TITLE', Products in $categories['categories_name']);

 

i've tried a few different ways with quotes and it gives errors

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...