Magento 2

Solved: Compilation from source: vendor/magento/theme-frontend-blank/web/css/email-fonts.less

In this article, we are going to discuss about the solution of the below error:-   Error – Compilation from source: vendor/magento/theme-frontend-blank/web/css/email-fonts.less Solution :- Run the upgrade and deploy command as given below:- php bin/magento setup:upgrade && php bin/magento setup:static-content:deploy -f Hope this solves. Comment below giving your feedback.

Solved: Magento 2: Database Instllation Error Notice: Undefined index: attribute_id in

  Solution: Go to vendor\magento\module-msrp\Setup\Patch\Data\ChangePriceAttributeDefaultScope.php comment line no 89 to 94 $categorySetup->updateAttribute( $entityTypeId, $attribute[‘attribute_id’], ‘is_global’, \Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface::SCOPE_GLOBAL ); and in the file vendor\magento\module-msrp\Setup\Patch\Data\ChangeMsrpAttributeLabel.php comment out line no 41 to 46. $categorySetup->updateAttribute( $entityTypeId, $msrpAttribute[‘attribute_id’], ‘frontend_label’, ‘Minimum Advertised Price’ ); Run the setup install command again to start installation.

How to create Access Keys in Magento2

In this article, we are going to see the access key details:-   Get Access Keys: Create an account on Magento marketplace and go to https://marketplace.magento.com/customer/accessKeys/ to get private and public access key,       Create Access keys here. If you have access keys, you can use those. Now enter Username  and password to start…

Progressive Web App in Magento 2

What is a Progressive Web App A Progressive Web App, or PWA, is a web application that uses modern web technologies and design patterns to provide a reliable, fast, and engaging user experience. PWA websites are fast, secure, responsive, and cross-browser compatible. They are able to work offline and act…

What is resultPageFactory in magento 2 and what is the use of it?

What is resultPageFactory in magento 2 and what is the use of it? In Magento 2 all controller actions must return something, opposed to M1, where a controller action would just output something or did a redirect. The result of the execute method from each controller is generated in Magento\Framework\App\FrontController::dispatch() on line $result = $actionInstance->execute(); and…

Magento2 – Add custom javascript to ‘My Account’ page or after customer successfully login

In this article, we are going to learn how to add custom javascript/script after customer successfully logs in. There are two methods to do this. Method 1 : Through custom theme Step 1: Create layout file in custom theme In your custom theme app/code/design/frontend/{Vendor}/{theme}/Magento_Customer/layout/, create layout file customer_account_index.xml with the…

How to Add Magento 2 Product Video

The purpose behind it is to satisfy customers by providing them with a more detailed product description. Videos on a product page is a great way to share details and making the product page more attractive. Not only that, you can also use your product video for promotional activities. You…

How to Configure Theme Properties in Magento 2

The properties of the theme is mentioned in the view.xml of the theme. We can configure here Images, resize the product images and can confiure variables also. This file is placed in the <theme_dir>/etc/view.xml folder. For example: The view.xml file of Blank Theme belongs to this folder: vendor/magento/theme-frontend-blank/etc/view.xml. In this article, let’s find out…

How to change favicon of Magento 2 website

Favicon is a small image that appears on various location like the browser’s address bar or next to the page’s name in bookmark website icon, tab icon, URL icon, or bookmark icon. Purpose of adding favicon The main purpose of a favicon is to make your website easier to be recognized. When you open multiple tabs in…

Change product image sizes in Magento 2

Product images are an important visual element on the eCommerce stores as it not only provides further information about the products but also creates a good impression for customers right at the first time they visit. An appealing image fulfills the product description by illustrating all features in text into…

How To Enable mod_rewrite In Nginx

In this tutorial, we are learning how to rewrite module in nginx and centOs machine. We are going to see how to do it for the mail directory and also for the sub-directory of the project. Let’s see it Nginx Mod_Rewrite URL Example I am assuming you have CentOS machine and…

How to Add Order Attribute in Magento2?

Today let us understand the process about creating custom order attributes. In this tutorial, we are going to achieve following :- Create custom order attribute Save data of the created attribute Show that attribute in the admin grid. so, lets start the process… To create the custom order attributes we…

