I cannot figure it out. How to apply discount to the basket amount before shipping. I see an option in Shopping Cart Price Rule "Apply to Shipping Amount" but what every amount or the way i enter it apply to the total amount not to the shipping amount.
The offer is for one product. Customer buy product A for 30 euro plus shipping but if the customer buy one more of product A he will get the second one for 20 euro + no shipping. i have solved the price but cant solve the shipping price issue.
This is actually the way it is suppose to work. I think the wording is confusing, it should be something like : "Apply Discount After Shipping Costs is added", or something like that.
Basically, setting Apply to Shipping amount to ON will make the discount work like this:
Total = (Subtotal + Shipping) - Discount Amount
While leaving the setting off will do this:
Total = (Subtotal - Discount Amount) + Shipping
In this case, if your Subtotal is lower than you discount, your Subtotal will be adjusted to 0 but the customer will still have to pay for shipping.
Related
Could somebody helpme pelase?. I see that Magento in almost all my orders is calculating a tax named hidden_tax_amount . What does this value is related with?. And how can I disable it?.
Here you can see what I'm talking about.
[hidden_tax_amount] => 4.3000
[base_hidden_tax_amount] => 4.3000
[hidden_tax_invoiced] => 4.3000
[base_hidden_tax_invoiced] => 4.3000
Edit:
Ok, I've been digging in my code and fount that this field was introduced in 1.6.0.0 (Mage/Sales/sql/sales_setup/mysql4-upgrade-1.5.9.9-1.6.0.0.php:1616) and the value is get or set here
Mage/Tax/Model/Sales/Total/Quote/Tax.php:391: $address->setShippingHiddenTaxAmount(0);
Mage/Sales/Model/Order/Invoice/Total/Tax.php:85: $totalHiddenTax += $order->getShippingHiddenTaxAmount();
And in Mage/Tax/Helper/Data.php you can find in line 1114 to 1116 the following condition
if ($current->getShippingHiddenTaxAmount() > 0) {
$taxClassAmount[0]['hidden_tax_amount'] = $current- >getShippingHiddenTaxAmount();
}
Then researching more about the issue I found that:
"hidden_tax_amount" holds the substraction of the actual tax amount (on the current order) from the tax amount that should have been applied if there was no discount http://forum.azmagento.com/how-to/grand-total-calculation-v142--82183.html .
What leads me to the point that this is due a wrong tax configuration from my side rather than a bug and is related with a shipping tax. If so, could some body point me in the correct direction please?
Thankyou very much!
For anyone looking to understand the porpouse of hidden_tax_amount let me tell you that is not a bug or a missconfiguration, it's a feature:
it is used by Magento to calculate the amount of tax that is not originally calculated when a product that has a tax is under discount.
For example, you have:
a product named "Pencil" with price of $100.00 and a tax of 16% so the final price will be $116.
a coupon code with 10% off for all the Pencils
(This is important) your store is configured to calculate the discount after tax.
The user will see a final price including tax of 104.4 that is the result of 116 - 11.6. And that is correct.
But legally you can't discount any amount from tax because your base tax is still 100 and not 104.4.
Then Magento hiddes that quantity of money in hidden_tax_amount.
For accounting porpouses this process is correct. Then you can show that value as Tax.
Hope this helps someone else!
I had to give the Magento tax/discount issue some serious thought recently.
To set this problem up, assume there are four parties involved in a transaction, the wholesaler, the retailer, the consumer and the tax man. Assume the retailer is selling an item for £100 to the consumer (including tax), the tax rate is 20% and the wholesaler is providing a 10% discount on the item
The vital point here is that the 10% discount is offered by the wholesaler, not by the retailer. The retailer will get the full £100 for the item, with the consumer paying £90 and the wholesaler making up the remaining £10.
The retailer owes tax on the full amount paid. That is, at a tax rate of 20% £15 of the £90 paid for by the consumer is tax, and £1.67 of the £10 paid by the wholesaler is tax, giving a total tax bill of £16.67 or 20% of the net price (£83.33).
When the consumer receives their invoice, it makes sense to show them only the tax that they have paid, not the total tax paid on the item. However for the retailers accounting, they need to see all the tax that is due, that is the tax due on the portion paid by the consumer paid and the tax due on the portion paid by the wholesaler.
The hidden tax is still tax which has to be paid by the retailer, but it should be hidden from the consumer, because its nothing to do with their part of the transaction.
Magento : 1.6 is My version.
I am facing some tax related setting issue and no configuration looks like working.
Here is the explanation.
Tax on product 20%.
Product cost 25(exclusive tax).
On site all prices are displayed inclusive tax.
Product cost inclusive tax is 30.
If 2 qty is purchased.
Here on cart page.
30 * 2 = 60 subtotal.
Discount 10%(calculated on Total) : 6
Want Tax to be on discounted price but it shows 10 ( should be 9 as calcuate tax after discount is set.)
Total : 54 this is right.
My problem is that on cart and elsewhere Tax is displayed as 10 where as it should be 9.
I want to eliminate this.
Any configuration(didnt find one) or code modification will be ok.
Did you try back-end Tax settings?
Under Sales >Tax > Calculation Settings:
Apply Customer Tax - Before Discount or After Discount
Apply Discount on Prices - Excluding Tax or Including Tax
For My above question I looked into various post.
Also I did go through magento code.
Finally after going through a post by Alan storm I conculded that If one wants to achieve results as per My query then following should be done:
1. Set tax exclusive.
2. overwrite all blocks so that at needed places tax is displayed as inclusive but for magento calculation it is exclusive.This alone will give result as needed.
3. This means overriding lots of blocks with magento.
I'm having some problems getting my Magento Cart Rules to apply.
What I am trying to do is encourage users to purchase gift cards, so if you purchase a gift card you get 10% off the entire transaction assuming you purchase 2 or more items (including the gift card).
This is what I am using at the moment:
In Conditions
If ALL of these conditions are TRUE :
Total Items Quantity equals or greater than 2
If an item is FOUND in the cart with ANY of these conditions true:
SKU is 7667 (Gift Card)
In Actions
Apply Fixed amount discount for whole cart
Discount Amount 10
All the rest are as default.
Any help would be greatly appreciated
Your conditions seem to be correct. But in actions you have defined a fixed amount discount instead of a percent discount.
In Actions:
Apply Percent of product price discount
Discount Amount 10
Also you have to keep in mind that this way someone could simply put 2 giftcards in his cart to get the discount. You should add another rule check for an item where SKU IS NOT 7667.
I'm trying to figure out where to locate the function(s) that set the VAT for the shipping in Magento; both in the checkout and in the order made by the customer. If possible, the last function that is run that calculates the final VAT for the shipping might be the best one to override. The thing is that I want to make the VAT for shipping vary depending on the VAT on the products in the cart.
Take for example two products that cost 100$ each.
One product has a 25% VAT, while the other product has a 12.5% VAT.
Now, what I'd like to do is to calculate the VAT of the shipping by running the following calculation:
((100*25)+(12.5*100))/200 = 18.75
This would mean that the VAT on the shipping would be 18.75%.
While I'm on it, I also wonder how to get the VAT for each product in the cart, since each product can have a different tax-class.
I have written a recurring payment module with asiapay payment,
however when i was in checkout progress, the shipping fee and subtotal is zero, although the actual fee will show up in the section below subtotal which is called "nominal item total",
it is still confusing for customer that the shipping fee is zero but it appears some value again in the last step.
Also , i am using table rate (price VS destintaion)....
at the step 3 SHipping method, it becomes worse that it did not find any shipping method...i am not allowed to move the step4!
So i would like to know how can i hardcode set the subtotal and shipping fee for nominal item checkout?
Shipping in: app/code/core/Mage/Sales/Model/Quote/Address/Total/Nominal/Shipping.php