|
Thxs for your response, it’s the best way but I make a modification :
In app\code\core\Mage\Shipping\Model\Mysql4\Carrier\Tablerate.php,
I change in line 66/67
$select->where("(dest_zip=:zip) OR (dest_region_id=:region AND dest_zip='') OR (dest_country_id=:country AND dest_region_id='0' AND dest_zip='') OR (dest_country_id='0' AND dest_region_id='0' AND dest_zip='')");;
By
$region = $read->quote($request->getDestRegionId()); $country = $read->quote($request->getDestCountryId()); $zip = $read->quote($request->getDestPostcode());
$select->where("(dest_zip=$zip) OR (dest_region_id=$region AND dest_zip='') OR (dest_country_id=$country AND dest_region_id='0' AND dest_zip='') OR (dest_country_id='0' AND dest_region_id='0' AND dest_zip='')");
This code come from next version, Because replace tag (:zip , :region, :country) with $bind information didn’t work in this process
(maybe we can replace :zip , :region, :country by ”?” as in other requests but it don’t work here)
|