Joomla »

[22 Apr 2016 | No Comment]

In Joomla, while editing article, I was trying to add multiple email addresses (comma separated) to email link. But, when I tried to do so, the email link in frontend changed to something like below:

Magento »

[18 Apr 2016 | No Comment]

This article shows how to add configurable products to wishlist along with their options value. By default, you don’t need to select any configurable product option when you want to add the configurable product to wishlist. But, you will have to select the configurable option while adding the product to cart.
So, you might be in need to make the “Add to Wishlist” behave exactly like “Add to Cart”. The other benefit of doing so (asking user to choose configurable options while adding to wishlist) is that when you move the …

Magento, Magento 2 »

[14 Apr 2016 | No Comment]

Magento 2 uses Symfony’s Console Component for its command-line interface or tool (CLI) where we can execute different commands for different tasks related to installation and configuration.
Through the Command Line Interface (CLI) tool in Magento 2, you can perform different tasks like:

Magento »

[11 Apr 2016 | No Comment]

This article shows how to get / filter products based on it’s attribute id, or the attribute’s options id.
Get all products by a single attribute option id

Magento, Magento 2 »

[7 Apr 2016 | No Comment]

This article shows how you can create a simple Hello World module / extension in Magento 2. The necessary files are listed with the code.
This module just calls a block function in template file to print Hello World text.

Database, MySQL »

[4 Apr 2016 | No Comment]

This article shows SQL query to get size (in MB) of all MySQL databases. It also shows the query to get the size (in MB) of all the tables present in any particular database.
Get size (in MB) of all MySQL databases

Magento »

[29 Mar 2016 | No Comment]

This article shows how you can filter child products associated with a configurable product by the child product’s attribute value.
Suppose, we have a configurable product with two attributes (‘size‘ and ‘color‘) and we want to select only those child products with certain size and/or certain color. Let’s say, we want to select only those products that have color as ‘Red‘.

Magento, Magento 2 »

[28 Mar 2016 | No Comment]

This article shows how we can check if a module is installed / enabled or active in Magento 2.
Below is a block class of my custom module (Chapagain_HelloWorld). I have injected object of \Magento\Framework\Module\Manager class in the constructor of my module’s block class.
app/code/Chapagain/HelloWorld/Block/HelloWorld.php

Magento, Magento 2 »

[24 Mar 2016 | No Comment]

In Magento 1.x, you could call/print any module’s template block in any other template (phtml) file with the following code: