[wellwell-devel] [wellwell] Apply fix for catalogs without AutoModifier to WellWell::Cart.

Stefan Hornburg wellwell-devel at rt.icdevgroup.org
Thu Jul 15 08:11:42 UTC 2010


commit ce0d113dd76742fcee52c17c2ed9dbfa71e3740c
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date:   Thu Jul 15 10:10:57 2010 +0200

    Apply fix for catalogs without AutoModifier to WellWell::Cart.

 lib/WellWell/Cart.pm |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/lib/WellWell/Cart.pm b/lib/WellWell/Cart.pm
index 804b7f6..a76346e 100644
--- a/lib/WellWell/Cart.pm
+++ b/lib/WellWell/Cart.pm
@@ -57,8 +57,10 @@ sub cart_item {
 			 mv_si => 0);
 
 	# get automodifiers
-	Vend::Order::auto_modifier(\%item);
-
+	if (ref($Vend::Cfg->{UseModifier}) eq 'ARRAY') {
+		Vend::Order::auto_modifier(\%item);
+	}
+	
 	# apply possible overrides
 	for (keys %item) {
 		if ($opt->{$_}) {



More information about the wellwell-devel mailing list