I have an order for italy, but I want to get all international signed set at same prices. Problem is, if someone is logged in and they are UK registered, it tells them that they can use the 'International Signed' feature. I am based in the UK, and therefore only want to send via Royal Mail to UK, and International Signed to other countries. I have this code:
Code: Select all
if ($this->config->get('royal_mail_international_signed')) {
$cost = 0;
$compensation = 0;
$countries = explode(',', 'AL,AD,AM,AT,AZ,BY,BE,BA,BG,HR,CY,CZ,DK,EE,FO,FI,FR,GE,DE,GI,GR,GL,HU,IS,IE,IT,KZ,KG,LV,LI,LT,LU,MK,MT,MD,MC,NL,NO,PL,PT,RO,RU,SM,SK,SI,ES,SE,CH,TJ,TR,TM,UA,UZ,VA');
if (in_array($address['iso_code_2'], $countries)) {
$rates = explode(',', '1:5.50,2:6.75,100:6.75');
} else {
$rates = explode(',', '1:5.50,2:6.75,100:6.75');
}
Thanks
AdamDowning