Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
Fix taxable amount calculations for products on sale
Browse files Browse the repository at this point in the history
  • Loading branch information
samnabi committed Jun 20, 2016
1 parent 9b0fe91 commit 65b5a06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion site/plugins/shopkit/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,8 @@ public function getTax()
// Calculate total amount of taxable items
$taxableAmount = 0;
foreach ($this->items as $item) {
$taxableAmount += $item->notax == 1 ? 0 : $item->amount * $item->quantity;
$itemTaxableAmount = $item->sale_amount ? $item->sale_amount : $item->amount;
$taxableAmount += $item->notax == 1 ? 0 : $itemTaxableAmount * $item->quantity;
}

foreach ($taxCategories as $taxCategory) {
Expand Down

0 comments on commit 65b5a06

Please sign in to comment.