View Single Post
  #3  
Old 02-24-2009, 01:20 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: If statement for specific option class?

Sorry I have missed that you need this in category.
add in your products.php before the line
Code:
$smarty->assign("products",$products);


this:
Code:
foreach($products as &$pp){ $pp['product_options'] = func_get_product_classes($pp['productid'], false); }

and every product from your $products array will contain additional array with product options
so you just need to edit skin1/customer/main/products.tpl and skin1/customer/main/products_t.tpl as it was figured in my previous post
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote