[wellwell-devel] [wellwell] Add clear function to cart action map.
Stefan Hornburg
wellwell-devel at rt.icdevgroup.org
Wed Sep 15 10:45:02 UTC 2010
commit 3aee685dd65941ead15c5f90aaa7ed789c6ee7db
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date: Wed Sep 15 12:40:00 2010 +0200
Add clear function to cart action map.
code/cart.action | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/code/cart.action b/code/cart.action
index 706f89f..d2bf000 100644
--- a/code/cart.action
+++ b/code/cart.action
@@ -11,6 +11,11 @@ sub {
return 1;
}
+ # clear function?
+ if ($CGI->{clear}) {
+ $Tag->cart_clear();
+ }
+
# remove function?
for (my $i = 0; $i < @$Items; $i++) {
if ($CGI->{"zeroquantity$i"}) {
More information about the wellwell-devel
mailing list