Commit 13ef29a1 by lmf

优化生成文件去除问题

parent 5bb80305
......@@ -187,7 +187,6 @@ class FacebookFeed extends Command
public function generateProductData($product)
{
$data = array();
$flag0price = false;
if ($product) {
$data['id'] = $product->getSku();
$data['title'] = str_replace('"', '\'', $product->getName());
......@@ -224,12 +223,6 @@ class FacebookFeed extends Command
$data['shipping'] = '';
$data['shipping_weight'] = '';
$data['style[0]'] = '';
if ($regular_price < 0.01) {
$flag0price = true;
}
}
if ($flag0price) {
$data = array();
}
return $data;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment