[wellwell-devel] [SCM] Interchange wellwell catalog branch, master, updated. 87a221ecd11e9ef9ee5f05e097d3a2ff4d665120

Stefan Hornburg racke at rt.icdevgroup.org
Tue Feb 9 20:33:37 UTC 2010


       via  87a221ecd11e9ef9ee5f05e097d3a2ff4d665120 (commit)
      from  368a6d7333f92dfd817aa6f8e0f37706738f1600 (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 87a221ecd11e9ef9ee5f05e097d3a2ff4d665120
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date:   Tue Feb 9 21:31:31 2010 +0100

    using one hook named cart now, passing operation and cart name

-----------------------------------------------------------------------

Summary of changes and diff:
 lib/WellWell/Cart.pm |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/WellWell/Cart.pm b/lib/WellWell/Cart.pm
index 315dfb8..6a8127d 100644
--- a/lib/WellWell/Cart.pm
+++ b/lib/WellWell/Cart.pm
@@ -77,7 +77,7 @@ sub cart_add {
 	
 	$itemref = cart_item($sku, $quantity, $opt);
 	
-    WellWell::Core::hooks('run', 'cart_item_add', $itemref);
+    WellWell::Core::hooks('run', 'cart', 'add', 'main', $itemref);
 
 	if ($itemref->{error}) {
 		# one of the hooks denied the item
@@ -121,7 +121,7 @@ sub cart_refresh {
 		if (defined $quantity) {
 			if ($quantity =~ /^(\d+)$/ && $quantity != $itemref->{quantity}) {
 				if ($quantity == 0) {
-					WellWell::Core::hooks('run', 'cart_item_delete', $itemref);
+					WellWell::Core::hooks('run', 'cart', 'delete', 'main', $itemref);
 
 					if ($itemref->{error}) {
 						if ($itemref->{log_error}) {
@@ -148,7 +148,7 @@ sub cart_refresh {
 		}
 
 		if (keys %$modref) {
-		    WellWell::Core::hooks('run', 'cart_item_modify', $itemref, $modref);
+		    WellWell::Core::hooks('run', 'cart', 'modify', 'main', $itemref, $modref);
 
 			if ($itemref->{error}) {
 				if ($itemref->{log_error}) {


hooks/post-receive
-- 
Interchange wellwell catalog



More information about the wellwell-devel mailing list