Magento - using $this->getPriceHtml on custom page template

后端 未结 4 790
天命终不由人
天命终不由人 2021-02-02 14:02

I have a scroller showing a collection of products currently on sale, which I call using the following:

$todayDate  = Mage::app()->getLocale()->date()->         


        
4条回答
  •  长发绾君心
    2021-02-02 14:57

    To get getPriceHtml() function work correctly in your custom block you need 2 things

    1)Make your block type catalog/product

    
    

    2)Pass the product object to getPriceHtml() function

    load($_product->getId());?>
    getPriceHtml($productObject, true) ?>
    

提交回复
热议问题