Magento 2 remove Estimate shipping costs and tax from cart

To hide UI component, you need to go checkout_cart_index.xml file and add the below code

To remove the heading as well, override the template checkout/cart/shipping.phtml and comment/remove the following:

Read more

Magento2- Display Static Block in Phtml file & CMS page

In XML File:

In CMS Content

In phtml file

Read more

Magento 2 – How to call a custom phtmlfile in another phtml file, xml layout, static block and cms page?

Do you want to know how to Call PHTML file from another PHTML file in Magento 2 Custom File Path: app/design/frontend/{Package}/{theme}/Magento_Theme/templates/html/test.phtml To call in xml layout file

To call in blocks and cms pages

To call in any phtml file

Read more

Magento 2: Set custom validation message

If you want to change Magento 2 default validation message with your custom message. Then Just go-to that input field and add a custom attribute “data-msg-required” data-msg-(validator name) Example On product detail page if I click add to cart button without selecting options than its shows This is a required field. But I want to […]

Read more

How to set Netbeans as a default editor in ubuntu

Use this Command to Add Netbeans in Open With Menu and Default Editor: 1. Open terminal 2. Run the command

The file will open and place the below code and save it

Then go to any of your directory and open any .php file, right click on it and choose properties -> open […]

Read more

Enable Error Reporting in Magento 2

Magento 2 comes with 3 different modes. They are Default, Developer & Production. Each of the modes is tied to the stage your ecommerce store is in. After you’ve installed Magento 2, the store is in the “default” mode, which does not do error reporting. You need to enable the “developer” mode in Magento 2 […]

Read more

Magento2 : pub/static/versionxxxx Not found (default css not loading after creating the custom theme)

CSS not loading After I creating and registering the them, both front end and back end css are not loading. In console its showing 404 file not found issue. Error: (404) pub/static/version1482183922/adminhtml/Magento/backend/es_ES/css/styles.css , pub/static/version1482183922/adminhtml/Magento/backend/es_ES/extjs/resources/css/ext-all.css Failed to load resource: the server responded with a status of 404 (Not Found) and multiples files pub/static/adminhtml/Magento/backend/es_ES/css/styles.css Found, the /version1482183922 […]

Read more

Throw errors in onepage checkout predispatch observers

Introduction In Magento 1.x.x, before calling the action method of a controller class, Magento dispatch an event called controller_action_predispatch_<route name>. Using the observers for this predispatch event, we can do anything that needs to be done before actually calling the action method. There are multiple steps available in the onepage checkout of default Magento 1.x.x. […]

Read more

Version upgrade in magento 2 using command-line

Magento2 Version upgrade through command line (From 2.1.3 to 2.1.5 ) via composer Upgrade using the command line 1. Log in to your Magento server. Change to the directory in which you installed the Magento software. For example,

2. Enter the following commands in the order shown: composer require –no-update composer update For example, […]

Read more

Grunt watch error – Waiting…Fatal error: watch ENOSPC

To solve the grunt watch error run the below command. echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p Port 35729 is already in use by another process If you installed livereload add-ons in your browser, uninstall it. Run the below command to check the port

If its shows GRUNT then leave […]

Read more