Warning: Class "Automattic\WooCommerce\StoreApi\Routes\V1\ProductsById" not found in /htdocs/wp-content/plugins/woocommerce/src/StoreApi/deprecated.php on line 73
); }, [ 'automationSteps' => 2, ], AutomationTemplate::TYPE_PREMIUM ); } private function createUserWelcomeSeriesTemplate(): AutomationTemplate { return new AutomationTemplate( 'user-welcome-series', 'welcome', __('Welcome series for new WordPress users', 'mailpoet'), __( 'Welcome new WordPress users to your site. Send an email immediately after a WordPress user registers. Send a follow-up email two days later with more in-depth information.', 'mailpoet' ), function (): Automation { return $this->builder->createFromSequence( __('Welcome series for new WordPress users', 'mailpoet'), [] ); }, [ 'automationSteps' => 2, ], AutomationTemplate::TYPE_PREMIUM ); } private function createFirstPurchaseTemplate(): AutomationTemplate { return new AutomationTemplate( 'first-purchase', 'woocommerce', __('Celebrate first-time buyers', 'mailpoet'), __( 'Welcome your first-time customers by sending an email with a special offer for their next purchase. Make them feel appreciated within your brand.', 'mailpoet' ), function (): Automation { return $this->builder->createFromSequence( __('Celebrate first-time buyers', 'mailpoet'), [ [ 'key' => 'woocommerce:order-completed', 'filters' => [ 'operator' => 'and', 'groups' => [ [ 'operator' => 'and', 'filters' => [ ['field' => 'woocommerce:order:is-first-order', 'condition' => 'is', 'value' => true], ], ], ], ], ], [ 'key' => 'mailpoet:send-email', 'args' => [ 'name' => __('Thank you', 'mailpoet'), 'subject' => __('Thank You for Choosing Us!', 'mailpoet'), ], ], ], [ 'mailpoet:run-once-per-subscriber' => true, ] ); }, [ 'automationSteps' => 1, ], AutomationTemplate::TYPE_DEFAULT ); } private function createThankLoyalCustomersTemplate(): AutomationTemplate { return new AutomationTemplate( 'thank-loyal-customers', 'woocommerce', __('Thank loyal customers', 'mailpoet'), __( 'These are your most important customers. Make them feel special by sending a thank you note for supporting your brand.', 'mailpoet' ), function (): Automation { return $this->builder->createFromSequence( __('Thank loyal customers', 'mailpoet'), [] ); }, [ 'automationSteps' => 1, ], AutomationTemplate::TYPE_PREMIUM ); } private function createWinBackCustomersTemplate(): AutomationTemplate { return new AutomationTemplate( 'win-back-customers', 'woocommerce', __('Win-back customers', 'mailpoet'), __( 'Rekindle the relationship with past customers by reminding them of their favorite products and showcasing what’s new, encouraging a return to your brand.', 'mailpoet' ), function (): Automation { return $this->builder->createFromSequence( __('Win-back customers', 'mailpoet'), [] ); }, [ 'automationSteps' => 4, ], AutomationTemplate::TYPE_PREMIUM ); } private function createAbandonedCartTemplate(): AutomationTemplate { return new AutomationTemplate( 'abandoned-cart', 'abandoned-cart', __('Abandoned cart reminder', 'mailpoet'), __( 'Nudge your shoppers to complete the purchase after they have added a product to the cart but haven’t completed the order.', 'mailpoet' ), function (): Automation { return $this->builder->createFromSequence( __('Abandoned cart reminder', 'mailpoet'), [ ['key' => 'woocommerce:abandoned-cart'], [ 'key' => 'mailpoet:send-email', 'args' => [ 'name' => __('Abandoned cart', 'mailpoet'), 'subject' => __('Looks like you forgot something', 'mailpoet'), ], ], ] ); }, [ 'automationSteps' => 1, ], AutomationTemplate::TYPE_DEFAULT ); } private function createAbandonedCartCampaignTemplate(): AutomationTemplate { return new AutomationTemplate( 'abandoned-cart-campaign', 'abandoned-cart', __('Abandoned cart campaign', 'mailpoet'), __( 'Encourage your potential customers to finalize their purchase when they have added items to their cart but haven’t finished the order yet. Offer a coupon code as a last resort to convert them to customers.', 'mailpoet' ), function (): Automation { return $this->builder->createFromSequence( __('Abandoned cart campaign', 'mailpoet'), [] ); }, [ 'automationSteps' => 5, ], AutomationTemplate::TYPE_PREMIUM ); } private function createPurchasedProductTemplate(): AutomationTemplate { return new AutomationTemplate( 'purchased-product', 'woocommerce', __('Purchased a product', 'mailpoet'), __( 'Share care instructions or simply thank the customer for making an order.', 'mailpoet' ), function (): Automation { return $this->builder->createFromSequence( __('Purchased a product', 'mailpoet'), $this->createPurchasedTemplateBody('woocommerce:order:products') ); }, [ 'automationSteps' => 1, ], AutomationTemplate::TYPE_DEFAULT ); } private function createPurchasedProductWithTagTemplate(): AutomationTemplate { return new AutomationTemplate( 'purchased-product-with-tag', 'woocommerce', __('Purchased a product with a tag', 'mailpoet'), __( 'Share care instructions or simply thank the customer for making an order.', 'mailpoet' ), function (): Automation { return $this->builder->createFromSequence( __('Purchased a product with a tag', 'mailpoet'), $this->createPurchasedTemplateBody('woocommerce:order:tags') ); }, [ 'automationSteps' => 1, ], AutomationTemplate::TYPE_DEFAULT ); } private function createPurchasedInCategoryTemplate(): AutomationTemplate { return new AutomationTemplate( 'purchased-in-category', 'woocommerce', __('Purchased in a category', 'mailpoet'), __( 'Share care instructions or simply thank the customer for making an order.', 'mailpoet' ), function (): Automation { return $this->builder->createFromSequence( __('Purchased in a category', 'mailpoet'), $this->createPurchasedTemplateBody('woocommerce:order:categories') ); }, [ 'automationSteps' => 1, ], AutomationTemplate::TYPE_DEFAULT ); } private function createPurchasedTemplateBody(string $filterField): array { return [ [ 'key' => 'woocommerce:order-completed', 'filters' => [ 'operator' => 'and', 'groups' => [ [ 'operator' => 'and', 'filters' => [ ['field' => $filterField, 'condition' => 'matches-any-of', 'value' => null], ], ], ], ], ], [ 'key' => 'mailpoet:send-email', 'args' => [ 'name' => __('Important information about your order', 'mailpoet'), 'subject' => __('Important information about your order', 'mailpoet'), ], ], ]; } }
Fatal error: Uncaught Error: Class "MailPoet\Automation\Integrations\MailPoet\Templates\TemplatesFactory" not found in /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php:2058 Stack trace: #0 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(2640): MailPoetGenerated\FreeCachedContainer->getMailPoetIntegrationService() #1 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/symfony/dependency-injection/Container.php(122): MailPoetGenerated\FreeCachedContainer->getInitializerService() #2 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/symfony/dependency-injection/Container.php(110): MailPoetVendor\Symfony\Component\DependencyInjection\Container->make('MailPoet\\Config...', 1) #3 /htdocs/wp-content/plugins/mailpoet/lib/DI/ContainerWrapper.php(39): MailPoetVendor\Symfony\Component\DependencyInjection\Container->get('MailPoet\\Config...') #4 /htdocs/wp-content/plugins/mailpoet/mailpoet_initializer.php(89): MailPoet\DI\ContainerWrapper->get('MailPoet\\Config...') #5 /htdocs/wp-content/plugins/mailpoet/mailpoet.php(194): require_once('/htdocs/wp-cont...') #6 /htdocs/wp-settings.php(526): include_once('/htdocs/wp-cont...') #7 /htdocs/wp-config.php(85): require_once('/htdocs/wp-sett...') #8 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #9 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #10 /htdocs/index.php(17): require('/htdocs/wp-blog...') #11 {main} thrown in /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php on line 2058