Commit f50dc240 by wd

修改desccount内容以及分类去除根分类

parent 64dfa112
......@@ -190,7 +190,7 @@ class GoogleFeed extends Command
$name = $category->getName().'-';
$name = $this->getPrdouctType($category,$name);
$name = implode('->',array_reverse(explode('-',rtrim($name,'-'))));
$categoryGoogleProductCategory[$category->getId()]['product type'] = $name;
$categoryGoogleProductCategory[$category->getId()]['product type'] = ltrim($name,'Category->') ;
}
......@@ -256,7 +256,7 @@ class GoogleFeed extends Command
if ($product) {
$data['id'] = $product->getSku();
$data['title'] = $this->getStoreName() .' '. str_replace('"', '\'', $product->getName());
$data['description'] = strip_tags(str_replace('"', '\'', $product->getShortDescription()));
$data['description'] = strip_tags(str_replace('"', '\'', $product->getDescription()));
foreach( $product->getCategoryIds() as $k=>$v){
......
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