__construct() 공개 메소드

Constructor.
public __construct ( )
예제 #1
0
 /**
  * Set email defaults
  *
  * @since 1.0.1
  */
 public function __construct()
 {
     /**
      * Set plugin slug
      * @since	1.1.2
      */
     $this->plugin_slug = 'angelleye-offers-for-woocommerce';
     // set ID, this simply needs to be a unique name
     $this->id = 'wc_offer_on_hold';
     // this is the title in WooCommerce Email settings
     $this->title = __('Offer On Hold', $this->plugin_slug);
     // this is the description in WooCommerce email settings
     $this->description = __('Offer On Hold Notification emails are sent when a customer offer is placed on hold by the store admin', $this->plugin_slug);
     // these are the default heading and subject lines that can be overridden using the settings
     $this->heading = __('Offer On Hold', $this->plugin_slug);
     $this->subject = __('[{site_title}] Offer On Hold ({offer_number}) - {offer_date}', $this->plugin_slug);
     // Set email template paths
     $this->template_html = 'woocommerce-offer-on-hold.php';
     $this->template_plain = 'plain/woocommerce-offer-on-hold.php';
     // Call parent constructor to load any other defaults not explicitly defined here
     parent::__construct();
     // Set the recipient
     $this->recipient = $this->get_option('recipient');
     // Other settings
     $this->template_base = OFWC_EMAIL_TEMPLATE_PATH;
 }
 /**
  * Set email defaults
  *
  * @since 0.1
  */
 public function __construct()
 {
     // set ID, this simply needs to be a unique name
     $this->id = 'wc_expedited_order';
     // this is the title in WooCommerce Email settings
     $this->title = 'Expedited Order';
     // this is the description in WooCommerce email settings
     $this->description = 'Expedited Order Notification emails are sent when a customer places an order with 3-day or next day shipping';
     // these are the default heading and subject lines that can be overridden using the settings
     $this->heading = 'Expedited Shipping Order';
     $this->subject = 'Expedited Shipping Order';
     // these define the locations of the templates that this email should use, we'll just use the new order template since this email is similar
     $this->template_html = 'emails/admin-new-order.php';
     $this->template_plain = 'emails/plain/admin-new-order.php';
     // Trigger on new paid orders
     add_action('woocommerce_order_status_pending_to_processing_notification', array($this, 'trigger'));
     add_action('woocommerce_order_status_failed_to_processing_notification', array($this, 'trigger'));
     // Call parent constructor to load any other defaults not explicity defined here
     parent::__construct();
     // this sets the recipient to the settings defined below in init_form_fields()
     $this->recipient = $this->get_option('recipient');
     // if none was entered, just use the WP admin email as a fallback
     if (!$this->recipient) {
         $this->recipient = get_option('admin_email');
     }
 }
 /**
  * Constructor
  */
 function __construct()
 {
     $this->id = 'vendor_new_order';
     $this->title = __('Notify vendors', 'wcvendors');
     $this->description = __('New order emails are sent when an order is received/paid by a customer.', 'wcvendors');
     $this->heading = __('New customer order', 'wcvendors');
     $this->subject = __('[{blogname}] New customer order ({order_number}) - {order_date}', 'wcvendors');
     $this->template_html = 'vendor-new-order.php';
     $this->template_plain = 'vendor-new-order.php';
     $this->template_base = dirname(dirname(dirname(dirname(__FILE__)))) . '/templates/emails/';
     // #216 is broken.  Code below is from that.  The filter is probably the culprit.
     //$completed_statuses = apply_filters( 'wcvendors_completed_statuses', array( 'completed', 'processing' ) ); // #216
     //foreach ( $completed_statuses as $status ) {
     //add_action( 'woocommerce_order_status_pending_to_{$status}_notification', array( $this, 'trigger' ) );
     //add_action( 'woocommerce_order_status_failed_to_{$status}_notification', array( $this, 'trigger' ) );
     //add_action( 'woocommerce_order_status_on-hold_to_{$status}_notification', array( $this, 'trigger' ) );
     //}
     // end #216
     // Triggers for this email
     add_action('woocommerce_order_status_pending_to_processing_notification', array($this, 'trigger'));
     add_action('woocommerce_order_status_pending_to_completed_notification', array($this, 'trigger'));
     add_action('woocommerce_order_status_failed_to_processing_notification', array($this, 'trigger'));
     add_action('woocommerce_order_status_failed_to_completed_notification', array($this, 'trigger'));
     add_action('woocommerce_order_status_on-hold_to_processing_notification', array($this, 'trigger'));
     // Added in 1.8.4
     add_action('woocommerce_order_status_on-hold_to_completed_notification', array($this, 'trigger'));
     // Added in 1.8.4
     $this->recipient = get_option('admin_email');
     // Call parent constuctor
     parent::__construct();
 }
 /**
  * Constructor
  *
  * Initialize email type and set templates paths
  *
  * @since   1.0.0
  * @author  Alberto Ruggiero
  */
 public function __construct()
 {
     $this->title = __('Review reminder', 'ywrr');
     $this->template_html = 'emails/review-request.php';
     $this->template_plain = 'emails/plain/review-request.php';
     parent::__construct();
 }
 /**
  * Set email defaults
  *
  * @since 0.1
  */
 public function __construct()
 {
     // set ID, this simply needs to be a unique name
     $this->id = 'wc_ticket_order';
     // this is the title in WooCommerce Email settings
     $this->title = 'Tickets Order';
     //home/dancenergyjail/home/dancenergy/public_html/sandbox/wp-content/plugins/woocommerce/templates//home/dancenergyjail/home/dancenergy/public_html/sandbox/wp-content/plugins/ticket_plugin/includes/templates/emails/customer-completed-order.php
     // this is the description in WooCommerce email settings
     $this->description = 'Tickets Order Notification emails are sent when a customer places an order with a ticket.';
     // these are the default heading and subject lines that can be overridden using the settings
     $this->heading = 'Your Tickets';
     $this->subject = 'Your Tickets';
     // these define the locations of the templates that this email should use, we'll just use the new order template since this email is similar
     $this->template_base = plugin_dir_path(__FILE__);
     $this->template_html = 'templates/emails/customer-completed-order-ticket.php';
     $this->template_plain = 'templates/emails/plain/customer-completed-order-ticket.php';
     // Trigger on new paid orders
     //backend order page hook
     add_action('woocommerce_after_resend_order_email', array($this, 'trigger'), 1);
     //Frontend hook after the order status changes to completed
     add_action('woocommerce_order_status_completed_notification', array($this, 'trigger'), 1);
     // For WooCommerce 2.0
     // Call parent constructor to load any other defaults not explicity defined here
     parent::__construct();
     // this sets the recipient to the settings defined below in init_form_fields()
     $this->recipient = $this->get_option('recipient');
     // if none was entered, just use the WP admin email as a fallback
     if (!$this->recipient) {
         $this->recipient = get_option('admin_email');
     }
 }
 /**
  * Set email defaults
  *
  * @since 0.1.0
  */
 public function __construct()
 {
     /**
      * Set plugin slug
      * @since	1.1.2
      */
     $this->plugin_slug = 'angelleye-offers-for-woocommerce';
     // set ID, this simply needs to be a unique name
     $this->id = 'wc_new_offer';
     // this is the title in WooCommerce Email settings
     $this->title = __('New offer', $this->plugin_slug);
     // this is the description in WooCommerce email settings
     $this->description = __('New Offer Notification emails are sent to the admin when customer submits offer', $this->plugin_slug);
     // these are the default heading and subject lines that can be overridden using the settings
     $this->heading = __('New Offer', $this->plugin_slug);
     $this->subject = __('New Offer', $this->plugin_slug);
     // Set email template paths
     $this->template_html = 'woocommerce-new-offer.php';
     $this->template_plain = 'plain/woocommerce-new-offer.php';
     // Call parent constructor to load any other defaults not explicitly defined here
     parent::__construct();
     // Set the recipient
     $this->recipient = $this->get_option('recipient');
     // Other settings
     $this->template_base = OFWC_PUBLIC_EMAIL_TEMPLATE_PATH;
 }
 /**
  * Constructor
  *
  * @version 2.4.0
  */
 function __construct($id = 1)
 {
     $this->id = 'wcj_custom' . '_' . $id;
     $this->customer_email = '%customer%' === $this->get_option('recipient') ? true : false;
     $this->title = __('Custom', 'woocommerce-jetpack') . ' #' . $id;
     $this->description = __('Custom emails are sent to the recipient list when selected triggers are called.', 'woocommerce-jetpack');
     $this->heading = __('Custom Heading', 'woocommerce');
     $this->subject = __('[{site_title}] Custom Subject - Order ({order_number}) - {order_date}', 'woocommerce-jetpack');
     /* $this->template_html    = 'emails/admin-new-order.php';
     		$this->template_plain   = 'emails/plain/admin-new-order.php'; */
     // Triggers for this email
     $trigger_hooks = $this->get_option('trigger');
     if (!empty($trigger_hooks) && is_array($trigger_hooks)) {
         foreach ($trigger_hooks as $trigger_hook) {
             add_action($trigger_hook, array($this, 'trigger'));
         }
     }
     // Call parent constructor
     parent::__construct();
     // Other settings
     if (!$this->customer_email) {
         $this->recipient = $this->get_option('recipient');
         if (!$this->recipient) {
             $this->recipient = get_option('admin_email');
         }
     }
 }
 /**
  * Constructor
  *
  * @version 2.5.5
  */
 function __construct($id = 1)
 {
     $this->id = 'wcj_custom' . '_' . $id;
     $this->customer_email = '%customer%' === $this->get_option('recipient') ? true : false;
     $this->title = get_option('wcj_emails_custom_emails_admin_title_' . $id, __('Custom', 'woocommerce-jetpack') . ' #' . $id);
     $this->description = __('Custom emails are sent to the recipient list when selected triggers are called.', 'woocommerce-jetpack');
     $this->heading = __('Custom Heading', 'woocommerce');
     $this->subject = __('[{site_title}] Custom Subject - Order ({order_number}) - {order_date}', 'woocommerce-jetpack');
     /* $this->template_html    = 'emails/admin-new-order.php';
     		$this->template_plain   = 'emails/plain/admin-new-order.php'; */
     // Triggers for this email
     $trigger_hooks = $this->get_option('trigger');
     if (!empty($trigger_hooks) && is_array($trigger_hooks)) {
         $is_woocommerce_checkout_order_processed_notification_added = false;
         foreach ($trigger_hooks as $trigger_hook) {
             if (false !== strpos($trigger_hook, 'woocommerce_new_order_notification') && false === $is_woocommerce_checkout_order_processed_notification_added) {
                 add_action('woocommerce_checkout_order_processed_notification', array($this, 'trigger'), PHP_INT_MAX);
                 $is_woocommerce_checkout_order_processed_notification_added = true;
             } else {
                 add_action($trigger_hook, array($this, 'trigger'), PHP_INT_MAX);
             }
         }
     }
     // Call parent constructor
     parent::__construct();
     // Other settings
     if (!$this->customer_email) {
         $this->recipient = $this->get_option('recipient');
         if (!$this->recipient) {
             $this->recipient = get_option('admin_email');
         }
     }
 }
 /**
  * Set email defaults
  *
  * @since 0.1
  */
 public function __construct()
 {
     // set ID, this simply needs to be a unique name
     $this->id = 'wc_processing_order';
     // this is the title in WooCommerce Email settings
     $this->title = 'Processing order (Customer)';
     // this is the description in WooCommerce email settings
     $this->description = 'On Hold to Processing Notification emails are sent when a customer order change from On Hold to Processing';
     // these are the default heading and subject lines that can be overridden using the settings
     $this->heading = 'Processing Order';
     $this->subject = 'Processing Order';
     // these define the locations of the templates that this email should use
     $this->template_html = 'emails/customer-processing-order.php';
     $this->template_plain = 'emails/plain/customer-processing-order.php';
     $path = explode(DIRECTORY_SEPARATOR, untrailingslashit(plugin_dir_path(__FILE__)));
     array_pop($path);
     $path = implode(DIRECTORY_SEPARATOR, $path);
     $this->template_base = $path . '/templates/';
     // Trigger on On Hold to Processing Notification
     add_action('woocommerce_order_status_on-hold_to_processing_notification', array($this, 'trigger'));
     // Call parent constructor to load any other defaults not explicity defined here
     parent::__construct();
     // this sets the recipient to the settings defined below in init_form_fields()
     // $this->recipient = $this->get_option( 'recipient' );
     // if none was entered, just use the WP admin email as a fallback
     // if ( ! $this->recipient )
     // 	$this->recipient = get_option( 'admin_email' );
 }
 /**
  * Set Email Defaults
  *
  * @since 0.1
  */
 public function __construct()
 {
     // set ID
     $this->id = 'wc_customer_note_order';
     // this is the title in WooCommerce Email Settings
     $this->title = 'Customer Note Order';
     // this is the description in WooCommerce email settings
     $this->description = 'Customer Note Emails are sent to admin email when a customer adds a note to an order';
     // these are the default heading and subject lines, can be overridden using settings
     $this->heading = 'Customer Order Note';
     $this->subject = 'Customer Note on Order:';
     // template for email, using existing emails as stand-in
     $this->template_html = 'emails/admin-customer-note.php';
     $this->template_plain = 'email/plain/admin-new-order.php';
     // Trigger on completed orders
     #add_action( 'woocommerce_order_status_pending_to_completed_notification', array( $this, 'trigger' ) );
     add_action('woocommerce_order_status_pending_to_completed', array($this, 'trigger'));
     // Call parent constructor, just in case any defaults were missed
     parent::__construct();
     // this sets the recipient to the settings defined below in init_form_fields()
     $this->recipient = $this->get_option('recipient');
     // if none was entered, just use the WP admin email as a fallback
     if (!$this->recipient) {
         $this->recipient = get_option('admin_email');
     }
 }
 /**
  * Constructor
  */
 function __construct()
 {
     $this->id = 'new_booking';
     $this->title = __('New Booking', 'woocommerce-bookings');
     $this->description = __('New booking emails are sent to the admin when a new booking is created and paid. This email is also received when a Pending confirmation booking is created.', 'woocommerce-bookings');
     $this->heading = __('New booking', 'woocommerce-bookings');
     $this->heading_confirmation = __('Confirm booking', 'woocommerce-bookings');
     $this->subject = __('[{blogname}] New booking for {product_title} (Order {order_number}) - {order_date}', 'woocommerce-bookings');
     $this->subject_confirmation = __('[{blogname}] A new booking for {product_title} (Order {order_number}) is awaiting your approval - {order_date}', 'woocommerce-bookings');
     $this->template_html = 'emails/admin-new-booking.php';
     $this->template_plain = 'emails/plain/admin-new-booking.php';
     // Triggers for this email
     add_action('woocommerce_booking_in-cart_to_paid_notification', array($this, 'queue_notification'));
     add_action('woocommerce_booking_in-cart_to_pending-confirmation_notification', array($this, 'queue_notification'));
     add_action('woocommerce_booking_unpaid_to_paid_notification', array($this, 'queue_notification'));
     add_action('woocommerce_booking_unpaid_to_pending-confirmation_notification', array($this, 'queue_notification'));
     add_action('woocommerce_booking_confirmed_to_paid_notification', array($this, 'queue_notification'));
     add_action('woocommerce_new_booking_notification', array($this, 'trigger'));
     add_action('woocommerce_admin_new_booking_notification', array($this, 'trigger'));
     // Call parent constructor
     parent::__construct();
     // Other settings
     $this->template_base = WC_BOOKINGS_TEMPLATE_PATH;
     $this->recipient = $this->get_option('recipient', get_option('admin_email'));
 }
 /**
  * Constructor
  */
 function __construct()
 {
     $this->id = 'new_switch_order';
     $this->title = __('Subscription Switched', 'woocommerce-subscriptions');
     $this->description = __('Subscription switched emails are sent when a customer switches a subscription.', 'woocommerce-subscriptions');
     $this->heading = __('Subscription Switched', 'woocommerce-subscriptions');
     $this->subject = __('[{blogname}] Subscription Switched ({order_number}) - {order_date}', 'woocommerce-subscriptions');
     $this->template_html = 'emails/admin-new-switch-order.php';
     $this->template_plain = 'emails/plain/admin-new-switch-order.php';
     $this->template_base = plugin_dir_path(WC_Subscriptions::$plugin_file) . 'templates/';
     // Triggers for this email
     add_action('woocommerce_order_status_pending_to_processing_switch_notification', array($this, 'trigger'));
     add_action('woocommerce_order_status_pending_to_completed_switch_notification', array($this, 'trigger'));
     add_action('woocommerce_order_status_pending_to_on-hold_switch_notification', array($this, 'trigger'));
     add_action('woocommerce_order_status_failed_to_processing_switch_notification', array($this, 'trigger'));
     add_action('woocommerce_order_status_failed_to_completed_switch_notification', array($this, 'trigger'));
     add_action('woocommerce_order_status_failed_to_on-hold_switch_notification', array($this, 'trigger'));
     // We want all the parent's methods, with none of its properties, so call its parent's constructor, rather than my parent constructor
     WC_Email::__construct();
     // Other settings
     $this->recipient = $this->get_option('recipient');
     if (!$this->recipient) {
         $this->recipient = get_option('admin_email');
     }
 }
 /**
  * Hooks up the functions for Waitlist Mailout
  *
  * @access public
  */
 public function __construct()
 {
     // Init
     $this->wcwl_setup_mailout();
     // Triggers for this email
     add_action('woocommerce_waitlist_mailout_send_email', array($this, 'trigger'), 10, 2);
     // Call parent constructor
     parent::__construct();
 }
 /**
  * Constructor
  */
 function __construct()
 {
     $this->set_email_strings();
     // Triggers for this email
     add_action('woocommerce_order_status_refunded_notification', array($this, 'trigger'), null, 3);
     add_action('woocommerce_order_partially_refunded_notification', array($this, 'trigger'), null, 3);
     // Call parent constuctor
     parent::__construct();
 }
 /**
  * Constructor
  *
  * Initialize email type and set templates paths
  *
  * @since   1.0.0
  * @author  Alberto Ruggiero
  */
 public function __construct()
 {
     $this->title = __('Review Reminder', 'yith-woocommerce-review-reminder');
     $this->template_html = 'emails/review-request.php';
     $this->template_plain = 'emails/plain/review-request.php';
     $this->id = 'yith-review-reminder';
     $this->description = __('Send a review reminder to the customers over WooCommerce.', 'yith-woocommerce-review-reminder');
     $this->customer_email = true;
     parent::__construct();
 }
 /**
  * Constructor.
  */
 public function __construct()
 {
     $this->set_email_strings();
     $this->customer_email = true;
     // Triggers for this email
     add_action('woocommerce_order_fully_refunded_notification', array($this, 'trigger_full'), 10, 2);
     add_action('woocommerce_order_partially_refunded_notification', array($this, 'trigger_partial'), 10, 2);
     // Call parent constuctor
     parent::__construct();
 }
 /**
  * Constructor
  */
 function __construct()
 {
     $this->id = 'customer_invoice';
     $this->title = _x('Customer invoice', 'invoices', 'woocommerce-germanized-pro');
     $this->description = _x('Customer invoice emails can be sent to the user containing PDF invoice as attachment.', 'invoices', 'woocommerce-germanized-pro');
     $this->template_html = 'emails/customer-invoice-simple.php';
     $this->subject = _x('Invoice {invoice_number} for order {order_number} from {order_date}', 'invoices', 'woocommerce-germanized-pro');
     $this->heading = _x('Invoice {invoice_number} for order {order_number}', 'invoices', 'woocommerce-germanized-pro');
     // Call parent constructor
     parent::__construct();
 }
예제 #18
0
    /**
     * Constructor class
     * 
     * @access public
     * @return void
     */
    public function __construct()
    {
        // Template file name
        $this->template = str_replace('_', '-', $this->id);

        // Send a copy to admin?
        $this->send_to_admin = $this->get_option('send_to_admin');

        // Call parent constructor
        parent::__construct();
    }
 /**
  * Constructor
  */
 function __construct()
 {
     $this->id = 'customer_invoice_cancellation';
     $this->title = _x('Customer invoice cancellation', 'invoices', 'woocommerce-germanized-pro');
     $this->description = _x('Email contains the cancellation to an invoice/order.', 'invoices', 'woocommerce-germanized-pro');
     $this->template_html = 'emails/customer-invoice-cancellation.php';
     $this->subject = _x('Cancellation {invoice_number} for invoice {invoice_number_parent}', 'invoices', 'woocommerce-germanized-pro');
     $this->heading = _x('Cancellation {invoice_number} for invoice {invoice_number_parent}', 'invoices', 'woocommerce-germanized-pro');
     // Call parent constructor
     parent::__construct();
 }
 /**
  * Constructor
  *
  * Initialize email type and set templates paths
  *
  * @since   1.0.0
  * @author  Alberto Ruggiero
  */
 public function __construct()
 {
     $this->template_html = 'emails/unsubscribe-request.php';
     $this->template_plain = 'emails/plain/unsubscribe-request.php';
     parent::__construct();
     // Other settings
     $this->recipient = $this->get_option('recipient');
     if (!$this->recipient) {
         $this->recipient = get_option('admin_email');
     }
 }
 /**
  * Constructor
  *
  * @access public
  * @return void
  */
 function __construct()
 {
     $this->id = 'customer_new_account_activation';
     $this->title = __('New account activation', 'woocommerce-germanized');
     $this->description = __('Customer "new account activation" emails are sent to the customer when a customer signs up via checkout or account pages. This mail is being used as double opt in for new customer accounts.', 'woocommerce-germanized');
     $this->template_html = 'emails/customer-new-account-activation.php';
     $this->template_plain = 'emails/plain/customer-new-account-activation.php';
     $this->subject = __('Activate your account on {site_title}', 'woocommerce-germanized');
     $this->heading = __('Account activation {site_title}', 'woocommerce-germanized');
     // Call parent constuctor
     parent::__construct();
 }
 /**
  * Constructor
  *
  * @access public
  * @return void
  */
 function __construct()
 {
     $this->id = 'customer_new_account';
     $this->title = __('New account', 'woocommerce');
     $this->description = __('Customer "new account" emails are sent to the customer when a customer signs up via checkout or account pages.', 'woocommerce');
     $this->template_html = 'emails/customer-new-account.php';
     $this->template_plain = 'emails/plain/customer-new-account.php';
     $this->subject = __('Your account on {site_title}', 'woocommerce');
     $this->heading = __('Welcome to {site_title}', 'woocommerce');
     // Call parent constuctor
     parent::__construct();
 }
 /**
  * Constructor
  *
  * @access public
  * @return void
  */
 function __construct()
 {
     $this->id = 'customer_sepa_direct_debit_mandate';
     $this->title = __('SEPA Direct Debit Mandate', 'woocommerce-germanized');
     $this->description = __('Email contains a copy of the SEPA mandate generated by information provided by the customer.', 'woocommerce-germanized');
     $this->template_html = 'emails/customer-sepa-direct-debit-mandate.php';
     $this->template_plain = 'emails/plain/customer-sepa-direct-debit-mandate.php';
     $this->subject = __('SEPA Direct Debit Mandate', 'woocommerce-germanized');
     $this->heading = __('SEPA Direct Debit Mandate', 'woocommerce-germanized');
     // Call parent constuctor
     parent::__construct();
 }
 /**
  * Constructor
  *
  * @access public
  * @return void
  */
 function __construct()
 {
     $this->id = 'customer_revocation';
     $this->title = __('Revocation', 'woocommerce-germanized');
     $this->description = __('Email being sent if a customer fills out the revocation form.', 'woocommerce-germanized');
     $this->template_html = 'emails/customer-revocation.php';
     $this->template_plain = 'emails/plain/customer-revocation.php';
     $this->subject = __('Your Revocation', 'woocommerce-germanized');
     $this->heading = __('Your Revocation', 'woocommerce-germanized');
     // Call parent constuctor
     parent::__construct();
 }
 /**
  * Constructor
  */
 function __construct()
 {
     $this->id = WC_QD_DB . 'donation_completed_email';
     $this->title = __('Completed Donation', WC_QD_TXT);
     $this->description = __('Order complete emails are sent to customers when their orders are marked completed and usually indicate that their orders have been shipped.', WC_QD_TXT);
     $this->heading = __('Your Donation for {project_name} is complete', WC_QD_TXT);
     $this->subject = __('Your {site_title} donation from {order_date} is complete', WC_QD_TXT);
     $this->template_html = 'emails/donation-completed.php';
     $this->template_plain = 'emails/plain/donation-completed.php';
     $this->template_base = WC_QD_TEMPLATE;
     // Call parent constuctor
     parent::__construct();
 }
