in 3.0.x-and-above/upload/catalog/controller/extension/module/facebook_business.php [406:440]
private function formatProductDetails($product_info) {
$special_info = $this->model_extension_module_facebook_business->getProductSpecials($product_info['product_id']);
if ($special_info) {
$product_info = array_merge($product_info, $special_info);
}
$formatted_product_details = array(
'retailer_id' => $product_info['product_id'],
'name' => $this->getName($product_info),
'description' => $this->getDescription($product_info),
'rich_text_description' => $this->getRichTextDescription($product_info),
'image_url' => $this->formatAndTrimString($this->getImageUrl($product_info['image'])),
'product_url' => $this->getProductUrl($product_info['product_id']),
'category' => $this->getCategory($product_info),
'brand' => $this->getBrand($product_info),
'price' => $this->getPrice($product_info),
'availability' => $this->getAvailability($product_info),
'retailer_product_group_id' => $product_info['product_id'],
'additional_image_urls' => $this->getAdditionalImageUrls($product_info['product_id']),
'special' => $this->getSpecialPrice($product_info),
'special_period' => $this->getSpecialPricePeriod($product_info),
'condition' => $this->getCondition($product_info['product_id'])
);
$additional_details = $this->getAdditionalDetails($product_info['product_id']);
$formatted_product_details = array_merge($formatted_product_details, $additional_details);
// Ensure that the product checks all requirements for the product feed
if (in_array(false, $formatted_product_details, true) === true) {
return false;
} else {
return $formatted_product_details;
}
}