Magento 2 – REST API PUT product

Magento2 always set default store while PUT or POST API Calls to save values with ref to Store you can use like following API URL

where default is the store code you can also use admin if you want to update @ Admin level not store level.

if you need any custom than Read More…

Magento 2.0 override admin css

you need to add a custom module and define css in desired xml or if you want to add in all pages create default.xml 1) add a module Ex. Emizentech/NewAdmin 2) create a new file view/adminhtml/layout/default.xml in the module

3) Add the .css file in web folder as below path:

after this, you Read More…

Magento 2 – How to add color picker in admin configuration options?

Create system.xml at Below Path app/code/Emizentech/Newsletter/etc/adminhtml

Create Color.php File at below Path

Add color picker CSS library: Create adminhtml_system_config_edit.xml at Below Path app/code/Emizentech/Newsletter/view/adminhtml/layout

How to use Registry Object in Magento 2.0

Magento 2.0 have a registry object that should help easy the transition for extensions. The class is Magento\Framework\Registry, and you can inject it in any constructo

and then set variables with

and fetch those variables back (even from a differnt object – Magento\Framework\Registry is a shared/singleton object)

How to run cron in Magento 2.0

Magento Recommends 3 type of cron are introduced in magento-2 as given below

but we do not need to configure all of them , 1st cron command will work for reindexes indexers, send automated e-mails, generates the sitemap, and so on. rest 2 cron commands are used by the Component Manager and System Upgrade. To congfigiure Read More…

How to create admin user in Magento 2.0

You can use Magento2 CLI to create new admin user with the following command