0
我正在尝试重写销售订单打印块。检索商店增值税号码。但是增值税号码字段为空白。这在我在核心上创建我的函数时工作正常。重写magento中的销售订单打印块
这里是我的3210 应用程序/代码/本地/公司/销售/块的/ etc/config.xml中
<config>
<global>
<blocks>
<sales>
<rewrite>
<order_print>Invent_Sales_Block_Order_Print</order_print>
</rewrite>
</sales>
</blocks>
</global>
</config>
,这里是我的print.php
应用程序/代码/本地/公司/销售/座/顺序/ Print.php 类Invent_Sales_Block_Order_Print扩展Mage_Sales_Block_Order_Print
public function getVatNumber()
{
$storeVAT = Mage::getStoreConfig("general/store_information/merchant_vat_number");
return $storeVAT;
}
这是我print.phtml
应用程序/设计/前端/主题/包/模板/销售/订单/ print.phtml
<?php echo "VAT Number:".' '.$this->getVatNumber(); ?>
您的帮助,将不胜感激。谢谢