Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Please Help...


Guest

Recommended Posts

I need your help to figure this out:

 

As you all know, when you click on a category in the menu you are taken to the subcategory page.

 

In our store each subcategory only has one product. We want to skip the product listing and go right to the product description when you select a subcategory. I use categories to determine the sort order of our products since they are seasonal.

 

I tried working with code from the 'new products' box since it jumps right to the product description from the index page.

 

I have tried modifying the code in index.php as follows:

 

----

 

tep_href_link(FILENAME_DEFAULT, $cPath_new)

 

- to work as -

 

tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id'])

 

----

 

I almost had it...The only problem was that no products were found? I tried setting veriables etc. but I still couldn't get it to work.

 

Unfortunately my PHP skills are weak and I'm hoping this will be a calk walk for someone.

 

 

This is my final task on this project...then it launches this week!!

 

I appreciate any help you can offer,

 

Rob

Link to comment
Share on other sites

no...I do need the categories so I can determine the sort order.

 

Since each category has one product in it, I want to jump right to that item's description skipping the product listing where the price and wheight are shown.

 

 

The other option is to eliminate categories and create a sort order for the product listing. The order is VERY important since our products are seasonal and the current items need to be at the top of the listing.

 

Thanks,

 

Rob

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...