Results 1 to 10 of 2252

Hybrid View

  1. #1
    Join Date
    May 2008
    Location
    South Australia
    Posts
    86
    Plugin Contributions
    1

    red flag Re: ozpost shipping module

    im currently not getting the AP flat rate error option. it is displayed in the shipping estimator ok, but not in the checkout options.

    i traced the error and found the failure in tpl_checkout_shipping_default.php

    appx. line 68:
    PHP Code:
          if ($quotes[$i]['module'] != '') { // Standard 
    the quotes array returned if for example the girth is too big is failing this test, and then not being displayed as an option.
    it is because the arrays returned as $quotes in this case doesnt have $quotes[$i]['module'] set. so i tried setting it, and i realise it also doesnt have $quotes[$i]['id'] set, and also the $quotes[$i]['methods']['id] is set wrong to the $title variable rather than some code like 'flat' or 'rrp' ..

    no im not really saying its definately a problem with your code as youd think something like this would have come up b4 and been fixed. but perhaps you can help me ??

    here is a var_dump on the suspect $quotes:
    PHP Code:
    array(2) { ["icon"]=>  string(137"Aussie Post" ["methods"]=>  array(1) { [0]=>  array(3) { ["id"]=>  string(141"Aussie Post" ["title"]=>  string(253"Aussie Post ERROR: (31+68.00) x 2cm exceeds the Maximum 140cm girth allowed. Using AP Flat Rate." ["cost"]=>  string(5"25.00" } } } 
    and for reference here is a var_dump on a healthy $quotes:

    PHP Code:
    array(3) { ["id"]=>  string(6"ozpost" ["module"]=>  string(141"Aussie Post" ["methods"]=>  array(7) { [0]=>  array(3) { ["id"]=>  string(3"RPP" ["title"]=>  string(327" Regular Parcel 1 1 days Est Delivery " ["cost"]=>  float(4.35) } [1]=>  array(3) { ["id"]=>  string(4"PPS5" ["title"]=>  string(342" 500gm Prepaid Satchel 1 1 days Est Delivery " ["cost"]=>  float(5.7) } [2]=>  array(3) { ["id"]=>  string(3"REG" ["title"]=>  string(333" Registered Parcel 2 2 days Est Delivery " ["cost"]=>  float(7.15) } [3]=>  array(3) { ["id"]=>  string(3"EXP" ["title"]=>  string(327" Express Parcel 1 1 days Est Delivery " ["cost"]=>  float(8) } [4]=>  array(3) { ["id"]=>  string(5"PPSE5" ["title"]=>  string(359" 500gm Prepaid Satchel Express 1 1 days Est Delivery " ["cost"]=>  float(8) } [5]=>  array(3) { ["id"]=>  string(4"RPPi" ["title"]=>  string(328" Insured Parcel 2 2 days Est Delivery " ["cost"]=>  float(9.75) } [6]=>  array(3) { ["id"]=>  string(4"EXPi" ["title"]=>  string(330" Insured Express  1 1 days Est Delivery " ["cost"]=>  float(13.4) } } } 

    zencart and ozpost version is latest

  2. #2
    Join Date
    May 2008
    Location
    South Australia
    Posts
    86
    Plugin Contributions
    1

    Idea or Suggestion Re: ozpost shipping module

    my fix (for now) is to change:
    (girth example, but works for other 2 error sections too)

    PHP Code:
       // Check girth
        
    if($girth $MAXGIRTH_P )
        {
             
    $cost $this->_get_error_cost($dest_country) ;

           if (
    $cost == 0)  return  ;
          
            
    $methods[] = array( 'id' => $this->title,  'title' => $this->title '<font color=#FF0000> ERROR: (' $parcelheight "+" $parcelwidth ') x 2cm exceeds the Maximum 140cm girth allowed.</font>'$FlatText'cost' => $cost ) ;
            
    $this->quotes['methods'] = $methods;   // set it
            
    return $this->quotes;
        }  
    // exceeds AustPost maximum girth. No point in continuing. 
    to:

    PHP Code:
       // Check girth
        
    if($girth $MAXGIRTH_P )
        {
             
    $cost $this->_get_error_cost($dest_country) ;

           if (
    $cost == 0)  return  ;
          
            
    $methods[] = array( 'id' => 'Error',  'title' => $this->title '<font color=#FF0000> ERROR: (' $parcelheight "+" $parcelwidth ') x 2cm exceeds the Maximum 140cm girth allowed.</font>'$FlatText'cost' => $cost ) ;
            
    $this->quotes['methods'] = $methods;   // set it
            
            
    $this->quotes['module'] = $this->title;        
            
    $this->quotes['id'] = 'ozpost';
            
            return 
    $this->quotes;
        }  
    // exceeds AustPost maximum girth. No point in continuing. 

  3. #3
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: ozpost shipping module

    Quote Originally Posted by hayden View Post
    im currently not getting the AP flat rate error option. it is displayed in the shipping estimator ok, but not in the checkout options.
    This bug has been fixed in ozpost V1.0.6, which should be found attached to one on my messages in this forum.

    Cheers
    Rod

  4. #4
    Join Date
    May 2008
    Location
    South Australia
    Posts
    86
    Plugin Contributions
    1

    Default Re: ozpost shipping module

    so why hasnt the zencart/free-addons download been updated ??

  5. #5
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: ozpost shipping module

    Quote Originally Posted by hayden View Post
    so why hasnt the zencart/free-addons download been updated ??
    Not enough people have been affected by the problem.
    Lack of time to create a new distribution package.
    Lack of interest/motivation to create a new distribution package.
    Always busy working on the next update (v2.x.x with TNT support).

    Pick any or all of the above.

    Cheers
    Rod

  6. #6
    Join Date
    Aug 2005
    Location
    Bondi, Australia
    Posts
    100
    Plugin Contributions
    0

    Default Re: ozpost shipping module

    Rod
    I've just upgraded to v 2.0.6 but on testing its only producing Flat Rate estimates.
    In the attached screenshot of the table generated by the debugger I see two columns; one devoted to Item, the other devoted to Parcel info.
    The Item column is missing the weight, whereas the parcel column has it so I'm guessing the error that prevents the estimate from displaying is down to this missing weight. Trouble is, I can't find the offending location to update. I've checked the weight on each product page and each is correctly filled in. Where do I add an item weight if its not the product page?
    Attached Images Attached Images  
    Last edited by lucidlee; 13 Jun 2010 at 03:43 PM. Reason: scratched broken image link

  7. #7
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: ozpost shipping module

    Quote Originally Posted by lucidlee View Post
    Rod
    I've just upgraded to v 2.0.6 but on testing its only producing Flat Rate estimates.
    In the attached screenshot of the table generated by the debugger I see two columns; one devoted to Item, the other devoted to Parcel info.
    The Item column is missing the weight, whereas the parcel column has it so I'm guessing the error that prevents the estimate from displaying is down to this missing weight.
    Correct.

    Quote Originally Posted by lucidlee View Post
    Trouble is, I can't find the offending location to update. I've checked the weight on each product page and each is correctly filled in
    Sorry, I'm confused and not sure exactly what you are asking. What do you mean by "each product page" and what do you consider to be 'correctly filled in'?

    Quote Originally Posted by lucidlee View Post
    Where do I add an item weight if its not the product page?
    The only place to add/edit product weights is via the /admin/catalog/categoriesProducts editor, where it has always been. <extremely puzzled look>

    Quote Originally Posted by lucidlee View Post
    Trouble is, I can't find the offending location to update. I've checked the weight on each product page and each is correctly filled in
    If I assume that you are referring to the correct page (and I really can't imagine where you are looking if not), then what you consider to be 'correctly filled' simply cannot be the case. Given your example, the total parcel weight sent to the server for quoting weight a mere 0.28gm, (clearly shown on your screen capture)

    A single sheet of A4 paper weights ~5gm. What are you mailing? A postage stamp without the envelope?

    Cheers
    Rod

  8. #8
    Join Date
    Aug 2005
    Location
    Bondi, Australia
    Posts
    100
    Plugin Contributions
    0

    Default Re: ozpost shipping module

    Quote Originally Posted by RodG View Post
    A single sheet of A4 paper weights ~5gm. What are you mailing? A postage stamp without the envelope?
    Good on ya Rod. You hit the mail on the head!

    I had indeed specified my product weights in gms and the ozpost in kgs. Too easy to do when the measurement system isn't mentioned anywhere near where the values are entered.

    BTW I ship those pesky charts in tubes (you know, multiple products in one tube, multiple tubes in one delivery) as well as big flatpacks that really screw your packaging algorithm around
    Last edited by lucidlee; 14 Jun 2010 at 12:33 PM. Reason: additional information, clarification

  9. #9
    Join Date
    Jul 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: ozpost shipping module

    Hi Rod,

    We've been running v1.0.2 for about 12 months with no problems, it's a great module. I've just noticed that for about the past week our orders specifying Australia Post for delivery have been reverting to the Flat Rate on Error price. Is there a server down somewhere or should we be upgrading to v2.0.6?

    Thanks,
    Warren
    "Life wasn't meant to be easy"
    www.scrapbooks.net.au

 

 

Similar Threads

  1. v151 Product dimensions revert to 0 - using ozpost module
    By mpforum in forum General Questions
    Replies: 8
    Last Post: 18 Apr 2014, 09:49 AM
  2. Ozpost and module help
    By janelle in forum Addon Shipping Modules
    Replies: 2
    Last Post: 15 Jun 2012, 09:19 AM
  3. Ozpost Combine shipping !! Possible ?
    By toytemple in forum Addon Shipping Modules
    Replies: 7
    Last Post: 21 Jan 2010, 02:22 PM
  4. ozpost module problems
    By hspark in forum Addon Shipping Modules
    Replies: 19
    Last Post: 7 Dec 2009, 12:44 PM
  5. store pick-ip in ozpost shipping module
    By lazerweb in forum Addon Shipping Modules
    Replies: 2
    Last Post: 29 Jul 2008, 05:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg