How to override address/book phtml in Magento 2

You can override the book.phtml file in Magento 2 using XML.Book template used to display the address book of the customer with default billing and shipping address at the top of the Address book page. Magento\Customer\Block\Address\Book Book Block class contains the native method for the template. You can override using theme or module level, 1. Theme Level, app/design/frontend/{Vendor}/{themename}/Magento_Customer/templates/address/book.phtml… Continue reading How to override address/book phtml in Magento 2

Published
Categorized as Magento

RequireJS in Magento

requirejs-config.js uses for creating the JavaScript resources mapping. We can find all require configs under: pub/static/_requirejs. As far as I know, the correct way to load our custom script via Require Js: using template to call our script. We will create new template with Magento\Framework\View\Element\Template its block class. If we want to load js files on all pages and don’t… Continue reading RequireJS in Magento

Published
Categorized as Magento

Access denied for user ‘root’@’localhost’ (using password: NO) – what’s wrong?

Change the file my.cnf (in my Ubuntu-system he is placed at /etc/mysql/my.cnf). In the end add this code: That’s helps enter in condole as anyone user without pass. Restart the server: sudo service mysql restart Enter in the mysql-console: Change the password for user root: exit the console: Remove (or use commentary) for that in… Continue reading Access denied for user ‘root’@’localhost’ (using password: NO) – what’s wrong?

Published
Categorized as Magento

Apply special price to an individual product

You can easily set a special price for a single product in the catalog. Adobe Commerce includes support for Scheduled Updates. Use these promotional tools to apply a special price to a specific product for a specified time period. Open the product in edit mode. Click Scheduled Update. For Update Name, enter a name for the special price… Continue reading Apply special price to an individual product

Published
Categorized as Magento

Creating a configurable product

Step 1: Choose the product type On the Admin sidebar, go to Catalog > Products. On the Add Product  menu at the upper-right corner, choose Configurable Product .Add configurable product Step 2: Choose the attribute set To choose the attribute set for the product, click the field at the top of the page and do one of the following: For Search, enter the… Continue reading Creating a configurable product

Published
Categorized as Magento

Create an invoice in Magento

You must generate an invoice for an order before you can print it. To view or print the PDF, first download Invoice an order On the Admin sidebar, click Sales. In the Operations section, choose Orders. Find the sales order with the status of Processing in the grid. Then, do the following: In the Action column, click View. In the header of the sales order, choose… Continue reading Create an invoice in Magento

Published
Categorized as Magento

Edit footer menu with layout

First, create a custom theme 1.  Create the folders and files you will needapp/design/frontend/theme/Name of the theme you created/Magento_Theme/{layout, templates} 2. To create a layout file through which we will add and delete menu sections. app/design/frontend/theme/Name of the theme you createdMagento_Theme/layout/default.xml 3. Add the initial layout for default.xml 4. Delete all the unnecessary links from… Continue reading Edit footer menu with layout

Published
Categorized as Magento

How to create a category in Magento

Step 1: Log in to the admin panel and open the side menu of the Catalog tab. Select Categories from the list. Step 2: Click on categories on the left will be the structure of your future categories and subcategories. Step 3: Click Add Subcategory. Step 4:Fill in the Basic Information: Step 5: Open the Content tab.  upload the Category Image, add the Description for store view,… Continue reading How to create a category in Magento

Published
Categorized as Magento