<?php  
// Make sure this is a block version of the view, and the current page is a node
if ($view->build_type == 'block' && arg(0) == 'node' && is_numeric(arg(1))) {
	
	// load node info to determine content type
	$node = node_load(array('nid' => arg(1)));
	
	// check if content type is product
	if($node->type == product) {
	
	// set current node ID as argument
	$args[0] = arg(1);
	
	return $args;
	}
}  ?>