Zen Cart Logo
Forums / Addon Shipping Modules / ozpost shipping module

ozpost shipping module

Views: 403,065

Results 1,681 to 1,700 of 2,251
4 Feb 2012, 4:03 AM
#1681
robbie269 avatar

robbie269

Zen Follower

Join Date:
Feb 2010
Location:
New South Wales, Australia
Posts:
228
Plugin Contributions:
0

ozpost shipping module

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?:unsure:

4 Feb 2012, 6:32 AM
#1682
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

robbie269:

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?:unsure:

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

4 Feb 2012, 1:00 PM
#1683
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

robbie269:

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?:unsure:

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:

  if ((MODULE_SHIPPING_OZPOST_HIDE_PARCEL  == "Yes" ) && ( MODULE_SHIPPING_OZPOST_TYPE_LETTERS != "--none--" ))  $flags = $flags | 1 ; 

Change it to read:

  if ((MODULE_SHIPPING_OZPOST_HIDE_PARCEL  == "Yes" ) && (  MODULE_SHIPPING_OZPOST_TYPE_LETTERS != "--none--" ))  $flags = $flags | 8  ; 

Note: There is only one change needed... the "1" needs to be changed to an '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

5 Feb 2012, 12:44 AM
#1684
robbie269 avatar

robbie269

Zen Follower

Join Date:
Feb 2010
Location:
New South Wales, Australia
Posts:
228
Plugin Contributions:
0

Re: ozpost shipping module

Thanks Rod

That change did the trick!

Robyn

5 Feb 2012, 7:05 AM
#1685
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

robbie269:

Thanks Rod

That change did the trick!

Robyn

Thanks for the feedback. I always enjoy being able to help ozpost supporters with their special requirements (where possible). :smile:

Cheers
Rod

7 Feb 2012, 12:58 PM
#1686
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

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 :smile:

Please don't hesitate to report any bugs of other issues.

Thanks
Rod

8 Feb 2012, 8:04 PM
#1687
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: ozpost shipping module

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?

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.

I am sure it was just a simple setting, but blowed if I can remember.

It doesn't effect the functionality of the site, and it only effects the shipping page, but it does look weird

8 Feb 2012, 8:18 PM
#1688
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: ozpost shipping module

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

9 Feb 2012, 1:18 AM
#1689
penfifteenclub avatar

penfifteenclub

New Zenner

Join Date:
Jan 2012
Posts:
10
Plugin Contributions:
0

Re: ozpost shipping module

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?

9 Feb 2012, 5:15 AM
#1690
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

nigelt74:

I just can't remember what the solution was

Set "Show error messages" to "No".

Cheers
Rod

9 Feb 2012, 5:34 AM
#1691
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: ozpost shipping module

RodG:

Set "Show error messages" to "No".

Cheers
Rod

Thanks Rod, that was it.

Not sure how it turned itself back on, but sorted now

20 Mar 2012, 8:51 AM
#1692
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: ozpost shipping module

Hi Rod, Can you confirm that automatic updates only replace the ‘includes’ and ‘image’ folder files and not the ‘admin’ files (update_product.php / collect_info.php); as replacing admin files is not needed and is not good for older versions of zencart. Thanks.

20 Mar 2012, 1:00 PM
#1693
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

vandiermen:

Hi Rod, Can you confirm that automatic updates only replace the ‘includes’ and ‘image’ folder files and not the ‘admin’ files (update_product.php / collect_info.php); as replacing admin files is not needed and is not good for older versions of zencart. Thanks.

Consider it confirmed.... Well. mostly confirmed. The stuff in the /images/ folder are not replaced either.

Cheers
Rod

21 Mar 2012, 7:25 AM
#1694
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

vandiermen:

Hi Rod, Can you confirm that automatic updates only replace the ‘includes’ and ‘image’ folder files and not the ‘admin’ files (update_product.php / collect_info.php); as replacing admin files is not needed and is not good for older versions of zencart. Thanks.

I should mention that V3.2.0 creates/deletes/maintains:
DIR_FS_ADMIN . DIR_WS_INCLUDES . "functions/extra_functions/init_clicknsend_dhtml.php" (V1.5.x only)
DIR_FS_ADMIN . DIR_WS_INCLUDES . "boxes/extra_boxes/clicknsend_customers_dhtml.php" (pre - V1.5.0 only)
DIR_FS_ADMIN . DIR_WS_INCLUDES . "extra_datafiles/clicknsend.php"
DIR_FS_ADMIN . "clicknsend.php"

If these are causing a problem please let me know.

Cheers
Rod

17 May 2012, 10:17 PM
#1695
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: ozpost shipping module

can you please test this item for me with ozpost
http://www.primealternatives.com.au/cart/prime-deluxe-beauty-spa-bed-p-172.html
Attachment 10494

====================

Attachment 10495

Problem is that it should be showing TNT quote.

Also I just turned on ozpost automatic updates and system has updated but before I did that I got:

error front end
Temporary Quote Error. Static rates currently apply (or try again later).
Server#1 Error: couldn't connect to host
Server#2 Error: name lookup timed out
Server#0 Error: name lookup timed out:

error backend
cURL communication ERROR: couldn't connect to host
cURL communication ERROR: name lookup timed out
cURL communication ERROR: name lookup timed out
Unable to connect to Ozpost servers

System is set to KGs

Item:

Attachment 10495

Zen Cart 1.5.0
HTTP Server: Apache
PHP Version: 5.3.10

cURL support enabled
cURL Information 7.24.0

Did update to Charset UTF-8 today https://www.numinix.com/blog/2011/08/01/changing-the-charset-in-zen-cart-1-3-9-to-utf-8/

v1.5.0 [2012-05-01 19:58:15] (Version Update 1.3.9->1.5.0)
v1.3.9h
[2012-05-01 19:58:15] (Version Update 1.3.8->1.3.9h)
v1.3.8
[2008-10-25 22:39:57] (Version Update 1.3.7->1.3.8)
v1.3.7
[2007-06-20 21:55:59] (Fresh Installation)

18 May 2012, 8:04 AM
#1696
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

The TNT problem was my doing <blush>.

A bit of code (unrelated to what I was working on) had an accidental change (which has since been fixed).

I'm not quite sure what to make of these though:

Server#1 Error: couldn't connect to host
Server#2 Error: name lookup timed out
Server#0 Error: name lookup timed out:

It is/was obviously(?) a DNS issue, that hopefully has rectified itself.

The server logs don't indicate that there was any sort of 'global' problem.

Please let me know if the problem persists.

Cheers
Rod

18 May 2012, 1:50 PM
#1697
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: ozpost shipping module

I am just glad it's fixed. other problem rectified itself. Thank you :smile:

17 Jun 2012, 5:53 AM
#1698
robbie269 avatar

robbie269

Zen Follower

Join Date:
Feb 2010
Location:
New South Wales, Australia
Posts:
228
Plugin Contributions:
0

Re: ozpost shipping module

Just went into OzPost and it did the automatic update. Now in admin the screen is blank when going into my products. In the cache myDEBUG says: "[17-Jun-2012 15:24:24] PHP Warning: require(includes/modules/product/collect_info.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/ani48156/public_html/store/horstall/product.php on line 138
[17-Jun-2012 15:24:24] PHP Warning: require(includes/modules/product/collect_info.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/ani48156/public_html/store/horstall/product.php on line 138
[17-Jun-2012 15:24:24] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/modules/product/collect_info.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ani48156/public_html/store/horstall/product.php on line 138"
Copied a backup of collect_info.php back and the data is now there but the language file is not being accessed properly for all the headings.
I know it is because of the OZ-Post update because I went into my test site's admin, looked at my products and all was OK. Did the OzPost update and now I get the blank page like the live site.

Any Ideas??

Robyn

17 Jun 2012, 6:09 AM
#1699
robbie269 avatar

robbie269

Zen Follower

Join Date:
Feb 2010
Location:
New South Wales, Australia
Posts:
228
Plugin Contributions:
0

Re: ozpost shipping module

OK fixed the language problem too. product.php in the languages/english folder was product.php_restore. Same with the collect_info.php file.
Was this something the Ozpost update did?

Robyn

17 Jun 2012, 6:31 AM
#1700
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

robbie269:

OK fixed the language problem too. product.php in the languages/english folder was product.php_restore. Same with the collect_info.php file.
Was this something the Ozpost update did?

Robyn

Yes, the latest ozpost code makes a copy of the files it needs to modify before doing any modifications. These have the "_restore" extension.

There are three files in total. the two you've mentioned, and another called 'update_product.php' located in the /admin/includes/modules/ folder.

I'll provide more details in my next response/

Cheers
Rod