Skip to content

Commit

Permalink
show tax rate for bundle products with fixed pricing #194
Browse files Browse the repository at this point in the history
  • Loading branch information
sprankhub committed Oct 15, 2017
1 parent 9ff2584 commit daa8ffb
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,14 @@ public function getTaxRate()
*/
public function getFormattedTaxRate()
{
if ($this->getTaxRate() === null
|| $this->getProduct()->getTypeId() == 'bundle'
) {
if ($this->getTaxRate() === null) {
return '';
}

if ($this->getProduct()->getTypeId() === 'bundle'
&& $this->getProduct()->getPriceType() == Mage_Bundle_Model_Product_Price::PRICE_TYPE_DYNAMIC) {
// the tax rate for a bundle product with dynamic pricing is undefined
// it cannot be configured in the backend and depends on the respective child products
return '';
}

Expand Down

0 comments on commit daa8ffb

Please sign in to comment.