Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Category page to product's page.


Guest

Recommended Posts

On my site, when one goes to the category page, they have the list of products in that category. When one clicks on a product, they are taken to the product's description page with the image, description, options, and add to cart button. However, I would much rather have the product's separate web page to open when one clicks on the product in the category page rather than the one that osCommerce gives me. Is this possible?

Link to comment
Share on other sites

Sorry if I wasn't clear. Here is an example:

 

This is my category page: http://www.annakaydesigns.com/catalog/defa...2701c4d24c19f2d

 

When you go there and click on an image (say the first one) it takes you to: http://www.annakaydesigns.com/catalog/prod.../products_id/34

 

I would like it to go to a place that isn't a page generated in osCommerce. In the admin, when you add a product, there is an field titled "Products URL". Perhaps there is a way to have the link go there instead of the default location.

Link to comment
Share on other sites

If you wish require an outisde link inside your categories box I'd suggest the following came up with it in 5 seconds so bear with me;

 

Find this in catalog/includes/boxes/categories.php

 

<!-- categories //-->

         <tr>

           <td>

<?php

 $info_box_contents = array();

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

                              'text'  => BOX_HEADING_CATEGORIES

                             );

 new infoBoxHeading($info_box_contents, true, false);



 $categories_string = '';



 $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . $languages_id ."' order by sort_order, cd.categories_name");

 while ($categories = tep_db_fetch_array($categories_query))  {

   $foo[$categories['categories_id']] = array(

                                       'name' => $categories['categories_name'],

                                       'parent' => $categories['parent_id'],

                                       'level' => 0,

                                       'path' => $categories['categories_id'],

                                       'next_id' => false

                                      );

 

You may start your edit between

<!-- categories //-->

         <tr>

           <td>

 

Here you might add ;

<a href="http://www.hieroglyphics.com/">Super Human Hip Hop Rhymes</a>

 

You may have to add a table or two but it should get you going

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...