https://www.zen-cart.com/tutorials/index.php?article=69
Cheers
Rod
ps. This thread is for discussions about the ozpost shipping module. Questions regarding zone rates have thier own thread.
https://www.zen-cart.com/tutorials/index.php?article=69
Cheers
Rod
ps. This thread is for discussions about the ozpost shipping module. Questions regarding zone rates have thier own thread.
I want to restrict overseas orders to parcels only. Within Australia choose letters and parcels. I set this OK in the Ozpost settings.
I also had the setting to "Hide parcel rates if letter sized." However this stuffed it up a bit because when it was an overseas order with something that would normally fit in a large letter it gave me no postage quote at all.
I then set it to NOT hide parcel rates if letter sized. This is OK but I get that long list of quotes when it is domestic letter size.
So what I would like to do is:
When it is an overseas order and letter sized only show parcel quotes.
When it is domestic order and letter sized only show letter quotes.
Is that possible?![]()
I was about to say that yes, this is possible, but then I've realised that it isn't. The reason being is that the 'hide parcel if letter sized' setting doesn't distinquish between overseas and domestic items.
Taking care of this could pose a few headaches because it will require changes to both the server and the client code. I WILL look into it for you though.
Cheers
Rod
It is now :)
Only problem is, the current client programs don't have the code to make it happen.
Assuming you have no desire to wait any longer than needed for this functionality here is what you'll need to do.
Load /includes/modules/shipping/ozpost.php into a text editor.
Look for the code (somewhere around line #385) that reads:
Change it to read:Code:if ((MODULE_SHIPPING_OZPOST_HIDE_PARCEL == "Yes" ) && ( MODULE_SHIPPING_OZPOST_TYPE_LETTERS != "--none--" )) $flags = $flags | 1 ;
Note: There is only one change needed... the "1" needs to be changed to an '8'Code:if ((MODULE_SHIPPING_OZPOST_HIDE_PARCEL == "Yes" ) && ( MODULE_SHIPPING_OZPOST_TYPE_LETTERS != "--none--" )) $flags = $flags | 8 ;
Resave the file.
This will have the effect of hiding parcel rates if letter sized and domestic delivery.
Alternatively, changing the '1' to a '16' will have the effect of hiding parcel rates if letter sized and overseas delivery.
The setting of '1' continues to signify that all parcel rates should be hidden if the item is considered letter sized, regardless of the destination.
I'll be adding an admin setting for this in the next update.
Cheers
Rod
Thanks Rod
That change did the trick!
Robyn
Hi Folks,
Just released 7th Feb 2012 the latest ozpost shipping module V3.2.0.
Changes:
bugfix: Prepacked items not being re-orientated
New feature: Added Click N Send CSV exports
bugfix: A5 Satchel size was invalid
Added: TARE Dimensions
Improved pre-packing code
New Methods: Ebay Flat Rate Satchels & Boxes
For those using the auto-updates please be advised that the upgrade will *not* include the new icons for the Ebay type packaging. These icons can be extracted from the distribution .zip file if you need them (they aren't very good, I'm sure most of you can do better). Creating graphics is not my strong point and I'd rather spend time with functional coding rather than creating pretty pictures
Please don't hesitate to report any bugs of other issues.
Thanks
Rod
Hi Rod
I am having an odd problem, infact its one i had before and you talked me through a solution, it was a minor bug I think, but it seems to have recurred at some stage.
Basically if I go to the shipping page and i have a New Zealand address (probably all non-aus countries too) the fonts are huge 2-3 times there normal size, i have a feeling last time it was related to the yellow error message at the top
SEA : The service Sea Mail for NEW ZEALAND does not accept parcels over 20kg
I just can't remember what the solution was, i can't find it in this thread. any ideas.
I noticed it this morning, (note I havent used the site since June)
i went to look at the ozpost settings and it updated itself, but that didn't fix the issue
Heres the update script if that helps?
I am sure it was just a simple setting, but blowed if I can remember.Ozpost module upgrade available V3.2.0
$Id: ozpost.php,v3.1.3 Oct 2011
bugfix: Stripped some characters from storenames to prevent mod_security issues
bugfix: Fixed issue where o/seas quotes were occasionally failing to show.
The ozpost shipping module has been updated. Please check your settings.
Your previously installed module has been saved as ozpost3.1.3
Your previously installed template has been saved as tpl_modules_shipping_estimator_old
../includes/templates/silverfish/templates/tpl_modules_shipping_estimator.php has been updated
The ozpost database has been updated. Please CHECK YOUR SETTINGS.
It doesn't effect the functionality of the site, and it only effects the shipping page, but it does look weird
Webzings Design
Semi retired from Web Design
aargh
and for those of you with normal eyesight that message should read
SEA : The service Sea Mail for NEW ZEALAND does not accept parcels over 20kg
Sorry people, I normally make things red for emphasis but i had yellow in my head, and as they tell me "Men can't multitask", I have an excuse
Webzings Design
Semi retired from Web Design
Hello
I am after a very similar solution to you Grandpa_shea, however I am not using any modules as such I just want to offer free Australia wide regular postage however charge a flat rate for international shoppers?
Bookmarks