If shipping is required by an item in the cart, always display a shipping dropdown or option.
This commit is contained in:
parent
622f1b1658
commit
131d4cb041
1 changed files with 3 additions and 5 deletions
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue