Fix use standard product country code if country of buyer not defined

This commit is contained in:
Laurent Destailleur 2019-04-19 12:19:45 +02:00
parent 7fd76881ae
commit 61428b9c00

View File

@ -457,7 +457,7 @@ if ($result) {
}
if ($objp->code_sell_l == -1) $objp->code_sell_l='';
if ($objp->country_code == $mysoc->country_code) { // If buyer in same country than seller
if ($objp->country_code == $mysoc->country_code || empty($objp->country_code)) { // If buyer in same country than seller (if not defined, we assume it is same country)
$objp->code_sell_p = $objp->code_sell;
$objp->aarowid_suggest = $objp->aarowid;
} else {