Blog

How to add customer total order in column customer grid in Magento 2?

Magento Customer Grid Customisation is very handy

Follow the steps to customise the Customer Grid in Magento 2 and add Customer last logged in date

Step 1 :

app/code/Elightwalk/CustomerGrid/registration.php

Read More

How to add customer last logged in column customer grid in Magento 2?

Magento Customer Grid Customisation is very handy.

Follow the steps to customise the Customer Grid in Magento 2 and add Customer last logged in date.

Step 1 :

app/code/Elightwalk/CustomerGrid/registration.php

Read More

How to Migrate Magento 1 to Magento 2?

Magento has officially announced that Magento 1 will reach end of life (EOL) on June 1, 2020
No quality fixes or security patches will be deployed for Magento Commerce 1 or Magento Open Source 1 after this date.

Here we are providing the guideline, how the Magento migration works?

There are some thumb rules need to follow before migration.

  • Backend Magento 1 store ( files and database ).
  • Create Development Env. of Magento 1 Store.
  • Analyze Magento 1 store, Delete unnecessary things ( files and data ).
  • Analyze Magento 1 Theme, Extensions and customization are compatible with Magento 2 Store.
  • Install Fresh Magento 2 copy on server.
Read More

How to add order list number without "ol" and "ul" element by CSS for all browsers?

If you want to number things in your website without “ol” and “ul” element. It also is pretty reasonable that you want to style those numbers. In this Article we will show how it can be done with the :before pseudo element, which can have a counter as a value to the content property.

But let it be known, applying numbered counters is not limited to ordered lists. For instance, let’s say you wanted to number the question and answer pairs of a FAQ list.

Read More

Ability of Plugins in Magento 2

Here is list of Ability of Plugins in Magento 2.

  • There are three types of plugins: around, before and after.
  • Plugins only work on public methods.
  • Plugins do not work on final methods, final classes.
  • Plugins can be used on interfaces, abstract classes or parent classes.
  • Plugins are mostly used for solution of Module/Class override confliction.

– Before plugins modify the input arguments to a method. You can change them to any value.
Example from: \Magento\Catalog\Block\Product\ListProduct

Read More

How to get show anchor tag title on mouseover in css3.

In this Article we will show you how to show anchor tag title on mouseover in css3.

Let’s start off by creating some markup for the links. We need to give it a title which will be the show content. like this

The next step is to create some rudimentary styling for our show content like this

Read More

How to get border radius working in IE8

IE 8 having problems to implement the CSS3 feature border radius

Here we will show you have you make the border radius working with IE 8

Add the following code that work in the other Browsers and not in IE8.

Element’s width and height are both 100px, and the border-radius is set to 50px, the element will become a circle. but In IE8, as we expect, it would still be a square but don’t worry.

add the following style line inside the class to make it work.

Read More

Trait, Powerful feature of PHP

Sometimes we need to inject common properties to a set of class, so most of the programmer add that properties in inherited class,
but the real problem comes when

  1. all or some of the classes have different parent class(inheritance)!
  2. code does not fit well in inheritance hierarchy.

Here trait comes to rescue our problem, as we all know that php does not support multiple inheritance,

so from php 5.4 we can use trait to reuse the sets of method in multiple independent classes.
Here in this article we will discuss the use of traits in php to overcome the problem of multiple inheritance.

What is trait?

Traits is a mechanism for code reuse in single inheritance languages such as PHP. A Trait is intended to reduce some limitations of single inheritance by enabling a developer to reuse sets of methods freely in several independent classes living in different class hierarchies.

Read More

How you can redirect back automatically after giving the reviews and ratings on config product in Magento.

I think it could be Magento’s bug or maybe not but i am suffered from this issue.

The issue is that whenever you given rating and reviews on config product and after the rating, you are not allowed to add a product to cart on config product.

So, here i made a simple solution for that.

The solution is you can automatically redirected to that product after successfully given review and rating.

For that you should follow the below steps.

Copy the below file path into your theme or module if the file is override.

app\design\frontend\rwd\default\template\review\from.phtml

You need to add below line inside the form tag.

Read More

Duplicate entry error when getting order using REST API in Magento

We will learn in this topic how to solve the REST API bug of Magento 1 while getting the order with Order REST API.

This bug inside the “Mage_Sales_Model_Api2_Order_Rest” class and this is abstract class so can’t override this via magento module override feature in config.xml

We can do this via use of “local” codepool of Magento.

We need to copy the “Mage_Sales_Model_Api2_Order_Rest” class into app/code/local/ folder of Magento.

Add following line into the file

$collection->getSelect()->group(‘main_table.entity_id’);

Here is full source of file

Read More