Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Intro pages for each categories


Guest

Recommended Posts

Posted

Hi,

 

I would like to create a custom intro page for every category thats only visible on the first page.

 

For example lets say I have a category called Yamaha Bikes

 

When I click Yamaha I would like an intro saying "You are now browsing through our wide range of yamaha bikes on offer" and a picture below it.

 

When I click page 2 of the yamaha category I would like the intro to disappear.

 

Is this possible?

Posted
Hi,

 

I would like to create a custom intro page for every category thats only visible on the first page.

 

For example lets say I have a category called Yamaha Bikes

 

When I click Yamaha I would like an intro saying "You are now browsing through our wide range of yamaha bikes on offer" and a picture below it.

 

When I click page 2 of the yamaha category I would like the intro to disappear.

 

Is this possible?

 

top

Posted

What do you mean by top? :)

 

Theres a contribution that allows you to place html text in each category from the admin section where you create the categories.

The contribution I use is called "category_descriptions_v500"

Posted

If I understand you you want to click the category of Yamaha Bikes and the page will be say a large picture of a yamaha; no products listed. Click the picture and go to the product listing of the bikes.

If this is the case you could have a main category called Yamaha Bikes with a sub category of say Yamaha.

The category image for the sub category Would be the large image you want to display. The image could include the text.

You would need to go to admin and set the sub category image size.

Also you need to remove the call in index.php for the category image to be displayed in the right corner

  if ($category_depth == 'nested') {
$category_query = tep_db_query("select cd.categories_name, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'");
$category = tep_db_fetch_array($category_query);
?>
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
		<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

delete the last td row.

 

This will work as long as you do not have more than one sub category per category.

I am sure there will be other code to change but this is a starting point. You may be able to do it through the manufacturers instead. Just experiment and BACKUP ALL FILES

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Archived

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

×
×
  • Create New...