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!!!
   
change display order in pdf invoice
 
jimmi4u2
Jr. Member
 
Total Posts:  1
Joined:  2008-12-25
 

Hi @all,

I have to change the invoice order in the pdf. I need to put the tax after the shipping (before the total) because it contains the VAT also from shipping. How can I change it? I found allready the default.php but my php skills aren*t good enough to figure out what to change.

And it’s a little off topic but I need to put a checkbox on the register form after putting in screen name and password so people can agree to personal data storage and also have a look at the data storage terms. This is needed in order to be law conform in europe. Where is that to be made?

Thanks a alot guys and boys,
you’re real a great community.
Marry christmas

 
Magento Community Magento Community
Magento Community
Magento Community
 
flmag
Member
 
Total Posts:  49
Joined:  2008-12-08
 

in app/code/core/Mage/Sales.Model/Order/Pdf/Abstract.php put the first if after the second one in the insertTotals() method
You should create a new class and override this one for best practice

if ((float)$source->getTaxAmount()){
            $order_tax 
Mage::helper('sales')->__('Tax :');
            
$page->drawText($order_tax475-$this->widthForStringUsingFontSize($order_tax$font7), $this->y'UTF-8');

            
$order_tax $order->formatPriceTxt($source->getTaxAmount());
            
$page->drawText($order_tax565-$this->widthForStringUsingFontSize($order_tax$font7), $this->y'UTF-8');
            
$this->-=15;
        
}

        
if ((float)$source->getShippingAmount()){
            $order_shipping 
Mage::helper('sales')->__('Shipping & Handling:');
            
$page->drawText($order_shipping475-$this->widthForStringUsingFontSize($order_shipping$font7), $this->y'UTF-8');

            
$order_shipping $order->formatPriceTxt($source->getShippingAmount());
            
$page->drawText($order_shipping565-$this->widthForStringUsingFontSize($order_shipping$font7), $this->y'UTF-8');
            
$this->-=15;
        
}

 
Magento Community Magento Community
Magento Community
Magento Community
 
flmag
Member
 
Total Posts:  49
Joined:  2008-12-08
 

for the second part I don’t have time to post right now, give me a PM if you are still interested

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
© Copyright 2010 Magento Inc.
Privacy Policy|Terms of Service
Magento Community Count
279096 users|1294 users currently online|348102 forum posts