function __construct()
 {
     parent::__construct();
     /**extend**/
     $this->wppizza_order_emails_extend();
     /**timestamp the order*/
     $this->currentTime = current_time('timestamp');
     //$this->orderTimestamp =date("d-M-Y H:i:s", current_time('timestamp'));
     $this->orderTimestamp = "" . date_i18n(get_option('date_format'), $this->currentTime) . " " . date_i18n(get_option('time_format'), $this->currentTime) . "";
     /**name and email of whoever is ordering*/
     $this->orderClientName = '';
     $this->orderClientEmail = '';
     /** post variables from order form **/
     $this->orderPostVars = $_POST;
     /**subject vars for email subject**/
     $this->subjectPrefix = wppizza_email_decode_entities(get_bloginfo(), $this->blogCharset) . ': ';
     $this->subject = wppizza_email_decode_entities('' . $this->pluginOptions['localization']['your_order']['lbl'] . '', $this->blogCharset) . ' ';
     $this->subjectSuffix = '' . $this->orderTimestamp . '';
     /**make subject filterable**/
     $this->subjectPrefix = apply_filters('wppizza_filter_email_subject_prefix', $this->subjectPrefix);
     $this->subject = apply_filters('wppizza_filter_email_subject', $this->subject);
     $this->subjectSuffix = apply_filters('wppizza_filter_email_subject_suffix', $this->subjectSuffix);
     /*******thank you when returning : totally superflous i think, but leave it here for the moment**********/
     //add_action('gateway_order_on_thankyou', array( $this, 'gateway_order_on_thankyou_process'));
     /************************
     				[add filters
     			************************/
     /**filter order items when returned from db as its all stored in a array**/
     add_filter('wppizza_filter_order_db_return', array($this, 'wppizza_filter_order_db_return'), 10, 1);
     /****filter transaction id's******/
     add_filter('wppizza_email_filter_transaction_id', array($this, 'wppizza_filter_transaction_id'), 10, 2);
     /**filter vars after they've come out of the db***/
     add_filter('wppizza_filter_order_additional_info', array($this, 'wppizza_filter_order_additional_info'), 10, 1);
     /*customer details to plaintext str*/
     add_filter('wppizza_filter_customer_details_to_plaintext', array($this, 'wppizza_filter_customer_details_to_plaintext'), 10, 1);
     /*customer details to plaintext str*/
     add_filter('wppizza_filter_order_items_to_plaintext', array($this, 'wppizza_filter_order_items_to_plaintext'), 10, 1);
     /*order items  to plaintext str*/
     add_filter('wppizza_filter_order_summary_to_plaintext', array($this, 'wppizza_filter_order_summary_to_plaintext'), 10, 1);
     /*order summary  to plaintext str*/
     add_filter('wppizza_filter_customer_details_html', array($this, 'wppizza_filter_customer_details_html'), 10, 1);
     /*order items to html*/
     add_filter('wppizza_filter_order_items_html', array($this, 'wppizza_filter_order_items_html'), 10, 2);
     /*order items to html*/
     /**filter and sort selected items by their categoryies**/
     add_filter('wppizza_emailhtml_filter_items', array($this, 'wppizza_filter_items_by_category'), 10, 2);
     add_filter('wppizza_emailplaintext_filter_items', array($this, 'wppizza_filter_items_by_category'), 10, 2);
     add_filter('wppizza_show_order_filter_items', array($this, 'wppizza_filter_items_by_category'), 10, 2);
     /**print category **/
     add_action('wppizza_emailhtml_item', array($this, 'wppizza_items_emailhtml_print_category'), 10, 2);
     add_filter('wppizza_emailplaintext_item', array($this, 'wppizza_items_emailplaintext_print_category'), 10, 2);
     add_action('wppizza_show_order_item', array($this, 'wppizza_items_show_order_print_category'));
     /**wpml**/
     add_action('init', array($this, 'wppizza_wpml_localization'), 99);
     add_action('init', array($this, 'wppizza_wpml_localization_gateways'), 99);
     /* we also need any overrides by extensions in the mmain class to be used here**/
     $this->wppizza_extend();
 }
 function __construct()
 {
     parent::__construct();
     /************************
     				[add filters]
     			************************/
     /**filter order items when returned from db as its all stored in a array**/
     add_filter('wppizza_filter_order_details_db_return', array($this, 'wppizza_filter_order_db_return'), 10, 1);
     /**filter transaction id appending db id if so required**/
     add_filter('wppizza_filter_order_details_transaction_id', array($this, 'wppizza_filter_transaction_id'), 10, 2);
     /**filter items to sort by category**/
     add_filter('wppizza_filter_print_order_items', array($this, 'wppizza_filter_items_by_category'), 10, 2);
     /**filter items to sort by category**/
     add_action('wppizza_orderhistory_item', array($this, 'wppizza_items_show_order_print_category'));
     /**output category name above each item group  (if enabled) **/
     add_filter('wppizza_filter_print_order_single_item_category', array($this, 'wppizza_items_print_category'), 10, 2);
     /**filter localization depending some options set **/
     add_filter('wppizza_filter_order_details_localization', array($this, 'wppizza_filter_order_details_localization'), 10, 4);
     /**filter multisite - to get differences between current site and site where order was made**/
     add_filter('wppizza_filter_order_details_multisite', array($this, 'wppizza_filter_order_details_multisite'), 10, 4);
 }