fix a bug where getOptions returns all shipping drivers, regardless of their enabled status

This commit is contained in:
Colin Kuskie 2008-08-20 18:03:46 +00:00
parent 3aefdb6ce5
commit 90c82daaeb
3 changed files with 30 additions and 3 deletions

View file

@ -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),