Me need minimal load system that get ONLY: Product Name, Product Type, Product Url, Thumbnail Url, Price, Sub products for Configurable.

Preferably use catalog_product_flat_ table (i think it's good idea for optimization)

How can I do it?

Help me,



Instead of using the object manager directly, inject the ProductFactory:

public function __construct(\Magento\Catalog\Model\ProductFactory $productFactory)
    $this->productFactory = $productFactory;

Then use it like this:

$product = $this->productFactory->create();
$product->loadByAttribute('sku', $sku);

or to do a full load (the above loads it using a collection):

$product = $this->productFactory->create();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.