Skip to content

Commit

Permalink
Merge pull request #15 from OscarKolsrud/patch-1
Browse files Browse the repository at this point in the history
Update Cart.php
  • Loading branch information
hardevine authored Jul 5, 2020
2 parents 00e180b + fbb271b commit 08f7e19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ private function createCartItem($id, $name, $qty, $price, array $options, $taxra
$cartItem->setQuantity($qty);
}

if($taxrate) {
if(isset($taxrate) && is_numeric($taxrate)) {
$cartItem->setTaxRate($taxrate);
} else {
$cartItem->setTaxRate(config('cart.tax'));
Expand Down

0 comments on commit 08f7e19

Please sign in to comment.