id = 'bacs'; $this->icon = ''; $this->has_fields = false; $this->enabled = get_option('woocommerce_bacs_enabled'); $this->title = get_option('woocommerce_bacs_title'); $this->description = get_option('woocommerce_bacs_description'); $this->account_name = get_option('woocommerce_bacs_account_name'); $this->account_number = get_option('woocommerce_bacs_account_number'); $this->sort_code = get_option('woocommerce_bacs_sort_code'); $this->bank_name = get_option('woocommerce_bacs_bank_name'); $this->iban = get_option('woocommerce_bacs_iban'); $this->bic = get_option('woocommerce_bacs_bic'); add_action('woocommerce_update_options', array(&$this, 'process_admin_options')); add_option('woocommerce_bacs_enabled', 'no'); add_option('woocommerce_bacs_title', __('Direct Bank Transer', 'woothemes')); add_option('woocommerce_bacs_description', __('Make your payment directly into our bank account. Please use your Order ID as the payment reference. Your order wont be shipped until the funds have cleared in our account.', 'woothemes')); add_action('thankyou_bacs', array(&$this, 'thankyou_page')); } public function is_available(){ return ($this->enabled == 'yes') ? true : false; } public function set_current(){ true; } public function icon(){} public function validate_fields(){ true; } /** * Admin Panel Options **/ public function admin_options() { ?>


description) echo wpautop(wptexturize($this->description)); } function thankyou_page() { if ($this->description) echo wpautop(wptexturize($this->description)); ?>