Home » 2013 » June (page 3)

Monthly Archives: June 2013

How to limit the collection of a model in Magento

30531-vista_icon_collection

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-5b7b8cf81df4d604339759-i/]  method. [crayon-5b7b8cf81df5c158724255/] Ypu can also display 10 items starting from the 5th item [crayon-5b7b8cf81df61748598157/] 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

41

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

2012-08-02_161234_276_193[1]

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

better-blog-categories[1]

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-5b7b8cf81f8b1423815634/] 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