Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $collection = $this->productCollectionFactory->create();
- $collection->addAttributeToSelect('*');
- $collection->load();
- foreach ($collection->getItems() as $productItem) {
- $product = $productItem->getData();
- echo $product['name'].'<br>';
- }
Add Comment
Please, Sign In to add comment