Update Product.php
This commit is contained in:
@@ -2579,14 +2579,16 @@ class ProductCore extends ObjectModel
|
||||
}
|
||||
|
||||
$id_address = $context->cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')};
|
||||
|
||||
$id_country = (int) Configuration::get('PS_COUNTRY_DEFAULT');
|
||||
$ids = Address::getCountryAndState($id_address);
|
||||
|
||||
$id_country = null;
|
||||
if (isset($ids['id_country']) && (int) $ids['id_country']) {
|
||||
$id_country = (int) $ids['id_country'];
|
||||
} else {
|
||||
$id_country = (int) Configuration::get('PS_COUNTRY_DEFAULT');
|
||||
}
|
||||
|
||||
return SpecificPrice::getProductIdByDate(
|
||||
return SpecificPrice::getProductIdByDate(
|
||||
$context->shop->id,
|
||||
$context->currency->id,
|
||||
$id_country,
|
||||
|
||||
Reference in New Issue
Block a user