예제 #26
0
 /**
  * Constructor
  */
 function __construct()
 {
     $this->id = 'vendor_notify_shipped';
     $this->title = __('Vendor has shipped', 'wcvendors');
     $this->description = __('An email is sent when a vendor has marked one of their orders as shipped.', 'wcvendors');
     $this->heading = __('Your order has been shipped', 'wcvendors');
     $this->subject = __('[{blogname}] Your order has been shipped ({order_number}) - {order_date}', 'wcvendors');
     $this->template_html = 'notify-vendor-shipped.php';
     $this->template_plain = 'notify-vendor-shipped.php';
     $this->template_base = dirname(dirname(dirname(dirname(__FILE__)))) . '/templates/emails/';
     // Call parent constuctor
     parent::__construct();
 }
예제 #27
0
 public function __construct()
 {
     $this->id = 'wootickets';
     $this->title = __('Tickets', 'event-tickets-plus');
     $this->description = __('Email the user will receive after a completed order with the tickets he purchased.', 'event-tickets-plus');
     $this->subject = __('Your tickets from {site_title}', 'event-tickets-plus');
     // Triggers for this email
     add_action('wootickets-send-tickets-email', array($this, 'trigger'));
     // Call parent constuctor
     parent::__construct();
     $this->enabled = apply_filters('wootickets-tickets-email-enabled', 'yes');
     $this->email_type = 'html';
 }
 /**
  * Constructor
  */
 function __construct()
 {
     $this->id = WC_QD_DB . 'donation_processing_email';
     $this->title = __('Processing Donation', WC_QD_TXT);
     $this->description = __('This is an order notification sent to customers containing their donation details after payment.', WC_QD_TXT);
     $this->heading = __('Reg : Your {site_title} donation receipt from {order_date}', WC_QD_TXT);
     $this->subject = __('Thanks for donation', WC_QD_TXT);
     $this->template_html = 'emails/donation-processing.php';
     $this->template_plain = 'emails/plain/donation-processing.php';
     $this->template_base = WC_QD_TEMPLATE;
     // Call parent constructor
     parent::__construct();
 }
 public function __construct()
 {
     // set ID, this simply needs to be a unique name
     $this->id = 'wc_shipping_address_changed';
     // this is the title in WooCommerce Email settings
     $this->title = 'Shipping Address Changed';
     // this is the description in WooCommerce email settings
     $this->description = 'When admin changes a shipping address, they can send this email notification to the customer.';
     // these are the default heading and subject lines that can be overridden using the settings
     $this->subject = 'Mitten Crate Shipping Updated for order {order_number}';
     $this->heading = 'Hello!';
     // Call parent constructor to load any other defaults not explicity defined here
     parent::__construct();
 }
 /**
  * Constructor
  */
 function __construct()
 {
     global $WCMp;
     $this->id = 'admin_widthdrawal_request';
     $this->title = __('Withdrawal request to Admin from Vendor by BAC', $WCMp->text_domain);
     $this->description = __('New commissions withdrawal request have been submitted.', $WCMp->text_domain);
     $this->heading = __('New Commission Withdrawal Request', $WCMp->text_domain);
     $this->subject = __('[{site_title}] Commission Widthdrawal Request', $WCMp->text_domain);
     $this->template_base = $WCMp->plugin_path . 'templates/';
     $this->template_html = 'emails/admin-widthdrawal-request.php';
     $this->template_plain = 'emails/plain/admin-widthdrawal-request.php';
     // Call parent constructor
     parent::__construct();
 }