Results 1 to 10 of 2252

Threaded View

  1. #11
    Join Date
    Aug 2007
    Posts
    118
    Plugin Contributions
    0

    Default Re: ozpost shipping module - Estimated Delivery Days

    Hi Rod

    An FYI for you and others. I've finally narrowed it down and have transit days displayed beyond 'quoting' shipping' i.e., displayed in subsequent checkout pages, order history and order confirmation emails.

    Example - BEFORE:

    Your Total
    Sub-Total: $xx.xx
    Australia Post (500gm Prepaid Satchel Express): $xx.xx
    Goods & Services Tax: $xx.xx
    Total: $xx.xx

    Example - AFTER:

    Your Total
    Sub-Total: $xx.xx
    Australia Post (500gm Prepaid Satchel Express - 1 day(s) est. transit): $xx.xx
    Goods & Services Tax: $xx.xx
    Total: $xx.xx


    Changed code as follows:
    Code:
              // store it //
    // GAM hack - 8/6/2010 - include estimated delivery days in shipping_method (of DB) for email, order history, etc)
    //      $methods[] = array('id' => "$quote->id",  'title' => "$carrier $description $estimateddays $details", 'cost' => ($cost / $aus_rate),'txtCarrier' => $txtCarrier,'txtMethod' => "$quote->description");
          $methods[] = array('id' => "$quote->id",  'title' => "$carrier $description $estimateddays $details", 'cost' => ($cost / $aus_rate),'txtCarrier' => $txtCarrier,'txtMethod' => "$quote->description"." - ".$quote->days." day(s) est. transit");
    Result:
    Australia Post (500gm Prepaid Satchel Express - 1 day(s) est. transit)

    Result is stored in shipping_method of zen_orders which is what is used to populate the post-checkout order information.

    Blunt hack that's working for me. :) There are more elegant ways but I don't have the PHP skills to do any better at the moment.


    Cheers
    Greig
    Last edited by GAM; 8 Jun 2010 at 01:19 PM.

 

 

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