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

ozpost shipping module

Views: 403,047

Results 1,921 to 1,940 of 2,251
12 Oct 2013, 11:27 AM
#1921
robbie269 avatar

robbie269

Zen Follower

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

ozpost shipping module

RodG:

I haven't tried, but I'm wondering if adding

$order = new stdClass();

To line#46 or thereabouts would take the place of all of the other additions (as well as any others not yet identified)

Cheers
Rod

OK I have put it at line 46 only. Got no errors when I used the shipping estimator to test but I will see how it goes overnight.

Robyn

12 Oct 2013, 9:56 PM
#1922
robbie269 avatar

robbie269

Zen Follower

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

Re: ozpost shipping module

No errors so far with code here:

 require_once('includes/classes/http_client.php'); // shipping in basket
//PHP5.4 fix
$order = new stdClass();
/*
// moved below and altered to include Tare
  // totals info
  $totalsDisplay = '';

Rod, I'll let you know if anything changes.

Robyn

14 Oct 2013, 3:17 AM
#1923
robbie269 avatar

robbie269

Zen Follower

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

Re: ozpost shipping module

robbie269:

Rod, I'll let you know if anything changes.
I just got an order and this new error appeared in the cache:
[14-Oct-2013 11:09:21 Australia/Sydney] PHP Warning: Illegal string offset 'cost' in /home/admin/public_html/store/includes/classes/order.php on line 355
Robyn

14 Oct 2013, 3:29 AM
#1924
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: ozpost shipping module

robbie269:

I just got an order and this new error appeared in the cache:
[14-Oct-2013 11:09:21 Australia/Sydney] PHP Warning: Illegal string offset 'cost' in /home/admin/public_html/store/includes/classes/order.php on line 355
RobynSee fix here: http://www.zen-cart.com/showthread.php?210291-PHP-5-4-12-PHP-Warning-Illegal-string-offset-cost
There are lots of these related to php 5.4
They don't cause problems and can be ignored for now.

1 Nov 2013, 6:33 AM
#1926
danielle avatar

danielle

Totally Zenned

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

Re: ozpost shipping module

I just installed the latest version of this module on a 1.5.1 zen-cart store. Eveyrthing seemed to go smoothly, but we don't have any clicknsend options in the admin. Have I done something wrong?

1 Nov 2013, 7:03 AM
#1927
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

Danielle:

I just installed the latest version of this module on a 1.5.1 zen-cart store. Eveyrthing seemed to go smoothly, but we don't have any clicknsend options in the admin. Have I done something wrong?

Hard to say. Are you referring to the ozpost configuration area where you set which methods to enable/disable, or are you referring to the items in the customers menu where you download the click n send .csv file(s)?

If the former, I suggest you try clicking the button to remove the module, then click again to reinstall (no need to mess with any files). The act of (re)installing will attempt to fix any errors, and it will report any that it can't fix. This solves most problems. Almost all you your current settings (if any) will survive this process.

If it is the dropdown items that you are missing, they down't appear until/unless there is a .cvs file for you to download.

Cheers
Rod

1 Nov 2013, 7:09 AM
#1928
danielle avatar

danielle

Totally Zenned

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

Re: ozpost shipping module

Hmmm yes it is the dropdown items, but it should have carried forward when we did the upgrade shouldn't it have? I can see all those links in the 1.3.9h store. I just uninstalled and reinstalled the mod in the 1.5.1 version.

RodG:

Hard to say. Are you referring to the ozpost configuration area where you set which methods to enable/disable, or are you referring to the items in the customers menu where you download the click n send .csv file(s)?

If the former, I suggest you try clicking the button to remove the module, then click again to reinstall (no need to mess with any files). The act of (re)installing will attempt to fix any errors, and it will report any that it can't fix. This solves most problems. Almost all you your current settings (if any) will survive this process.

If it is the dropdown items that you are missing, they down't appear until/unless there is a .cvs file for you to download.

Cheers
Rod

1 Nov 2013, 7:13 AM
#1929
danielle avatar

danielle

Totally Zenned

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

Re: ozpost shipping module

Attachment 13284

Here's a screenshot of what we have on the old site. How can we get this data back on the upgraded site?

1 Nov 2013, 7:41 AM
#1930
danielle avatar

danielle

Totally Zenned

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

Re: ozpost shipping module

Attachment 13285

I have discovered another issue as well. Please see the attached screenshot. Do you know why the methods are staggered like that? I tried switching back to the default template, but they still looked the same.

Thanks!

1 Nov 2013, 7:42 AM
#1931
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

Danielle:

Hmmm yes it is the dropdown items, but it should have carried forward when we did the upgrade shouldn't it have? I can see all those links in the 1.3.9h store. I just uninstalled and reinstalled the mod in the 1.5.1 version.

The .cvs files get created and stored in the /cache/ folder. If you cleared this folder and/or the files didn't get copied when you updated your store then the items in the dropdown won't appear until a new .csv is created. This occurs automatically when a Click n Send suitable selection has been made by a customer order.

If you still have a copy of the old /cache/ folder look for any files named ClickNsendInt.csv and/or ClickNsendDom.csv and copy them over to the new site and the dropdown items should again re-appear.

Cheers
Rod

1 Nov 2013, 7:47 AM
#1932
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

Danielle:

I have discovered another issue as well. Please see the attached screenshot. Do you know why the methods are staggered like that? I tried switching back to the default template, but they still looked the same.

Thanks!

This is a known bug that only seems to affect some installations. It has only been reported by 3 or 4 people (including yourself). So far I've not been able to replicate the problem on my own test sites to find a fix. I'm still investigating the matter.

Having said that, I've recently (about a week ago) been given access to a site that does exhibit the same problem, but I've been too bogged down with other matters to take a closer look. Hopefully I'll get a chance in the next week or so.

Cheers
Rod

1 Nov 2013, 7:48 AM
#1933
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

Danielle:

Attachment 13284

Here's a screenshot of what we have on the old site. How can we get this data back on the upgraded site?

Plz see previous reply (#1930)

Cheers
Rod

1 Nov 2013, 2:59 PM
#1934
danielle avatar

danielle

Totally Zenned

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

Re: ozpost shipping module

Thank you, that did the trick! Although for some reason the clicknsend options appear in the menu above Customers, Orders, etc. Is there any way I can can change that?> RodG:

The .cvs files get created and stored in the /cache/ folder. If you cleared this folder and/or the files didn't get copied when you updated your store then the items in the dropdown won't appear until a new .csv is created. This occurs automatically when a Click n Send suitable selection has been made by a customer order.

If you still have a copy of the old /cache/ folder look for any files named ClickNsendInt.csv and/or ClickNsendDom.csv and copy them over to the new site and the dropdown items should again re-appear.

Cheers
Rod

1 Nov 2013, 3:00 PM
#1935
danielle avatar

danielle

Totally Zenned

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

Re: ozpost shipping module

RodG:

This is a known bug that only seems to affect some installations. It has only been reported by 3 or 4 people (including yourself). So far I've not been able to replicate the problem on my own test sites to find a fix. I'm still investigating the matter.

Having said that, I've recently (about a week ago) been given access to a site that does exhibit the same problem, but I've been too bogged down with other matters to take a closer look. Hopefully I'll get a chance in the next week or so.

Cheers
Rod

Could I install an earlier version to temporarily solve the issue? If so, do you know what the latest version is that does not do that?

3 Nov 2013, 7:05 AM
#1936
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

Danielle:

Could I install an earlier version to temporarily solve the issue?

Sure. (he says cautiously).

Reverting to an earlier version of ozpost is just a matter of replacing the /includes/modules/shipping/ozpost.php file with the version of your choice.
If you've been using the auto-updater you will find copies of the older versions in the /includes/modules/shipping/ folder using filenames like ozpost300, ozpost311, ozpost312, ozpost350, ozpost351 etc, etc. The numbers indicate the version. Just rename any one of these to ozpost.php then log into your admin, and perform the remove/install procedure to ensure the database and files get resynchronized.

Danielle:

If so, do you know what the latest version is that does not do that?

The problem has only been reported with ozpost v3.5.2, BUT, I haven't been able to confirm if it is truely a v3.5.2 issue, or whether it is because other updates that have been performed at or around the same time.

As I stated before, the problem doesn't appear with all installations using v3.5.2, which suggests that there is something more to this than the ozpost code itself.

Cheers
Rod

3 Nov 2013, 12:44 PM
#1937
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

Danielle:

Although for some reason the clicknsend options appear in the menu above Customers, Orders, etc. Is there any way I can can change that?

Yes.

Edit the file
/youradmin/includes/functions/extra_functions/init_clicknsend_dhtml.php

Change the last values in the lines that start with 'zen_register_admin_page'

They are currenly set to negative values, which places them at the top of the menu list. Change them to positive numbers greater than any values currently used.

If you don't know the values currently used, setting them to 97, 98 & 99 should do the job without any problem.

This is assuming you are using Zencart V1.5.0 or later.

Cheers
Rod

3 Nov 2013, 1:18 PM
#1938
seanymph avatar

seanymph

New Zenner

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
58
Plugin Contributions:
0

Re: ozpost shipping module

Hi Rod
I am using Zencart V1.5.0 I upgraded Ozpost Module tonight and I have uninstalled and installed numerous times tonight since I upgraded and I am still receiving the following error message:

Australia Post, OzPost Module Update Error. Admin please press UNINSTALL followed by INSTALL to rectify.

It did show the methods staggered once like Danielle and I uninstalled and installed and since then it is back to the above error.

Do you have any suggestions how I can sort this out so that it works.

Advanced thanks
Deborah

3 Nov 2013, 3:03 PM
#1939
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

seou doing the uni staanymph:

Hi Rod
I am using Zencart V1.5.0 I upgraded Ozpost Module tonight and I have uninstalled and installed numerous times tonight since I upgraded and I am still receiving the following error message:

Australia Post, OzPost Module Update Error. Admin please press UNINSTALL followed by INSTALL to rectify.

It did show the methods staggered once like Danielle and I uninstalled and installed and since then it is back to the above error.

Do you have any suggestions how I can sort this out so that it works.

Advanced thanks
Deborah

How are you doing the uninstall/i nstall? This needs to be done via the adminsc reen, not by removing and replacing the files.

5 Nov 2013, 5:39 AM
#1940
robax avatar

robax

Zen Follower

Join Date:
Mar 2006
Posts:
187
Plugin Contributions:
0

Re: ozpost shipping module

Hi Rod

This is a fresh post, not following on from any previous on in this thread.

I've just upgraded my Zen Cart from 1.3.9 to 1.5.1 and after that was done and confirmed working, I upgraded the OZ Post module from 3.1.1 to the current 3.5.2

I ended up doing the manual shift of the generated files from the cache into their appropriate locations. That all went fine.

I have removed and added the module from the shipping modules and have been through all options to ensure everything is correct.

There are two problems since this upgrade.

The first issue is a display problem.

On first visit from any browser, when then the estimator is meant to display the results, the page breaks and no results are displayed. When I examine the HTML source, the div with id="shippingEstimatorContent" is missing.

That looks like this: http://s21.postimg.org/l6m3xsjmv/ozpost_1.jpg

If I then revisit or refresh the page, the estimator shows, but does not show any of the OZ Post results. However in this case, the HTML source does in fact contain estimator code.

That looks like this: http://s11.postimg.org/ggy5dc7sj/ozpost_2.jpg

To quickly see this happening live, please add this example product to cart and then go to checkout and use 3000 as the post code:
http://www.saxandwoodwind.com.au/index.php?main_page=product_info&cPath=80_116_175&products_id=1289

That's one problem.

The second issue has to do with the OZ Post results - I'm not getting any.

Try adding this product to cart and then get a shipping estimate with post code 3000:
http://www.saxandwoodwind.com.au/index.php?main_page=product_info&products_id=474

This example should give plenty of Australia Post results, but it does not show any. Enabled parcels are: Australia Post PrePaid Satchels, 500g Satchel., 500g Express Satchel, 3kg Satchel., 3kg Express Satchel

This worked fine with the previous version of the module, even after the upgrade to ZC 1.5.1

I briefly enabled the debug message option in the module it makes the page show this:
http://s7.postimg.org/kkkgxjmx7/ozpost_3.jpg

Let me know what you think.

Thanks for any advice on this.
Regards
Rob

Environment info:
v1.5.1 [2013-10-25 16:43:45] (Version Update 1.5.0->1.5.1)
v1.5.0 [2013-10-25 16:43:45] (Version Update 1.3.9->1.5.0)
v1.3.9b [2010-05-18 18:34:34] (Version Update 1.3.8->1.3.9b)
v1.3.8 [2008-07-30 02:07:56] (Fresh Installation)
Database: MySQL 5.5.21-log
PHP Version: 5.2.17 (Zend: 2.2.0)