宇讯一资源

How can i remove the sku column from Magento invoice PDF?

发布于2020年11月13日 | 暂无评论 | 17阅读 | magento

1) Copy

app/code/core/Mage/Sales/Model/Order/Pdf/Invoice.php

To

app/code/local/Mage/Sales/Model/Order/Pdf/Invoice.php

And in Invoice.php (of local directory) remove following code

$lines[0][] = array(
            'text'  => Mage::helper('sales')->__('SKU'),
            'feed'  => 290,
            'align' => 'right'
        );

This will remove title of sku from table in PDF

2) Copy

app/code/core/Mage/Sales/Model/Order/Pdf/Items/Invoice/Default.php

To

app/code/local/Mage/Sales/Model/Order/Pdf/Items/Invoice/Default.php

And in Default.php (of local directory) remove following code

$lines[0][] = array(
            'text'  => Mage::helper('core/string')->str_split($this->getSku($item), 17),
            'feed'  => 290,
            'align' => 'right'
        );

This will remove sku data

Now print your Invoice

深圳舞蹈月

http://www.shenzhendancemonth.com/

暂无评论

发布评论