Forums / General Questions / Some Manufacturers in Advanced Search not showing

Some Manufacturers in Advanced Search not showing

Started by llynix on 1 Feb 2012, 2:38 PM · Views: 603

Results 1 to 3 of 3
1 Feb 2012, 2:38 PM
#1
llynix avatar

llynix

Zen Follower

Join Date:
Jul 2009
Location:
Texas
Posts:
210
Plugin Contributions:
0

Some Manufacturers in Advanced Search not showing

Some of the manufacturers are not showing in Advanced Search.

The pull down list doesn't seem to be populated with all my manufacturers. The sidebox seems to work just fine.

I've tried switching over to classic and it still doesn't work.. so it doesn't seem to be a template problem. This cart is fairly well hacked so it's possible I might have munged something up.. but I was just wondering if anyone had an idea.

Page is at: http://buydentalequipment.com/advanced_search

Thanks for you time and consideration,
Anthony

DentalPlanet Designed/Administrated by Falls Geek

7 Feb 2012, 4:03 PM
#2
llynix avatar

llynix

Zen Follower

Join Date:
Jul 2009
Location:
Texas
Posts:
210
Plugin Contributions:
0

Re: Some Manufacturers in Advanced Search not showing

Ok.. I peeked in the code and sussed this out.

Turns out my problem was inventory. The SQL statement in zen_get_manufacturers specifically looks for quantity > 0

We don't use inventory on our cart. So our items were being ignored.

This simple SQL statement fixed the problem:
UPDATE cart1_products SET products_quantity = 1 WHERE products_quantity = 0;

Still left to question is why the sidebox didn't show the same problem. I would suspect it does something a little different. Maybe not using zen_get_manufacturers or perhaps ignoring the inventory check by default.

Hopefully this all helps someone else.

DentalPlanet Designed/Administrated by Falls Geek

27 Feb 2013, 12:49 AM
#3
quedex avatar

quedex

New Zenner

Join Date:
Apr 2010
Posts:
10
Plugin Contributions:
0

Re: Some Manufacturers in Advanced Search not showing

I just noticed the same error on my site this fixed it though cheers

you'd think if stock control is off then they'd all be set to 1 really ?