Skip to content

Commit

Permalink
Fix compare price decimal saving (#2053)
Browse files Browse the repository at this point in the history
  • Loading branch information
wychoong authored Jan 17, 2025
1 parent bdb8680 commit 2d0ac1c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ public function getDefaultTable(Table $table): Table

$data['min_quantity'] = 1;
$data['price'] = (int) ($data['price'] * $currencyModel->factor);
$data['compare_price'] = (int) ($data['compare_price'] * $currencyModel->factor);

return $data;
})->label(
Expand All @@ -162,6 +163,7 @@ public function getDefaultTable(Table $table): Table

$data['min_quantity'] = 1;
$data['price'] = (int) ($data['price'] * $currencyModel->factor);
$data['compare_price'] = (int) ($data['compare_price'] * $currencyModel->factor);

return $data;
})->after(
Expand Down

0 comments on commit 2d0ac1c

Please sign in to comment.