Zen Cart Logo
Forums / Addon Shipping Modules / [Old] Royal Mail Modules

[Old] Royal Mail Modules

Locked

Views: 220,580

Results 161 to 180 of 936
This thread is locked. New replies are disabled.
27 Oct 2006, 16:56
#161
firehorse avatar

firehorse

Zen Follower

Join Date:
Oct 2004
Posts:
98
Plugin Contributions:
0

[Old] Royal Mail Modules

Hi,> bouncingltd:

Yes that would be the area that I found previously, the quick fix is just to turn off the showing of the shipping weights.But that doesn't sort out the weight used for calculating postage :(

I'm going to have to turn off all international postage until this gets sorted out.

Good luck with your own site.

Best regards
Alan

27 Oct 2006, 18:51
#162
bouncingltd avatar

bouncingltd

Suspended

Join Date:
Aug 2006
Posts:
127
Plugin Contributions:
0

Re: [Old] Royal Mail Modules

firehorse:

Hi,But that doesn't sort out the weight used for calculating postage :(

I'm going to have to turn off all international postage until this gets sorted out.

or you could not offer free options ! I've just sold my first lens caps to Denmark from the site which isn't live yet, I'd turned off the security for exactly 16 hours to do some paypal testing, and so the site is already "launched" but I won't be actively promoting it until next week, so I may have some time.

27 Oct 2006, 19:26
#163
firehorse avatar

firehorse

Zen Follower

Join Date:
Oct 2004
Posts:
98
Plugin Contributions:
0

Re: [Old] Royal Mail Modules

Hi,> bouncingltd:

I've just sold my first lens caps to Denmark from the site which isn't live yet,Way to go! :thumbsup:

Best regards
Alan

28 Oct 2006, 18:55
#164
bouncingltd avatar

bouncingltd

Suspended

Join Date:
Aug 2006
Posts:
127
Plugin Contributions:
0

Re: [Old] Royal Mail Modules

This is just to confirm that big_royalmail_v2.0 works on Zencart 1.3.5 and the 1.3.6 updated version.

10 Nov 2006, 12:04
#165
jsr avatar

jsr

New Zenner

Join Date:
Oct 2006
Posts:
7
Plugin Contributions:
0

Re: [Old] Royal Mail Modules

Bit of a newbie here, so I apologise if this issue's been raised before (I couldn't find it on a search). I've only been using zencart for a couple of weeks but, together with this Royal Mail Shipping Module, it's been great despite the learning curve.

The problem I have is with the Standard Parcels bit of this module. It works fine until you get to a weight that's over 6Kg - then it won't offer Standard Parcels as an option.

I've trawled through the code and think I've figured out where the problem is - well, I think I know how to solve it.

The shipping rates are listed at:

1:3.85
1.5:4.95
2:5.31
4:4.70
6:8.74
8:9.97
10:10.70
20:12.46

It seems to me that the code only looks at the first 5 weights (1, 1.5, 2, 4 and 6kg) and not the other three (8, 10, and 20kg). That's if I'm reading the code correctly. For example, rmstdparcels100.php shows:

$zones_cost = constant('MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST0_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST1_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST2_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST3_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST4_' . $dest_zone);

but in the SQL database there are

MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST0_1
MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST1_1
MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST2_1
MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST3_1
MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST4_1
MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST5_1
MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST6_1
MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST7_1

This applies equally to the other Std Parcels modules. It seems to me that adding the other three (ZONES_COST5, ZONES_COST6, and ZONES_COST7) into the code would fix it but, being a bit green at this, I don't want to fiddle with the code. The easiest solution is to put multiple values in the first five boxes and leave the remaining three empty, i.e.:

1:3.85, 1.5:4.95, 2:5.31
4:7.70, 6:8.74, 8:9.97
10:10.70
20:12.46
(other boxes left blank)

Now the shipping estimator show shipping prices for weights over 6Kg.

Hope this helps someone.
JSR

10 Nov 2006, 12:08
#166
bouncingltd avatar

bouncingltd

Suspended

Join Date:
Aug 2006
Posts:
127
Plugin Contributions:
0

Re: [Old] Royal Mail Modules

At first glance it looks like you are perfectly correct so I wouldn't call you a newbie, I have another release coming up very soon with a few minor bug fixes and an improvement to the courier shipping, so I'll have a look but I'm in and out of hospital at the moment, so I reckon probably Monday for a permanent fix.

11 Nov 2006, 01:10
#167
pixxi avatar

pixxi

Totally Zenned

Join Date:
Jan 2004
Location:
UK
Posts:
1,065
Plugin Contributions:
1

Re: [Old] Royal Mail Modules

@JSR:

Oops! - well spotted, you're absolutely right.

And that's my fault rather than Philip's - I must have sent him the half-done files instead of the completed ones (the ones I have installed work fine) :blush:

The changes are as you suggested:

In rmstdparcels:

Around line 107 you need to have:

        $zones_cost = constant('MODULE_SHIPPING_RMSTDPARCELS_ZONES_COST0_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS_ZONES_COST1_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS_ZONES_COST2_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS_ZONES_COST3_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS_ZONES_COST4_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS_ZONES_COST5_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS_ZONES_COST6_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS_ZONES_COST7_' . $dest_zone);

and around line 169 you need to have:

        $zones_cost = constant('MODULE_SHIPPING_RMSTDPARCELS_ZONES_COST0_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS_ZONES_COST1_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS_ZONES_COST2_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS_ZONES_COST3_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS_ZONES_COST4_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS_ZONES_COST5_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS_ZONES_COST6_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS_ZONES_COST7_' . $dest_zone);

In rmstdparcels100:

Around line 107 you need this:

        $zones_cost = constant('MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST0_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST1_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST2_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST3_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST4_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST5_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST6_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST7_' . $dest_zone);

and around line 169:

        $zones_cost = constant('MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST0_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST1_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST2_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST3_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST4_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST5_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST6_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST7_' . $dest_zone);

In rmstdparcels250:

Around line 107:

        $zones_cost = constant('MODULE_SHIPPING_RMSTDPARCELS250_ZONES_COST0_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS250_ZONES_COST1_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS250_ZONES_COST2_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS250_ZONES_COST3_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS250_ZONES_COST4_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS250_ZONES_COST5_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS250_ZONES_COST6_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS250_ZONES_COST7_' . $dest_zone);

And around line 169:

        $zones_cost = constant('MODULE_SHIPPING_RMSTDPARCELS250_ZONES_COST0_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS250_ZONES_COST1_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS250_ZONES_COST2_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS250_ZONES_COST3_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS250_ZONES_COST4_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS250_ZONES_COST5_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS250_ZONES_COST6_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS250_ZONES_COST7_' . $dest_zone);

In rmstdparcels500:

Around line 107:

        $zones_cost = constant('MODULE_SHIPPING_RMSTDPARCELS500_ZONES_COST0_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS500_ZONES_COST1_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS500_ZONES_COST2_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS500_ZONES_COST3_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS500_ZONES_COST4_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS500_ZONES_COST5_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS500_ZONES_COST6_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS500_ZONES_COST7_' . $dest_zone);

And around line 169:

        $zones_cost = constant('MODULE_SHIPPING_RMSTDPARCELS500_ZONES_COST0_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS500_ZONES_COST1_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS500_ZONES_COST2_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS500_ZONES_COST3_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS500_ZONES_COST4_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS500_ZONES_COST5_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS500_ZONES_COST6_' . $dest_zone)
          . ',' . constant('MODULE_SHIPPING_RMSTDPARCELS500_ZONES_COST7_' . $dest_zone);

Hopefully that should be right (now) - my apologies Philip. :smile:

13 Nov 2006, 00:27
#168
jsr avatar

jsr

New Zenner

Join Date:
Oct 2006
Posts:
7
Plugin Contributions:
0

Re: [Old] Royal Mail Modules

Pixxi:

@JSR:

Oops! - well spotted, you're absolutely right.

And that's my fault rather than Philip's - I must have sent him the half-done files instead of the completed ones (the ones I have installed work fine) :blush:
I'm just glad I was able to help.

I was tempted to just post the question when I first noticed it but I figured it'd be far more helpful if I could find the solution myself. After all, you and Philip (and whoever else) have done so much great work on this module already. It's good to be able offer a solution instead of just another problem.

If I run into anything else, you'll be the first to know! :D

Regards.
JSR

14 Nov 2006, 00:33
#169
bouncingltd avatar

bouncingltd

Suspended

Join Date:
Aug 2006
Posts:
127
Plugin Contributions:
0

Re: [Old] Royal Mail Modules

The latest version with JSR's modifications and an improvement to the UK courier shipping module has been submitted and should shortly be available from the downloads section, but as normal it is also released here:

http://bouncing.org/big_royalmail_v2.1.zip

Thank you for spotting that JSR and this thread has temporarily stopped sending me notifications of new messages, so thanks Pixxi, I did exactly the same as you.

20 Nov 2006, 20:52
#170
pcmt avatar

pcmt

New Zenner

Join Date:
Jun 2006
Location:
Manchester UK
Posts:
59
Plugin Contributions:
0

Re: [Old] Royal Mail Modules

I'd like to congratulate the author and other contributors for this excellent module. I'm in the UK and wanted a regional split to reflect courier rates. This does it. A big thanks.

One thing I've noticed, though (on a test site), is that when someone registers, the drop down menu lists shows each county twice, and I think I see why in the optional county install sql file. All the UK counties are entered, and then entered again for the regional splits.

Is there a particular reason for this? Is there a way I can take out those duplications? (Arran actually appears four times in the drop down).

Patrick

20 Nov 2006, 21:04
#171
bouncingltd avatar

bouncingltd

Suspended

Join Date:
Aug 2006
Posts:
127
Plugin Contributions:
0

Re: [Old] Royal Mail Modules

Ahh, now the problem with that is that maybe the instructions weren't totally clear, you should only have installed the SQL if you didn't already have any of the regions defined, so at some point you must have. Now you'd have to remove them all which is a bit tricky, what I can probably do is write a SQL patch to uninstall all of the zones my sql puts in and any duplicates, and then you can re-install the patch if necessary.

I'll be back later.

20 Nov 2006, 21:12
#172
pcmt avatar

pcmt

New Zenner

Join Date:
Jun 2006
Location:
Manchester UK
Posts:
59
Plugin Contributions:
0

Re: [Old] Royal Mail Modules

Thanks for that. But I didn't have any of those zones defined previously. I think it's the optional sql file that comes with Big Royal Mail - it inserts each county once for the Region (eg Wales) and then once again for the whole UK.

Patrick

20 Nov 2006, 22:56
#173
bouncingltd avatar

bouncingltd

Suspended

Join Date:
Aug 2006
Posts:
127
Plugin Contributions:
0

Re: [Old] Royal Mail Modules

pcmt:

Is there a particular reason for this? Is there a way I can take out those duplications? (Arran actually appears four times in the drop down).

Patrick

Hmm, well if Arran appears fours times it's not from my sql because I only have it in there twice, unless it's been processed twice by zen-cart when it was installed. now I have "Bute (islands of Arran and Bute)" in my zones file five times, yet it never appears because they are not linked to a valid county (I did a lot of installing while testing this and this is on my live server of all things). What I suggest is that you do this:

select * from ZONES where locate('Arran', zone_name);

this will give you some countries_id so then you go:

select * from countries where countries_id in (311, 293, 320, 329, 302);

to check if the countries are valid, the select on box on my live server actually doesn't display Arran in anything other than United Kingdom, because I've cocked up and forgotten to put it into Scotland. This is when I am not logged in, at http://Lenscaps.eu when one is logged in, it takes one's address so doesn't do the estimate thing, although if I specify different address it doesn't give me a drop down at all. Though it does reject if I put in Middx as a county and then offers me a drop down, once again with no duplicates. I suspect that something went wrong when the SQL patch was installed more than anything.

20 Nov 2006, 23:26
#174
pcmt avatar

pcmt

New Zenner

Join Date:
Jun 2006
Location:
Manchester UK
Posts:
59
Plugin Contributions:
0

Re: [Old] Royal Mail Modules

