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
Bookmarks