如何使checkstopop 1.7中的默认选项卡在checkout过程中被选中?如何在结账过程中在prestashop 1.7中默认选中通讯复选框?
更新: 我发现那里的形式rendrered文件: \模块\ ps_emailsubscription \ ps_emailsubscription.php
但是足够惊人有定义没有改变属性的功能。
public function hookAdditionalCustomerFormFields($params)
{
$label = $this->trans(
'Sign up for our newsletter[1][2]%conditions%[/2]',
array(
'[1]' => '<br>',
'[2]' => '<em>',
'%conditions%' => Configuration::get('NW_CONDITIONS', $this->context->language->id),
'[/2]' => '</em>',
),
'Modules.Emailsubscription.Shop'
);
return array(
(new FormField())
->setName('newsletter')
->setType('checkbox')
->setLabel($label));
}