Jump to content

Edit History

art Nando

art Nando

J'ai trouvé la fonction, module ps_emailsubscription.php, mais pas le bug :( si qqun a une piste

    public function hookAdditionalCustomerFormFields($params)
    {
        $label = $this->trans(
            'Sign up for our newsletter[1][2]%conditions%[/2]',
            [
                '_raw' => true,
                '[1]' => '<br>',
                '[2]' => '<em>',
                '%conditions%' => Tools::htmlentitiesUTF8(
                    Configuration::get('NW_CONDITIONS', $this->context->language->id)
                ),
                '[/2]' => '</em>',
            ],
            'Modules.Emailsubscription.Shop'
        );

        return [
            (new FormField())->setName('newsletter')->setType('checkbox')->setLabel($label),
        ];

 

art Nando

art Nando

J'ai trouver la fonction, module ps_emailsubscription.php, mais pas le bug :( si qqun a une piste

    public function hookAdditionalCustomerFormFields($params)
    {
        $label = $this->trans(
            'Sign up for our newsletter[1][2]%conditions%[/2]',
            [
                '_raw' => true,
                '[1]' => '<br>',
                '[2]' => '<em>',
                '%conditions%' => Tools::htmlentitiesUTF8(
                    Configuration::get('NW_CONDITIONS', $this->context->language->id)
                ),
                '[/2]' => '</em>',
            ],
            'Modules.Emailsubscription.Shop'
        );

        return [
            (new FormField())->setName('newsletter')->setType('checkbox')->setLabel($label),
        ];

 

×
×
  • Create New...