Home » 2013 » June (page 3)

Monthly Archives: June 2013

How to limit the collection of a model in Magento


Sometimes, we want ti limit the collection of a model in Magento. In this quick tutorial, I will show you how to do that. I will use catalog product module for this example. First, you can set number of products to be displayed in one page by using [crayon-5bc7220e9b4b8846672599-i/]  method. [crayon-5bc7220e9b4c6588610342/] Ypu can also display 10 items starting from the 5th item [crayon-5bc7220e9b4cb297013558/] Read More »

Change Image Sizes in Magento Product List or Grid View

magento product grid image size change

In this tutorial, we will find out how to Change Image Sizes in Magento Product List or Grid View. By default, Magento product listing and grid listing have a fixed product image, which is not changeable from the backend. You will need to edit the phtml file to get it to your required size. Here are 2 steps to do it: ... Read More »

Magento Video Tutorials 41(Community) – Theming Magento 17 – Our Other Layouts


This is the 41st tutorial for Magento Commerce Community Edition and the 17th on Theming Magento. This tutorial moves on to implementing our template changes across all of our layouts. Read More »

Passing arguments to a Magento Shell script


Using Magento Api to create shell scripts seems to be easy, but there are too many things to take into account to get the most of it. In this case, I want to explain how to pass an argument from the command line when executing a magento shell script. You have to call the script passing the argument title and ... Read More »

How to Filter product collection by multiple categories in Magento


In this tutorial, we will go through how to filter a product collection by multiple categories in Magento. Filter by only 1 category Magento offers a type of filter that can be used directly from the collection: [crayon-5bc7220e9c75c045086065/] Filter by 2 or more categories This is a completely different story. It’s very important to proceed correctly in order to avoid errors ... Read More »

Scroll To Top