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

ozpost shipping module

Views: 403,032

Results 2,081 to 2,100 of 2,251
18 Jan 2015, 11:51 PM
#2081
maxipro avatar

maxipro

New Zenner

Join Date:
Sep 2014
Location:
Australia
Posts:
5
Plugin Contributions:
0

ozpost shipping module

Hi Rod,

Thanks for the reply.

All servers are connecting as they should, so that's all good.

As you mentioned I've narrowed it down to one particular courier service, disabling them means quotes are returned as they should too. I've emailed the couriers in question and am currently awaiting a response to see if they are able to narrow things down.

Hopefully this won't be too long a wait...

Cheers,
Iain

19 Jan 2015, 4:28 PM
#2082
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

OldNGrey:

With V3.5.4 in the ozpost configuration menu the "Subscription Days remaining ... " link and the "test the ozpost servers" link are displayed after the "Enabled" indicator.
These links are not displaying with my configuration and ozpost V3.6.0.

Is this a feature of V3.6.0 or do I have a problem?

Apparently you have a problem.

I've no idea what would cause this, but I'd suggest that you perform a remove/install of the module by clicking on the relevant buttons in the shipping configuration menu, as this tends to clear up many 'strange' problems.

Cheers
RodG

20 Jan 2015, 12:54 AM
#2083
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
417
Plugin Contributions:
0

Re: ozpost shipping module

Rod
Fresh install indicates a permissions problem when ozpost is trying to copy and install files. Error at top of ZC Shiping Modules screen is:
"*Unable to create temporary files. ClickNSend will be non functional and you will be unable to enter product dimensions until this is rectified
Error Installation FAILED
Success Work files saved in E:/Web/MYSTORENAME/cache/ozpost/

*Files in the cache folder are: includes/languages/english.php
includes/templates/MYTEMPLATE/templates/tpl_modules_shipping_estimator.php

No ozpost files are install in admin area.*

Debug logs show:
PHP Warning: mkdir(): Invalid argument in E:\Web\bmhstore154\includes\modules\shipping\ozpost.php on line 3099

*What changes permissions / access to which folders does ozpost require to install on windows?

Environment: Windows 8; WAMP 2.5; Apache 2.4.9; PHP 5.5.12;

Bailey

20 Jan 2015, 5:16 PM
#2085
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

OldNGrey:

Rod
Found thread http://www.zen-cart.com/showthread.php?122637-ozpost-shipping-module&p=1254572#post1254572 via Google and implemented code changes.
ozpost prompted for update to 3.6.2 - so performed that.

Top of screen looks like this but I can live with it.
Bailey

Thanks for the update. I was about to point you to that thread myself. :)

Cheers
RodG

22 Jan 2015, 7:26 AM
#2086
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
417
Plugin Contributions:
0

Re: ozpost shipping module

Upgrading ozpost 3.5.4 to 3.6.2 on test site
Rod
FYI

Upgraded ozpost 3.5.4 to 3.6.2 on test site
Error generated was:
Possible error updating the template file. If you experience problems please replace
E:/web/STORE/includes/templates/template_default/templates/tpl_modules_shipping_estimator.php
with a zencart original and try again.

The file is identical to zc original.

ozpost appears to work ok.

The subscription reminder for this version also sits above the list of all Shipping modules rather than in the Ozpost Multiquote column.
[Attachment no longer available]

Bailey
Environment: windows8, Wamp 2.5, Apache 2.4.9, PHP 5.5.12

22 Jan 2015, 10:39 AM
#2087
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
417
Plugin Contributions:
0

Re: ozpost shipping module

Upgrading ZC from 1.3.9h to 1.5.4 with ozpost
Rod
I am still persevering with ozpost on Windows. Even with the changes to ozpost.php to allow for the forward slash /backslash issue I am still getting the following error:
*Error Unable to create temporary files. ClickNSend will be non functional and you will be unable to enter product dimensions until this is rectified
Error Installation FAILED *

Any ideas on what files I can manually install?

Bailey

22 Jan 2015, 3:34 PM
#2088
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

OldNGrey:

Upgrading ZC from 1.3.9h to 1.5.4 with ozpost
Rod
I am still persevering with ozpost on Windows. Even with the changes to ozpost.php to allow for the forward slash /backslash issue I am still getting the following error:
*Error Unable to create temporary files. ClickNSend will be non functional and you will be unable to enter product dimensions until this is rectified
Error Installation FAILED *

Any ideas on what files I can manually install?

Bailey

I'm afraid I can't offer much help here at the moment as I don't have a working Windows environment for testing/debugging.

Also, until the /cache/ folder is writable there aren't any files that you can manually install other than the two main ones (/languages/modules/shipping/ozpost.php and /includes/modules/shipping/ozpost.php).

