Magento 2 get current store
This post is about how to programmatically get current store in Magento 2. If you create a PHP script or Magento 2 module, you may need to check, which store is currently active (calls this...
A Blog about Magento e-Commerce System
This post is about how to programmatically get current store in Magento 2. If you create a PHP script or Magento 2 module, you may need to check, which store is currently active (calls this...
This shows how to change product status programmatically in Magento 2. Sometimes you need to create scripts that mass activate or deactivate products by cron, so you need to know how to change a product...
While working with Magento 1 you may want to change increment Id for your orders, invoices, credit memos or shipments. In this post I show you how to do this and what you need...
An important, but less good documented feature of Magento 2 is how to write and get config values by scope. You will find tons of code samples on how do this globally. Sometime you...
This tutorial shows you how to get store information in Magento 2. If you are working on a multistore, then you need to do things in various websites, stores or store views. On important...