Magento, Magento 2 »

[9 Jan 2017 | One Comment]

This article shows how to get payment methods in Magento 2. We will be fetching 3 types of payment methods. They are:

1) All Payment Methods
2) Active/Enabled Payment Methods
3) Payment Methods that have been used while placing orders

Magento, Magento 2 »

[4 Jan 2017 | One Comment]

This article shows how to get all customer groups name and id in Magento 2.
I will be showing an example in a Block class. You can write the code in other class (Helper/Model) as well.
Both ways (Dependency Injection & Object Manager way) are shown below.

Xubuntu »

[26 Dec 2016 | One Comment]

The xfce4-battery-plugin is a simple battery indicator plugin displayed in the panel bar of XFCE desktop.
I use it on my Xubuntu Linux. I preferred using this plugin when I was unable to customize the default battery indicator to show battery percentage on the panel.

Magento »

[19 Dec 2016 | Comments Off on Magento: Get Payment Methods (All/Active/Used)]

This article shows how to get payment methods in Magento 1. We will be fetching 3 types of payment methods. They are:

1) All Payment Methods
2) Active/Enabled Payment Methods
3) Payment Methods that have been used while placing orders

Magento »

[12 Dec 2016 | Comments Off on Magento: Get Customer Groups]

This article shows how to get all customer groups name and id in Magento 1.
To get all customer groups, we will be using Mage_Customer_Model_Resource_Group_Collection class.
Here’s the code:

PHP »

[5 Dec 2016 | Comments Off on PHP: Simple Pagination]

This article shows how to create a simple pagination in PHP and MySQL.
In the example code present in this article:

– We will be fetching data from a MySQL database table.
– We will be showing certain rows of data in first page and other rows will be displayed in next pages.
– We will show the page numbers at the bottom of the page.

PHP »

[28 Nov 2016 | One Comment]

This article shows how to create a CRUD (Create, Read, Update, Delete) application in PHP & MySQL using PHP Data Objects (PDO). PDO is a PHP extension that provides an interface for accessing databases in PHP.
PDO is portable and powerful. There are many good features of PDO. The best one is that it’s cross-database compatible. You don’t need to change your query function if you switch database server for your project. PDO extension supports different databases like MS SQL, MySQL, Oracle, PostgreSQL, SQLite, etc.

Laravel »

[21 Nov 2016 | Comments Off on Laravel: Login Register [Beginner Tutorial]]

This beginner tutorial/article shows how you can create a simple/basic user login and registration application using Laravel. In previous Laravel article, I have described in detail about Creating simple CRUD application in Laravel. In the CRUD article, I have described about Laravel folder structure and artisan command line tool. Hence, in this article, we will directly move towards creating database and tables.
Create Database

Laravel »

[14 Nov 2016 | One Comment]

This beginner tutorial/article shows how you can create a simple/basic CRUD (Create, Read, Update, Delete) system or application using Laravel. Laravel is a popular open-source PHP MVC Framework with lots of advanced development features.
Installing Laravel has been explained here.