Commit 81e51bfa by lmf

优化fb生成feed

parent 738dc209
...@@ -190,7 +190,7 @@ class FacebookFeed extends Command ...@@ -190,7 +190,7 @@ class FacebookFeed extends Command
if ($product) { if ($product) {
$data['id'] = $product->getSku(); $data['id'] = $product->getSku();
$data['title'] = str_replace('"', '\'', $product->getName()); $data['title'] = str_replace('"', '\'', $product->getName());
$data['description'] = strip_tags(str_replace('"', '\'', $product->getShortDescription())); $data['description'] = strip_tags($product->getDescription());
$data['availability'] = "In Stock"; $data['availability'] = "In Stock";
$data['condition'] = 'new'; $data['condition'] = 'new';
......
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