fix a bug where getOptions returns all shipping drivers, regardless of their enabled status
This commit is contained in:
parent
3aefdb6ce5
commit
90c82daaeb
3 changed files with 30 additions and 3 deletions
|
|
@ -98,6 +98,7 @@ sub getOptions {
|
|||
my $session = $cart->session;
|
||||
my %options = ();
|
||||
foreach my $shipper (@{$self->getShippers()}) {
|
||||
next unless $shipper->get('enabled');
|
||||
$options{$shipper->getId} = {
|
||||
label => $shipper->get("label"),
|
||||
price => $shipper->calculate($cart),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue