Magento Speed Checklist

I decided to write this article to help newbies magento users. Magento is a very powerful yet complex framework with many nuances that are easily overseen. Many of those are critical to the speed of a magento website. So, here is a checklist to help you remember some of the important things you need to be aware to run your[…]

Read more

How to remove “Estimate shipping costs and tax” block from cart page in magento 2

To remove the “Estimate shipping costs and tax” block from the cart page: #1 Add the following code to checkout_cart_index.xml in your theme (create a new file if it doesn’t exist). The file should be in app/code/design/frontend/<Theme_Vendor>/<Theme_Name>/Magento_Checkout/layout/. #2 Override the template file checkout/cart/shipping.phtml in your theme (or module) and remove the following lines Then clear your cache and you are[…]

Read more

Add custom javascript to all pages on your theme

Use custom javascript The best solution to add custom javascript to all pages of your website is to create a javascript module and load it via requireJS. This can be done by creating a requirejs-config.js file in your theme folder with the following content: This file tells requireJS to load a custom.js file located in folder Theme_Vendor/Theme_Name/web/js. Include in that[…]

Read more

How to disable the dropdown in the minicart?

I had a customer that wanted to remove the minicart dropdown and take the visitor directly to the cart page when clicking the cart icon. This can be implemented by overriding the dropdown javascript module via mixin. First create a requirejs-config.js under your theme folder. You can add it inside the Magento_Checkout folder. So, create file Theme_Folder/Theme_Name/Magento_Checkout/requirejs-config.js with the following[…]

Read more