Archives for Programming Languages
Create extension attribute to product entity in magento 2
To create extension attribute to product entity, I have followed the simple steps to make understandable for new magento 2 developer. I selected 'brand' attribute name for the product entity.…
Extract gz sql file and import in database using cli
To import sql compressed gz database file in the database server using cli. Follow the instructions and import the database file. Syntax: zcat ~/ | mysql -h hostname -u user-name…
Generate a translation dictionary for a custom module or theme in Magento 2
As per other open-source solutions, Magento enables multiple language support. You can generate and integrate multiple languages with Magento native and 3rd parties translation dictionaries. If you want to translate…
Import, export and drop database using command line
Import, export and drop database using command line Import Database using command line: To import database in your mysql host mysql account using command line (cli). Follow this syntax Syntax:…
MySQL Query To Find The Tables Using Most Space in Database
MySQL Query To Find The Tables Using Most Space in Database Problem: How to get the table list which is using most space in MySQL/MariaDB database? Solution: If you want…
Remove product items from mini-cart in Magento 2
Remove product items from mini-cart if shopping cart empty. Problem 01: In Magento 2, if you remove shopping cart items (from quote table) manually then you will notice that the…
How to install Magento 2 module – complete process step by step?
Today, I want to share the process for module installation in Magento 2 eCommerce website. Follow the step by step process, if found any issue then write issue in the…
Upgrade Magento 2 latest version via Command-Line Interface (CLI)
php bin/magento maintenance:enable composer require magento/product-community-edition --no-update composer update rm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/* var/session/* var/view_preprocessed/* pub/static/* php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy php bin/magento…
Fatal Error: Magento 2 CLi Command Memory Size Exhausted
Error: Running the "composer update" command results in a fatal error: Fatal error: Allowed memory size of 536870912 bytes exhausted Magento 2 CLi command memory size exhausted issue can interrupt…
How to check NPM running or installed version?
If you want to see the installed version of NPM then follow these steps. (more…)