public function __construct() { // Setup the required variables for the FedEx shipping module parent::__construct(); $this->_name = GetLang('FedExName'); $this->_image = "fedex_logo.gif"; $this->_description = GetLang('FedExDesc'); $this->_help = GetLang('FedExHelp'); $this->_servicetypes = array( "PRIORITY_OVERNIGHT" => GetLang('FedExServiceType1'), "STANDARD_OVERNIGHT" => GetLang('FedExServiceType2'), "FIRST_OVERNIGHT" => GetLang('FedExServiceType3'), "FEDEX_2_DAY" => GetLang('FedExServiceType4'), "FEDEX_EXPRESS_SAVER" => GetLang('FedExServiceType5'), "INTERNATIONAL_PRIORITY" => GetLang('FedExServiceType6'), "INTERNATIONAL_ECONOMY" => GetLang('FedExServiceType7'), "INTERNATIONAL_FIRST" => GetLang('FedExServiceType8'), "FEDEX_1_DAY_FREIGHT" => GetLang('FedExServiceType9'), "FEDEX_2_DAY_FREIGHT" => GetLang('FedExServiceType10'), "FEDEX_3_DAY_FREIGHT" => GetLang('FedExServiceType11'), "FEDEX_GROUND" => GetLang('FedExServiceType12'), "GROUND_HOME_DELIVERY" => GetLang('FedExServiceType13'), "INTERNATIONAL_PRIORITY_FREIGHT" => GetLang('FedExServiceType14'), "INTERNATIONAL_ECONOMY_FREIGHT" => GetLang('FedExServiceType15'), "EUROPE_FIRST_INTERNATIONAL_PRIORITY" => GetLang('FedExServiceType16') ); // FedEx is available worldwide $this->_countries = array("all"); }
/** * The constructor. */ public function __construct() { parent::__construct(); $this->SetName(GetLang('UPSOnlineTools')); $this->SetImage('ups_logo.gif'); $this->SetHelpText(GetLang('UPSOnlineToolsHelp')); }
public function __construct() { // Setup the required variables for the UPS shipping module parent::__construct(); $this->_name = GetLang('UPSName'); $this->_image = "ups_logo.gif"; $this->_description = GetLang('UPSDesc'); $this->_help = GetLang('UPSHelp'); $this->_height = 310; $this->_deliverytypes = array( "1DM" => GetLang('UPSDeliveryType1'), "1DA" => GetLang('UPSDeliveryType2'), "1DP" => GetLang('UPSDeliveryType3'), "2DM" => GetLang('UPSDeliveryType4'), "2DA" => GetLang('UPSDeliveryType5'), "3DS" => GetLang('UPSDeliveryType6'), "GND" => GetLang('UPSDeliveryType7'), "STD" => GetLang('UPSDeliveryType8'), "XPR" => GetLang('UPSDeliveryType9'), "XDM" => GetLang('UPSDeliveryType10'), "XPD" => GetLang('UPSDeliveryType11') ); // UPS is only available in USA $this->_countries = array("United States"); }
public function __construct() { // Setup the required variables for the Intershipper shipping module parent::__construct(); $this->_name = GetLang('IntershipperName'); $this->_image = "intershipper_logo.gif"; $this->_description = GetLang('IntershipperDesc'); $this->_help = GetLang('IntershipperHelp'); $this->_height = 460; // Intershipper is available in the US only $this->_countries = array("United States"); }
public function __construct() { // Setup the required variables for the Canada Post shipping module parent::__construct(); $this->_name = GetLang('CanadaPostName'); $this->_image = "canadapost_logo.gif"; $this->_description = GetLang('CanadaPostDesc'); $this->_help = GetLang('CanadaPostHelp'); $this->_height = 310; // Canada Post is only available in USA $this->_countries = array("Canada"); }
public function __construct() { // Setup the required variables for the Royal Mail shipping module parent::__construct(); $this->_name = GetLang('RoyalMailName'); $this->_image = "royalmail_logo.gif"; $this->_description = GetLang('RoyalMailDesc'); $this->_help = GetLang('RoyalMailHelp'); $this->_height = 315; $this->_deliverytypes = array("FirstClass" => GetLang('RoyalMailDeliveryType1'), "SecondClass" => GetLang('RoyalMailDeliveryType2'), "SpecialDeliveryNextDay" => GetLang('RoyalMailDeliveryType4'), "SpecialDelivery9am" => GetLang('RoyalMailDeliveryType5'), "StandardParcel" => GetLang('RoyalMailDeliveryType6'), "InternationalSurfaceSmallPackets" => GetLang('RoyalMailDeliveryType7'), "InternationalAirmailPackets" => GetLang('RoyalMailDeliveryType8')); // Royal Mail is only available in United Kingdom $this->_countries = array("United Kingdom"); }
public function __construct() { // Setup the required variables for the Australia Post shipping module parent::__construct(); $this->_name = GetLang('AusPostName'); $this->_image = "auspost_logo.gif"; $this->_description = GetLang('AusPostDesc'); $this->_help = GetLang('AusPostHelp'); $this->_height = 315; $this->_deliverytypes = array("Express" => GetLang('AusPostDeliveryType1'), "Standard" => GetLang('AusPostDeliveryType2'), "ECI_D" => GetLang('AusPostDeliveryType3'), "ECI_M" => GetLang('AusPostDeliveryType4'), "Air" => GetLang('AusPostDeliveryType5'), "Sea" => GetLang('AusPostDeliveryType6')); // Australia Post is only available in Australia $this->_countries = array("Australia"); }
public function __construct() { // Setup the required variables for the flat rate shipping module parent::__construct(); $this->_name = GetLang('FlatRateName'); $this->_image = ""; $this->_description = GetLang('FlatRateDesc'); $this->_help = GetLang('FlatRateHelp'); $this->_height = 0; $this->_showtestlink = false; $this->_flatrate = true; // Flat rate is available worldwide $this->_countries = array("all"); }
public function __construct() { // Setup the required variables for the FedEx shipping module parent::__construct(); $this->_name = GetLang('FedExName'); $this->_image = "fedex_logo.gif"; $this->_description = GetLang('FedExDesc'); $this->_help = GetLang('FedExHelp'); $this->_height = 290; $this->_servicetypes = array("PRIORITYOVERNIGHT" => GetLang('FedExServiceType1'), "STANDARDOVERNIGHT" => GetLang('FedExServiceType2'), "FIRSTOVERNIGHT" => GetLang('FedExServiceType3'), "FEDEX2DAY" => GetLang('FedExServiceType4'), "FEDEXEXPRESSSAVER" => GetLang('FedExServiceType5'), "INTERNATIONALPRIORITY" => GetLang('FedExServiceType6'), "INTERNATIONALECONOMY" => GetLang('FedExServiceType7'), "INTERNATIONALFIRST" => GetLang('FedExServiceType8'), "FEDEX1DAYFREIGHT" => GetLang('FedExServiceType9'), "FEDEX2DAYFREIGHT" => GetLang('FedExServiceType10'), "FEDEX3DAYFREIGHT" => GetLang('FedExServiceType11'), "FEDEXGROUND" => GetLang('FedExServiceType12'), "GROUNDHOMEDELIVERY" => GetLang('FedExServiceType13'), "INTERNATIONALPRIORITY FREIGHT" => GetLang('FedExServiceType14'), "INTERNATIONALECONOMY FREIGHT" => GetLang('FedExServiceType15'), "EUROPEFIRSTINTERNATIONALPRIORITY" => GetLang('FedExServiceType16')); $this->_deliverytypes = array("FDXE" => GetLang('FedExDeliveryType1'), "FDXG" => GetLang('FedExDeliveryType2')); // FedEx is available worldwide $this->_countries = array("all"); }
public function __construct() { // Setup the required variables for the USPS shipping module parent::__construct(); $this->_name = GetLang('USPSName'); $this->_image = "usps_logo.gif"; $this->_description = GetLang('USPSDesc'); $this->_help = GetLang('USPSHelp'); $this->_height = 390; // USPS is only available in USA $this->_countries = array("United States"); // read in our list of countries $importer = new Interspire_Csv(dirname(__FILE__) . "/data/countries.csv"); foreach ($importer as $row) { $this->_mapcountries[$row[0]] = $row[1]; } }
/** * Save the configuration variables for this module that come in from the POST * array. * * @param array An array of configuration variables. * @return boolean True if successful. */ public function SaveModuleSettings($settings = array()) { foreach (array_keys($settings) as $setting) { list($fieldType, ) = explode('_', $setting, 2); switch ($fieldType) { case 'upper': case 'lower': $settings[$setting] = DefaultDimensionFormat($settings[$setting]); break; case 'cost': $settings[$setting] = DefaultPriceFormat($settings[$setting]); break; } } parent::SaveModuleSettings($settings); }
public function __construct() { // Setup the required variables for the USPS shipping module parent::__construct(); $this->_name = GetLang('USPSName'); $this->_image = "usps_logo.gif"; $this->_description = GetLang('USPSDesc'); $this->_help = GetLang('USPSHelp'); $this->_height = 390; // USPS is only available in USA $this->_countries = array("United States"); }