문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top