Skip to content

Commit

Permalink
Merge pull request #13917 from pemaier/master
Browse files Browse the repository at this point in the history
Update product.php - Solution for #13915
  • Loading branch information
danielkerr committed May 11, 2024
2 parents e89d730 + c29c416 commit 3dcca05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upload/admin/model/catalog/product.php
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ public function getProducts(array $data = []): array {
}

if (!empty($data['filter_price'])) {
$sql .= " AND `p`.`price` LIKE '" . (float)$data['filter_price'] . "'";
$sql .= " AND `p`.`price` LIKE '" . (float)$data['filter_price'] . '%' . "'";
}

if (isset($data['filter_quantity']) && $data['filter_quantity'] !== '') {
Expand Down Expand Up @@ -961,7 +961,7 @@ public function getTotalProducts(array $data = []): int {
}

if (isset($data['filter_price']) && $data['filter_price'] !== '') {
$sql .= " AND `p`.`price` LIKE '" . (float)$data['filter_price'] . "'";
$sql .= " AND `p`.`price` LIKE '" . (float)$data['filter_price'] . '%' . "'";
}

if (isset($data['filter_quantity']) && $data['filter_quantity'] !== '') {
Expand Down

0 comments on commit 3dcca05

Please sign in to comment.