Post by L146705 » Fri May 04, 2012 4:27 am

Hi,

I've started to update my opencart royal mail extension with the new royal mail prices for April/May 2012 (for prices see
http://c435158.r58.cf3.rackcdn.com/Roya ... Prices.pdf). I thought I would share them, I'm no expert on this and I haven't done every option yet but I'm working through them. Any errors etc please comment on the forum to let everyone else know.

I am yet to do the compensation values but I will update them when I get them done.

1st class standard:

Code: Select all

.75:2.70,1:4.30,1.25:5.60,1.5:6.50,1.75:7.40,2:8.30,4:10.30,6:13.80,8:17.30,10:20.80
1st class recorded:

Code: Select all

.75:3.65,1:5.25,1.25:6.55,1.5:7.45,1.75:8.35,2:9.25,4:11.25,6:14.75,8:18.25,10:21.75
2nd class standard:

Code: Select all

.75:2.20,1:3.50
2nd class recorded:

Code: Select all

.75:3.15,1:4.45
Next day delivery £500:

Code: Select all

0.1:5.90,.5:6.35,1:7.55,2:9.75,10:24.50


For the airmail option I need another input box for world zone 2. Does anyone know where I can get this option or a way around it.
Airmail
Europe

Code: Select all

0.1:2.70,0.15:2.93,0.2:3.16,0.25:3.39,0.3:3.62,0.4:4.22,0.5:4.82,0.6:5.42,0.7:6.02,0.8:6.62,0.9:7.22,1.0:7.82,1.1:8.42,1.2:9.02,1.3:9.62,1.4:10.22,1.5:10.82,1.6:11.42,1.7:12.02,1.8:12.62,1.9:13.22,2.0:13.82,2.1:14.42,2.2:15.02,2.3:15.62,2.4:16.22,2.5:16.82,2.6:17.42,2.7:18.02,2.8:18.62,2.9:19.22,3.0:19.82,3.1:20.42,3.2:21.02,3.3:21.62,3.4:22.22,3.5:22.82,3.6:23.42,3.7:24.02,3.8:24.62,3.9:25.22,4.0:25.82,4.1:26.42,4.2:27.02,4.3:27.62,4.4:28.22,4.5:28.82,4.6:29.42,4.7:30.02,4.8:30.62,4.9:31.22,5.0:31.82
World Zone 1

Code: Select all

0.1:3.30,0.15:3.86,0.2:4.42,0.25:4.98,0.3:5.54,0.4:6.76,0.5:7.98,0.6:9.20,0.7:10.42,0.8:11.64,0.9:12.86,1.0:14.08,1.1:15.30,1.2:16.52,1.3:17.74,1.4:18.96,1.5:20.18,1.6:21.40,1.7:22.62,1.8:23.84,1.9:25.06,2.0:26.28,2.1:27.5,2.2:28.72,2.3:29.94,2.4:31.16,2.5:32.38,2.6:33.60,2.7:34.82,2.8:36.04,2.9:37.26,3.0:38.48,3.1:39.70,3.2:40.92,3.3:42.14,3.4:43.36,3.5:44.58,3.6:45.80,3.7:47.02,3.8:48.24,3.9:49.46,4.0:50.68,4.1:51.90,4.2:53.12,4.3:54.34,4.4:55.56,4.5:56.78,4.6:58.00,4.7:59.22,4.8:60.44,4.9:61.66,5.0:62.88
World Zone 2

Code: Select all

0.1:3.30,0.15:3.90,0.2:4.50,0.25:5.10,0.3:5.70,0.4:6.98,0.5:8.26,0.6:9.54,0.7:10.82,0.8:12.10,0.9:13.38,1.0:14.66,1.1:15.94,1.2:17.22,1.3:18.50,1.4:19.78,1.5:21.06,1.6:22.34,1.7:23.62,1.8:24.90,1.9:26.18,2.0:27.46,2.1:28.74,2.2:30.02,2.3:31.30,2.4:32.58,2.5:33.86,2.6:35.14,2.7:36.42,2.8:37.70,2.9:38.98,3.0:40.26
I need to add the international signed for. Prob do it over the next few days. This is my 1st post too :-)
Adam
Last edited by L146705 on Sun Jun 10, 2012 8:50 pm, edited 3 times in total.

New member

Posts