I think the duplicate entries in the registration counties drop down are because the sql file in the Big Royal Mail download inserts the counties both as UK counties and as UK Regions counties (can't see anywhere why Arran should appear 4 times).

(BTW I installed Big Royal Mail on a brand new Zen Cart install today, and none of those counties would have been present).

Is there a need for both UK counties and UK Regions counties? Can the UK counties be deleted from the database, leaving only the Regions counties?

Thanks for the sql tips - a bit beyond me though.

Patrick

21 Nov 2006, 00:13
#175
bouncingltd avatar

bouncingltd

Suspended

Join Date:
Aug 2006
Posts:
127
Plugin Contributions:
0

Re: [Old] Royal Mail Modules

The set up for the xones works like this. Select "United Kingdom" and attach the regions to it in case the user chooses that they live there rather than in England, Scotland etc.... then Select England and attach the English regions, Select scotland and attach the scottish regions. So they need to be attached twice, once to the UK as a whole, once to the subset of regions. I strongly suspect that your SQL file was processed twice by zen cart for some unknown reason. I suspect this because you said that you have the regions twice in the select box, but Arran four times, and since it's only twice in my sql.... Put an item in your cart, select England and click update. You should have "Avon, Bedfordshire, Berkshire" in the "state" drop down list, if they appear more than once then the sql file was processed twice, if you have non-English counties then the file has gone wrong someone where and attached the regions to the wrong zones.

21 Nov 2006, 10:45
#176
pcmt avatar

pcmt

New Zenner

Join Date:
Jun 2006
Location:
Manchester UK
Posts:
59
Plugin Contributions:
0

Re: [Old] Royal Mail Modules

Thanks for that. My sql command (in phpMyAdmin) must have run twice. In Zen Cart Admin Zones I do see the duplicates. Can I simply go through each and delete the duplicates?

Patrick

21 Nov 2006, 12:25
#177
bouncingltd avatar

bouncingltd

Suspended

Join Date:
Aug 2006
Posts:
127
Plugin Contributions:
0

Re: [Old] Royal Mail Modules

Hmm, yes I believe so, but it's a little time consuming, you could use phpMyAdmin to speed things up. Each region should be attached to a country, as the United Kingdom is set up as country 222 by default in ZC, you could issue a statement

DELETE FROM zones WHERE zone_country_id = 222

then you need to find the country id's for Northern Ireland, Scotland, England, and Wales by

SELECT countries_id, countries_name FROM countries WHERE countries_name IN ('Northern Ireland', 'Wales', 'Scotland', 'England', 'ROI Republic of Ireland', 'Isle Of Man', 'Channel Islands');

and then issue the DELETE statement above with the country id's then issue this statement

DELETE FROM countries WHERE countries_name IN ('Northern Ireland', 'Wales', 'England', 'Scotland', 'Isle of Man', 'Channel Islands', 'Kosovo', 'Montenegro', 'Serbia');

DELETE FROM address_format
WHERE address_format = '$firstname $lastname$cr$streets$cr$city$cr$state$cr$postcode$cr$country' ;

this should get you back to a normal ZC default installation, you could run the install sql again. This way is cleaner in it's removal of the zones, BUT it is obviously a little more dangerous.

Sorry it's so long winded but this is a little larger than what a normal person would be involved in, and probably is in the realms of paying someone lots of money, hey that's an idea, do it and then pay me loads !

21 Nov 2006, 13:10
#178
pcmt avatar

pcmt

New Zenner

Join Date:
Jun 2006
Location:
Manchester UK
Posts:
59
Plugin Contributions:
0

Re: [Old] Royal Mail Modules

Thanks again. I went ahead and deleted all the duplicates.

I know what happened here. Using the "JollyJim" sql file that comes with the download I'd added the zen_ prefix to all the mysql commands, as my tables all have that prefix. However, I'd missed a couple first time round, and mysql threw up an error. I fixed the error and ran it again not realising that some data had been already been entered.

In case anyone else encounters this, it might be useful to include an sql file in the download that has the zen_ table prefix added where required.

One other small point: shouldn't "Lotian" be "Lothian"?

Excellent modules though.

Best regards,

Patrick

21 Nov 2006, 15:38
#179
pcmt avatar

pcmt

New Zenner

Join Date:
Jun 2006
Location:
Manchester UK
Posts:
59
Plugin Contributions:
0

Re: [Old] Royal Mail Modules

Found it: ukzr_optional_county_install-0.0.1.sql line 258 - Arran is given a zone_country_id of 222. That's why Arran was appearing too often (nothing against Arran). See Inverness also.

Patrick

26 Nov 2006, 13:08
#180
arrse avatar

arrse

New Zenner

Join Date:
Nov 2006
Posts:
42
Plugin Contributions:
0

Re: [Old] Royal Mail Modules

Firstly, a massive thanks to everyone involved in the creation of this fantastic module.

I've been using the UKZR option to create additional zones for international parcelforce. I think it might be worth adding a section to the instructions to make it explicit that you need to add items to the language file for additional zones, i.e you need to create includes/languages/english/modules/shipping/YOUR_THEME/ukzr.php and add the following lines for each additional zone (n) as appropriate:

define('MODULE_SHIPPING_UKZR_GEOZONE_n_TEXT_TITLE', 'Courier Shipping');
define('MODULE_SHIPPING_UKZR_GEOZONE_n_ICON', 'shipping_parcelforce.gif');
define('MODULE_SHIPPING_UKZR_GEOZONE_n_TABLE_1_TEXT_WAY', 'Parcelforce International Zone n');
define('MODULE_SHIPPING_UKZR_GEOZONE_n_MODE', 'weight');