Tag Archives: magento

Fetch a collection by custom filter in Magento

Example of fetching categories in Magento and filtering by a custom attribute: $categories = Mage::getModel(’catalog/category’)->getCollection(); $categories->addAttributeToSelect(’name’); $categories->addAttributeToFilter(’featured_category’, 1);   foreach($categories as $key => $category) { echo $category->getName(); }

Posted in Magento | Tagged | Leave a comment

Fix the Worldpay Magento Extension for Magento v1.4 and newer.

There is a community extension developed by Phoenix Maiden for the integration of RBS Worldpay payment gateway into the Magento ecommerce system. However, due to changes in the templating engine, it doesn’t work for newer versions of Magento. This is how I fixed it for Magento version 1.4.2.0. I am using version 1.3.1 of the [...]

Posted in Magento | Tagged | Leave a comment