Joined
Sun Feb 26, 2012 2:50 am

Post by L146705 » Fri May 04, 2012 4:46 am

Ignore this comment it was about the formatting which I have fixed.
Last edited by L146705 on Mon May 07, 2012 5:04 am, edited 1 time in total.

New member

Posts

Joined
Sun Feb 26, 2012 2:50 am

Post by Mouthrax » Sun May 06, 2012 9:15 pm

Nice one Adam, looking forward to your update ;)

Newbie

Posts

Joined
Sun May 06, 2012 9:13 pm

Post by L146705 » Mon May 07, 2012 4:55 am

I haven't done the compensation rates yet and I don't think I will as I don't really use them

For International signed for (adds £5.15 onto the international rate):

Europe:

Code: Select all

0.1:7.80,0.15:8.08,0.2:8.31,0.25:8.54,0.3:8.77,0.4:9.37,0.5:9.97,0.6:10.57,0.7:11.17,0.8:11.17,0.9:12.37,1.0:12.97,1.1:13.57,1.2:14.17,1.3:14.77,1.4:15.37,1.5:15.97,1.6:16.57,1.7:17.17,1.8:17.77,1.9:18.37,2.0:18.97,2.1:19.57,2.2:20.17,2.3:20.77,2.4:21.37,2.5:21.97,2.6:22.57,2.7:23.59,2.8:23.77,2.9:24.37,3.0:24.97,3.1:25.57,3.2:26.17,3.3:26.77,3.4:27.37,3.5:27.97,3.6:28.57,3.7:29.17,3.8:29.77,3.9:30.37,4.0:30.97,4.1:31.57,4.2:32.17,4.3:32.77,4.4:33.37,4.5:33.97,4.6:34.57,4.7:35.17,4.8:35.77,4.9:36.37,5.0:36.97
World Zone 1:

Code: Select all

0.1:8.00,0.15:9.00,0.2:10.00,0.25:10.13,0.3:10.69,0.4:11.91,0.5:13.13,0.6:14.35,0.7:15.57,0.8:16.79,0.9:18.01,1.0:19.23,1.1:20.42,1.2:21.67,1.3:22.89,1.4:24.11,1.5:25.33,1.6:26.55,1.7:27.77,1.8:28.99,1.9:30.21,2.0:31.43,2.1:32.65,2.2:33.87,2.3:35.09,2.4:36.31,2.5:37.53,2.6:38.75,2.7:39.97,2.8:41.19,2.9:42.41,3.0:43.63,3.1:44.22,3.2:46.07,3.3:47.29,3.4:48.51,3.5:49.73,3.6:50.95,3.7:52.17,3.8:53.39,3.9:54.61,4.0:55.83,4.1:57.05,4.2:58.27,4.3:59.49,4.4:60.71,4.5:61.93,4.6:63.15,4.7:64.37,4.8:65.59,4.9:66.81,5.0:68.03
World Zone 2

Code: Select all

0.1:8.45,0.15:9.05,0.2:9.65,0.25:10.25,0.3:10.85,0.4:12.13,0.5:13.41,0.6:14.69,0.7:15.97,0.8:17.25,0.9:18.53,1.0:19.81,1.1:21.09,1.2:22.37,1.3:23.65,1.4:24.93,1.5:26.75,1.6:27.49,1.7:28.77,1.8:30.05,1.9:31.33,2.0:32.61,2.1:33.89,2.2:35.17,2.3:36.45,2.4:37.73,2.5:39.01,2.6:40.29,2.7:41.57,2.8:42.82,2.9:44.13,3.0:45.41
I've adapted some of the code by marcemarc from http://forum.opencart.com/viewtopic.php ... or#p285144 to have a go at getting the international signed for world zone 2 working as it isn't available in the admin. Tested the code a few times and it looks like it works.

Code: Select all

