Magento Coding Solutions

get Tire Price By Product Id in magento


**********************************************
get Tire Price By Product Id
**********************************************
$product_Id=2;

$custom = Mage::getModel('catalog/product')->load($product_Id);
                $tierPrice = $custom->getTierPrice();
                for($i=0;$i<count($tierPrice);$i++)
                    {
                  echo "price_id:".$tierPrice[$i]['price_id']."</br>";
                   echo " price:".$tierPrice[$i]['price']."</br>";
                   echo "price_qty:".$tierPrice[$i]['price_qty']."</br>";                       
                    }

1 comment:

  1. This comment has been removed by a blog administrator.

    ReplyDelete