Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Title not showing V2.3 #5

Open
karanguilherme opened this issue Feb 3, 2020 · 0 comments
Open

Title not showing V2.3 #5

karanguilherme opened this issue Feb 3, 2020 · 0 comments

Comments

@karanguilherme
Copy link

karanguilherme commented Feb 3, 2020

Recentemente encontrei esta solução para Google Shopping Feed aqui no Git Hub, instalei em minha loja virtual e me deparei com o seguinte problrma:

Não mostravem title, description e entrte outras informações requeridas do Google Merchant Center.

A Solução foi Adicionar no Código do arquivo product.php

public function getFilteredProducts()
{
    $collection = $this->_productCollectionFactory->create();
    // $collection->addAttributeToFilter('status',\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED);
    //$collection->addAttributeToFilter('status', ['in' => $this->_productStatus->getVisibleStatusIds()]);
  //  $collection->setVisibility($this->_productVisibility->getVisibleInSiteIds());

  //  $collection = $productCollectionFactory->create();
    $collection->addAttributeToSelect('*');
    
    return $collection;
}

Desta forma passei a ter todos os dados dos produtos de minha loja.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant