Qihun Posted May 2, 2006 Posted May 2, 2006 I'd like to have this option in my shop if ($cateqories_products['total'] = 1) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id'])); } but I have difficulty to find appropriate place on index.php page What is the place if I have subcategory and if I don't . And is it possible to put it somewhere , so it will redirect in both cases ( have subcat / no subcat) I am trying to read the code , but I can't catch it. if someone has a minute to help me I would appreciate it very much. Thank you
jimmygreaves Posted August 16, 2007 Posted August 16, 2007 I'd like to have this option in my shop if ($cateqories_products['total'] = 1) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id'])); } but I have difficulty to find appropriate place on index.php page What is the place if I have subcategory and if I don't . And is it possible to put it somewhere , so it will redirect in both cases ( have subcat / no subcat) I am trying to read the code , but I can't catch it. if someone has a minute to help me I would appreciate it very much. Thank you This is exactly the functionality I'm looking for too. The ability to skip the product listing page when there is only one product in a catagory or subcatagory. Has anybody managed to figure out a hack to acheive this??
Recommended Posts
Archived
This topic is now archived and is closed to further replies.