Skip to content
Permalink
Browse files

Display an error message anytime the cart is viewed if it has mixed i…

…tems (recurring and non-recurring, or too many recurring). Fixes bug #12211.
  • Loading branch information...
perlDreamer committed Sep 12, 2011
1 parent 1acc641 commit 1f9413e2a58c6dba01b7dd1f7a7d3c49d8b9de12
Showing with 5 additions and 1 deletion.
  1. +1 −0 docs/changelog/7.x.x.txt
  2. +4 −1 lib/WebGUI/Shop/Cart.pm
@@ -11,6 +11,7 @@
- fixed #12246: added extra_www_add_properties as properties fix-up hook in child for www_add
- fixed #12231: Thingy reindex fails on upgrade
- fixed #12245: Encrypt Login and Display Message on Login conflict
- fixed #12211: Recurring Item error message in Cart

7.10.22
- rfe #12223: Add date type to content profiling (metadata)
@@ -1024,6 +1024,10 @@ sub www_view {
return $session->style->userStyle($template->process(\%var));
}

if ($self->hasMixedItems) {
$error{id $self} = $i18n->get('mixed items warning');
}

my %var = (
%{$self->get},
formHeader => WebGUI::Form::formHeader($session, { extras => q|id="wgCartId"|, })
@@ -1047,7 +1051,6 @@ sub www_view {
shippableItemsInCart => $self->requiresShipping,
);


# get the shipping address
my $address = eval { $self->getShippingAddress };
if (my $e = WebGUI::Error->caught("WebGUI::Error::ObjectNotFound") && $self->get('shippingAddressId')) {

0 comments on commit 1f9413e

Please sign in to comment.
You can’t perform that action at this time.