Home » Archive

Articles tagged with: product

Magento, Magento 2 »

[26 Feb 2016 | 2 Comments]

This article shows how we can get related product, upsell product and crosssell products in Magento 2.
Below is a block class of my custom module (Chapagain_HelloWorld). I have injected object of \Magento\Framework\Registry class in the constructor of my module’s block class.

Magento, Magento 2 »

[12 Feb 2016 | 4 Comments]

This article shows how we can get current category and current product data in Magento 2.
Below is a block class of my custom module (Chapagain_HelloWorld). I have injected object of \Magento\Framework\Registry class in the constructor of my module’s block class.
app/code/Chapagain/HelloWorld/Block/HelloWorld.php

Magento, Review »

[18 Jan 2016 | No Comment]

Product Video always asserts the main role to boosting as well as winning any Marketing campaigns. Coming from many years ago, product video is never an out-of-date method of marketing field. As in a lot of great articles of e-Commerce experts, this is the most effective to popularize your products as well as online business. Impressively, the online-sale is witnessing an endless increase of revenue from embedding an actual video on the product page, blog, emails and anywhere as possible.
It is the same when it comes to M-stores. However, how …

Magento »

[5 Aug 2015 | No Comment]

Product Tooltip is a FREE Magento Extension that shows product’s information as tooltip on category page (product listing page).
This module is compatible with Magento version 1.5 and later (Magento 1.5, 1.6, 1.7, 1.8, 1.9).

Magento »

[6 Jul 2015 | 5 Comments]

Custom options on Magento products are designed to make simple products function like a configurable product with different choosing options like color, size, etc. before purchasing the product.
In this tutorial, I present the code to create/add, view, and delete custom options of a product in Magento.

Magento »

[3 Jul 2015 | 3 Comments]

Print Product & Shopping Cart Page is a FREE Magento Extension that generates neat and clean print page of products and shopping cart, removing unnecessary header, footer & sidebar.
This module is compatible with Magento version 1.5 and higher (Magento 1.5, 1.6, 1.7, 1.8, 1.9).

Magento »

[25 Nov 2013 | No Comment]

Here is a quick code to get / load product by its SKU in Magento.
Generally we load product by its ID. Assuming product id to be ‘166’.

Magento »

[18 Nov 2013 | 4 Comments]

Here is a quick code to get add to cart url of any product.
Suppose that we are fetching add to cart url of a product with id ‘166’.

Magento »

[15 Apr 2013 | One Comment]

Problem:
I had added a new product attribute. Suppose the attribute code is ‘test’. I have been trying to fetch/select that newly added product attribute. Here is my Magento collection code:-

Magento »

[3 Jul 2012 | No Comment]

While upgrading Magento, I got this error when I go to product list page. It says:

Invalid method Mage_Catalog_Block_Product_List_Toolbar::isLastPage(Array())

Solution:

Magento »

[26 Jun 2012 | No Comment]

While upgrading Magento, I am getting this error when I go to product list page.
Error:

Warning: Invalid argument supplied for foreach() in …/template/catalog/product/list/toolbar.phtml

Solution:

Magento »

[12 Jun 2012 | No Comment]

Here is a quick code to get product information with SKU value.
Get product information by sku

Magento »

[10 May 2012 | 4 Comments]

Here is a quick code to get all attributes and their name and value associated with any particular product.
First of all we have to load the product by it’s ID. And then get all it’s attributes. Here is the code:-

Magento »

[1 Feb 2012 | 9 Comments]

Here is a quick code to get any product’s stock information like quantity (qty), minimum quantity (min_qty), stock availability (is_in_stock), minimum and maximum sale quantity (min_sale_qty and max_sale_qty), etc.
First load the product. Product can be loaded in different ways. Here are the two different ways to load any product in Magento:-

Magento »

[12 Dec 2011 | 3 Comments]

Here is a quick and useful code on getting actual price and special price of any product in Magento. The actual price is the real price assigned to the product and special price is the price after any discount is applied to the product.
Loading Product