0
我有一个产品集合使用称为以下(设置为显示6项):Magento的 - 定制产品征收使用getPriceHtml不返回正确含税价
$_testproductCollection = Mage::getResourceModel('catalog/product_collection')
->addAttributeToSelect('*')
->setPageSize(6);
$_testproductCollection->load();
然后我得到的6个产品细节与一个foreach:
foreach($_testproductCollection as $_testproduct){
echo "Price is ".$this->htmlEscape($this->getPriceHtml($_product, true))."<br/>";
};
这工作正常,直到我设置我的商店显示价格包含税。而不是显示2个不同的价格,例如:
Excl. Tax: $138.56
Incl. Tax: $149.99
它显示两者的价格相同。如果我添加一个呼叫负载的产品集合再次紧随其后的加载:
$_productCollection=$this->getLoadedProductCollection();
...它工作正常,价格是正确的,但那么它跳过setPageSize功能,自动回满店集合的产品。
我怎样才能得到正确的税价显示,以及它在getLoadedProductCollection这是纠正这一点?该功能在法师/目录/砌块/产品/ list.php的
甜,想通了 - 添加** - > addFinalPrice()**到我的收藏电话修复问题,欢呼! – 2011-03-09 22:33:54