Magento

eCommerce Software for Online Growth

Magento Forum

From setting up your store to managing your products, pages and promotions to generating detailed reports, the Magento User Guide empowers the user to utilize the platform for all of its vast capacity.
Available in eBook and Print formats – Download Now!!!
   
Drawline in PDF Invoice after each product
 
cooper
Member
 
Total Posts:  74
Joined:  2008-03-31
 

Hello,

I would like to insert just a line in PDF Invoice after each item.

So in app/code/local/Mage/Sales/Model/Order/Pdf/Items/Invoice/Default.php I ‘ve added :

$page->setLineWidth(0.5);
$page->setLineColor(new Zend_Pdf_Color_GrayScale(0.8));
$page->drawLine(28, $pdf->y-$shift[0]+1, 568,$pdf->y-$shift[0]+1);

It works fine BUT only for simple products and not for packaged products.

I don’t know how to manage app/code/local/Mage/Sales/Model/Order/Pdf/Items/Invoice/Grouped.php

Hope someone can help me........

Regards

 
Magento Community Magento Community
Magento Community
Magento Community
 
massi
Guru
 
Avatar
Total Posts:  505
Joined:  2008-04-13
Munich, Germany
 

What do you mean with “packaged products”? Perhaps take a look at app/code/core/Mage/Bundle/Model/.... and app/code/core/Mage/Downloadable/Model/…

 Signature 

vianetz.com - Magento Development
Customizable layouts for invoices? Check out Advanced Invoice Layout For Magento.

 
Magento Community Magento Community
Magento Community
Magento Community
 
cooper
Member
 
Total Posts:  74
Joined:  2008-03-31
 

Massi,

Many thanks for your help. I’m french and my english is funny, appromimative and too creative...... rasberry

I was talking about bundle products (and you’re right : downloadable have to be modified if necessary...).

With your indication I have found the files to be modified.

I really appreciate your guideline and maybe I should have a look at your extension wich seems to cover essentiels needs for most Magento user wink

I Hope you understand me despite of my poor english......

Regards

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
© Copyright 2010 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
177689 users|1190 users currently online|277255 forum posts