as in the settings of non-active subscribers (Not Activated), transfer to the status of Subscribed, that is, subscribing to the news. I think that there is a way without following the subscription activation link.

    1 answer 1

    in system(систСма)->configuration(конфигурация)->ΠΊΠ»ΠΈΠ΅Ρ‚Ρ‹(customers)->newslatter(рассылка)->ΠŸΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€Ρ‹ подписки(params newslater)->НСобходимо ΠΏΠΎΠ΄Ρ‚Π²Π΅Ρ€ΠΆΠ΅Π½ΠΈΠ΅(requir apruve) settings system(систСма)->configuration(конфигурация)->ΠΊΠ»ΠΈΠ΅Ρ‚Ρ‹(customers)->newslatter(рассылка)->ΠŸΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€Ρ‹ подписки(params newslater)->НСобходимо ΠΏΠΎΠ΄Ρ‚Π²Π΅Ρ€ΠΆΠ΅Π½ΠΈΠ΅(requir apruve) set it to Π½Π΅Ρ‚(no) English localization It may not match as I wrote from memory.

    to activate all non activated we write the shell

     $newsletterCollection = Mage::getModel('newsletter/subscriber')->getCollection(); // Ρ„ΠΈΠ»ΡŒΡ‚Ρ€ΡƒΠ΅ΠΌ ΠΊΠΎΠ»Π»Π΅ΠΊΡ†ΠΈΡŽ ΠΏΠΎ Ρ‚Π΅ΠΌ Ρ‡ΡŒΠΈ email Π½Π΅ ΠΏΠΎΠ΄Ρ‚Π²Π΅Ρ€ΠΆΠ΄Π΅Π½Π½Ρ‹ $newsletterCollection->addFieldToFilter('status',2); foreach($newsletterCollection->load() as $_newsletter) { $_newsletter->setStatus(1); // ставим статус ΠΏΠΎΠ΄Ρ‚Π²Π΅Ρ€ΠΆΠ΄Ρ‘Π½ $_newsletter->save(); // сохраняСм подписчика echo $_newsletter->getEmail().'[ok]'.PHP_EOL; // добавляСм Π²Ρ‹Π²ΠΎΠ΄ } 

    how to write a shell? in the shell folder, create a file myshell.php

    with content

     require_once 'abstract.php'; class My_Shell_MyShell extends Mage_Shell_Abstract { public function run() { if ($this->getArg('run')) { $this->setStatus(); } } public function setStatus() { // Ρ‚ΡƒΡ‚ ΠΊΠΎΠ΄ ΠΊΠΎΡ‚ΠΎΡ€Ρ‹ΠΉ Π΄Π΅Π»Π°Π΅Ρ‚ Π°Π²Ρ‚ΠΎΠΌΠ°Ρ‚ΠΈΡ‡Π΅ΡΠΊΡƒΡŽ подписку // прСдставлСн Π²Ρ‹ΡˆΠ΅ } } $shell = new My_Shell_MyShell(); $shell->run(); 

    running the script

    1. log in ssh to server
    2. go to the shell folder cd /path/to/mage/shell
    3. run the script with the command php -f myshell.php -- run
    • thank you) yes, I have already installed No, but there was a time when Yes was there and people signed up at that time and I would like to activate them for mailings, but how ... I can’t find a solution - urbanlol
    • one
      I'll edit the answer right now - Naumov