magento cart price issue - magento

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....

Related

Changing magento sales PDF invoice value

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

I can't add a product in Cart which price is zero in Codeigniter

I have an small project of product pos system. When product price is not zero like
Product Qty Price
Mobile 1 35.00
the cart adds the product successfully. But when the prodcut is like
Product Qty Price
Mobile 1 0.00
then then the cart doesn't add the product, so how I can add the product which one's price is zero? Please suggest some option
I'm new to cart so I'm not able to do anything, please help

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 to apply percentage discount to whole cart total in Magento?

I have a issue like, I have to create a promotion rule which gives percentage total on cart total.
Currently Magneto offers promotion rule on cart per item. But I have different scenario like
cart item total+extra fee = cart total - percentage discount
Current Magento rule calculates like
cart item total = cart total - percentage discount
I need this to implement with coupon code only.
Help will be appreciated,
Thank You
Yes, using Promotions > Shopping Cart Price Rules you just need to specify the percentage amount you want to apply discount with respect to total and set it to No Coupon.

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/

Resources