How to Override Block, Model, Controller In Magento 2 ?

How to Override Block, Model, Controller In Magento 2 ?

As we know that Magento 2 had come out with all new features. Which helped developers to implement core files bit easier compared to before. From developers perspective, while developing a magento site we need to customize some core files for its proper functioning. In those cases we will have to override the core files instead of making direct changes. It is not recommended to modify core files in magento 2. Here we use customization which involves adding new features or overriding existing-one.

Read More

How to generate google sitemap in Magento?

How to generate google sitemap in Magento?

A sitemap is a plain text XML contains links to all the pages in your Magento 2 store. It is necessary to keep sitemap updated because it helps search engine robots in indexing your store.

Read More

How to override Magento event observer

How to override Magento event observer

We will have to override the Magento observers, when dealing with the extension’s conflicts or may have to disable or modify a part of some extension’s functionality. Basically, there is no major difference between the observer’s overriding and overriding of any other regular model. But sometimes we may face with issues while working with simple override.

Read More

How to enable Magento Captcha in contact us form?

 How to enable Magento Captcha in contact us form?

Here we are integrating our custom form with magento's default captcha. For example we can add captcha to contactform of Magento

Read More

How to customize a functionality using Magento 2 Plugins(Interceptor)

How to customize a functionality using Magento 2 Plugins(Interceptor)

In Magento, we can see two different versions Magento 1x and 2x. Magento 2x has come up with a lot more improvements compared to Magento 1x.

Read More

How to access Magento 1.X REST and oAuth settings for REST API

How to access Magento 1.X REST and oAuth settings for REST API

Magento authentication is based on OAuth, an open standard for secure API authentication. It uses a token-passing mechanism that allows users to control which applications have access to their data without revealing their passwords or other credentials. This article helps you to get consumer key, consumer secret, oAuth token, oAuth token secret which are added as Authentication headers for accessing Magento REST API’s.

Read More

How to Resolve Ambiguous Column Filter with Custom Magento Grid

We have situations with maintaining a custom magento grid by adding one or more custom columns for retrieving meaningful and expanded details. Suppose we have built a custom grid and the source collection has an ambiguous column in the where / group by clause when applying a filter option i.e., we may have stuck with the following exception in magento backend.

Read More

Remove magento navigation links from My Account dashboard

Remove magento navigation links from My Account dashboard

This post explain How to remove manage navigation links in the customers account dashboard.The links in the customers account dashboard navigation are added via different layout XML files.

Read More

How to Create and Update Magento CMS blocks and Pages via Install/Upgrade Script

How to Create and Update Magento CMS blocks and Pages via Install/Upgrade Script

When we are having different environments(stagig, uat, live etc) and want to sync all cms pages and blocks in all environemnts, It is not a good idea to manully update each and every CMS blocks/Pages. Magento's data install/upgrade script can be used for this purpose which will run on all environments immediately after the deployment and flush the cache storage.

Read More

Best Configuration for Magento

Following are some important configurations that will speed up the Magento site. This tutorial is mainly focusing on my.cnf, php.ini and apache configuration files.

Read More

Configurable Product Creation In Magento

Configurable Product Creation In Magento

If we want products with different size options such as X, Xl, XXL and we want to keep stock info for each of the individual sizes separately, then we need to create configurable products and attributes to achieve this.

Read More

How to add attribute option in magento programmatically using data upgrade/install script

How to add attribute option in magento programmatically using data upgrade/install script

This post will be helpful if you are not completely new to magento. In some cases we need to add some new attribute options pragmatically. This will avoid manual effort of doing the same thing in all environments and the such changes will be updated on each environment immediately after your code deployed.

Read More

How to get Urls in Magento

Magento core url helper allows you to get current url. To get current url in magento you just need one line of code as...

Read More

Remove navigation links from My Account

I wanted to remove some unwated links from My account navigation links. So i attempt the below method by creating a new magento module to accomplish...

Read More

How to change magento admin url/route from default url

How to change magento admin url/route from default url

As we know, the default admin URL for magento is /admin, Using this url for your live site is not safe as anyone who has expereience in magento can easily guess this url and try to hack your admin area. If you are not really luck, you will be screwed up.

Read More

Custom sorting by new in products on category page and layered navigation in magento

If you want to customize your sorting on category page's toolbar section Finally override the class Mage_Catalog_Block...

Read More

Working with Magento using Command Line

Working with Magento using Command Line

At times it becomes necessary to access Magento system outside the Magento. It can be done using PHP shell script that bootstraps Magento. There are number of such scripts comes with Magento package to run some functionalities outside Magento.

Read More

RUN MYSQLDUMP WITHOUT LOCKING TABLES

RUN MYSQLDUMP WITHOUT LOCKING TABLES

Hey all Magento administrators or developers out there, just a short tip here on how to avoid locking tables when you...

Read More

Column count doesn't match on saving the product after magneto upgrade

SQLSTATE[21S01]: Insert value list does not match column list: 1136 Column count doesn't match value count at row 1. This problem was with the 9th column in catalogrule_product_price. It seems TBT adds a 9th column called rules_hash. It seems the newer versions don’t need this. You can looked at a magento 1.8.0.0 database and sure enough the stock database table doesn’t have this column. You can drop the field "rules_hash" and now no more error.

Read More

19 Item(s)