Post by AdamDowning » Fri Jul 02, 2010 9:38 pm

Hey Guys

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');

				}
I cannot work out what is the country code for the UK. How do I disable the UK from seeing International Signed?

Thanks
AdamDowning

Newbie

Posts

Joined
Mon Jun 14, 2010 8:23 pm

Post by JAY6390 » Fri Jul 02, 2010 11:10 pm

Hi Adam, the UK's code is GB

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by damian » Sat Jul 03, 2010 1:55 am

I have the same problem, not only does it show international signed but also airmail and surface. Where can I change compensation rates?

New member

Posts

Joined
Thu Jul 01, 2010 4:22 pm

Post by Skuzzy » Wed Apr 20, 2011 5:20 pm

Its on the forums somewhere, but this is what you need to add

Look for

Original:

Code: Select all

if ($this->config->get('royal_mail_international_signed'))
Addition: && $address['iso_code_2'] != 'GB'

Code: Select all

if ($this->config->get('royal_mail_international_signed') && $address['iso_code_2'] != 'GB')
That should do the trick and it also works for Airmail.

Newbie

Posts

Joined
Mon Mar 28, 2011 11:59 pm
Who is online

Users browsing this forum: No registered users and 1 guest