public function getCountryName() { return EcommerceCountry::find_title($this->CountryCode); }
function getFullCountryName() { return EcommerceCountry::find_title($this->Country); }
function getShippingFullCountryName() { return EcommerceCountry::find_title($this->ShippingCountry); }
public function getFixedCountry() { $code = EcommerceCountry::get_fixed_country_code(); if ($code) { return EcommerceCountry::find_title($code); } return ""; }
/** * Used to save Name to database * @return String */ protected function LiveName() { $finalString = _t("OrderModifier.TAXCOULDNOTBEDETERMINED", "tax could not be determined"); $countryCode = $this->LiveCountry(); $startString = ''; $name = ''; $endString = ''; $taxObjects = $this->currentTaxObjects(); if ($taxObjects) { $objectArray = array(); foreach ($taxObjects as $object) { $objectArray[] = $object->Name; } if (count($objectArray)) { $name = implode(", ", $objectArray); } if ($this->config()->get("exclusive_explanation") && $this->isExclusive()) { $endString = $this->config()->get("exclusive_explanation"); } elseif ($this->Config()->get("inclusive_explanation") && $this->isInclusive()) { $endString = $this->Config()->get("inclusive_explanation"); } if ($name) { $finalString = $startString . $name . $endString; } } else { if ($this->hasExceptionTaxes()) { $finalString = $this->Config()->get("no_tax_description"); } } if ($countryCode && $finalString) { $countryName = EcommerceCountry::find_title($countryCode); if ($this->Config()->get("based_on_country_note") && $countryName && $countryCode != self::get_default_country_code_combined()) { $finalString .= $this->Config()->get("based_on_country_note") . ' ' . $countryName; } } return $finalString; }