Unhandled Error!

Object of class Shop_Product could not be converted to int

Document shop:product_list
Document type CMS partial
Line 131
Exception class Cms_ExecutionException

Code Highlight

	}
 
	$product_counter = 0;
 
 
	echo '<div class="product-listing-rule"></div>';
	if(count($products > 0)){
		foreach($products as $product){
			if($product_counter >= 12){
				$pagination = 'true';
				break;
			}
			$productInfo = Shop_Product::create()->find_by_id($product['shop_product_id']);
# Document Type
2 shop:product_list CMS partial
1 Product category page. CMS page