Is there a way to set free shipping in tablerates for a Total inkl. Tax? The problem is tablerates are using the subtotal without tax but i need it including tax. Because i use two different taxes (germany), i cant just calculate the price without tax.
So...i want to set free-shipping in my tablerates .csv for a Total of 35€ including tax. How is this possible?
+ // If displayed prices include tax, consider this when calculating package value + if (Mage::helper('tax')->priceIncludesTax()) { + foreach ($request->getAllItems() as $item) { + $request->setPackageValue($request->getPackageValue() + $item->getTaxAmount()); + } + } + // Free shipping by qty $freeQty = 0; if ($request->getAllItems()) {
It needs some tweaking because discounted products seem to cause issues. Having a discounted product of 19 euro in your cart will trigger the shipping table rate that should be triggered at 20+ euros.
It seems I had a problem in my table rate amount for the value that I was checking for (20). I corrected it and it seems that this is a solid solution! Wow.. I have been looking for this for so long. I will have to check it more but for now “A million Thanks”!
Shipping Table Rates extension allows you to calculate the shipping rates using the subtotals including tax.
This extension is extremely usefull for creating number of different shipping methods for products cause it allows to use flat and percent-based rates for shipping methods, specify address, weight, price and quantity parameters for calculation of shipping prices.