How to create customer groups programmatically in Magento 2

To create customer groups programmatically in Magento 2, use $group->save() on the model returned by the GroupFactory: Continue Reading

To create customer groups programmatically in Magento 2, use $group->save() on the model returned by the GroupFactory: Continue Reading

Magento 2 @escapeNotVerified is a tag used by static tests for potentially unsafe output. Since some output is considered to be safe, you should not mark it with such annotations: Continue Reading

To add arbitrary HTML to <head> of every page in Magento 2 add code to the head as follows: Continue Reading

You can get customer_id, getName(), and getEmail() in the product view in Magento 2 directly from customer session. Utilize the following code: Continue Reading

To add custom block for shipping methods in onepage checkout in Magento 2, you should do the following actions: Continue Reading

Utilize CLI to reset lost admin password in Magento 2. You should create a new admin user able to change your forgotten password. Use the following command, to generate a new user: Continue Reading

To override email HTML files in Magento 2, create the [Vendor]/[ModuleName]/view/frontend/layout/checkout_index_index.xml file with the following content: Continue Reading

To extend JavaScript class/method of checkout model class in Magento 2, create requirejs-config.js in your module with Continue Reading

In Magento 2 to add date field in admin from a core model, pass all required to parent::__construct() arguments, which should be called from __construct(). Please note that both your construct class and parent construct must accept the same list of arguments. Add new dependencies in the following way: Continue Reading

There is a replacement of Mage::log method in Magento 2: Continue Reading