Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Keeping a category selected all the time


gomino

Recommended Posts

Posted

Hello all!

 

I would like to keep the category selected until he selects another one. This way, the user can go through brands, and items without losing the category.

For example, if the store divides in categories things for women, and things for men, normally you do not want to change to man/woman, so I would like the user to only see the things for man/woman without selecting all the time in the catalog.

 

Problem:

I have been trying to modify product_listing.php commenting some lines:

 

case 'PRODUCT_LIST_NAME':
           $lc_align = '';
           /*if (isset($HTTP_GET_VARS['manufacturers_id'])) {
           $p_name = $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>';
           } else {*/
           $p_name = $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>';
           //}
           break;

 

case 'PRODUCT_LIST_IMAGE':
           $lc_align = 'center';
           /*if (isset($HTTP_GET_VARS['manufacturers_id'])) {
             $p_pic = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';
           } else {*/
             $p_pic = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';
           //}
           break;

 

Question:

I have looked for addons that do this, and found nothing. I think I will create a new addon so I can get more support from people interested.

Is there any way to make this work?

 

Any help would be appreciated!

Archived

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

×
×
  • Create New...