If/when the /cache/ folder is writable the ozpost installation code will create/modify all of its needed files and place them into a folder /cache/ozpost/ before eventually moving them to their correct locations. If you can get to the stage where these files are created but can't be copied THEN you'll be able to use the cached files for a manual install.

The instructions in the link previously discussed is supposed to make this /cache/ folder writable on a Windows machine so before looking any further I strongly suggest that you double check the needed changes.

Cheers
RodG

22 Jan 2015, 11:56 PM
#2089
maxipro avatar

maxipro

New Zenner

Join Date:
Sep 2014
Location:
Australia
Posts:
5
Plugin Contributions:
0

Re: ozpost shipping module

Hi Rod,

Just an update to my earlier posts; I'm still getting quote errors when using our courier service, but I'm waiting for a call back to try and solve this issue, so hopefully this will be sorted soon.

I have noticed that Transdirect also return quotes from TNT when using their website directly, but this isn't an option within Ozpost under Transdirect, is this something that can be added to the code at some point please?

Thanks,
Iain

23 Jan 2015, 7:55 AM
#2090
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

MaxiPro:

I have noticed that Transdirect also return quotes from TNT when using their website directly, but this isn't an option within Ozpost under Transdirect, is this something that can be added to the code at some point please?

Their TNT support has only recently been added. I'll be adding this to the ozpost module in the coming weeks.

Cheers
RodG

23 Jan 2015, 8:23 AM
#2091
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
417
Plugin Contributions:
0

Re: ozpost shipping module

Re: Upgrading ZC from 1.3.9h to 1.5.4 with ozpost
Rod
I have finally got the install to work on Windows. The cache folder has always been writable but only 2 files were ever created there:
cache\ozpost\includes\languages\english.php and
cache\ozpost\includes\templates\MYTEMPLATE\templates\tpl_modules_shipping_estimator.php

/admin/clicknsend.php
/admin/includes/extra_datafiles/clicknsend.php
/admin/includes/functions/extra_functions/init_clicknsend_dhtml.php 

were always missing

The steps I have been able to reproduce are:

  1. Make a copy / print / screen print of all existing ozpost settings
  2. Copy the ozpost standard files and select upgrade to receive the errors
  3. Use ozpost to totally remove itself
  4. Copy in the modified ozpost file and reinstall ozpost
  5. Configure ozpost with the settings saved in step1

If upgrading to the next version of ozpost (3.6.2) make the same code changes to the new ozpost file.

Bailey

12 Mar 2015, 2:21 AM
#2092
maxipro avatar

maxipro

New Zenner

Join Date:
Sep 2014
Location:
Australia
Posts:
5
Plugin Contributions:
0

Re: ozpost shipping module

Hi Rod,

Any update on the TNT support through Transdirect as yet?

Cheers
Iain

12 Mar 2015, 7:58 AM
#2093
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

MaxiPro:

Any update on the TNT support through Transdirect as yet?

This has already been added to the ozpost servers and the client modules for some of the other supported eCommerce systems. I started on the changes needed for the ZenCart module several weeks ago, but 'life' got in the way.

One of the other reasons for the delay with the ZenCart update is that I've been trying to take care of the installation problems on Windows based servers at the same time, but this is a frustrating and time consuming process because the only computer I have with Windows installed is a very old laptop that doesn't have enough resources to run my favoured IDE (development tools), which means I'm making 'blind' changes, then copying the files to the laptop before I can test them. Really not fun. :(

Perhaps I may reconsider my approach and just do an update the the TransDirect/TNT support, and leave the Windows support for another time.

Cheers
RodG

17 Mar 2015, 1:46 AM
#2094
maxipro avatar

maxipro

New Zenner

Join Date:
Sep 2014
Location:
Australia
Posts:
5
Plugin Contributions:
0

Re: ozpost shipping module

Hi Rod,

From purely a selfish perspective the TNT support would be appreciated!

Cheers
Iain

17 Mar 2015, 4:21 PM
#2095
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

MaxiPro:

Hi Rod,

From purely a selfish perspective the TNT support would be appreciated!

Cheers
Iain

I've just uploaded V3.6.5 with this support. It'll take a few days for the site maintainer(s) to check and release it.
It should also be ready for an auto-update as of now.

Cheers
RodG

29 Mar 2015, 2:45 PM
#2096
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: ozpost shipping module

Just updated a client's site with ozPost v3.6.5 and I'm getting the following error logged:

