Get the “As low as” price for the product package in Magento

I am trying to display a list of related products using my own template. I cannot show the dynamic price of a package product. For simple products, I used to:

$product->getPrice(); 

which worked, but it just displays $ 0.00 for package elements.

looking at .. /catalog/products/list.phtml I tried

$this->$getPriceHtml($product, true);

after expanding my block to Mage_Catalog_Block_Product_Abstract I tried simple products again, but products with the package still show $ 0.00

Is there any other way to display dynamic package prices as cheaply as possible?

I cleared the cache and reindexed, and all these good things. The price is displayed correctly in the default category list, just not under my user page.

Update

. , , , :

["price_type"] => string(1) "0"

["price_view"] => string(1) "0"
  ["_price_index"] => bool(true)
    ["_price_index_min_price"] => string(8) "475.0000"
    ["_price_index_max_price"] => string(8) "475.0000"
    ["tax_percent"] => float(9)
    ["final_price"] => int(0)

:

["price"] => string(8) "248.0000"
 ["final_price"] => string(8) "248.0000"

, , , , ...

+3
2

/app/design/frontend/base/deafault/layout/bundle.xml

<catalog_category_default>
    <reference name="product_list">
        <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
    </reference>
</catalog_category_default>

phtml ( xml xml). /catalog/product/price.phtml, ;)

+1

Source: https://habr.com/ru/post/1747624/


All Articles