If this is your first visit, check our documentation. To post, register or login.

ozpost shipping module

Started by rodg on 15 Mar 2009, 12:18 PM · Views: 404,161

Results 2,161 to 2,180 of 2,251
12 Dec 2015, 11:47 PM
#2161
lloyd_borrett avatar

lloyd_borrett

Zen Follower

Join Date:
Mar 2006
Location:
Rosebud, Victoria, Australia
Posts:
308
Plugin Contributions:
2

Post #2161 by lloyd_borrett

G'day Rod,

Our OzPost setup is currently configured such that for most Australian deliveries it uses a flat rate.

It's reported as 'Flat Rate ( $15.00)' by OzPost. I'd like to get rid of the extra space and just have 'Flat Rate ($15.00)'. But I can't find the code to fix it. Could you please point me in the right direction?

But the way, while looking in the code I notice that you're using a mixture of '<br>', '</br>' and '<br />' for line breaks. Maybe in a future version you might like to standardise to '<br />'.

Best regards, Lloyd Borrett.

Zen Cart 1.5.5e, PHP 5.3.29 MySQL 5.5.42

13 Dec 2015, 2:39 AM
#2162
rodg avatar

rodg

Deceased

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

Post #2162 by rodg

lloyd_borrett:

G'day Rod,
Our OzPost setup is currently configured such that for most Australian deliveries it uses a flat rate.

Doesn't that pretty much defeat the purpose of using ozpost? It is only supposed to use the flat fate as a last resort (typically if none of the servers can be connected to)

lloyd_borrett:

It's reported as 'Flat Rate ( $15.00)' by OzPost. I'd like to get rid of the extra space and just have 'Flat Rate ($15.00)'. But I can't find the code to fix it. Could you please point me in the right direction?

The braces () are (if I recall correctly) part of the output from zencarts default tpl_modules_shipping_estimator.php file.
This file gets modified by the ozpost installation codes to remove these (as well as several other changes). I'm guessing that for some reason this failed during your install. There is generally an alert to this effect if/when it occurs, but it isn't considered a 'fatal' error.

Anyway, that's the file you'll be needing to edit.

lloyd_borrett:

But the way, while looking in the code I notice that you're using a mixture of '<br>', '</br>' and '<br />' for line breaks. Maybe in a future version you might like to standardise to '<br />'.

What can I say. I like variety :-)

Cheers
RodG

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

20 Dec 2015, 12:51 AM
#2163
robbie269 avatar

robbie269

Zen Follower

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

Post #2163 by robbie269

Hi Rod
I updated to V4 of Ozpost yesterday. I had been using Australia Post and only Lime Labels with Fastway. Since upgrading, when I chose only Lime labels in Admin the website shows all relevant label options, not just Lime. I have taken the lime option off until it is sorted as I don't want customers using labels I do not have.
Can you look into it?

Robyn

20 Dec 2015, 2:51 AM
#2164
rodg avatar

rodg

Deceased

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

Post #2164 by rodg

robbie269:

Hi Rod
I updated to V4 of Ozpost yesterday. I had been using Australia Post and only Lime Labels with Fastway. Since upgrading, when I chose only Lime labels in Admin the website shows all relevant label options, not just Lime. I have taken the lime option off until it is sorted as I don't want customers using labels I do not have.
Can you look into it?

Robyn

Fixed in V4.0.1

Cheers
RodG

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

20 Dec 2015, 3:08 AM
#2165
robbie269 avatar

robbie269

Zen Follower

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

Post #2165 by robbie269

RodG:

Fixed in V4.0.1

Thanks Rod that did the trick.
Merry Christmas.

Robyn

22 Dec 2015, 1:44 PM
#2166
lat9 avatar

lat9

Administrator

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

Post #2166 by lat9

Is there a way to completely disable overseas shipping? I've unchecked all the overseas possibilities with ausPost, but that darn Fixed Cost keeps getting invoked.

I've tried setting the Fixed Cost #1 field to **0 **(as indicated in the commentary to totally turn it off) and to 15.00,0 (in an attempt to enable $15.00 flat rate for local shipping, disabling overseas), but nothing sticks. An overseas customer is presented with a $0.00 shipping cost (not a good thing).

Running ozPost 3.6.5 (yes, I'll be updating to 4.0.1 shortly) on Zen Cart 1.5.4.

22 Dec 2015, 9:22 PM
#2167
rodg avatar

rodg

Deceased

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

Post #2167 by rodg

lat9:

Is there a way to completely disable overseas shipping? I've unchecked all the overseas possibilities with ausPost, but that darn Fixed Cost keeps getting invoked.

I've tried setting the Fixed Cost #1 field to **0 **(as indicated in the commentary to totally turn it off) and to 15.00,0 (in an attempt to enable $15.00 flat rate for local shipping, disabling overseas),
What you have done is the correct/only way to do what you are wanting.
lat9:

but nothing sticks. An overseas customer is presented with a $0.00 shipping cost (not a good thing).

This warrants further investigation, because if true then I've really managed to screw up somewhere. It is part of the ozpost design philosophy that it will never provide a quote for $0.00 under any circumstances. It will/should disable itself rather than do this.
So this means, as stated, I've really messed up somewhere along the way to let this slip by, OR, the quote for $0.00 that you are seeing is coming from a module other than ozpost.

I'll test/check the ozpost behaviour when I get back into the office later today, but meanwhile I will suggest that you take a closer look at the $0.00 output just in case it is coming from somewhere else.

lat9:

Running ozPost 3.6.5 (yes, I'll be updating to 4.0.1 shortly) on Zen Cart 1.5.4.

If you have identified a bug the same problem will probably still apply with the new/current v4.x.x so you might want to hold off until the problem has been rectified.
Although v4.x.x has had a significant 'under the hood' rewrite, it only has a couple of new 'features'
most notably:
The addition of Hunter Express, and the introduction of a 'packing overide' system so that those customers that have special requirements now have a means of achieving this without having to modify the ozpost main code (and any such customisations will be unaffected by future updates). Well, that's the theory.

Cheers
RodG

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

23 Dec 2015, 2:45 AM
#2168
rodg avatar

rodg

Deceased

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

Post #2168 by rodg

lat9:

An overseas customer is presented with a $0.00 shipping cost (not a good thing).

Running ozPost 3.6.5 (yes, I'll be updating to 4.0.1 shortly) on Zen Cart 1.5.4.

It appears you've found a bug.

Easy to find/fix. In the /modules/shipping/ozpost.php file, search for the two lines that read

if ($cost[0] === 0) return ;

And replace with
if ($cost[0] == 0) return ;

I've no idea why or when that additional '=' got added.

Cheers
RodG

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

23 Dec 2015, 2:44 PM
#2169
lat9 avatar

lat9

Administrator

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

Post #2169 by lat9

Thanks for the quick response, RodG! That little change was necessary, but there's something else going on.

Now, all overseas shipping quotes are disabled (I set the Flat Rate to 15,0 so that we'd have $15.00 flat-rate within Australia, but disabled elsewhere), but when a US-based customer goes to checkout, they're presented with the message

This is currently the only shipping method available to use on this order.

instead of the one that indicates that "we're not shipping to your region".

On further inspection, it appears that ozpost is still enabled; that's why the rogue message is appearing.

23 Dec 2015, 3:08 PM
#2170
lat9 avatar

lat9

Administrator

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

Post #2170 by lat9

I was able to cause the "correct" message to be displayed by adding a couple more changes around the section you'd identified earlier:

 
        case "Table Rates":
           $cost = $this->_get_error_cost_tables($dest_country) ;
            if ($cost[0] == 0) [B]{
              $this->enabled = false;[/B]
              return  ;   //  All has failed - Disable module 
       [B]     }[/B]
        $methods[] = array( 'id' => " ",  'title' => "(based on ". $cost[1].")", 'cost' => $cost[0], 'Display' => '' ) ;
 break;     
     
    default:
           $cost = $this->_get_error_cost($dest_country) ;
            if ($cost[0] == 0)[B] {
              $this->enabled = false;[/B]
              return  ;   //  All has failed - Disable module X
           [B] }[/B]
27 Dec 2015, 3:34 AM
#2171
rodg avatar

rodg

Deceased

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

Post #2171 by rodg

lat9:

I was able to cause the "correct" message to be displayed by adding a couple more changes around the section you'd identified earlier:

Thanks. I was just about to suggest this to you, but as usual, you've gone one step better and confirmed that this is all that was needed.

Cheers
RodG

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

31 Dec 2015, 3:48 AM
#2172
justin_antoni avatar

justin_antoni

New Zenner

Join Date:
Dec 2015
Location:
Near Maitland NSW Australia
Posts:
3
Plugin Contributions:
0

Post #2172 by justin_antoni

Just uploaded the ozpost module into clean install v1.5.4 and everything looks great ............. however one small problem.

We only use Australia Post and Fastway, have selected Regular Australia Post Parcels and all Fastway labels.

When checking out, if the Fastway cost is less than Australia Post and you select Fastway, when you go to payment page, it automatically changes it to the more expensive AusPost.

Have found everything works okay when Auspost is cheaper than Fastway, but problem only occurs when Fastway is cheaper than Auspost and you select Fastway.

31 Dec 2015, 4:42 AM
#2173
rodg avatar

rodg

Deceased

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

Post #2173 by rodg

Justin Antoni:

When checking out, if the Fastway cost is less than Australia Post and you select Fastway, when you go to payment page, it automatically changes it to the more expensive AusPost.

Have found everything works okay when Auspost is cheaper than Fastway, but problem only occurs when Fastway is cheaper than Auspost and you select Fastway.

The ozpost module has no 'control' over what shipping method is selected at any given time, and the default zencart behaviour is to select the cheapest non-pickup method available.

I've no explanation as to why it 'automatically changes to the more expensive AusPost'

Can you provide a link to the site, along with any other details needed to replicate the problem.

Thanks
RodG

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

31 Dec 2015, 4:48 AM
#2174
justin_antoni avatar

justin_antoni

New Zenner

Join Date:
Dec 2015
Location:
Near Maitland NSW Australia
Posts:
3
Plugin Contributions:
0

Post #2174 by justin_antoni

https://www.anniescustomcandles.com.au

If you register with the postcode Maitland 2320, this will make Fastway cheaper than Auspost (Fastway Black Label).

Purchase 5 x Melts For Oil Burner and checkout

Select Fastway Black Label for shipping and continue to payment page.

There you will notice that it has selected AusPost.

Still trying to work it out

31 Dec 2015, 5:15 AM
#2175
rodg avatar

rodg

Deceased

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

Post #2175 by rodg

Justin Antoni:

There you will notice that it has selected AusPost.

I followed your instructions. FastWay black label correctly 'stuck' throughout the entire process.

Another hint please :-)

Cheers
RodG

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

31 Dec 2015, 5:24 AM
#2176
justin_antoni avatar

justin_antoni

New Zenner

Join Date:
Dec 2015
Location:
Near Maitland NSW Australia
Posts:
3
Plugin Contributions:
0

Post #2176 by justin_antoni

ARRRRRGGGGGGGGGHHHHHH!!!!!

Just created a new user, like yourself, and it did the swap-a-rooni on me, however another person got the same 'GOOD' result as you.

Might be my browsers? Will keep trying but at least it seems to be working for others.

BTW Great module, easy to setup, thanks

2 Jan 2016, 8:59 AM
#2177
rodg avatar

rodg

Deceased

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

Post #2177 by rodg

Justin Antoni:

ARRRRRGGGGGGGGGHHHHHH!!!!!

Just created a new user, like yourself, and it did the swap-a-rooni on me, however another person got the same 'GOOD' result as you.

Might be my browsers? Will keep trying but at least it seems to be working for others.

BTW Great module, easy to setup, thanks

I've taken a closer look into this, and it appears you've found a bug. In theory, it is quite an easy one for me to fix, but it is also one I want to sleep on for a bit because I can either do it serverside or client side. In the short term, fixing it client side is my easiest option, but it could be opening myself up to long term headaches. Fixing it server side will cause a short term 'glitch' for users of another ozpost supported eCommerce system. Either way, I plan to have a fixed version uploaded to the ozpost update servers within a day or two.

For those that are interested, the 'new' / current version of ozpost is v4.x.x - There have been many under the hood changes with this update (an attempt to simplify the code for easier portability), as such, I'm both expecting and finding a number of odd bugs here and there - This is why V4.x.x is currently only available from the ozpost update servers - I'll be uploading a 'release' version to the zencart add-ons section once I'm confident it is as bug free as I can make it, else I'd probably end up making update releases before the zencart team have vetted and released the 1st update.

Cheers
RodG

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

29 Mar 2016, 2:36 PM
#2178
vandiermen avatar

vandiermen

Totally Zenned

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

Post #2178 by vandiermen

Hi Rod,
Just quick comment
I installed ozpost and got error
[Tue Mar 29 09:22:08 2016] [error] [client 111.151.177.111] SoftException in Application.cpp:668: Directory "/home/namename/public_html/adminname" is writeable by group
and on admin pages: ERROR 500 - INTERNAL SERVER ERROR
I change write permission on admin folder to 755 and all good.
zencart1.5.4 php5.5

just feedback, no reply needed.

6 Apr 2016, 10:05 AM
#2179
vandiermen avatar

vandiermen

Totally Zenned

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

Post #2179 by vandiermen

solarcampingaustralia.com.au asks:
(10.2015)
We use fastway black labels for local delivery (use postcode 4655 to test) which should come up on our website for $9.25. Instead they come up at $7.00. I believe this is an issue because it has brown/black/blue labels all listed together when they are different prices, brown being the cheapest (the price I believe it is using). I have unchecked brown and blue in ozpost so I believe that only black pricing should come up. But this has not worked. Can you please look into this for me. I hope that makes sense. I have attached a screenshot of the shopping cart to show you what I mean.
Attachment 16198

(02.2016)
Please let ozpost know that excess labels are not showing now (before it would say label + excess, now just shows what type of label), and GST is missing from the price of the excess labels.

The black label is still not working correctly. It now only lists the black label but the price is still using the brown label. Thanks.

15 Apr 2016, 9:57 AM
#2180
bruce1952 avatar

bruce1952

Totally Zenned

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

Post #2180 by bruce1952

Hi all,

I am running zencart 1.54 and would like to know if the ozpost module makes any changes to the orders.php file at all.

Any help is appreciated.

Outdoorking
Live Site https://www.outdoorking.com.au