diff --git a/lib/WebGUI/Asset/Sku/Product.pm b/lib/WebGUI/Asset/Sku/Product.pm index e660ecf23..287ad0112 100644 --- a/lib/WebGUI/Asset/Sku/Product.pm +++ b/lib/WebGUI/Asset/Sku/Product.pm @@ -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'); diff --git a/lib/WebGUI/Help/Asset_Product.pm b/lib/WebGUI/Help/Asset_Product.pm index 6ce73bdb2..e60c20e46 100644 --- a/lib/WebGUI/Help/Asset_Product.pm +++ b/lib/WebGUI/Help/Asset_Product.pm @@ -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', diff --git a/lib/WebGUI/i18n/English/Asset_Product.pm b/lib/WebGUI/i18n/English/Asset_Product.pm index 1c5c1fd25..70be15cbd 100644 --- a/lib/WebGUI/i18n/English/Asset_Product.pm +++ b/lib/WebGUI/i18n/English/Asset_Product.pm @@ -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;