[wellwell-devel] [SCM] Interchange wellwell catalog branch, master, updated. a8d216fc35abfd2d16e63c35b2d73cd8ed15a585
Stefan Hornburg
racke at rt.icdevgroup.org
Fri Apr 9 10:06:52 UTC 2010
via a8d216fc35abfd2d16e63c35b2d73cd8ed15a585 (commit)
from 6fd9aff194242a2d41bda633b9e56184bfe91c5e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a8d216fc35abfd2d16e63c35b2d73cd8ed15a585
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date: Fri Apr 9 12:05:59 2010 +0200
call Vend::Order::automodifier in order to support full range of AutoModifier specification
-----------------------------------------------------------------------
Summary of changes and diff:
lib/WellWell/Cart.pm | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/lib/WellWell/Cart.pm b/lib/WellWell/Cart.pm
index 33904b7..8996152 100644
--- a/lib/WellWell/Cart.pm
+++ b/lib/WellWell/Cart.pm
@@ -55,11 +55,13 @@ sub cart_item {
mv_mi => Vend::Tags->time({format => '%s'}) . sprintf('%06d', ++$Vend::Session->{pageCount}),
mv_si => 0);
- $product_ref = $db_products->row_hash($sku);
-
- if (ref($Vend::Cfg->{AutoModifier}) eq 'ARRAY') {
- for (@{$Vend::Cfg->{AutoModifier}}) {
- $item{$_} = $opt->{$_} || $product_ref->{$_};
+ # get automodifiers
+ Vend::Order::auto_modifier(\%item);
+
+ # apply possible overrides
+ for (keys %item) {
+ if ($opt->{$_}) {
+ $item{$_} = $opt->{$_};
}
}
hooks/post-receive
--
Interchange wellwell catalog
More information about the wellwell-devel
mailing list