/** 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 && fflcommerce_countries::country_has_states($country)) { return fflcommerce_countries::get_state($country, $state); } else { return fflcommerce_countries::get_country($country); } } $country = fflcommerce_countries::get_default_customer_country(); return fflcommerce_countries::get_country($country); }