I'm pretty new to Magento, and I are trying to create a module for it, but I'm a little stock now because I'm trying to get all products out there are created in the store there are enabled.
I'm working on a custom central class for my module so I can call my functions on cross for CLI, Crontabs where else I need it.
And what I need its called just a new product class and then get products data out like this.
use SmartPack\Framework\Product;
$products = new Product();
print_r($products->getProducts());
And the class I start working on its like this
<?php
namespace CustomClass\Framework;
class Product
{
function getProducts()
{
return [];
}
}
Mabey I miss understand how its working on Magento and how to speak with the framework, so hope on a little help here.