Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how do i make OSC show the products list whenever a category is clicked?


Guest

Recommended Posts

Guys and Gals,

 

I want to show the products list WHENEVER a category is clicked. Further, I want the list to be filtered whenever sub-categories are subsequently clicked.

 

Currently, OSC shows the "What's new in ________" as the categories are clicked and only shows the product list when the pentultimate sub-category is clicked. To me and my users, this is highly counter-intuitive.

 

Has someone done this?

 

If not, does anyone know where is the code that responds to category clicks and where is the code that shows the product list? (I need not only the display code, but where it is called?

 

Is there a functional reference for the OSC PHP?

 

Thank you very much in advance!!!

Link to comment
Share on other sites

it is in the top of the index.php page

 

you have to get the subcategories when it is 'nested' , and replace the where clause for the current_category_id to a category_id in ( subcategories_id )

 

I've done this, but can't share asis, as there is much more custom code that would just confuse things ...

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Link to comment
Share on other sites

Thank you Carine. I am surprised I missed it.

 

I agree, this is quite complex.

 

I understand that it may be too complex to share asis. May I ask, however, what were the stumbling blocks or pitfalls you encountered?

 

For example, the first thing I'd do is to remove the conditional >>>> elseif ($category_depth == 'products' || isset($HTTP_GET_VARS['manufacturers_id'])) {

 

I'd then make sure my queries were using the appropriate category or sub-category ID.

 

I'll delve more deeply tomorrow, but thank you very much.

 

Craig.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...