Create a ‘Show All’ link on product links

Posted on May 20th, 2013 | Posted by admin

Magento by default now has the ability from the admin area to create a ‘show all’ link via the Products per Page on Grid Allowed Values section of the catalog area. This by default is great, it works fine and should be a great asset to your product listing pages. But you may run into a client who just wants to have a ‘view all‘ link and nothing else which by default is not in Magento just yet; so we have to come up with a solution to this. And the solution is as follows:

First thing to do is to navigate to /app/design/frontend/theme/default/template/page/html/pager.phtml, once you have opened the page add this code to were you want your ‘view all‘ link to be placed.

<br>&lt;a href="&lt;?php echo $this-&gt;getLimitUrl('all')?&gt;" title="&lt;?php echo $this-&gt;__('View All Products') ?&gt;"&gt;<br><br>&lt;?php echo $this-&gt;__('View All') ?&gt;<br>&lt;/a&gt;<br>

This segment of code generates our link with ‘limit’ parameter set to ‘all’. Now when we click on it, it will give us a full category listing.

Create a left hand navigation / vertical category in Magento

Posted on May 3rd, 2013 | Posted by admin

Create a left hand navigation / vertical category in Magento


Create vert_nav.phtml in app / design / frontend / default / default / template / catalog / navigation

__(‘Categories’) ?>

__(‘Category Navigation:’) ?>


Posted on April 28th, 2013 | Posted by admin

When I first needed to access a collection of countries in Magento I assumed it would work like all other data collections but was shocked to find that this wasn’t the case. Rather than store country data in the database, Magento stores country data in an XML file and loads it in on each request. Fortunately though, there are some simple functions that we can use to access country names and codes in Magento.

Get An Array of Country Names/Codes in Magento

$countryList = Mage::getResourceModel('directory/country_collection')
echo '<pre>';
print_r( $countryList);

The above code will print out an array containing every country code and country name known to Magento.

Drop Downs and Country Information

The most common reason developers access country names in Magento is to create a drop down. There are several ways to accomplish this and they differ depending on whether you’re in the admin or the frontend.

how to create bundle products in Magento

Posted on March 2nd, 2013 | Posted by admin

Magento allows store owners to sell customizable products (eg. Product with more options to select from).
In this tutorial, we will show you how to:

  • Creae a new computer bundle, composed of the following user-selectable options: System Color, Operating System and Monitors.
  • Selections (eg. Pure White, Plum Purple) within each Option (eg. System Color) are composed from Simple Products. This means that you have to create your simple products first.
  • Pricing is dynamically calculated based on the user selected Option(s), using the Simple Products pricin

Create a Magento Web Store

Posted on March 4th, 2012 | Posted by admin

Once you have completed the Magento installation, you can proceed with the configuration of your web site. In this article we have briefed the basic options in Magento, which will help you set up your web store. Below you can find the following topics:

Page 1 of 212»