/** Gets the country and state from the current session for cart shipping display */ public static function get_shipping_country_or_state() { $country = self::get_customer_session('shipping_country'); if ($country) { $state = trim(self::get_customer_session('shipping_state'), ':'); if ($state && jigoshop_countries::country_has_states($country)) { return jigoshop_countries::get_state($country, $state); } else { return jigoshop_countries::get_country($country); } } $country = jigoshop_countries::get_default_customer_country(); return jigoshop_countries::get_country($country); }