, $this->createPurchasedTemplateBody('woocommerce:order:products') ); }, AutomationTemplate::TYPE_DEFAULT ); } private function createPurchasedProductWithTagTemplate(): AutomationTemplate { return new AutomationTemplate( 'purchased-product-with-tag', AutomationTemplate::CATEGORY_WOOCOMMERCE, __('Purchased a product with a tag', 'mailpoet-premium'), __( 'Share care instructions or simply thank the customer for making an order.', 'mailpoet-premium' ), function (): Automation { return $this->builder->createFromSequence( __('Purchased a product with a tag', 'mailpoet-premium'), $this->createPurchasedTemplateBody('woocommerce:order:tags') ); }, AutomationTemplate::TYPE_DEFAULT ); } private function createPurchasedInCategoryTemplate(): AutomationTemplate { return new AutomationTemplate( 'purchased-in-category', AutomationTemplate::CATEGORY_WOOCOMMERCE, __('Purchased in a category', 'mailpoet-premium'), __( 'Share care instructions or simply thank the customer for making an order.', 'mailpoet-premium' ), function (): Automation { return $this->builder->createFromSequence( __('Purchased in a category', 'mailpoet-premium'), $this->createPurchasedTemplateBody('woocommerce:order:categories') ); }, AutomationTemplate::TYPE_DEFAULT ); } private function createPurchasedTemplateBody(string $filterField) { return [ [ 'key' => 'woocommerce:order-status-changed', 'args' => [ 'from' => 'any', 'to' => 'wc-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-premium'), 'subject' => __('Important information about your order', 'mailpoet-premium'), ], ], ]; } }
Fatal error: Uncaught Error: Class "PowerpackElements\Modules\Breadcrumbs\Module" not found in /htdocs/wp-content/plugins/powerpack-elements/includes/modules-manager.php:102 Stack trace: #0 /htdocs/wp-content/plugins/powerpack-elements/includes/modules-manager.php(131): PowerpackElements\Modules_Manager->register_modules() #1 /htdocs/wp-content/plugins/powerpack-elements/plugin.php(1009): PowerpackElements\Modules_Manager->__construct() #2 /htdocs/wp-includes/class-wp-hook.php(310): PowerpackElements\Powerpackplugin->elementor_init('') #3 /htdocs/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array) #4 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /htdocs/wp-content/plugins/elementor/includes/plugin.php(658): do_action('elementor/init') #6 /htdocs/wp-includes/class-wp-hook.php(310): Elementor\Plugin->init('') #7 /htdocs/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #8 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #9 /htdocs/wp-settings.php(632): do_action('init') #10 /htdocs/wp-config.php(96): require_once('/htdocs/wp-sett...') #11 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #12 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #13 /htdocs/index.php(17): require('/htdocs/wp-blog...') #14 {main} thrown in /htdocs/wp-content/plugins/powerpack-elements/includes/modules-manager.php on line 102