Commerce changes:
Credit Card failures now bounce user back to checkout screen with error there Added Check commerce plugin and removed select box from Cash plugin. Users now don't have to chose twice. Added label to each payment plugin. ITransact module now defaults to "Credit Card" for display purposes.
This commit is contained in:
parent
b5be9f79a3
commit
2c1005522b
9 changed files with 364 additions and 44 deletions
|
|
@ -97,7 +97,13 @@ sub configurationForm {
|
|||
|
||||
$f = WebGUI::HTMLForm->new($self->session);
|
||||
my $i18n = WebGUI::International->new($self->session, 'Commerce');
|
||||
$f->yesNo(
|
||||
$f->text(
|
||||
-name => $self->prepend('label'),
|
||||
-value => $self->label,
|
||||
-label => $i18n->get('label'),
|
||||
-hoverHelp => $i18n->get('label hoverhelp'),
|
||||
);
|
||||
$f->yesNo(
|
||||
-name => $self->prepend('enabled'),
|
||||
-value => $self->enabled,
|
||||
-label => $i18n->get('enable'),
|
||||
|
|
@ -289,6 +295,19 @@ sub errorCode {
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 label ( )
|
||||
|
||||
Returns the label for the commerce plugin.
|
||||
|
||||
=cut
|
||||
|
||||
sub label {
|
||||
my $self = shift;
|
||||
return $self->get("label") || $self->namespace;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 load ( namespace )
|
||||
|
||||
A convienient method to load a plugin. It handles all error checking and stuff for you.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue