[interchange] Refrain from updating latest_subtotal session key on [subtotal nodiscount=1].
Stefan Hornburg
interchange-cvs at icdevgroup.org
Thu Jul 22 08:39:06 UTC 2010
commit e42f2e7513dcf3cd5d23cad1e3cf2727a8f5d248
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date: Thu Jul 22 10:37:23 2010 +0200
Refrain from updating latest_subtotal session key on [subtotal nodiscount=1].
lib/Vend/Interpolate.pm | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/lib/Vend/Interpolate.pm b/lib/Vend/Interpolate.pm
index 4462632..c02f6f1 100644
--- a/lib/Vend/Interpolate.pm
+++ b/lib/Vend/Interpolate.pm
@@ -5784,12 +5784,13 @@ sub subtotal {
$subtotal = $cost;
}
+ $Vend::Session->{latest_subtotal} = $subtotal;
+
# Switch to original discount space if an actual switch occured.
switch_discount_space($oldspace) if $dspace and defined $oldspace;
}
$Vend::Items = $save if defined $save;
- $Vend::Session->{latest_subtotal} = $subtotal;
return $subtotal;
}
More information about the interchange-cvs
mailing list