finalize template variable names for the variant buy form. Add help for template variables and i18n
This commit is contained in:
parent
3ae4c8692b
commit
a0ef1b5494
3 changed files with 29 additions and 5 deletions
|
|
@ -1354,10 +1354,10 @@ sub view {
|
|||
});
|
||||
$variants{$id} = $collateral->{shortdesc};
|
||||
}
|
||||
$var{buyFormHeader} = WebGUI::Form::formHeader($session, { action => $self->getUrl} )
|
||||
. WebGUI::Form::hidden($session, { name=>'func', value=>'buy', } );
|
||||
$var{buyFormFooter} = WebGUI::Form::formFooter($session);
|
||||
$var{buyOptions} = WebGUI::Form::selectBox($session,
|
||||
$var{buy_form_header} = WebGUI::Form::formHeader($session, { action => $self->getUrl} )
|
||||
. WebGUI::Form::hidden($session, { name=>'func', value=>'buy', } );
|
||||
$var{buy_form_footer} = WebGUI::Form::formFooter($session);
|
||||
$var{buy_options} = WebGUI::Form::selectBox($session,
|
||||
{
|
||||
name => 'vid',
|
||||
label => $i18n->get('add to cart'),
|
||||
|
|
@ -1365,7 +1365,7 @@ sub view {
|
|||
value => [0],
|
||||
},
|
||||
);
|
||||
$var{buyButton} = WebGUI::Form::submit($session, { value => $i18n->get('add to cart') } );
|
||||
$var{buy_button} = WebGUI::Form::submit($session, { value => $i18n->get('add to cart') } );
|
||||
if ($self->canEdit) {
|
||||
$var{'addvariant.url'} = $self->getUrl('func=editVariant');
|
||||
$var{'addvariant.label'} = $i18n->get('add a variant');
|
||||
|
|
|
|||
|
|
@ -55,6 +55,10 @@ our $HELP = {
|
|||
{ 'name' => 'variant.quantity' },
|
||||
]
|
||||
},
|
||||
{ 'name' => 'buy_form_header' },
|
||||
{ 'name' => 'buy_form_options' },
|
||||
{ 'name' => 'buy_form_button' },
|
||||
{ 'name' => 'buy_form_footer' },
|
||||
{ 'name' => 'addspecification.url' },
|
||||
{ 'name' => 'addspecification.label' },
|
||||
{ 'name' => 'specification_loop',
|
||||
|
|
|
|||
|
|
@ -753,6 +753,26 @@ be useful, others may not.|,
|
|||
context => q|The label for the add to cart button.|
|
||||
},
|
||||
|
||||
'buy_form_header' => {
|
||||
message => q|HTML code to start the form for putting variant into a shopping cart. |,
|
||||
lastUpdated => 1210611784,
|
||||
},
|
||||
|
||||
'buy_form_options' => {
|
||||
message => q|A dropdown list of available variants for this product.|,
|
||||
lastUpdated => 1210611784,
|
||||
},
|
||||
|
||||
'buy_form_button' => {
|
||||
message => q|The submit button for the form, with internationalized text.|,
|
||||
lastUpdated => 1210611784,
|
||||
},
|
||||
|
||||
'buy_form_footer' => {
|
||||
message => q|HTML code to end the form for putting variant into a shopping cart. |,
|
||||
lastUpdated => 1210611784,
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue