Just another WordPress.com weblog

Archive for November, 2009

UPS shipping method for xml is not working-solved

if UPS shipping method for XML is not working then try this

open file :: app\code\core\Mage\Usa\Model\Shipping\Carrier\Ups.php
on line number 639
code is :: if (in_array($code, $allowedMethods)) {

if you remove this condition the UPS will work for your site.
here it shows every methods provided by UPS….

–VIshal Surani

Sort by price is not working


here is a quick solution to come out of price sorting problem in Product listing pages :

in Admin panel :
go to system->cache management : under catalog section – > refresh Layered Navigation Indices ..

Dnt forget to comment if it is helpful to u …

– Meghna Vora

Query to display just arrived product

$_parent_category = Mage::app()->getStore()->getRootCategoryId();
$storeId = Mage::app()->getStore()->getStoreId();

$_productCollection = Mage::getResourceModel(‘catalog/product_collection’)
->setOrder(‘created_at’, ‘desc limit 1’)

Query to display best selling product

$storeId = Mage::app()->getStore()->getId();

$products = Mage::getResourceModel(‘reports/product_collection’)
->setOrder(‘ordered_qty’, ‘desc’)
->load(); //best sellers on top

how to show vertical navigation menu?

There is one free extension for that and for the same, extension key is


add this with help of magento connect from admin panel->config……

Removing CRELoaded footer advertising

On CRE loaded shopping carts, you will find advertising coming directly from CRE loaded.com. If you wish to remove this advertising text, you need to edit the includes/application_bottom.php file. Look for this line and remove it: