Results 1 to 10 of 2252

Hybrid View

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

    Default Re: ozpost shipping module

    Quote Originally Posted by dw08gm View Post
    1. To enable working on localhost, Line 81 was changed from
    Code:
        $this->SERVER = 'ozpost.net';
    to
    Code:
    //  $this->SERVER = 'ozpost.net';
        $this->SERVER = 'localhost/myshop/' ;    // local testing
    This won't work for you (or anyone other than myself), simply because I'm the only one with the server code on my localhost.

    Quote Originally Posted by dw08gm View Post

    2. To disable mod when certain categories (art products requiring specialist shipping, not subject to default Flat Rate) are in cart, after Lines 91-92
    Code:
    // disable only when entire cart is free shipping
       if (zen_get_shipping_enabled($this->code))  $this->enabled = ((MODULE_SHIPPING_OZPOST_STATUS == 'True') ? true : false);
    This is 'standard' code that can/should be found in all shipping modules (only the 'define' will vary).

    Quote Originally Posted by dw08gm View Post
    was inserted
    Code:
    // bof disable for certain categories in cart
        if (IS_ADMIN_FLAG == false) {
          if (($_SESSION['cart']->in_cart_check('master_categories_id','4') > 0) ||
              ($_SESSION['cart']->in_cart_check('master_categories_id','5') > 0) ||
              ($_SESSION['cart']->in_cart_check('master_categories_id','6') > 0))
              {
              $this->enabled = false;
              }
            }
    // eof disable for certain categories in cart
    This code example is also applicable to any other shipping module that utilises the $this->enabled variable. The category numbers will vary from store to store though.

    Quote Originally Posted by dw08gm View Post
    Now I wish to apply similar functionality to \includes\modules\shipping\ozpost.php of OzPost 3.4.0 for 151 version of same store, and am seeking confirmation whether same code as above can be applied to around line 240. If so, but code needs to be changed, can you please provide appropriate code?
    The actual line number will vary greatly from module to module and version to version. The code isn't ozpost specific (I probably used an example provided by Ajeh for another module when I provided this info to you).

    Simply put, the $this->enabled variable is just a switch to enable/disable the module(s). The "if (zen_get_shipping_enabled($this->code))........ " turns this switch off/on dependent on the admin configuration settings, and you place whatever code you like in the lines that follow to turn it off/on according to store specific needs. In the example given, it will be disabled for category numbers 4,5 and 6.

    Does that help?
    Cheers
    Rod

  2. #2
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    984
    Plugin Contributions
    6

    Default Re: ozpost shipping module

    Quote Originally Posted by RodG View Post
    This won't work for you (or anyone other than myself), simply because I'm the only one with the server code on my localhost.
    Yes I realise this. IIRC, back then, this code ($this->SERVER = 'localhost/myshop/' ;) was inserted to enable working on my localhost setup while NOT connected to the internet. Otherwise I would continually get cURL error and server not found messages unless connected to the internet. Unless there is another way around...

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

    Default Re: ozpost shipping module

    Quote Originally Posted by dw08gm View Post
    Yes I realise this. IIRC, back then, this code ($this->SERVER = 'localhost/myshop/' ;) was inserted to enable working on my localhost setup while NOT connected to the internet. Otherwise I would continually get cURL error and server not found messages unless connected to the internet. Unless there is another way around...
    I seriously have no explanation, but as stated, this change won't help in any way shape or form. Its *only* purpose is/was for *my* use, and it can only work with the appropriate code on the server being defined (in this case, localhost). Without the appropriate code it will either cause a cURL error message (which is a bit misleading, as the same error will be generated even if cURL is fully functional. Strictly speaking the error should read "Unable to retrieve valid data from the server", OR, if used from the front end of the store it'll cause the module to use the 'static rates' for quoting, because it won't be able to retrieve valid quotes from the live servers.

    Cheers
    Rod

  4. #4
    Join Date
    Jun 2009
    Posts
    26
    Plugin Contributions
    0

    Default Re: ozpost shipping module

    Hi Rod,

    got the below email from my mum, are you aware and prepared for the changes?

    I had a visit today from a representative from Australia Post who had been looking at our website and was wondering if there was anything they could do to help us. Anyway during the conversation it came up that Registered Post is going to be no longer as of 13th April, and the prices are going up etc. She said we would have got an email from Australia Post regarding our freight calculator on the website. I am guessing that we haven’t because the one we have is not genuine … is that correct, or have you received an email?

    Apparently the option will now be to pay $2.95 for a signature (and possibly tracking) and it will be extra for insurance.
    found this to back it up: http://auspost.com.au/about-us/april-price-rises.html

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

    Default Re: ozpost shipping module

    Quote Originally Posted by gmturner View Post
    Hi Rod,
    got the below email from my mum, are you aware and prepared for the changes?
    Yes, I'm aware of the changes

    The ozpost servers will be providing the new prices sometime during next weekend (6th or 7th Apr). I need to make some significant code changes (server side) to cater for the new International Zones, so the exact timing will depend very much on this.

    The most significant/notable change that will affect most merchants is the cessation of the registered parcel service. This has been/will be replaced with the 'new' service called 'SOD' (Signature on delivery).

    Due to the time it is going to take to update all of the client software to 'support' the 'new' service, the ozpost servers will be 'replacing' the registered parcel quotes with the regular parcel prices plus the SOD charges, as per the information provided by Australia Post

    http://auspost.com.au/parcels-mail/new-prices.html
    "Want the same offering as Registered Post for your parcel delivery?

    Simply choose the regular product, Parcel Post, and then add Signature on Delivery or Extra Cover as optional features"

    Unless demand is high I am not considering adding the new same day courier services as being a high priority addition.

    It should also be noted that Australia Post are hiring stronger workers these days, and the new team can lift a massive 22kg (up from the previous 20kg limit). :)

    There are also changes being made to the 'Click n Send' system, but as yet they haven't released any details, so there is a possibility that this function may get broken as a result of the changes. Time will tell.

    Prepaid Express Post 3kg large and Express Post 5kg large satchels will be withdrawn from 8 April 2013. The ozpost servers will cease providing quotes for these items, which will effectively disable them as being a valid method by existing client software.

    As a general rule, most ozpost users/merchants won't be affected by these changes (other than the increased costs), the only thing to be mindful of is that as of 8th April Registered parcels will no longer exist and quotes provided for this method really mean 'Regular parcel with signature'.

    There will be no need to update the client software as a result of any of these changes. However, I do hope to release updated client software in the next month or so as I've recently been working on support for StarTrack Express, and may even find time to add Couriers Please and Smartsend to the list of supported carriers (plus the usual bugfixes and tweaks).

    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

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