enabled=="no") return false; if (isset($woocommerce->cart->cart_contents_total) && isset($this->min_amount) && $this->min_amount && $this->min_amount > $woocommerce->cart->cart_contents_total) return false; $ship_to_countries = ''; if ($this->availability == 'specific') : $ship_to_countries = $this->countries; else : if (get_option('woocommerce_allowed_countries')=='specific') : $ship_to_countries = get_option('woocommerce_specific_allowed_countries'); endif; endif; if (is_array($ship_to_countries)) : if (!in_array($woocommerce->customer->get_shipping_country(), $ship_to_countries)) return false; endif; return true; } public function get_fee( $fee, $total ) { if (strstr($fee, '%')) : return ($total/100) * str_replace('%', '', $fee); else : return $fee; endif; } public function admin_options() {} public function process_admin_options() {} }