Get price of a magento product with options -


i price of product without adding cart, have array like

(option_id => option_value,option_id => option_value) 

i need price of product options, try using "addcustomoption"

 $product->addcustomoption($option->getcode(), $option->getvalue()); 

but when use

$product->getfinalprice() 

he still returning original price.please me !

thanks

i solve problem, discovering "final price" calculated when call "mage::getmodel('catalog/product')", if change option have reset "final price" data null, , when you're calling

$product->getfinalprice() 

magento re-calculate nice price


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -