This commit is contained in:
2024-02-08 20:43:56 +01:00
parent 602acc14d8
commit bc7f73c3a0

View File

@@ -257,7 +257,7 @@ class CountryCompareController extends Controller
$c = ltrim($code, "0");
$json_values = array();
try {
// try {
$price = $xpath->query('//*/div[(@class="itemPriceBox")]//p[@class="itemNormalPrice revamp_price price"]/span/span')[0]->nodeValue;
if (is_null($price) || empty($price)) {
@@ -272,9 +272,9 @@ class CountryCompareController extends Controller
$url_product = null;
}
} catch (\Exception $e) {
return [];
}
//} catch (\Exception $e) {
// return [];
//}
$price = floatval(trim(str_replace(' ', '', str_replace(',', '.', str_replace('.', '', str_replace(array('€'), '', $price))))));
$json_values = array(