Re: New Royal Mail Modules
Honest answer: I don't know.
I'm having a look at it now, but it's going to take a bit of time to recreate your exact set up since you must have something like the UK template installed with the zone UKVAT, that I do not, so that may be creating some conflict. I will do my best to get back to you this evening
Thank you
Philip.
Re: New Royal Mail Modules
Okay, I can sort of see what you mean at the moment, I can recreate the 0 Kg display on my system with a free shipping item, which is obviously wrong, but I am still getting a valid shipping rate for non defined zones. e.g. what I have done is set the free shipper module to mainland UK for the time being, and for the item I have chosen it functions, if I choose an address outside of UK I get a valid Airmail rate, so I think the problem more lies in the area of how you have your free shipping and zones defined. What I would suggest is setting up a zone yourself for one country like Belgium, setting your free shipping item to that zone and seeing if it pops up.
On my set up I can certainly see something going wrong with the module freeshipper (as opposed to freeoptions which I haven't tested) since when I set it to just mainland UK and then explicitly choose somewhere in northern ireland, it shouldn't offer freeshipping yet it does, so I too have something to investigate now.
Thank you
Philip.
Re: New Royal Mail Modules
Hi Philip,
Quote:
Originally Posted by
bouncingltd
Okay, I can sort of see what you mean at the moment,
Thank you for looking into this.
I have installed the UK templates which I think is where the UKVAT setting comes from. I choose UKVAT because I wanted to give free shipping to the UK including Northern Ireland.
I've been reading and reading but I'm still not clear how the different countries and zones link together to arrive at a final cost :cry:
Anyway, the item weighs 0.4kg.
When I remove the free shipping, the item shipping weight is .42kg which is fine. I get :
- Standard Parcels
- Standard Parcels (to £100) - item is £40.
- Collect
- Courier Shipping (UKZR)
When I put the item on Always free shipping, I get :
- Free Shipping
- Standard Parcels
- Standard Parcels (to £100) - item is £40.
- Collect
The Courier Shipping option disappears :unsure: I've tried changing the location for delivery to :
United Kingdom - Berkshire
England - Berkshire
All the weights are 0.015kg
I've set freeshipper to UKZR: Zone 1 Mainland UK, which I think is what you are basing thing on.
When I change the address to US, I get a weight of 0.015kg with
- Royal Mail International Signed For® "Small Packet" Extra insurance
- Collect
The shipping options are what I expect but the shipping weight to the US is not expected.
Are there any other options you would like me to test?
Thanks
Alan
Re: New Royal Mail Modules
Philip,
I just discovered your RM mod and am so pleased with it - it's all I ever hoped would become available - and that all the correct values have been put in for me is just great!
However, I can only install 5 Royal Mail options before hitting a problem: (I also have free options and free shipper installed to cope with virtual items)
Quote:
Warning: Variable passed to each() is not an array or object in /home/user/public_html/includes/classes/db/mysql/query_factory.php on line 114
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/user/public_html/includes/classes/db/mysql/query_factory.php:114) in /home/user/public_html/includes/functions/sessions.php on line 102
Warning: Cannot modify header information - headers already sent by (output started at /home/user/public_html/includes/classes/db/mysql/query_factory.php:114) in /home/user/public_html/includes/init_includes/init_templates.php on line 78
I cannot currently install Royal Mail Airmail at all - even if I remove a further option. I have tried to re-configure as suggested in an earlier thread but it doesn't seem to have done the trick for me.
The RM Options I have installed (and working well are: 1st letter/1st lge letter/ 1st packet/2nd lge letter/2nd packet)
As soon as I add 2nd letter I get the above error and if I add Airmail packet I get the following error:
Quote:
Warning: Variable passed to each() is not an array or object in /home/user/public_html/includes/classes/db/mysql/query_factory.php on line 114
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/user/public_html/includes/classes/db/mysql/query_factory.php:114) in /home/user/public_html/includes/functions/sessions.php on line 102
Warning: Cannot modify header information - headers already sent by (output started at /home/user/public_html/includes/classes/db/mysql/query_factory.php:114) in /home/user/public_html/includes/init_includes/init_templates.php on line 78
Warning: reset() [function.reset]: Passed variable is not an array or object in /home/user/public_html/includes/classes/order_total.php on line 143
Warning: Variable passed to each() is not an array or object in /home/user/public_html/includes/classes/order_total.php on line 144
Warning: reset() [function.reset]: Passed variable is not an array or object in /home/user/public_html/includes/classes/order_total.php on line 163
Warning: Variable passed to each() is not an array or object in /home/user/public_html/includes/classes/order_total.php on line 165
I will do some further investigating to find out what other combinations will be accepted but it's getting very late tonight so I thought I'd post to see if anyone had a quick fix!
PS - running version 1.5 on Zen cart version 1.3.5
Thanks
Bryony
Re: New Royal Mail Modules
I agree entirely with your diagnosis as I've been able to recreate this almost identically, looks like there are two bugs.
a) the weights go screwy - which is probably something I can fix but its more likely in the shipping estimator / checkout zen cart core code rather than the modules, in my case the weights just drop out to zero on a 0.4 package
b) ukzr does indeed disappear and this I will be able to fix although I'm not quite sure why a free shipment offer should actually show any other options.
This is a puzzle though, this little lot is almost certainly in someway to do with core code because I think I remember seeing that if free shipping is enabled, everything else should disappear so I may have incorrectly done something with a template. No idea on the timescale at the moment as I do not know how deep this goes.
Thank you
Philip.
Re: New Royal Mail Modules
Could you upgrade to the version 2.0-beta here please ?
http://bouncing.org/big_royalmail_v2.0-beta-2.zip
You may be working with a corrupted version, this thread has gone on for so long, it's a bit confusing, but one zipped file had filesystem corruption issues. The good thing about version 2.0 upwards is that if you have started putting in handling fees etc... it won't wipe them out when you do a remove and install. I've been running all 18 royal mail services on ZC 1.3.5 and another tester has sucessfully run them all at once, so it's probably best to rule out file corruption.
OH and please report back if it does work, because otherwise I'll worry.
Philip.
Re: New Royal Mail Modules
Hi Philip,
Thank you for looking into this.
Quote:
Originally Posted by bouncingltd
a) the weights go screwy - which is probably something I can fix but its more likely in the shipping estimator / checkout zen cart core code rather than the modules, in my case the weights just drop out to zero on a 0.4 package
I can understand why the weight is 0 - IF you have items requiring postage then the free shipping items weight should not get added to the items requiring postage, so the free shipping items weight should stay at 0.
However it looks like when the items is outside of the free shipping zone, the weight is still being counted as 0 for calculation purposes by the shipping modules. Does the postage module check free shipping and set to 0? Does it also check if free shipping qualifies for the delivery zone before setting it to zero?
Quote:
Originally Posted by bouncingltd
b) ukzr does indeed disappear and this I will be able to fix although I'm not quite sure why a free shipment offer should actually show any other options.
... I think I remember seeing that if free shipping is enabled, everything else should disappear ...
Ah ... that makes sense. In that case, it looks like the standard parcel modules are not obeying that disappearing rule :smile:
Great job by the way :thumbsup:
Thanks
Alan
Re: New Royal Mail Modules
Okay the free shipping "bug" is not an issue that I can really take responsibility for. If an item is set to be a "free shipper" the shopping cart class knocks the weight off entirely. Then if a non-free-shipping item is added it only adds the weight of the non-free item so that the postage modules should then calculate the weight based on the non-free item alone. This is zen cart core code, which isn't something I can modify. The disappearing ukzr module re-appears if a non-free item is added, which is probably the way that all of my modules should do, which means I have a lot of work in store. ukzr is based on mzmt and the original developer I believe is now a core ZC coder, so I think it's probably correct that the courier options disappear when all items in the shopping cart are free, although having said that the issue that I can see arising is, say one offers a free shipping service for an item, and also a priority service, for me this would be "send a lens cap out" 2nd class for free but someone could pay for first class if they wanted to. This facility doesn't exist in zen cart since the bundled free shipping module should disable any other shipping options (except mine don't disable as of yet with the exception of ukzr).
Now all that I can do is disable the modules if the shopping cart only has free shipping items in it. I can also put a flag in that states "enable this module" even if all the items in the cart are free shipping. BUT the weight of the cart is going to be displayed wrong without some major coding, because of the way that zencart knocks off the weight of free shipping items, I'll have to retotal the things up again.
Obviously this is rather a lot of work so I'd prefer a little discussion before deciding what finally to do. It does appear though that the beta is stable, since at least some people are getting results, which is a plus point, although I still have yet to finish the installation instructions and the re-writing of the credits for the contributors, sorry guys.
Re: New Royal Mail Modules
Hi,
Quote:
Originally Posted by
bouncingltd
BUT the weight of the cart is going to be displayed wrong without some major coding, because of the way that zencart knocks off the weight of free shipping items, I'll have to retotal the things up again.
This looks like a bug in the core code because at the moment, it looks like the freeshipper doesn't keep the weight for items not in a valid shipping area. I'll try to confirm this in the shipping section first.
Best regards
Alan
Re: New Royal Mail Modules v2.0
Version 2.0 is now available for download from here
http://bouncing.org/big_royalmail_v2.0.zip
and shortly from the download area. Only slight sort ordering changes visible externally from the beta versions, plus more people have been duly credited for their contributions.
Version 2.1 will be a minor upgrade to disable each module is only free shipping items exist in the shopping cart.
Thank you
Philip.