a lot of session fixes... I'm sure this breaks something somewhere though.
This commit is contained in:
parent
279233b367
commit
0c177bacb1
10 changed files with 38 additions and 24 deletions
|
|
@ -62,8 +62,8 @@ sub configurationForm {
|
|||
sub init {
|
||||
my ($class, $self);
|
||||
$class = shift;
|
||||
|
||||
$self = $class->SUPER::init('ByPrice');
|
||||
my $session = shift;
|
||||
$self = $class->SUPER::init($session,'ByPrice');
|
||||
|
||||
return $self;
|
||||
}
|
||||
|
|
@ -77,8 +77,8 @@ Returns the internationalized name for this shipping plugin.
|
|||
=cut
|
||||
|
||||
sub name {
|
||||
my ($session) = @_;
|
||||
my $i18n = WebGUI::International->new($session, 'CommerceShippingByPrice');
|
||||
my ($self) = @_;
|
||||
my $i18n = WebGUI::International->new($self->session, 'CommerceShippingByPrice');
|
||||
return $i18n->get('title');
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -70,8 +70,8 @@ Constructor
|
|||
sub init {
|
||||
my ($class, $self);
|
||||
$class = shift;
|
||||
|
||||
$self = $class->SUPER::init('ByWeight');
|
||||
my $session = shift;
|
||||
$self = $class->SUPER::init($session,'ByWeight');
|
||||
|
||||
return $self;
|
||||
}
|
||||
|
|
@ -85,8 +85,8 @@ Returns the internationalized name for this shipping plugin.
|
|||
=cut
|
||||
|
||||
sub name {
|
||||
my ($session) = @_;
|
||||
my $i18n = WebGUI::International->new($session, 'CommerceShippingByWeight');
|
||||
my $self = shift;
|
||||
my $i18n = WebGUI::International->new($self->session, 'CommerceShippingByWeight');
|
||||
return $i18n->get('title');
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ use strict;
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 calc ( $session )
|
||||
=head2 calc ( $self )
|
||||
|
||||
Calculate the shipping price for this plugin.
|
||||
|
||||
|
|
@ -33,7 +33,7 @@ sub calc {
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 configurationForm ( $session )
|
||||
=head2 configurationForm ( $self )
|
||||
|
||||
Configuration form for this shipping method.
|
||||
|
||||
|
|
@ -65,8 +65,8 @@ Constructor
|
|||
sub init {
|
||||
my ($class, $self);
|
||||
$class = shift;
|
||||
|
||||
$self = $class->SUPER::init('PerTransaction');
|
||||
my $session = shift;
|
||||
$self = $class->SUPER::init($session,'PerTransaction');
|
||||
|
||||
return $self;
|
||||
}
|
||||
|
|
@ -80,8 +80,8 @@ Returns the internationalized name for this shipping plugin.
|
|||
=cut
|
||||
|
||||
sub name {
|
||||
my ($session) = @_;
|
||||
my $i18n = WebGUI::International->new($session, 'CommerceShippingPerTransaction');
|
||||
my ($self) = shift;
|
||||
my $i18n = WebGUI::International->new($self->session, 'CommerceShippingPerTransaction');
|
||||
return $i18n->get('title');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue