Exclude custom options from shipping and tax calculations
-
16-10-2019 - |
문제
Is there any way to exclude custom options with prices from shipping and tax calculations without the need for a custom module? Just seeing if anyone out there has done this without too much effort.
Thanks, Mark
해결책 2
An update on this, I overrode the _totalBaseCalculation
function of Mage_Tax_Model_Sales_Total_Quote_Subtotal
. In that function, I called my (custom) helper getItemOptionsPriceTotal
which got the total options prices for that item. Inside Subtotal.php
, I then subtracted the item tax price from $taxable
before that is set with $item->setTaxableAmount
.
As far as the shipping part goes, I did something similar but a bit different (using custom shipping module). I subtracted the options price from the item base price as so: $item->setPrice($item->getPrice() - $optionsPrice);
before the shipping rate was calculated. This seemed to work...
다른 팁
No :)
I worked with VAT in Magento for quite some time, did some research on what modules are already there, but this is not standard, nor I could find another module.
Another nasty issue with VAT is it seems Argentinian law.