Appearing after modifying vendor\magento\module-customer\Controller\Account\LoginPost.php to make it show more details by adding this code: before
Category: 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
How to change a word for an entire project in magento
First of all we need to create a a file named en_Us.csv in the following path. /var/www/html/nb/app/design/frontend/JJ/Theme/i18n/en_US.csv The file we created is a csv file in the csv file we can add appropriate word we want to replace as shown in the below screenshot. The order should be first we should add the world to… Continue reading How to change a word for an entire project in magento
Products is not showing up on Magento2 subcategory
To show the product, check if the product following options: General->Status = Enabled general->Visibility = Catalog,Search Inventory->Qty > 0 Inventory->Stock Availability = In Stock Websites = checking your site Catgories = checking your category. If you want checking product to subcategory, go to Catalog->Manage Categories->Select your category, open tab Display Settings and change option “Is Anchor” to “Yes”. Save… Continue reading Products is not showing up on Magento2 subcategory
Magento 2 set locale programmatically?
If you want to use translation on external php script. You have to initialize translation using following code after $state->setAreaCode(‘frontend’);.
How to create a custom block in Magento 2
1. Add a new PHP class block. Create the file in the following location: and add the following code to it: \Magento\Framework\View\Element\Template — a class from which you inherit your own block that interacts with the template. 2. Add a template file (template .phtml file) Create this file: 3. Combine the PHP class block and the… Continue reading How to create a custom block in Magento 2
Magento password view and hide function using js
This post is about how to add a image in the password text area to show and hide password , this can be done with the help of a javascript and a code inside the text field Here i’m attaching a code of password with a eye icon click to view and hide Now script… Continue reading Magento password view and hide function using js
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
Integrate an extra step in the checkout in Magento2
Sometimes we need to integrate or create a new step or tab in the checkout. We can able to achieve it through a custom Magento module. Create a layout file in the extension folderEx: vendor/Extension/view/frontend/layout/checkout_index_index On the layout file, sort order key is meant by the position of the tab in the checkout. Sort order… Continue reading Integrate an extra step in the checkout in Magento2
How to set timer for an disabled button tp be enabled using js.
Here first of all we need to open a <script> tag and add the folllowing code <script type=”text/x-magento-init”> { “#country”: { “regionUpdater”: { “optionalRegionAllowed”: <?= /* @noEscape */ $displayAll ? ‘true’ : ‘false’ ?>, “regionListId”: “#region_id”, “regionInputId”: “#region”, “postcodeId”: “#zip”, “form”: “#form-validate”, “regionJson”: {$regionJson}, “defaultRegion”: “{$regionId}”, “countriesWithOptionalZip”: {$countriesWithOptionalZip} } } } </script> Then you nee… Continue reading How to set timer for an disabled button tp be enabled using js.