Closed connectedbusiness-gary closed 2 years ago
Following...
Following...
I can confirm that this plugin is completely broken on Mautic 3.1
i can confirm that this one works in M3.1
https://mtcextendee.com/marketplace/twig-templates-for-mautic/
in : plugins/MauticAdvancedTemplatesBundle/EventListener/EmailSubscriber.php
Change :
use Mautic\CampaignBundle\Entity\Lead;
// use Mautic\CoreBundle\EventListener\CommonSubscriber;
`
/**
* Class EmailSubscriber.
*/
class EmailSubscriber implements EventSubscriberInterface
`
public function onEmailGenerate(Events\EmailSendEvent $event)
{
// $this->logger->info('onEmailGenerate MauticAdvancedTemplatesBundle\EmailSubscriber');
$content = $event->getContent();
$content = $this->templateProcessor->processTemplate($content, $event->getLead());
$event->setContent($content);
if ( empty( trim($event->getPlainText()) ) ) {
$event->setPlainText( (new PlainTextHelper($content))->getText() );
}
}
You want this pull request, hopefully it will be merged in soon, but in the meantime that branch works with 3.0 https://github.com/Logicify/mautic-advanced-templates-bundle/pull/15
@colethorsen Tested and confirmed your PR works with v3.
Closing this issue in favor of skipping over to mautic 4
running Mautic 3 and cannot get the plugin to show. Am i doing something wrong or does this not work with Mautic 3 yet...