If there is a problem with the user's billing address, still let them get into the Cart. Fixes bug #12081.
This commit is contained in:
parent
3531c4d913
commit
5c175c42d9
2 changed files with 5 additions and 2 deletions
|
|
@ -1178,6 +1178,9 @@ sub www_view {
|
|||
if ( defined $billingAddress ) {
|
||||
$billingAddressOptions{'update_address'} = sprintf $i18n->get('Update %s'), $billingAddress->get('label');
|
||||
}
|
||||
elsif (my $e = WebGUI::Error->caught("WebGUI::Error::ObjectNotFound") && $self->get('billingAddressId')) {
|
||||
$self->update({billingAddressId=>''});
|
||||
}
|
||||
}
|
||||
|
||||
%billingAddressOptions = (%billingAddressOptions, %addressOptions);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue