Supply a value, and a default value for Shop/Admin.
This commit is contained in:
parent
60d8ce370e
commit
c3727be61f
1 changed files with 11 additions and 9 deletions
|
|
@ -202,17 +202,19 @@ sub www_editSettings {
|
|||
hoverHelp => $i18n->get("my purchases detail template help"),
|
||||
);
|
||||
$form->template(
|
||||
name => 'shopReceiptEmailTemplateId',
|
||||
namespace => "Shop/EmailReceipt",
|
||||
label => $i18n->get("receipt email template"),
|
||||
hoverHelp => $i18n->get("receipt email template help"),
|
||||
defaultValue => 'bPz1yk6Y9uwMDMBcmMsSCg',
|
||||
name => 'shopReceiptEmailTemplateId',
|
||||
namespace => "Shop/EmailReceipt",
|
||||
label => $i18n->get("receipt email template"),
|
||||
hoverHelp => $i18n->get("receipt email template help"),
|
||||
defaultValue => 'bPz1yk6Y9uwMDMBcmMsSCg',
|
||||
value => $setting->get("shopReceiptEmailTemplateId"),
|
||||
);
|
||||
$form->group(
|
||||
name => 'shopSaleNotificationGroupId',
|
||||
label => $i18n->get("sale notification group"),
|
||||
hoverHelp => $i18n->get("sale notification group help"),
|
||||
defaultValue => '3',
|
||||
name => 'shopSaleNotificationGroupId',
|
||||
label => $i18n->get("sale notification group"),
|
||||
hoverHelp => $i18n->get("sale notification group help"),
|
||||
defaultValue => '3',
|
||||
value => $setting->get("shopSaleNotificationGroupId"),
|
||||
);
|
||||
$form->submit;
|
||||
return $ac->render($form->print, $i18n->get("shop settings"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue