Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How To Add item numbers to items in Magento Invoice PDF
 
RamLakhanRajput
Jr. Member
 
Avatar
Total Posts:  3
Joined:  2013-04-30
 

I am trying to add serial numbers (1,2,3 etc) to the items in Magento’s invoice pdf under a column called Serial Number.

I have Added Serial No column in app\code\core\Mage\Sales\Model\Order\Pdf\ invoice .php file
And in
app\code\core\Mage\Sales\Model\Order\Pdf\Items\Invoice - Default.php

$lines[count($lines)][] = array(
‘text’ => ((count($lines) == 0)?’1’:(count($lines)+1)),
‘feed’ => 35,
‘font’ => ‘bold’,
);
But it Doesn’t Work

Image Attachments
Capture.PNG
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top