IS test
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user