Thread: Froogle Google
View Single Post
  #47  
Old 08-14-2003, 09:18 PM
 
HairGuy HairGuy is offline
 

Member
  
Join Date: Oct 2002
Posts: 12
 

Default How to restrict a category

In response to jgkeifer:

If you want to skip a certain category, just add a bit more logic.

For example, change this:
Code:
if ($products[$key][forsale] == 'N' || # skip products not available for sale $products[$key][price] <= 0.00) { # skip products with zero price continue; }
to
Code:
if ($products[$key][forsale] == 'N' || # skip products not available for sale $products[$key][price] <= 0.00 || # skip products with zero price $category == 'Whatever category you want to skip') { continue; }
Reply With Quote