Magento Collections are powerful. We can use this to get a custom product attribute value array from a product collection with a couple of lines of code. protected $_productCollection; /* Constructor */ public function __construct( \Magento\Catalog\Model\ResourceModel\Product\Collection $productCollection ) { $this->_productCollection = $productCollection; } /* @var \Magento\Catalog\Model\ResourceModel\Product\Collection $collection */ $collection = $this->_productCollectionFactory->create() ->addAttributeToSelect(‘custom_attribute’, ‘catalog_product_entity_text’); $collection->addCategoriesFilter([‘eq’ =>
Continue reading »Category Archives: "Magento"
Learning Magento 2 From Scratch
I have experience in Magento 1 and I am trying to move to Magento 2. Magento 2 totally different from Magento 1. So, Magento 1 experience does not help much. The biggest challenge I am facing is lack of good tutorials in Magento 2 for beginners like me. I always find it easy to understand when I can see
Continue reading »How to Install Magento 2.2 In Digital Ocean
Let’s install Magento 2.2 on Digital Ocean droplet. Basically, digital ocean droplet is clean OS only so, you will have to install LAMP (Linux, Apache, MySQL and PHP) stack. Based on the Magento 2.2 requirement I created an Ubuntu 16.04.3 x 64 droplet. The ideal droplet size for magento2.2 would be size would be 3GB
Continue reading »
Recent Comments