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