Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Displaying a subcategory filtered by the manufacturer

Displaying a subcategory filtered by the manufacturer

Started by kevin205 on 1 Nov 2013, 3:24 PM · Views: 1,250

Results 1 to 4 of 4
1 Nov 2013, 3:24 PM
#1
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Post #1 by kevin205

I know the following URL displays all products from a certain manufacturer.

http://MyDomain.com/index.php?main_page=index&manufacturers_id=12

I am trying to display all products under a subcategory by a particular manufacturer.

I tried the following and it doesn't work.

http://MyDomain.com/index.php?main_page=index&cPath=9_15&manufacturers_id=12

Is this possible to query the above? How is it done?

Using Zen Cart 1.5.1

1 Nov 2013, 3:53 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #2 by ajeh

The way that works in Zen Cart is to use:
filter_id

for the manufacturers_id when there is a cPath set ...

So if you were looking at cPath 3_10 and wanted to filter manufacturers_id 4 you would have:
/index.php?main_page=index&cPath=3_10&filter_id=4

If you were looking at manufacturers_id 4 and wanted to filter categories_id 10 you would have:
/index.php?main_page=index&manufacturers_id=4&filter_id=10

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

2 Nov 2013, 3:21 AM
#3
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Post #3 by kevin205

Thanks for the reply

Ajeh:

The way that works in Zen Cart is to use:
filter_id

for the manufacturers_id when there is a cPath set ...

So if you were looking at cPath 3_10 and wanted to filter manufacturers_id 4 you would have:
/index.php?main_page=index&cPath=3_10&filter_id=4

If you were looking at manufacturers_id 4 and wanted to filter categories_id 10 you would have:
/index.php?main_page=index&manufacturers_id=4&filter_id=10

The above somehow doesn't work for me!

when I place /index.php?main_page=index&cPath=3_10&filter_id=4, it displays all products under category 3 and sub-category 10, without filtering for manufacturer_id 4.

also
when I place /index.php?main_page=index&manufacturers_id=4&filter_id=3_10, it displays all products for manufacture_id 3.

The cart is using Dynamic Filter. Could that be causing this?

Using Zen Cart 1.5.1

2 Nov 2013, 3:52 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #4 by ajeh

For this one:

when I place /index.php?main_page=index&cPath=3_10&filter_id=4, it displays all products under category 3 and sub-category 10, without filtering for manufacturer_id 4.

I cannot reproduce a problem as I get 3 Products from categories_id 10 (which is cPath 3_10) and the manufacturers_id 4 ...

If you check in your Admin for DVD ... Action ... do you have the master_categories_id on:
Die Hard With A Vengeance Linked
Speed 2: Cruise Control
Speed Linked

each set to the master_categories_id for Action?

For manufacturers_id 4 and subcategories categories_id 10 (from 3_10) this one:
when I place /index.php?main_page=index&manufacturers_id=4&filter_id=3_10, it displays all products for manufacture_id 3.

has to be:
/index.php?main_page=index&manufacturers_id=4&filter_id=10

You probably are not seeing the listing but rather the centerboxes ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!