Changing magento sales PDF invoice value - magento

Today I am trying to change the tax value in Magento pdf sales invoice. Actually I want to put static tax amount in it like I want 20% of product amount that will be Tax and I want to minus Tax amount from product cost.
For example:
Product cost is 100 and 20% of product price will be 20 so I want to display 20 under Tax and the rest cost (80) as product price only in invoice not on website because on the website product price will be 100 because that is including taxes.

If you're looking for printable invoice, that's located in:
app/design/frontend/{theme-package}/{your-theme}/template/page/print.phtml
or if your theme doesn't have this file, you have to rewrite it from base theme in:
app/design/frontend/base/default/template/page/print.phtml

Related

magento cart price issue

I am using Magento 1.8.1.0.
I have defined no catalog price rule.But i am applying special price on some selected products. On product catalog page the price and special price and the discount percent as sale is shown on that product. But when i add these products to the cart it doesn't shows the price of product as it is but it shows the price after applying ((price*specialprice)/100) rule in unit price and subtotal and grand total.
for example:
price is $79
specialprice is $71
sale discount is 10 %
the result wanted in cart (for quantity one) is as
unit price is $71
subtotal is $71
grand total is $71
but it is showing as
unit price is $56.09
subtotal is $56.09
grand total is $56.09
i am new on Magento so please help me soon.
Thanks in advance.....
Don't worry guys....
I have solved this problem myself..
The problem was in (the calculation as i have mentioned) inthe file price.php located in Mage/Bundle/Model/Product...
It is calculating the specialPrice as (finalprice*SpecialPrice)/100.. I just changed it and now everything is going welll....

Magento - Tax Excluding Total and Including Total the same

I have spent nearly 2 days now trying to get these damn tax rules to work in Magento.
I have a product. I have one Product Tax Class. I have one Customer Group. I have one Tax Zone (UK # 20%). I have one Tax Rule for this zone, Product Tax Class and Customer Group.
The tax settings are as follows:
When I add a product to my cart, the product price is £695. The Cart totals are as follows:
This is clearly wrong. If the product price is £695 and I've specified that this price is excluding tax, then 20% should be added to this cost. At the very least, the two Grand Total costs should be different!
The two very last things I've done were to delete the cache manually (via FTP) and to re-index all the indexes.
There are two settings to break this configuration into.
For Tax display.
For Tax calculation.
If you check your shopping cart display setting you will find you stated display price, display subtotal and display shipping to include taxes.
Play with those display settings and you will get result.

How do I configure magento to display prices including the TAX?

I'm struggling to configure my Magento store to do the following with TAX.
I want to give a product a price which includes the tax amount specified i.e 20% so when I add it to the cart the TAX and grand total are displayed correctly.
For example:
My product has a price of £20. 20% TAX of £3.33 is built into the price. When this product is added to the cart I'd like the cart to display the TAX amount of £3.33 and the grand total of £20.
Right now all I can get is the grand total to add the TAX on top totalling £23.33. Also the display price is £23.33 not £20.
I'd love some help!
Look under System/Configuration/Sales/Tax/Calculation
There are two important choices here
Catalog prices include tax
Shipping prices include tax
See magento prices inclusive of tax
Add this code in your phtml file where you getting the product price.
$_priceIncludingTax = Mage::helper('tax')->getPrice($_product, $_product->getFinalPrice());
If you want to display price on frontend with tax, go to:
System -> Configuration -> SALES -> Tax -> Price Display Settings -> Display Product Prices in Catalog
You have three options there. To show product price:
Excluding Tax
Including Tax
Including and Excluding Tax
Source: http://blog.chapagain.com.np/magento-display-product-price-including-tax/

Magento tax rates multiple countries

I whant to change our Magento CE 1.7 Shop to an multistore. So 2 countires an each has its own store but based on same products.
Now the 2nd country has different tax rates but the gross price should be same in both shops.
I have set the tax calucations based on the current county (set in system-config). So each Shop takes the corrent tax rates. And of course changed the tax reates for the 2nd country.
But now the gross prices in the shop are different. Even the product prices are set to be already including the tax rates. They get still recalculated.
e.g. county 1 has 19% tax and country 2 has 20%
Product 1 has a price of 70,90 in the backend and frontend. In country 2 its showing 71,50 in the frontend.
I dont want to set a new price for each product for the 2nd country. Isnt there a way to avoid the recalculation?
I think I found the solution.
I also have to set in system -> sales -> shipping settings -> origin country to the other country. Its not enought to change the Default Tax Destination Calculation Country and define the tax rules.
To hold a specific price by website/view you would normally do a catalog->item->price , select the website/store view from the drop down (top left), select price tab, unselect use default value and change the price to what ever you wanted displayed.
Changing the Shipping/Origin Address controls which tax rate is assumed when the catalog price = including tax.
Otherwise the system dynamically re-calculates the price including tax by figuring out the price excluding tax and then applying the new stores/customer's tax rate.
You should take a look at this, https://github.com/WMI/WMG_Tax , it recalculates the VAT properly.

How to add individual product tax in magento?

I have created a product attribute Product Tax and from the admin catalog I have entered 10% tax on one product.
Now on front side I want to apply 10% tax to the product price.
There are many function for getting price, which one should I be using?
For this you need to create a tax rule from sales > tax and then apply this tax class to product

Resources