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.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
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
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...