Setup Shopify Store

Create a new Shopify Account (14 day Trail) Add Billing and Store Details Add domain name Make sure you register your domain through Godaddy/External domain provider and point the domain A record to Shopify Setup emails I highly recommend using g-suite or Microsoft exchange to handle emails Configure General Information Add Refund Policy, Privacy policy, Terms

Continue reading »

Magento 2 Get custom product attribute values array from product collection

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 »

Hello world!

Hello World! I am Sanjaya Wickramasinghe and welcome to my blog. I always find it hard to start anything. It is no difference when it comes to this blog. So, I decide to start it with the famous default WordPress blog post “Hello World!“. As a developer, I always start learning new programming language by trying

Continue reading »