I have an order with bundles ordered. Each bundle has several items.

How can I retrieve if the bundle has fixed price or dynamic price? (this is defined by configuration when you create a product)

有帮助吗?

解决方案

$product->getPriceType()

this will return

Mage_Bundle_Model_Product_Price::PRICE_TYPE_FIXED

or

Mage_Bundle_Model_Product_Price::PRICE_TYPE_DYNAMIC
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top