[30-Mar-2015 01:21:54 Australia/Victoria] PHP Warning: file(/home/xxxx/public_html/xxxx/includes/templates/my_template/templates/tpl_modules_shipping_estimator.php): failed to open stream: No such file or directory in /home/xxxx/public_html/xxxx/includes/modules/shipping/ozpost.php on line 4220

Since this site hasn't customized the shipping estimator, the log is correct -- there's no tpl_modules_shipping_estimator.php file in the customized templates directory. It's not clear to me how to correct the issue or what changes to that template file are required for proper operation.

29 Mar 2015, 4:40 PM
#2097
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

lat9:

Just updated a client's site with ozPost v3.6.5 and I'm getting the following error logged:

[30-Mar-2015 01:21:54 Australia/Victoria] PHP Warning: file(/home/xxxx/public_html/xxxx/includes/templates/my_template/templates/tpl_modules_shipping_estimator.php): failed to open stream: No such file or directory in /home/xxxx/public_html/xxxx/includes/modules/shipping/ozpost.php on line 4220

> Since this site hasn't customized the shipping estimator, the log is correct -- there's no tpl_modules_shipping_estimator.php file in the customized templates directory.  It's not clear to me how to correct the issue or what changes to that template file are required for proper operation.

The ozpost module needs to modify the tpl_modules_shipping_estimator.php for full functionality, and the way it does this is:  

If /includes/templates/CUSTOM_TEMPLATE/templates/tpl_modules_shipping_estimator.php** exists**, then make a backup and modify this copy as needed. 
 
If /includes/templates/CUSTOM_TEMPLATE/templates/tpl_modules_shipping_estimator.php **doesn't exist**, then modify the default /includes/templates/template_default/templates/tpl_modules_shipping_estimator.php
file and save it as /includes/templates/CUSTOM_TEMPLATE/templates/tpl_modules_shipping_estimator.php

It seems to me like the original file(s) were unreadable, or the modified file was unable to be written.

Hope this helps? 

Cheers
RodG
29 Mar 2015, 4:55 PM
#2098
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: ozpost shipping module

Unfortunately, Rod, it doesn't help. The file tpl_modules_shipping_estimator.php doesn't exist in the template-override directory and it hasn't been modified in the template_default directory.

The site was just upgraded from Zen Cart v1.5.3 to v1.5.4; here's the Server Information:

Server Host: instant1643.server.com (209.236.74.166)       	Database Host: localhost (127.0.0.1)
Server OS: Linux 2.6.32-431.5.1.el6.x86_64    	Database: MySQL 5.5.42-cll
Server Date: 30/03/2015 03:53:44   	Database Date: 30/03/2015 03:53:44
Server Up Time: 03:53:44 up 6 days, 6:47, 0 users, load average: 0.00, 0.05, 0.05 	HTTP Server: Apache/2.2.27 (Unix) mod_ssl/2.2.27 OpenSSL/1.0.1e-fips mod_bwlimited/1.4 mod_perl/2.0.6 Perl/v5.8.8
PHP Version: 5.3.28 (Zend: 2.3.0)   PHP Memory Limit: 32M 	PHP Safe Mode: Off
PHP File Uploads: On    Max Size: 2M 	POST Max Size: 8M
Database Data Size: 16,311 kB 	Database Index Size: 4,235 kB

I did the one-click ozPost upgrade from 3.6.2 to 3.6.5.

29 Mar 2015, 5:13 PM
#2099
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

lat9:

Unfortunately, Rod, it doesn't help. The file tpl_modules_shipping_estimator.php doesn't exist in the template-override directory

This is the problem. Why doesn't it exist? (Generally insufficient permissions for ozpost to create it).

lat9:

and it hasn't been modified in the template_default directory.

Nor should it be. The ozpost installer is supposed to copy this to the template-override directory and then modify it.

lat9:

I did the one-click ozPost upgrade from 3.6.2 to 3.6.5.

I'm still in the process of updating and modifying the installation/upgrade code to give better 'pre upgrade' reporting and testing, but this is quite a challenging task because the code that does the actual updating is the code written into V3.6.2, and you won't see the effect of the V3.6.5 changes until the next update comes out (and that's when I find I what I messed up with in the current release).

Anyway, est fix for your problem would be to copy the default tpl_modules_shipping_estimator.php file into the overrides folder, them make sure the server process can read and write this file, then click the buttons to uninstall and re-install the module, and all should be fine.

Cheers
RodG

29 Mar 2015, 5:31 PM
#2100
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: ozpost shipping module

Rod, I have no idea what transpired but when I re-checked the template-override directory, the shipping-estimator file has now been updated.

Does the distribution file that will be available in the Plugins list the file-related changes that are made? I keep a copy of all the site's files locally and I really don't want to have to go through directory-by-directory to find out what files have been changed in the update.:blink: