Add UI and i18n for USPS insurance.

This commit is contained in:
Colin Kuskie 2009-09-26 11:18:32 -07:00
parent b21fd6ffbe
commit 4ee1f56aa3
2 changed files with 18 additions and 0 deletions

View file

@ -262,6 +262,12 @@ sub definition {
options => \%shippingTypes,
defaultValue => 'PARCEL',
},
addInsurance => {
fieldType => 'yesNo',
label => $i18n->get('add insurance'),
hoverHelp => $i18n->get('add insurance help'),
defaultValue => 0,
},
##Note, if a flat fee is added to this driver, then according to the license
##terms the website must display a note to the user (shop customer) that additional
##fees have been added.

View file

@ -94,6 +94,18 @@ our $I18N = {
context => q|Label for a type of shipping from the USPS.|,
},
'add insurance' => {
message => q|Ship with insurance?|,
lastUpdated => 1253988886,
context => q|Label for a type of shipping from the USPS.|,
},
'add insurance help' => {
message => q|If set to yes, the shipping plugin will ask the USPS for the cost of insuring this shipment. The cost will be added to the total cost of shipping. If insurance is not available, then the option to use this driver will not be presented to the user.|,
lastUpdated => 1253988884,
context => q|Label for a type of shipping from the USPS.|,
},
};
1;