Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Skip Product listing


Qihun

Recommended Posts

Posted

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

  • 1 year later...
Posted
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??

Archived

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

×
×
  • Create New...