diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 35a084f63..316729373 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -17,6 +17,7 @@ - added RFE #10940: Force the user to pick a shipping method before checking out. - fixed #10988: EMS Schedule -- Data Error - fixed: DataForm allows edits when locked by another version tag + - fixed #11001: Shipping plugin returning nothing, causing price formatter to puke 7.8.0 - upgraded YUI to 2.8.0r4 diff --git a/lib/WebGUI/Shop/Cart.pm b/lib/WebGUI/Shop/Cart.pm index b9a3d5ace..ad46939e6 100644 --- a/lib/WebGUI/Shop/Cart.pm +++ b/lib/WebGUI/Shop/Cart.pm @@ -865,8 +865,10 @@ sub www_view { foreach my $option (keys %{$options}) { $formOptions{$option} = $options->{$option}{label}." (".$self->formatCurrency($options->{$option}{price}).")"; } - my $defaultOption = $self->get('shipperId') ? $self->get('shipperId') : ''; $var{shippingOptions} = WebGUI::Form::selectBox($session, {name=>"shipperId", options=>\%formOptions, value=>$self->get("shipperId")}); + if (!exists $options->{$self->get('shipperId')}) { + $self->update({shipperId => ''}); + } if (my $shipperId = $self->get('shipperId')) { $var{shippingPrice} = $options->{$shipperId}->{price}; }