Category: Magento
-
How to get all attributes with all available labels/options in Magento2?
I did a lot of research but could not find a solution for that. so gathered some info and created this code: (it is not the best way to do it, but it works – you can use it at least one time for quick results) the values need to be transformed if you want…
-
Magento 2 cli commands [continued]
1. Setting GD2 as defualt image adapter from command line Magento >= 2.2 Magento >= 2.2 2. Disable Minify CSS Files option from command line Magento >= 2.2 Magento < 2.2 3. Disable Merge CSS Files option from command line Magento < 2.2
-
How to install theme in Magento 2
Download the theme and copy the app folder and paste it in your magento root directory Open Shell, in the root directory, enter php bin/magento setup:upgrade . This will upgrade all the magento files. 2. Also, Clear cache ,type php bin/magento cache:clean . 3. Now force deploy the static files by typing php bin/magento setup:static-content:deploy -f . It will take a while. 4. Now,…
-
[SOLVED] PHP must be run as a CLI application error : Content-type: text/html; charset=UTF-8
php bin/magento cache:cleanContent-type: text/html; charset=UTF-8bin/magento must be run as a CLI application as root user, run the following commands (For php v7.0) The solution involves fixing php variable’s path. We need to find which php is being used right now, you can find out by To fix this PHP cli error, see how to edit…
-
Magento 2 all cli commands
-
Magento File Directory
/app The etc folder contains the di.xml configuration file The di.xml file contains class mapping and interface preferences Contains the design folder for themes. /bin The directory contains the magento file or a Command Line Interface script /dev Magento 2 testing and development tools are placed in this folder. /lib The internal and web subfolders…
-
Installing Magento Common Issues
Following are the steps to complete install Magento error-free:- Uncomment the files which are required by Magento in php.ini and restart the server If installation error occurs, set memory_limit = 786M if still error occurs, uninstall the db and make it again after successfull install, go to (root_directory)app/etc/di.xml and change “Symlink” to “Copy” in developerMaterialization section.…
-
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry Magento 2
-
Bulk Add Custom Attribute Options in Magento 1
-
Magento 2 – How to manage multi domain website store setup URLs