on the shipped email too
authorTony Cook <tony@develop-help.com>
Wed, 3 Jul 2013 14:16:46 +0000 (00:16 +1000)
committerTony Cook <tony@develop-help.com>
Sun, 21 Jul 2013 23:34:16 +0000 (09:34 +1000)
site/cgi-bin/modules/BSE/TB/Order.pm
site/templates/email/ordershipped.tmpl

index 7e37d29..0c99860 100644 (file)
@@ -7,7 +7,7 @@ use vars qw/@ISA/;
 use Carp 'confess';
 use BSE::Shop::PaymentTypes;
 
-our $VERSION = "1.022";
+our $VERSION = "1.023";
 
 sub columns {
   return qw/id
@@ -638,6 +638,7 @@ sub send_shipped_email {
      log_msg => "Notify customer that Order No. " . $self->id . " has shipped",
      log_object => $self,
      log_component => "shopadmin:orders:saveorder",
+     vars => { order => $self },
     );
   if ($self->emailAddress && $self->billEmail
       && lc $self->emailAddress ne $self->billEmail) {
index 850e490..55ffebd 100644 (file)
@@ -1,4 +1,4 @@
-Your order <:order id |%05d:> has been shipped.
+Your order <:= order.id.format("%05d"):> has been shipped.
 <:ifOrder freight_tracking
 :>It has tracking code <:order freight_tracking:>