Magento, Magento 2 »

[16 Jan 2017 | No Comment]

This article shows how you can get attribute name or label, id, entity_type, etc. by attribute code.
Here is the code that you need to write in your Block class.

Below are the code to be written in template file. The sample output of the codes are also given below.
Multiple entity types can have same attribute code. For example: entity type ‘catalog_product’ & ‘catalog_category’ both have ‘name’ attribute code. So, “getAttributesByCode” function can return object of size greater than 1.

Output:

Get Product Attribute data by attribute code.

Output:

Hope this helps. Thanks.

Magento, Magento 2 »

[9 Jan 2017 | No 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 | No Comment]

This article shows how to get all customer groups name and id in Magento 2.
Here is the code that you need to write in your Block class.

Xubuntu »

[26 Dec 2016 | No 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 | No Comment]

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 | No Comment]

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 | No Comment]

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 | No 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 | No Comment]

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