Magento2 site is not accessible

In this article, we are going to understand and resolve the Magento2 site url. I have explained this in the following steps. There are only two steps to resolve this issue. Step 1: Update the BASE URL Step 2: Update the Document Root Step 3: Clean Cache Step 4: Hit…

How to change Theme Logo in Magento2

Method 1: If logo is with logo.svg In the Magento. the default format and name of a logo image is logo.svg. Put a logo.svg image in app/design/frontend/<vendor>/<theme_dir>/web/images directory Remove folders present in pub/static/frontend && var/view_preprocessed/pub/static/frontend Run below commands: php bin/magento se:s:d -f It is displayed in your store page header once…

How to fix «file_put_contents(generated/metadata/primary|global|plugin-list.php): failed to open stream: No such file or directory in lib\internal\Magento\Framework\Interception\PluginListGenerator.php on line 414» in Magento 2.4-develop in Windows?

  To resolve this error, Go to the file <magento2_dir>vendormagentoframeworkInterceptionPluginListGenerator.php Find $cacheId = implode(‘|’, $this->scopePriorityScheme) . “|” . $this->cacheId; Replace with $cacheId = implode(‘-‘, $this->scopePriorityScheme) . “-” . $this->cacheId; Re-run the php bin/magento setup:di:compile That’s it. It should run now successfully. I hope this helps you. Feel free to comment…

How to create an Admin theme in Magento2

In this article, lets understand the process of the creating and applying admin theme in the Magento2. To customize our website styles means look of the admin panel of the website, you need to create a custom design theme. In this Magento 2 theme development article, we are going to understand the…

Magento2 Database Structure | EAV in Magento2

I will explain EAV in this article. Read it carefully. EAV (Entity-attribute-value) is a model for storing entity attribute values ​​in a certain storage place. For storage, Magento 2 supports MySQL-compatible databases (like MySQL, MySQL NDB Cluster, MariaDB, Percona, and others). To better understand this article, I recommend opening up…

The Best Magento 2 Web Hosting

1. Cloudways – Min $10/Month Cloudways is always the first choice to be considered when you try your best to find the best Magento hosting provider that fits your upcoming online stores. Different than other services, Cloudways gives you 5 hosting plans to choose from their 5 world-class cloud providers: Digital…

Solved – Forbidden You don’t have permission to access this resource. Apache/2.4.48 (Win64) OpenSSL/1.1.1k PHP/7.4.22 Server at localhost Port 80

If you meet with “Solved – Forbidden You don’t have permission to access this resource. Apache/2.4.48 (Win64) OpenSSL/1.1.1k PHP/7.4.22 Server at localhost Port 80” error. OR Requirement: – Assuming that you have installed magento2 successfully on Windows. In this article, lets quickly fix the issue/error which comes while accessing the base url…

How To Install and Configure Elasticsearch on CentOS

Introduction Elasticsearch is a platform for the distributed search and analysis of data in real time. Elasticsearch is written in the Java programming language. Its popularity is due to its ease of use, powerful features, and scalability. Elasticsearch supports RESTful operations. This means that you can use HTTP methods (GET, POST, PUT, DELETE, etc.)…

Solved – Apache Service detected with wrong path

  Hej, I have problem with: Apache Service detected with wrong path 4:31:33 PM [Apache] Change XAMPP Apache and Control Panel settings or 4:31:33 PM [Apache] Uninstall/disable the other service manually first 4:31:33 PM [Apache] Found Path: “C:\Apache\bin\httpd.exe” -k runservice 4:31:33 PM [Apache] Expected Path: “c:\xampp\apache\bin\httpd.exe” -k runservice How to…

XAMPP, Apache – Error: Apache shutdown unexpectedly

Solve : – XAMPP, Apache – Error: Apache shutdown unexpectedly. Error: 16:50:25 [Apache] Status change detected: running 16:50:26 [Apache] Status change detected: stopped 16:50:26 [Apache] Error: Apache shutdown unexpectedly. 16:50:26 [Apache] This may be due to a blocked port, missing dependencies, 16:50:26 [Apache] improper privileges, a crash, or a shutdown…