If shipping is required by an item in the cart, always display a shipping dropdown or option.

This commit is contained in:
Colin Kuskie 2010-04-28 16:09:34 -07:00
parent 622f1b1658
commit 131d4cb041

View file

@ -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 };