// International Signed
         if ($this->config->get('royal_mail_international_signed_status')&& $address['iso_code_2'] != 'GB') {
            $cost = 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');

$worldzone2 = explode(',','AU,CX,FJ,KI,NZ,AQ,SG,TO,CC,PF,MO,PG,SB,TV,IO,CK,NR,NU,LA,AS,NC,NF,PN,TK,WS');
            
            if (in_array($address['iso_code_2'], $countries)) {
               $rates = explode(',', $this->config->get('royal_mail_international_signed_rate_1'));
            } else {
               if (in_array($address['iso_code_2'], $worldzone2)) {
                  $rates = explode(',', '0.1:8.45,0.15:9.05,0.2:9.65,0.25:10.25,0.3:10.85,0.4:12.13,0.5:13.41,0.6:14.69,0.7:15.97,0.8:17.25,0.9:18.53,1.0:19.81,1.1:21.09,1.2:22.37,1.3:23.65,1.4:24.93,1.5:26.75,1.6:27.49,1.7:28.77,1.8:30.05,1.9:31.33,2.0:32.61,2.1:33.89,2.2:35.17,2.3:36.45,2.4:37.73,2.5:39.01,2.6:40.29,2.7:41.57,2.8:42.82,2.9:44.13,3.0:45.41');
               } else {
                  $rates = explode(',', $this->config->get('royal_mail_international_signed_rate_2'));
               }
            }
Adam

New member

Posts

Joined
Sun Feb 26, 2012 2:50 am

Post by test1.0 » Tue May 08, 2012 7:39 am

well done mate, cheers.

just one thing, change 4.40 to 4.30 on first class, i will have a look to see if there is anymore but i can't see them so far

thanks alot

Active Member

Posts

Joined
Mon Mar 26, 2012 3:46 am

Post by johnp » Wed May 09, 2012 7:17 am

Can anyone provide this as a mod ready to upload please? I'll Pay for your time by Paypal.

I'm using Opencart 1.4.9.6

Many thanks.

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by L146705 » Thu May 10, 2012 3:48 am

Thanks test1.0, I've made the changes.

New member

Posts

Joined
Sun Feb 26, 2012 2:50 am

Post by losttoy » Thu May 10, 2012 5:09 pm

Thanks for this, really appreciate it :)

Newbie

Posts

Joined
Wed Oct 12, 2011 1:09 am

Post by eggman08.2008 » Thu May 10, 2012 11:49 pm

johnp wrote:Can anyone provide this as a mod ready to upload please? I'll Pay for your time by Paypal.
Same here. I will also pay for someone who can provide this mod ?& instructions. I'm on Version 1.5.1.3

Also, could someone tell me what to do with the geozones? (i have no idea. Im a complete novice)
Do i now have to change them in SYSTEM > LOCALISATION > GEO ZONES ?
And do i have to set them as follows: United Kingdom, Europe, Wold zone 1, World zone 2 ?

Please, please, help

Pass The Dutchie: Head Shop - We sell Bongs, Ashtrays, Vaporizers
lighters & more


New member

Posts

Joined
Thu Sep 15, 2011 6:30 pm

Post by Dave_S » Sun May 27, 2012 11:15 pm

Top job!...many thanks ;D

Newbie

Posts

Joined
Thu Feb 16, 2012 1:45 am

Post by Brad » Thu May 31, 2012 4:40 am

Are you sure you've calculated the recorded delivery correctly? According to the Royal Mail PDF you linked to it says the following...

Recorded Signed For
Want proof that your item was delivered but
without paying for full tracking. Then opt for
this service for items that are not especially
urgent or valuable. Items of value should be
sent using Special Delivery™
.
To calculate the price, simply add a 95p Recorded
fee to either your 1st or 2nd Class postage cost.


Your 1st Class Record prices are only adding different amounts for each weight category. Am I missing something obvious here?

Newbie

Posts

Joined
Wed Mar 23, 2011 4:48 am

Post by L146705 » Sun Jun 10, 2012 8:53 pm

Thanks Brad I've updated the prices at the top for the 1st and 2nd class recorded delivery. I don't know what went wrong.

New member

Posts

Joined
Sun Feb 26, 2012 2:50 am

Post by george347 » Thu Jun 28, 2012 4:13 am

Am I being silly because whem I select copy on the 'europe' all I get is '/2'

I REALLY need airmail and airsure but struggling. Be great if anone could help :)

New member

Posts

Joined
Sun Feb 12, 2012 11:19 pm

Post by L146705 » Sat Jun 30, 2012 8:07 pm

Try clicking on the europe box using control A keys and then control C to copy.

New member

Posts

Joined
Sun Feb 26, 2012 2:50 am
Who is online

Users browsing this forum: No registered users and 2 guests