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,
|
shippableItemsInCart => $self->requiresShipping,
|
||||||
);
|
);
|
||||||
$session->log->warn('below var block');
|
|
||||||
|
|
||||||
# if there is no shipping address we can't check out
|
$var{shippableItemsInCart} = $self->requiresShipping;
|
||||||
# if there is a shipping address calculate tax and shipping options
|
if ($var{shippableItemsInCart}) {
|
||||||
if ($address) {
|
$session->log->warn('shipping required');
|
||||||
$session->log->warn('have address');
|
|
||||||
my $ship = WebGUI::Shop::Ship->new($self->session);
|
my $ship = WebGUI::Shop::Ship->new($self->session);
|
||||||
my $options = $ship->getOptions($self);
|
my $options = $ship->getOptions($self);
|
||||||
my $numberOfOptions = scalar keys %{ $options };
|
my $numberOfOptions = scalar keys %{ $options };
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue