Skip to content

Commit

Permalink
fix: fixed to check all countries too
Browse files Browse the repository at this point in the history
  • Loading branch information
GytisZum committed Jan 19, 2024
1 parent f9d11e3 commit 71ce134
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Repository/ProductRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ public function checkIfCarrierIsAvailableInCountry(int $carrierReference, int $c
$productId = $this->getProductIdByCarrierReference($carrierReference);
$product = new DPDProduct($productId);

if ($product->all_zones) {
return ['id_dpd_product' => $productId];
}

$query = new DbQuery();
$query->select('dp.id_dpd_product');
$query->from('dpd_product', 'dp');
Expand Down

0 comments on commit 71ce134

Please sign in to comment.