1
votes

I had a similar problem last time, but the solution just helps with my test-product, whre I can add price +/- in my configurable product. Price in Cart is not correct Magento 1.8

Is it possible to take the price of the simple product, without adding some prices +/- at the configurable one?

On cart I get the SKU of the simple-product, but with $_item->getPrice() I only get the Price of the configurable product.

Thanks for help!

2

2 Answers

0
votes

Use the sku of the item to load the simple product, for example:

$_productSku = $_item->getSku();
$_product = Mage::getModel('catalog/product');
$_productId = $_product->getIdBySku($_productSku);
$_product->load($_productId);

then use

$_product->getPrice();

Regards Hans

0
votes

Shorter solution is:

$_product = Mage::getModel('catalog/product')->loadByAttribute('sku', $_item->getSku());
$_product->getPrice();