Tag: M2
-
Fix Magento 2 – php cli error on cpanel or other hostings
The problem: On a fresh install of Magento2 on cpanel based hosting, you receive the following error while running any command on SSH The Solution: You have to point php to correct binary;Use the following code in order:First, open the file which can alter the runtime variables like .bash_profile or .bashrc Go to last line…
-
Magento 2 all cli commands
-
Magento 2.1x – Add options in custom product attribute using backend
Go to the attribute edit page using magento 2 admin panel (Stores > Attributes > Product > Edit attribute) Use console – ctrl + shift + J Edit the js array mimim and then paste the following code in console.