From 131d4cb041bb6c12bc9c095a1917bb332bb8b878 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 28 Apr 2010 16:09:34 -0700 Subject: [PATCH] If shipping is required by an item in the cart, always display a shipping dropdown or option. --- lib/WebGUI/Shop/Cart.pm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/WebGUI/Shop/Cart.pm b/lib/WebGUI/Shop/Cart.pm index 0437fdd07..f216e4640 100644 --- a/lib/WebGUI/Shop/Cart.pm +++ b/lib/WebGUI/Shop/Cart.pm @@ -991,12 +991,10 @@ sub www_view { , shippableItemsInCart => $self->requiresShipping, ); - $session->log->warn('below var block'); - # if there is no shipping address we can't check out - # if there is a shipping address calculate tax and shipping options - if ($address) { - $session->log->warn('have address'); + $var{shippableItemsInCart} = $self->requiresShipping; + if ($var{shippableItemsInCart}) { + $session->log->warn('shipping required'); my $ship = WebGUI::Shop::Ship->new($self->session); my $options = $ship->getOptions($self); my $numberOfOptions = scalar keys %{ $options };