Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

A 'custom' Category


Jaide

Recommended Posts

I have a 'custom' category that I'd like to link to a page like custom.php - is this possible? In other words, instead of the category Custom showing a list of products, it will show a .php page of HTML info, ie:

 

CUSTOM DECALS

fill out this form and we will give you a free quote

 

Name

Email

Your Graphic

Your Text

Link to comment
Share on other sites

I have a 'custom' category that I'd like to link to a page like custom.php - is this possible? In other words, instead of the category Custom showing a list of products, it will show a .php page of HTML info, ie:

 

 

Ummm... just modify /includes/boxes/categories.phh. Right before the "new CategoriesBox($info_box_contents);" (or in your case it'll probably be new infoBox() ) line you'll see something like this:

 

$info_box_contents[] = array('align' => 'left',

'text' => $categories_string);

modify it to

 

$info_box_contents[] = array('align' => 'left',

'text' => $categories_string . '<a class="blah" href="/custom.php">' . tep_image(DIR_WS_IMAGES . 'yourbullet.png', 'Alt for the bullet') .Create your Own</a>');

Link to comment
Share on other sites

Thanks for replying, I tried it and it gives me: Parse error: syntax error, unexpected '/' in /home/jaide/public_html/includes/boxes/categories.php on line 287 (with or without the '/custom')

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...