Page 31 of 226 FirstFirst ... 2129303132334181131 ... LastLast
Results 301 to 310 of 2252
  1. #301
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: ozpost shipping module

    Quote Originally Posted by nukebiz View Post
    hmm, interesting quirk with the the SimpleXMLElement error (using v1.0.4).

    If my store name is a single word, I get the error, but if I have a two word store name, I don't get the error
    i.e. the space eliminates the problem
    I don't get it either.. I'm not aware of any connection between the store name and the XML processor.

    Just out of curiosity, do you have cURL enabled?

    Cheers
    Rod

  2. #302
    Join Date
    Sep 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: ozpost shipping module

    No, this is using fsockopen - I presume the problem lies with how http_client is handling the data. In either case (single or double name), the raw cvsweb link always provides the correct xml feed. The store name comes into it because that is what is used for $HOST.

    I'm having issues with cURL which is why I was playing around.

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

    Default Re: ozpost shipping module

    Quote Originally Posted by nukebiz View Post
    No, this is using fsockopen - I presume the problem lies with how http_client is handling the data. In either case (single or double name), the raw cvsweb link always provides the correct xml feed. The store name comes into it because that is what is used for $HOST.

    I'm having issues with cURL which is why I was playing around.
    What are the issues that you are having with cURL? (I'd rather concentrate on solving this rather than the fsockopen problem, because this is the direction things are heading.

    As for the $HOST variable, this is only used for logging, debugging and statistical purposes. Other than the log files themselves this variable isn't even referenced by the server software, and nothing returned by the server contains any reference to this variable, (which is why I don't have an explanation for the results you are getting).

    Anyway, to 'cure' your problem I guess the easy/best/safe thing to do would be to simply redefine the $HOST variable so that it only contains a single word.

    It'll probably also be safe to simply delete all references to the this variable, but there are multiple instances of it, so such an action will be more prone to error.

    In any case, as I previously mentioned, I'm much more interested in the problems you are experiencing wit cURL.

    Cheers
    Rod

  4. #304
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: ozpost shipping module

    There is an issue on this shipping module that those of you who use more than this module with weight ...

    $shipping_weight is a global variable used by all weight based shipping modules ...

    If you change the weight, as in this line:
    Code:
        $shipping_weight = $parcelweight ;  // global value for zencart
    You have changed the weight for ALL other shipping modules ...

    Look at how the other shipping modules such as UPS and USPS use the weight by setting their "own" variable from the $shipping_weight ...

    This allows that they use can "use" the calculated weight, but they cannot "alter" the calculated weight so that any other weight based shipping module can access the correct weight ...

    Example, in UPS, the weight is used with:
    Code:
        // ups doesnt accept zero weight send 1 ounce (0.0625) minimum
        $ups_shipping_weight = ($shipping_weight <= 0 ? 0.0625 : $shipping_weight);
    NOTE: the value 0.0625 is new to the upcoming v1.3.9 to account for a more accurate 1 ounce than the current 0.10 that has been used in older Zen Cart versions ...

    Just fun thoughts for you folks to think about in the updates to this, and other, shipping modules ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

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

    Default Re: ozpost shipping module

    Quote Originally Posted by Ajeh View Post
    There is an issue on this shipping module that those of you who use more than this module with weight ...

    $shipping_weight is a global variable used by all weight based shipping modules ...

    If you change the weight, as in this line:
    Code:
        $shipping_weight = $parcelweight ;  // global value for zencart
    You have changed the weight for ALL other shipping modules ...

    <snip>

    Just fun thoughts for you folks to think about in the updates to this, and other, shipping modules ...
    Gulp. Nice catch.

    For anyone needing an immediate fix, just comment out / delete the line in question. It is/was an unintentional addition to the code somewhere along the line. It has no use for the ozpost module, and will only screw things up other modules.

    Cheers
    Rod

  6. #306
    Join Date
    May 2007
    Location
    Melbourne, Australia
    Posts
    88
    Plugin Contributions
    0

    Default Re: ozpost shipping module

    Quote Originally Posted by nukebiz View Post
    hmm, interesting quirk with the the SimpleXMLElement error (using v1.0.4).

    If my store name is a single word, I get the error, but if I have a two word store name, I don't get the error
    i.e. the space eliminates the problem
    Hi nukebiz,

    I tried a two word store name but it doesn't stop the problem.
    I printed out the session path to see where its storing sessions and realized that its still trying to access the cache in my original directory.
    as in
    /blahblah/www/shopfront/cache

    Originally my installation directory was called shopfront, but I renamed it to "old shopfront" when I decided to try a new zencart installation. I'm using the "old shopfront" as a test situation.
    The newer operational site I then stored in the shopfront directory.
    So I'm running the zencart from the "old shopfront" directory, but it tries to access the cache in the "shopfront" directory.
    I suspect the cache path is being taken from the database which was created when the files were originally stored in the shopfront directory.
    Ok, long winded.

    The question is: If you rename your zencart folder to the name it originally had when you first installed it, does it fix the problem?

  7. #307
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    978
    Plugin Contributions
    6

    Default Re: ISO-3 Country Codes

    Do ISO-3 country codes work with this module/Australia Post?

    ie includes\modules\shipping\ozpost.php
    Line 208

    $dest_country=$order->delivery['country']['iso_code_2'];

    Line 357-8
    // Set destination code ( postcode if AU, else 2 char iso country code )
    $dcode = ($dest_country == "AU") ? $topcode:$dest_country ;


    Further discussion on changing from ISO-2:
    http://www.zen-cart.com/forum/showthread.php?t=77350

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

    Default Re: ISO-3 Country Codes

    Quote Originally Posted by dw08gm View Post
    Do ISO-3 country codes work with this module/Australia Post?
    They'll work, but only if you locate and change each instance of code where comparisons are made.

    Note: The request to the server must be ISO-2.

    Why are you asking anyway? Have you identified a problem with the ISO-2?

    Cheers
    Rod

  9. #309
    Join Date
    Jan 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: ozpost shipping module

    Quote Originally Posted by RodG View Post
    Ooop. Wrong file was arrached. Use this one instead <sigh>

    Tired and late/
    Hi Rod,

    Thank You very much for your efforts, it worked as soon as I have replaced the file. But I did reinstall it as you have suggested and everything is under control.

    Thank you again for your help!

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

    Default Re: ozpost shipping module

    Quote Originally Posted by poohbear View Post
    it worked as soon as I have replaced the file. But I did reinstall it as you have suggested and everything is under control.

    Thank you again for your help!
    Without doing the reinstall would have been fine for you, until you decided that you wanted to offer overseas letters :-)

    Cheers
    Rod

 

 

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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR