Magento - VAT for shipping - magento

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.

Related

CS cart shipping condition

I am using CS cart and I have problem with my shipping method. Basically I provide free shipping on specific products when their total exceeds 500 and other products have shipping even those that exceed 500 or not.
The problem is that when our free shipping products exceed $500 and if we choose some other products so it calculates as a free shipping. How can I modify its calculation?
to use different shipping charges for products within one order, you can set different suppliers for different products: the products from the “free shipping for products over $500” category will be assigned to one supplier with the free shipping method, while the rest of your products will be assigned to the other supplier with another shipping method. As a result, shipping cost will be calculated separately for several products in one order.
Here is the instruction on how to set up the suppliers’ functionality:
http://kb.cs-cart.com/suppliers-functionality
CS-Cart Team
http://www.cs-cart.com

Magento Shopping Cart Rules Buy X get 10% off everything

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.

Magento - How can I add a non-taxable fee to a taxable product?

We are using Magento EE 1.12. We have associated fees with individual products that cannot be taxed, however the product itself can be. The desired solution will be similar to a custom option where the fee is included on the same line item as the product and included in the product's price and therefore in the order subtotal. The only problem with a custom option is that the fee is taxed along with the product.
We've gone through several scenarios but I think the most likely solution is to use a custom option, but after the tax has been calculated we will reduce the tax to the correct amount. We tax on the subtotal and shipping. We will have access to the amount of fees so we can get the tax on that total and reduce the order tax amount.
Does this seem like a good solution? Does anyone have other ideas?
Make it a bundle product, and put in a product which is not taxable.

magento - nominal product show zero in subtotal shipping fee

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

Magento - Apply discount on Shipping Amount

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.

Resources