Version Notes
Completed
Download this release
Release Info
| Developer | OMS |
| Extension | OMS_Global_Freight_Estimator |
| Version | 2.0.2 |
| Comparing to | |
| See all releases | |
Code changes from version 2.0.0 to 2.0.2
- app/code/local/OMS/Shippingimport/Helper/Backup 1 of Data.php +80 -0
- app/code/local/OMS/Shippingimport/Helper/Data.php +9 -2
- app/code/local/OMS/Shippingimport/Model/Carrier/Localdelivery.php +37 -25
- app/code/local/OMS/Shippingimport/Model/Carrier/_Localdelivery.php +0 -239
- app/code/local/OMS/Shippingimport/Model/Carrier/__Localdelivery.php +0 -266
- app/code/local/OMS/Shippingimport/etc/Backup 1 of system.xml +378 -0
- app/code/local/OMS/Shippingimport/etc/Backup 2 of system.xml +378 -0
- app/code/local/OMS/Shippingimport/etc/system.xml +2 -2
- package.xml +4 -4
app/code/local/OMS/Shippingimport/Helper/Backup 1 of Data.php
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
class OMS_Shippingimport_Helper_Data extends Mage_Core_Helper_Abstract
|
| 4 |
+
{
|
| 5 |
+
public function sendEmail($data)
|
| 6 |
+
{
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
$email_arr = array();
|
| 10 |
+
$email_arr['host'] =
|
| 11 |
+
Mage::getStoreConfig('webservice/email_settings/hostname',Mage::app()->getStore());
|
| 12 |
+
|
| 13 |
+
$email_arr['username'] =
|
| 14 |
+
Mage::getStoreConfig('webservice/email_settings/username',Mage::app()->getStore());
|
| 15 |
+
|
| 16 |
+
$email_arr['password'] =
|
| 17 |
+
Mage::getStoreConfig('webservice/email_settings/password',Mage::app()->getStore());
|
| 18 |
+
|
| 19 |
+
$email_arr['port'] =
|
| 20 |
+
Mage::getStoreConfig('webservice/email_settings/port',Mage::app()->getStore());
|
| 21 |
+
|
| 22 |
+
$senders =array();
|
| 23 |
+
$send_to= Mage::getStoreConfig('webservice/email_settings/send_to',Mage::app()->getStore());
|
| 24 |
+
|
| 25 |
+
$senders=explode(',',$send_to);
|
| 26 |
+
|
| 27 |
+
$email_arr['store_name'] =
|
| 28 |
+
Mage::getStoreConfig('webservice/email_settings/from_name',Mage::app()->getStore());
|
| 29 |
+
|
| 30 |
+
$email_arr['store_email'] =
|
| 31 |
+
Mage::getStoreConfig('webservice/email_settings/from_email',Mage::app()->getStore());
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
/*Send email*/
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
$settings = array(
|
| 42 |
+
'port' => $email_arr['port'],
|
| 43 |
+
'auth' => 'login',
|
| 44 |
+
'username' => $email_arr['username'],
|
| 45 |
+
'password' => $email_arr['password']
|
| 46 |
+
);
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
$transport = new Zend_Mail_Transport_Smtp($email_arr['host'], $settings);
|
| 50 |
+
$email_from = $email_arr['store_email'];
|
| 51 |
+
$name_from = $email_arr['store_name'];
|
| 52 |
+
$email_to = "muhammad.mubashir@OMS.com";
|
| 53 |
+
$name_to = "Mubashir Qayyum";
|
| 54 |
+
$Body = '<p>Dear OMS Support Team,</p><p>We have recieved a new exception:</p><p>Exception Details:<br/><b>'.$data['exception'].'<b></p>';
|
| 55 |
+
$mail = new Zend_Mail ();
|
| 56 |
+
|
| 57 |
+
$mail->setReplyTo($email_from, $name_from);
|
| 58 |
+
$mail->setFrom ($email_from, $name_from);
|
| 59 |
+
foreach($senders as $send)
|
| 60 |
+
{
|
| 61 |
+
$mail->addTo ($send, '');
|
| 62 |
+
}
|
| 63 |
+
$mail->setSubject ('OMS Shipping Calculator--'.$email_arr['storename']."--New Exception");
|
| 64 |
+
$mail->setBodyHtml($Body);
|
| 65 |
+
|
| 66 |
+
try
|
| 67 |
+
{
|
| 68 |
+
$mail->send($transport);
|
| 69 |
+
}
|
| 70 |
+
catch(Exception $e)
|
| 71 |
+
{
|
| 72 |
+
Mage::log($e->getMessage(), null, 'OMS_Shipping.log');
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
}
|
| 80 |
+
|
app/code/local/OMS/Shippingimport/Helper/Data.php
CHANGED
|
@@ -60,10 +60,17 @@ class OMS_Shippingimport_Helper_Data extends Mage_Core_Helper_Abstract
|
|
| 60 |
{
|
| 61 |
$mail->addTo ($send, '');
|
| 62 |
}
|
| 63 |
-
$mail->setSubject ('OMS Global Freight Estimator
|
| 64 |
$mail->setBodyHtml($Body);
|
| 65 |
|
| 66 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
|
| 68 |
|
| 69 |
}
|
| 60 |
{
|
| 61 |
$mail->addTo ($send, '');
|
| 62 |
}
|
| 63 |
+
$mail->setSubject ('OMS Global Freight Estimator-'.$email_arr['storename']." - Exception");
|
| 64 |
$mail->setBodyHtml($Body);
|
| 65 |
|
| 66 |
+
try
|
| 67 |
+
{
|
| 68 |
+
$mail->send($transport);
|
| 69 |
+
}
|
| 70 |
+
catch(Exception $e)
|
| 71 |
+
{
|
| 72 |
+
Mage::log($e->getMessage(), null, 'OMS_Shipping.log');
|
| 73 |
+
}
|
| 74 |
|
| 75 |
|
| 76 |
}
|
app/code/local/OMS/Shippingimport/Model/Carrier/Localdelivery.php
CHANGED
|
@@ -13,9 +13,11 @@ class OMS_Shippingimport_Model_Carrier_Localdelivery extends Mage_Shipping_Model
|
|
| 13 |
{
|
| 14 |
/* Use group alias */
|
| 15 |
protected $_code = 'customshiping';
|
|
|
|
| 16 |
|
| 17 |
public function collectRates(Mage_Shipping_Model_Rate_Request $request)
|
| 18 |
{
|
|
|
|
| 19 |
// skip if not enabled
|
| 20 |
if (!Mage::getStoreConfig('carriers/'.$this->_code.'/active'))
|
| 21 |
return false;
|
|
@@ -30,6 +32,8 @@ class OMS_Shippingimport_Model_Carrier_Localdelivery extends Mage_Shipping_Model
|
|
| 30 |
|
| 31 |
}
|
| 32 |
|
|
|
|
|
|
|
| 33 |
$url=Mage::getStoreConfig('webservice/webservice_group/webservice_url',Mage::app()->getStore());
|
| 34 |
$pos=strpos($url,"?WSDL");
|
| 35 |
if($pos === false)
|
|
@@ -85,32 +89,14 @@ class OMS_Shippingimport_Model_Carrier_Localdelivery extends Mage_Shipping_Model
|
|
| 85 |
|
| 86 |
|
| 87 |
$allowedMethodsArr=split(",",$allowedMethods);
|
| 88 |
-
|
| 89 |
-
$importModel= Mage::getModel('shippingimport/import');
|
| 90 |
-
$result = Mage::getModel('shipping/rate_result');
|
| 91 |
-
$result->reset();
|
| 92 |
-
/* $methods = get_class_methods($result);
|
| 93 |
-
echo "<pre/>";
|
| 94 |
-
print_r($methods);
|
| 95 |
-
exit;*/
|
| 96 |
-
|
| 97 |
-
$client = new SoapClient($url, array('trace' => TRUE));
|
| 98 |
-
|
| 99 |
-
//$session = $client->__login('testaccount@oms.com.au', 'f7vmz!299pl');
|
| 100 |
-
$SOAPrequest["strB2BCustomerName"]=$custname;
|
| 101 |
-
$SOAPrequest["strB2BCustomerEmail"]=$username;
|
| 102 |
-
$SOAPrequest["strB2BCustomerPassword"]=$password;
|
| 103 |
-
$SOAPrequest["strCurrencyAbbrev"]=$currencycode;
|
| 104 |
-
$SOAPrequest["strWarehouseName"]=$warehousename;
|
| 105 |
-
$SOAPrequest["lngAdjustedWeight"]="";
|
| 106 |
-
$SOAPrequest["siUnit"]= $Unit;
|
| 107 |
-
|
| 108 |
-
$adminsession = Mage::getSingleton('admin/session')->isLoggedIn();
|
| 109 |
|
| 110 |
$session = Mage::getSingleton('checkout/session');
|
|
|
|
| 111 |
$object= new FreightLineItem();
|
| 112 |
if (!empty($session) || !empty($adminsession))
|
| 113 |
{
|
|
|
|
| 114 |
$count=0;
|
| 115 |
|
| 116 |
if(Mage::getSingleton('admin/session')->isLoggedIn())
|
|
@@ -119,20 +105,46 @@ class OMS_Shippingimport_Model_Carrier_Localdelivery extends Mage_Shipping_Model
|
|
| 119 |
$adminData = Mage::getSingleton('adminhtml/session_quote')->getQuote()->getShippingAddress()->getData();
|
| 120 |
if(empty($postcode))
|
| 121 |
{
|
|
|
|
| 122 |
$postcode=$adminData['postcode'] ;
|
| 123 |
$country=$adminData['country_id'];
|
| 124 |
-
$_iso3countrycode=$this->_getISO3Code($country);
|
|
|
|
| 125 |
}
|
| 126 |
|
| 127 |
}
|
| 128 |
else
|
| 129 |
{
|
|
|
|
| 130 |
$data = Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getData();
|
| 131 |
$postcode = $data['postcode'];
|
| 132 |
$country=$data['country_id'];
|
| 133 |
-
|
|
|
|
|
|
|
|
|
|
| 134 |
$items = Mage::getSingleton('checkout/cart')->getItems();
|
| 135 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 136 |
$itemlength=0;
|
| 137 |
$itemWidth=0;
|
| 138 |
$itemHeight=0;
|
|
@@ -346,7 +358,7 @@ exit;*/
|
|
| 346 |
}
|
| 347 |
catch(Exception $e)
|
| 348 |
{
|
| 349 |
-
|
| 350 |
//exit;
|
| 351 |
Mage::getSingleton('core/session')->setData('Webservice',0);
|
| 352 |
$result = $this->failSafeRates($_iso3countrycode,$OriginCountry);
|
|
@@ -377,7 +389,7 @@ exit;*/
|
|
| 377 |
|
| 378 |
public function failSafeRates($destination_country,$origin_country)
|
| 379 |
{
|
| 380 |
-
|
| 381 |
$result = Mage::getModel('shipping/rate_result');
|
| 382 |
//$result->reset();
|
| 383 |
|
| 13 |
{
|
| 14 |
/* Use group alias */
|
| 15 |
protected $_code = 'customshiping';
|
| 16 |
+
|
| 17 |
|
| 18 |
public function collectRates(Mage_Shipping_Model_Rate_Request $request)
|
| 19 |
{
|
| 20 |
+
|
| 21 |
// skip if not enabled
|
| 22 |
if (!Mage::getStoreConfig('carriers/'.$this->_code.'/active'))
|
| 23 |
return false;
|
| 32 |
|
| 33 |
}
|
| 34 |
|
| 35 |
+
|
| 36 |
+
|
| 37 |
$url=Mage::getStoreConfig('webservice/webservice_group/webservice_url',Mage::app()->getStore());
|
| 38 |
$pos=strpos($url,"?WSDL");
|
| 39 |
if($pos === false)
|
| 89 |
|
| 90 |
|
| 91 |
$allowedMethodsArr=split(",",$allowedMethods);
|
| 92 |
+
$adminsession = Mage::getSingleton('admin/session')->isLoggedIn();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
|
| 94 |
$session = Mage::getSingleton('checkout/session');
|
| 95 |
+
|
| 96 |
$object= new FreightLineItem();
|
| 97 |
if (!empty($session) || !empty($adminsession))
|
| 98 |
{
|
| 99 |
+
|
| 100 |
$count=0;
|
| 101 |
|
| 102 |
if(Mage::getSingleton('admin/session')->isLoggedIn())
|
| 105 |
$adminData = Mage::getSingleton('adminhtml/session_quote')->getQuote()->getShippingAddress()->getData();
|
| 106 |
if(empty($postcode))
|
| 107 |
{
|
| 108 |
+
|
| 109 |
$postcode=$adminData['postcode'] ;
|
| 110 |
$country=$adminData['country_id'];
|
| 111 |
+
$_iso3countrycode=$this->_getISO3Code($country);
|
| 112 |
+
|
| 113 |
}
|
| 114 |
|
| 115 |
}
|
| 116 |
else
|
| 117 |
{
|
| 118 |
+
|
| 119 |
$data = Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getData();
|
| 120 |
$postcode = $data['postcode'];
|
| 121 |
$country=$data['country_id'];
|
| 122 |
+
|
| 123 |
+
$_iso3countrycode=$this->_getISO3Code($country);
|
| 124 |
+
|
| 125 |
+
|
| 126 |
$items = Mage::getSingleton('checkout/cart')->getItems();
|
| 127 |
}
|
| 128 |
+
$importModel= Mage::getModel('shippingimport/import');
|
| 129 |
+
$result = Mage::getModel('shipping/rate_result');
|
| 130 |
+
$result->reset();
|
| 131 |
+
/* $methods = get_class_methods($result);
|
| 132 |
+
echo "<pre/>";
|
| 133 |
+
print_r($methods);
|
| 134 |
+
exit;*/
|
| 135 |
+
|
| 136 |
+
$client = new SoapClient($url, array('trace' => TRUE));
|
| 137 |
+
|
| 138 |
+
//$session = $client->__login('testaccount@oms.com.au', 'f7vmz!299pl');
|
| 139 |
+
$SOAPrequest["strB2BCustomerName"]=$custname;
|
| 140 |
+
$SOAPrequest["strB2BCustomerEmail"]=$username;
|
| 141 |
+
$SOAPrequest["strB2BCustomerPassword"]=$password;
|
| 142 |
+
$SOAPrequest["strCurrencyAbbrev"]=$currencycode;
|
| 143 |
+
$SOAPrequest["strWarehouseName"]=$warehousename;
|
| 144 |
+
$SOAPrequest["lngAdjustedWeight"]="";
|
| 145 |
+
$SOAPrequest["siUnit"]= $Unit;
|
| 146 |
+
|
| 147 |
+
|
| 148 |
$itemlength=0;
|
| 149 |
$itemWidth=0;
|
| 150 |
$itemHeight=0;
|
| 358 |
}
|
| 359 |
catch(Exception $e)
|
| 360 |
{
|
| 361 |
+
//echo $e->getMessage();
|
| 362 |
//exit;
|
| 363 |
Mage::getSingleton('core/session')->setData('Webservice',0);
|
| 364 |
$result = $this->failSafeRates($_iso3countrycode,$OriginCountry);
|
| 389 |
|
| 390 |
public function failSafeRates($destination_country,$origin_country)
|
| 391 |
{
|
| 392 |
+
|
| 393 |
$result = Mage::getModel('shipping/rate_result');
|
| 394 |
//$result->reset();
|
| 395 |
|
app/code/local/OMS/Shippingimport/Model/Carrier/_Localdelivery.php
DELETED
|
@@ -1,239 +0,0 @@
|
|
| 1 |
-
|
| 2 |
-
<?php
|
| 3 |
-
class FreightLineItem
|
| 4 |
-
{
|
| 5 |
-
public $Quantity;
|
| 6 |
-
public $Length;
|
| 7 |
-
public $Width;
|
| 8 |
-
public $Height;
|
| 9 |
-
public $ActualWeight;
|
| 10 |
-
|
| 11 |
-
}
|
| 12 |
-
class OMS_Shippingimport_Model_Carrier_Localdelivery extends Mage_Shipping_Model_Carrier_Abstract
|
| 13 |
-
implements Mage_Shipping_Model_Carrier_Interface
|
| 14 |
-
{
|
| 15 |
-
/* Use group alias */
|
| 16 |
-
protected $_code = 'customshiping';
|
| 17 |
-
|
| 18 |
-
public function collectRates(Mage_Shipping_Model_Rate_Request $request)
|
| 19 |
-
{
|
| 20 |
-
try
|
| 21 |
-
{
|
| 22 |
-
$url=Mage::getStoreConfig('webservice/webservice_group/webservice_url',Mage::app()->getStore());
|
| 23 |
-
$username=Mage::getStoreConfig('webservice/webservice_group/webservice_username',Mage::app()->getStore());
|
| 24 |
-
$password=Mage::getStoreConfig('webservice/webservice_group/webservice_password',Mage::app()->getStore());
|
| 25 |
-
$allowedMethods=Mage::getStoreConfig('carriers/customshiping/allowedmethods',Mage::app()->getStore());
|
| 26 |
-
$warehousename=Mage::getStoreConfig('webservice/webservice_group/webservice_warehousename',Mage::app()->getStore());
|
| 27 |
-
$OriginCountry =Mage::getStoreConfig('webservice/webservice_group/webservice_originCountry',Mage::app()->getStore());
|
| 28 |
-
$OriginPostal =Mage::getStoreConfig('webservice/webservice_group/webservice_originPostal',Mage::app()->getStore());
|
| 29 |
-
$Unit = Mage::getStoreConfig('webservice/webservice_group/webservice_unit',Mage::app()->getStore());
|
| 30 |
-
$custname = Mage::getStoreConfig('webservice/webservice_group/webservice_custname',Mage::app()->getStore());
|
| 31 |
-
|
| 32 |
-
if($Unit=="")
|
| 33 |
-
$Unit="US";
|
| 34 |
-
$InsuranceAmount= Mage::getStoreConfig('webservice/webservice_group/webservice_insuranceamount',Mage::app()->getStore());
|
| 35 |
-
$AddHandlingFees = Mage::getStoreConfig('webservice/webservice_group/webservice_addhandlingfees',Mage::app()->getStore());
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
$HandlingFeePercent = Mage::getStoreConfig('webservice/webservice_group/webservice_handlingfeepercent',Mage::app()->getStore());
|
| 39 |
-
$data = Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getData();
|
| 40 |
-
$postcode = $data['postcode'];
|
| 41 |
-
|
| 42 |
-
$country=$data['country_id'];
|
| 43 |
-
$_iso3countrycode=$this->_getISO3Code($country);
|
| 44 |
-
|
| 45 |
-
$currencycode=Mage::app()->getStore()-> getCurrentCurrencyCode();
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
$allowedMethodsArr=split(",",$allowedMethods);
|
| 50 |
-
|
| 51 |
-
$importModel= Mage::getModel('shippingimport/import');
|
| 52 |
-
$result = Mage::getModel('shipping/rate_result');
|
| 53 |
-
|
| 54 |
-
$client = new SoapClient($url, array('trace' => TRUE));
|
| 55 |
-
|
| 56 |
-
//$session = $client->__login('testaccount@oms.com.au', 'f7vmz!299pl');
|
| 57 |
-
$SOAPrequest["strB2BCustomerName"]=$custname;
|
| 58 |
-
$SOAPrequest["strB2BCustomerEmail"]=$username;
|
| 59 |
-
$SOAPrequest["strB2BCustomerPassword"]=$password;
|
| 60 |
-
$SOAPrequest["strCurrencyAbbrev"]=$currencycode;
|
| 61 |
-
$SOAPrequest["strWarehouseName"]=$warehousename;
|
| 62 |
-
$SOAPrequest["lngAdjustedWeight"]="";
|
| 63 |
-
$SOAPrequest["siUnit"]= $Unit;
|
| 64 |
-
|
| 65 |
-
$adminsession = Mage::getSingleton('admin/session')->isLoggedIn();
|
| 66 |
-
|
| 67 |
-
$session = Mage::getSingleton('checkout/session');
|
| 68 |
-
if (!empty($session) || !empty($adminsession))
|
| 69 |
-
{
|
| 70 |
-
$count=0;
|
| 71 |
-
$object= new FreightLineItem();
|
| 72 |
-
if(Mage::getSingleton('admin/session')->isLoggedIn())
|
| 73 |
-
{
|
| 74 |
-
$items = Mage::getSingleton('adminhtml/session_quote')->getQuote()->getAllVisibleItems();
|
| 75 |
-
}
|
| 76 |
-
else
|
| 77 |
-
{
|
| 78 |
-
$items = Mage::getSingleton('checkout/cart')->getItems();
|
| 79 |
-
}
|
| 80 |
-
|
| 81 |
-
foreach ($items as $item)
|
| 82 |
-
{
|
| 83 |
-
$_product= Mage::getSingleton('catalog/product')->load($item->getProductId());
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
$object->Quantity +=(int)$item->getQty();
|
| 89 |
-
$length=$_product->getResource()->getAttribute('length');
|
| 90 |
-
|
| 91 |
-
if(!empty($length))
|
| 92 |
-
{
|
| 93 |
-
$object->Length +=(int)$length->getFrontend()->getValue($_product);
|
| 94 |
-
}
|
| 95 |
-
else
|
| 96 |
-
{
|
| 97 |
-
$object->Length +=0;
|
| 98 |
-
}
|
| 99 |
-
|
| 100 |
-
$width=$_product->getResource()->getAttribute('width');
|
| 101 |
-
if(!empty($width))
|
| 102 |
-
{
|
| 103 |
-
$object->Width +=(int)$width->getFrontend()->getValue($_product);
|
| 104 |
-
}
|
| 105 |
-
else
|
| 106 |
-
{
|
| 107 |
-
$object->Width +=0;
|
| 108 |
-
}
|
| 109 |
-
$height=$_product->getResource()->getAttribute('height');
|
| 110 |
-
if(!empty($height))
|
| 111 |
-
{
|
| 112 |
-
$object->Height +=(int)$height->getFrontend()->getValue($_product);
|
| 113 |
-
}
|
| 114 |
-
else
|
| 115 |
-
{
|
| 116 |
-
$object->Height +=0;
|
| 117 |
-
}
|
| 118 |
-
$object->ActualWeight +=(int)$item->getWeight();
|
| 119 |
-
$SOAPrequest["oLineItems"]['FreightLineItem']=$object;
|
| 120 |
-
$count++;
|
| 121 |
-
|
| 122 |
-
}
|
| 123 |
-
}
|
| 124 |
-
|
| 125 |
-
//print_r($object);
|
| 126 |
-
// exit;
|
| 127 |
-
|
| 128 |
-
$SOAPrequest["oRestriction"]="NA";
|
| 129 |
-
$SOAPrequest["strDestinationCountry"]=$_iso3countrycode;
|
| 130 |
-
$SOAPrequest["strDestinationPostal"]=$OriginPostal;
|
| 131 |
-
$SOAPrequest["strOriginationCountry"]=$OriginCountry;
|
| 132 |
-
$SOAPrequest["strOriginationPostal"]=$postcode;
|
| 133 |
-
$SOAPrequest["lngInsuranceAmount"]=$InsuranceAmount;
|
| 134 |
-
$SOAPrequest["bAddHandlingFees"]=$AddHandlingFees;
|
| 135 |
-
$SOAPrequest["lngPctOfHandlingFees"]=$HandlingFeePercent;
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
$result1 = $client->EstimateFreight($SOAPrequest);
|
| 139 |
-
$method = Mage::getModel('shipping/rate_result_method');
|
| 140 |
-
$methods=get_class_methods($method);
|
| 141 |
-
|
| 142 |
-
//echo "<pre/>";
|
| 143 |
-
//print_r($SOAPrequest);
|
| 144 |
-
//exit;
|
| 145 |
-
//echo $result1->EstimateFreightResult->WSMessage;exit;
|
| 146 |
-
try
|
| 147 |
-
{
|
| 148 |
-
$rateresult=$result1->EstimateFreightResult->EstimateFreight->RateReplyDetails;
|
| 149 |
-
}
|
| 150 |
-
catch(Exception $e)
|
| 151 |
-
{
|
| 152 |
-
Mage::getSingleton('core/session')->addError($result1->EstimateFreightResult->WSMessage);
|
| 153 |
-
}
|
| 154 |
-
|
| 155 |
-
if(!empty($rateresult))
|
| 156 |
-
{
|
| 157 |
-
foreach($rateresult as $rate)
|
| 158 |
-
{
|
| 159 |
-
// echo $rate->ServiceType;
|
| 160 |
-
if(!empty($rate->ServiceType))
|
| 161 |
-
{
|
| 162 |
-
$data=$importModel->checkMethod(trim($rate->ServiceType));
|
| 163 |
-
if(empty($data))
|
| 164 |
-
{
|
| 165 |
-
$data["name"]=$rate->ServiceType;
|
| 166 |
-
try
|
| 167 |
-
{
|
| 168 |
-
$importModel->setData($data)->save();
|
| 169 |
-
}
|
| 170 |
-
catch(Exception $e)
|
| 171 |
-
{
|
| 172 |
-
echo $e->getMessage();
|
| 173 |
-
}
|
| 174 |
-
}
|
| 175 |
-
|
| 176 |
-
if(in_array($rate->ServiceType,$allowedMethodsArr))
|
| 177 |
-
{
|
| 178 |
-
$method = Mage::getModel('shipping/rate_result_method');
|
| 179 |
-
$method->setCarrier($this->_code);
|
| 180 |
-
$method->setCarrierTitle($this->_code);
|
| 181 |
-
$method->setMethod($rate->ServiceType);
|
| 182 |
-
$method->setMethodTitle($rate->ServiceType);
|
| 183 |
-
$method->setCost($rate->TotalCharge->Amount);
|
| 184 |
-
$method->setPrice($rate->TotalCharge->Amount);
|
| 185 |
-
$result->append($method);
|
| 186 |
-
}
|
| 187 |
-
}
|
| 188 |
-
}
|
| 189 |
-
|
| 190 |
-
}
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
}
|
| 194 |
-
catch(Exception $e)
|
| 195 |
-
{
|
| 196 |
-
echo $e->getMessage();
|
| 197 |
-
exit;
|
| 198 |
-
}
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
// skip if not enabled
|
| 202 |
-
// if (!Mage::getStoreConfig('carriers/'.$this->_code.'/active'))
|
| 203 |
-
// return false;
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
return $result;
|
| 209 |
-
|
| 210 |
-
}
|
| 211 |
-
|
| 212 |
-
public function getAllowedMethods()
|
| 213 |
-
{
|
| 214 |
-
return array('customshiping'=>$this->getConfigData('name'));
|
| 215 |
-
}
|
| 216 |
-
|
| 217 |
-
public function _getISO3Code($szISO2Code)
|
| 218 |
-
{
|
| 219 |
-
$boFound = false;
|
| 220 |
-
$nCount = 1;
|
| 221 |
-
|
| 222 |
-
$collection = Mage::getModel('directory/country_api')->items();
|
| 223 |
-
|
| 224 |
-
while ($boFound == false &&
|
| 225 |
-
$nCount < count($collection))
|
| 226 |
-
{
|
| 227 |
-
$item = $collection[$nCount];
|
| 228 |
-
if($item['iso2_code'] == $szISO2Code)
|
| 229 |
-
{
|
| 230 |
-
$boFound = true;
|
| 231 |
-
$szISO3Code = $item['iso3_code'];
|
| 232 |
-
}
|
| 233 |
-
$nCount++;
|
| 234 |
-
}
|
| 235 |
-
|
| 236 |
-
return $szISO3Code;
|
| 237 |
-
}
|
| 238 |
-
}
|
| 239 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 6 |
-
public $Length;
|
| 7 |
-
public $Width;
|
| 8 |
-
public $Height;
|
| 9 |
-
public $ActualWeight;
|
| 10 |
-
|
| 11 |
-
}
|
| 12 |
-
class OMS_Shippingimport_Model_Carrier_Localdelivery extends Mage_Shipping_Model_Carrier_Abstract
|
| 13 |
-
implements Mage_Shipping_Model_Carrier_Interface
|
| 14 |
-
{
|
| 15 |
-
/* Use group alias */
|
| 16 |
-
protected $_code = 'customshiping';
|
| 17 |
-
|
| 18 |
-
public function collectRates(Mage_Shipping_Model_Rate_Request $request)
|
| 19 |
-
{
|
| 20 |
-
try
|
| 21 |
-
{
|
| 22 |
-
|
| 23 |
-
$url=Mage::getStoreConfig('webservice/webservice_group/webservice_url',Mage::app()->getStore());
|
| 24 |
-
$username=Mage::getStoreConfig('webservice/webservice_group/webservice_username',Mage::app()->getStore());
|
| 25 |
-
$password=Mage::getStoreConfig('webservice/webservice_group/webservice_password',Mage::app()->getStore());
|
| 26 |
-
$allowedMethods=Mage::getStoreConfig('carriers/customshiping/allowedmethods',Mage::app()->getStore());
|
| 27 |
-
$warehousename=Mage::getStoreConfig('webservice/webservice_group/webservice_warehousename',Mage::app()->getStore());
|
| 28 |
-
$OriginCountry =Mage::getStoreConfig('webservice/webservice_group/webservice_originCountry',Mage::app()->getStore());
|
| 29 |
-
$OriginPostal =Mage::getStoreConfig('webservice/webservice_group/webservice_originPostal',Mage::app()->getStore());
|
| 30 |
-
$Unit = Mage::getStoreConfig('webservice/webservice_group/webservice_unit',Mage::app()->getStore());
|
| 31 |
-
$custname = Mage::getStoreConfig('webservice/webservice_group/webservice_custname',Mage::app()->getStore());
|
| 32 |
-
|
| 33 |
-
if($Unit=="")
|
| 34 |
-
$Unit="US";
|
| 35 |
-
$InsuranceAmount= Mage::getStoreConfig('webservice/webservice_group/webservice_insuranceamount',Mage::app()->getStore());
|
| 36 |
-
$AddHandlingFees = Mage::getStoreConfig('webservice/webservice_group/webservice_addhandlingfees',Mage::app()->getStore());
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
$HandlingFeePercent = Mage::getStoreConfig('webservice/webservice_group/webservice_handlingfeepercent',Mage::app()->getStore());
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
$currencycode=Mage::app()->getStore()-> getCurrentCurrencyCode();
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
$allowedMethodsArr=split(",",$allowedMethods);
|
| 47 |
-
|
| 48 |
-
$importModel= Mage::getModel('shippingimport/import');
|
| 49 |
-
$result = Mage::getModel('shipping/rate_result');
|
| 50 |
-
|
| 51 |
-
$client = new SoapClient($url, array('trace' => TRUE));
|
| 52 |
-
|
| 53 |
-
//$session = $client->__login('testaccount@oms.com.au', 'f7vmz!299pl');
|
| 54 |
-
$SOAPrequest["strB2BCustomerName"]=$custname;
|
| 55 |
-
$SOAPrequest["strB2BCustomerEmail"]=$username;
|
| 56 |
-
$SOAPrequest["strB2BCustomerPassword"]=$password;
|
| 57 |
-
$SOAPrequest["strCurrencyAbbrev"]=$currencycode;
|
| 58 |
-
$SOAPrequest["strWarehouseName"]=$warehousename;
|
| 59 |
-
$SOAPrequest["lngAdjustedWeight"]="";
|
| 60 |
-
$SOAPrequest["siUnit"]= $Unit;
|
| 61 |
-
|
| 62 |
-
$adminsession = Mage::getSingleton('admin/session')->isLoggedIn();
|
| 63 |
-
|
| 64 |
-
$session = Mage::getSingleton('checkout/session');
|
| 65 |
-
$object= new FreightLineItem();
|
| 66 |
-
if (!empty($session) || !empty($adminsession))
|
| 67 |
-
{
|
| 68 |
-
$count=0;
|
| 69 |
-
|
| 70 |
-
if(Mage::getSingleton('admin/session')->isLoggedIn())
|
| 71 |
-
{
|
| 72 |
-
$items = Mage::getSingleton('adminhtml/session_quote')->getQuote()->getAllVisibleItems();
|
| 73 |
-
$adminData = Mage::getSingleton('adminhtml/session_quote')->getQuote()->getShippingAddress()->getData();
|
| 74 |
-
if(empty($postcode))
|
| 75 |
-
{
|
| 76 |
-
$postcode=$adminData['postcode'] ;
|
| 77 |
-
$country=$adminData['country_id'];
|
| 78 |
-
$_iso3countrycode=$this->_getISO3Code($country);
|
| 79 |
-
}
|
| 80 |
-
|
| 81 |
-
}
|
| 82 |
-
else
|
| 83 |
-
{
|
| 84 |
-
$data = Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getData();
|
| 85 |
-
$postcode = $data['postcode'];
|
| 86 |
-
$country=$data['country_id'];
|
| 87 |
-
$_iso3countrycode=$this->_getISO3Code($country);
|
| 88 |
-
$items = Mage::getSingleton('checkout/cart')->getItems();
|
| 89 |
-
}
|
| 90 |
-
$itemlength=0;
|
| 91 |
-
$itemWidth=0;
|
| 92 |
-
$itemHeight=0;
|
| 93 |
-
$itemWeight=0;
|
| 94 |
-
$itemQuantity=0;
|
| 95 |
-
|
| 96 |
-
$count=0;
|
| 97 |
-
$freightArray[]=array();
|
| 98 |
-
foreach ($items as $item)
|
| 99 |
-
{
|
| 100 |
-
|
| 101 |
-
$_product= Mage::getSingleton('catalog/product')->load($item->getProductId());
|
| 102 |
-
$itemQuantity =(int)$item->getQty();
|
| 103 |
-
$length=$_product->getResource()->getAttribute('length');
|
| 104 |
-
|
| 105 |
-
if(!empty($length))
|
| 106 |
-
{
|
| 107 |
-
$itemlength =(int)$length->getFrontend()->getValue($_product);
|
| 108 |
-
}
|
| 109 |
-
else
|
| 110 |
-
{
|
| 111 |
-
$itemlength =0;
|
| 112 |
-
}
|
| 113 |
-
|
| 114 |
-
$width=$_product->getResource()->getAttribute('width');
|
| 115 |
-
if(!empty($width))
|
| 116 |
-
{
|
| 117 |
-
$itemWidth =(int)$width->getFrontend()->getValue($_product);
|
| 118 |
-
}
|
| 119 |
-
else
|
| 120 |
-
{
|
| 121 |
-
$itemWidth =0;
|
| 122 |
-
}
|
| 123 |
-
$height=$_product->getResource()->getAttribute('height');
|
| 124 |
-
if(!empty($height))
|
| 125 |
-
{
|
| 126 |
-
$itemHeight =(int)$height->getFrontend()->getValue($_product);
|
| 127 |
-
}
|
| 128 |
-
else
|
| 129 |
-
{
|
| 130 |
-
$itemHeight =0;
|
| 131 |
-
}
|
| 132 |
-
$itemWeight =(int)$item->getWeight();
|
| 133 |
-
|
| 134 |
-
$object->Quantity =$itemQuantity;
|
| 135 |
-
|
| 136 |
-
$object->Length = $itemlength;
|
| 137 |
-
|
| 138 |
-
$object->Weight = $itemWeight;
|
| 139 |
-
$object->Width = $itemWidth;
|
| 140 |
-
$object->Height = $itemHeight;
|
| 141 |
-
$object->ActualWeight=$itemWeight;
|
| 142 |
-
|
| 143 |
-
$freightArray[$count]=$object;
|
| 144 |
-
$count++;
|
| 145 |
-
|
| 146 |
-
}
|
| 147 |
-
}
|
| 148 |
-
|
| 149 |
-
echo "<pre/>";
|
| 150 |
-
print_r($freightArray);
|
| 151 |
-
exit;
|
| 152 |
-
|
| 153 |
-
$SOAPrequest["oLineItems"]['FreightLineItem']=$object;
|
| 154 |
-
$SOAPrequest["oRestriction"]="NA";
|
| 155 |
-
$SOAPrequest["strDestinationCountry"]=$_iso3countrycode;
|
| 156 |
-
$SOAPrequest["strDestinationPostal"]=$postcode;
|
| 157 |
-
$SOAPrequest["strOriginationCountry"]=$OriginCountry;
|
| 158 |
-
$SOAPrequest["strOriginationPostal"]=$OriginPostal;
|
| 159 |
-
$SOAPrequest["lngInsuranceAmount"]=$InsuranceAmount;
|
| 160 |
-
$SOAPrequest["bAddHandlingFees"]=$AddHandlingFees;
|
| 161 |
-
$SOAPrequest["lngPctOfHandlingFees"]=$HandlingFeePercent;
|
| 162 |
-
|
| 163 |
-
/*echo "<pre/>";
|
| 164 |
-
print_r($SOAPrequest);
|
| 165 |
-
exit;*/
|
| 166 |
-
$result1 = $client->EstimateFreight($SOAPrequest);
|
| 167 |
-
|
| 168 |
-
$method = Mage::getModel('shipping/rate_result_method');
|
| 169 |
-
// $methods=get_class_methods($method);
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
//echo $result1->EstimateFreightResult->WSMessage;exit;
|
| 173 |
-
try
|
| 174 |
-
{
|
| 175 |
-
$rateresult=$result1->EstimateFreightResult->EstimateFreight->RateReplyDetails;
|
| 176 |
-
}
|
| 177 |
-
catch(Exception $e)
|
| 178 |
-
{
|
| 179 |
-
Mage::getSingleton('core/session')->addError($result1->EstimateFreightResult->WSMessage);
|
| 180 |
-
}
|
| 181 |
-
|
| 182 |
-
if(!empty($rateresult))
|
| 183 |
-
{
|
| 184 |
-
foreach($rateresult as $rate)
|
| 185 |
-
{
|
| 186 |
-
// echo $rate->ServiceType;
|
| 187 |
-
if(!empty($rate->ServiceType))
|
| 188 |
-
{
|
| 189 |
-
$data=$importModel->checkMethod(trim($rate->ServiceType));
|
| 190 |
-
if(empty($data))
|
| 191 |
-
{
|
| 192 |
-
$data["name"]=$rate->ServiceType;
|
| 193 |
-
try
|
| 194 |
-
{
|
| 195 |
-
$importModel->setData($data)->save();
|
| 196 |
-
}
|
| 197 |
-
catch(Exception $e)
|
| 198 |
-
{
|
| 199 |
-
echo $e->getMessage();
|
| 200 |
-
}
|
| 201 |
-
}
|
| 202 |
-
|
| 203 |
-
if(in_array($rate->ServiceType,$allowedMethodsArr))
|
| 204 |
-
{
|
| 205 |
-
$method = Mage::getModel('shipping/rate_result_method');
|
| 206 |
-
$method->setCarrier($this->_code);
|
| 207 |
-
$method->setCarrierTitle($this->_code);
|
| 208 |
-
$method->setMethod($rate->ServiceType);
|
| 209 |
-
$method->setMethodTitle($rate->ServiceType);
|
| 210 |
-
$method->setCost($rate->TotalCharge->Amount);
|
| 211 |
-
$method->setPrice($rate->TotalCharge->Amount);
|
| 212 |
-
$result->append($method);
|
| 213 |
-
}
|
| 214 |
-
}
|
| 215 |
-
}
|
| 216 |
-
|
| 217 |
-
}
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
}
|
| 221 |
-
catch(Exception $e)
|
| 222 |
-
{
|
| 223 |
-
echo $e->getMessage();
|
| 224 |
-
exit;
|
| 225 |
-
}
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
// skip if not enabled
|
| 229 |
-
// if (!Mage::getStoreConfig('carriers/'.$this->_code.'/active'))
|
| 230 |
-
// return false;
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
return $result;
|
| 236 |
-
|
| 237 |
-
}
|
| 238 |
-
|
| 239 |
-
public function getAllowedMethods()
|
| 240 |
-
{
|
| 241 |
-
return array('customshiping'=>$this->getConfigData('name'));
|
| 242 |
-
}
|
| 243 |
-
|
| 244 |
-
public function _getISO3Code($szISO2Code)
|
| 245 |
-
{
|
| 246 |
-
$boFound = false;
|
| 247 |
-
$nCount = 1;
|
| 248 |
-
|
| 249 |
-
$collection = Mage::getModel('directory/country_api')->items();
|
| 250 |
-
|
| 251 |
-
while ($boFound == false &&
|
| 252 |
-
$nCount < count($collection))
|
| 253 |
-
{
|
| 254 |
-
$item = $collection[$nCount];
|
| 255 |
-
if($item['iso2_code'] == $szISO2Code)
|
| 256 |
-
{
|
| 257 |
-
$boFound = true;
|
| 258 |
-
$szISO3Code = $item['iso3_code'];
|
| 259 |
-
}
|
| 260 |
-
$nCount++;
|
| 261 |
-
}
|
| 262 |
-
|
| 263 |
-
return $szISO3Code;
|
| 264 |
-
}
|
| 265 |
-
}
|
| 266 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<config>
|
| 3 |
+
<tabs>
|
| 4 |
+
<webservice translate="label" module="shipping">
|
| 5 |
+
<label>OMS Shipping Calculator</label>
|
| 6 |
+
<sort_order>100</sort_order>
|
| 7 |
+
</webservice>
|
| 8 |
+
</tabs>
|
| 9 |
+
|
| 10 |
+
<sections>
|
| 11 |
+
<webservice translate="label" module="shipping">
|
| 12 |
+
<label>Extension Options</label>
|
| 13 |
+
<tab>webservice</tab>
|
| 14 |
+
<sort_order>1000</sort_order>
|
| 15 |
+
<show_in_default>1</show_in_default>
|
| 16 |
+
<show_in_website>1</show_in_website>
|
| 17 |
+
<show_in_store>1</show_in_store>
|
| 18 |
+
|
| 19 |
+
<groups>
|
| 20 |
+
<webservice_group translate="label" module="shipping">
|
| 21 |
+
<label>OMS Shipping Calculator configuration</label>
|
| 22 |
+
<frontend_type>text</frontend_type>
|
| 23 |
+
<sort_order>1000</sort_order>
|
| 24 |
+
<show_in_default>1</show_in_default>
|
| 25 |
+
<show_in_website>1</show_in_website>
|
| 26 |
+
<show_in_store>1</show_in_store>
|
| 27 |
+
|
| 28 |
+
<fields>
|
| 29 |
+
<webservice_enable translate="label">
|
| 30 |
+
<label>Enabled: </label>
|
| 31 |
+
<comment></comment>
|
| 32 |
+
<frontend_type>select</frontend_type>
|
| 33 |
+
<source_model>OMS_Shippingimport_Model_Enable</source_model>
|
| 34 |
+
<sort_order>19</sort_order>
|
| 35 |
+
<show_in_default>1</show_in_default>
|
| 36 |
+
<show_in_website>1</show_in_website>
|
| 37 |
+
<show_in_store>1</show_in_store>
|
| 38 |
+
</webservice_enable>
|
| 39 |
+
<webservice_url translate="label">
|
| 40 |
+
<label>SOAP web service URL: </label>
|
| 41 |
+
<comment>SOAP Web service URL.</comment>
|
| 42 |
+
<frontend_type>text</frontend_type>
|
| 43 |
+
<sort_order>20</sort_order>
|
| 44 |
+
<show_in_default>1</show_in_default>
|
| 45 |
+
<show_in_website>1</show_in_website>
|
| 46 |
+
<show_in_store>1</show_in_store>
|
| 47 |
+
</webservice_url>
|
| 48 |
+
<webservice_custname translate="label">
|
| 49 |
+
<label>Customer Name: </label>
|
| 50 |
+
<comment></comment>
|
| 51 |
+
<frontend_type>text</frontend_type>
|
| 52 |
+
<sort_order>21</sort_order>
|
| 53 |
+
<show_in_default>1</show_in_default>
|
| 54 |
+
<show_in_website>1</show_in_website>
|
| 55 |
+
<show_in_store>1</show_in_store>
|
| 56 |
+
</webservice_custname>
|
| 57 |
+
<webservice_username translate="label">
|
| 58 |
+
<label>Username: </label>
|
| 59 |
+
<comment>Username for SOAP Web service authentication.</comment>
|
| 60 |
+
<frontend_type>text</frontend_type>
|
| 61 |
+
<sort_order>30</sort_order>
|
| 62 |
+
<show_in_default>1</show_in_default>
|
| 63 |
+
<show_in_website>1</show_in_website>
|
| 64 |
+
<show_in_store>1</show_in_store>
|
| 65 |
+
</webservice_username>
|
| 66 |
+
<webservice_password translate="label">
|
| 67 |
+
<label>Password: </label>
|
| 68 |
+
<comment>Password for SOAP Web service authentication.</comment>
|
| 69 |
+
<frontend_type>password</frontend_type>
|
| 70 |
+
<sort_order>40</sort_order>
|
| 71 |
+
<show_in_default>1</show_in_default>
|
| 72 |
+
<show_in_website>1</show_in_website>
|
| 73 |
+
<show_in_store>1</show_in_store>
|
| 74 |
+
</webservice_password>
|
| 75 |
+
<webservice_warehousename translate="label">
|
| 76 |
+
<label>Warehouse Name: </label>
|
| 77 |
+
<comment>Warehouse name.</comment>
|
| 78 |
+
<frontend_type>text</frontend_type>
|
| 79 |
+
<sort_order>41</sort_order>
|
| 80 |
+
<show_in_default>1</show_in_default>
|
| 81 |
+
<show_in_website>1</show_in_website>
|
| 82 |
+
<show_in_store>1</show_in_store>
|
| 83 |
+
</webservice_warehousename>
|
| 84 |
+
<webservice_originCountry translate="label">
|
| 85 |
+
<label>Origin Country: </label>
|
| 86 |
+
<comment></comment>
|
| 87 |
+
<frontend_type>text</frontend_type>
|
| 88 |
+
<sort_order>42</sort_order>
|
| 89 |
+
<show_in_default>1</show_in_default>
|
| 90 |
+
<show_in_website>1</show_in_website>
|
| 91 |
+
<show_in_store>1</show_in_store>
|
| 92 |
+
</webservice_originCountry>
|
| 93 |
+
<webservice_originPostal translate="label">
|
| 94 |
+
<label>Origin Postal: </label>
|
| 95 |
+
<comment></comment>
|
| 96 |
+
<frontend_type>text</frontend_type>
|
| 97 |
+
<sort_order>43</sort_order>
|
| 98 |
+
<show_in_default>1</show_in_default>
|
| 99 |
+
<show_in_website>1</show_in_website>
|
| 100 |
+
<show_in_store>1</show_in_store>
|
| 101 |
+
</webservice_originPostal>
|
| 102 |
+
<webservice_unit translate="label">
|
| 103 |
+
<label>Unit: </label>
|
| 104 |
+
<comment></comment>
|
| 105 |
+
<frontend_type>select</frontend_type>
|
| 106 |
+
<source_model>OMS_Shippingimport_Model_Unit</source_model>
|
| 107 |
+
<sort_order>44</sort_order>
|
| 108 |
+
<show_in_default>1</show_in_default>
|
| 109 |
+
<show_in_website>1</show_in_website>
|
| 110 |
+
<show_in_store>1</show_in_store>
|
| 111 |
+
</webservice_unit>
|
| 112 |
+
<webservice_CurrencyAbbrev translate="label">
|
| 113 |
+
<label>Currency Abbreviation: </label>
|
| 114 |
+
<comment></comment>
|
| 115 |
+
<frontend_type>text</frontend_type>
|
| 116 |
+
<sort_order>44</sort_order>
|
| 117 |
+
<show_in_default>1</show_in_default>
|
| 118 |
+
<show_in_website>1</show_in_website>
|
| 119 |
+
<show_in_store>1</show_in_store>
|
| 120 |
+
</webservice_CurrencyAbbrev>
|
| 121 |
+
|
| 122 |
+
<webservice_insuranceamount translate="label">
|
| 123 |
+
<label>Insurance Amount: </label>
|
| 124 |
+
<comment></comment>
|
| 125 |
+
<frontend_type>text</frontend_type>
|
| 126 |
+
<sort_order>45</sort_order>
|
| 127 |
+
<show_in_default>1</show_in_default>
|
| 128 |
+
<show_in_website>1</show_in_website>
|
| 129 |
+
<show_in_store>1</show_in_store>
|
| 130 |
+
</webservice_insuranceamount>
|
| 131 |
+
<webservice_addhandlingfees translate="label">
|
| 132 |
+
<label>Add Handling Fees: </label>
|
| 133 |
+
<comment></comment>
|
| 134 |
+
<frontend_type>select</frontend_type>
|
| 135 |
+
<source_model>OMS_Shippingimport_Model_Handlingfees</source_model>
|
| 136 |
+
<sort_order>46</sort_order>
|
| 137 |
+
<show_in_default>1</show_in_default>
|
| 138 |
+
<show_in_website>1</show_in_website>
|
| 139 |
+
<show_in_store>1</show_in_store>
|
| 140 |
+
</webservice_addhandlingfees>
|
| 141 |
+
<webservice_handlingfeepercent translate="label">
|
| 142 |
+
<label>Handling Fee Percent: </label>
|
| 143 |
+
<comment></comment>
|
| 144 |
+
<frontend_type>text</frontend_type>
|
| 145 |
+
<sort_order>47</sort_order>
|
| 146 |
+
<show_in_default>1</show_in_default>
|
| 147 |
+
<show_in_website>1</show_in_website>
|
| 148 |
+
<show_in_store>1</show_in_store>
|
| 149 |
+
</webservice_handlingfeepercent>
|
| 150 |
+
<webservice_alternate translate="label">
|
| 151 |
+
<label>Alternate methods: </label>
|
| 152 |
+
<comment>Will be use in case when webservice returns no rates.</comment>
|
| 153 |
+
<frontend_type>select</frontend_type>
|
| 154 |
+
<source_model>OMS_Shippingimport_Model_Alternatemethods</source_model>
|
| 155 |
+
<sort_order>48</sort_order>
|
| 156 |
+
<show_in_default>1</show_in_default>
|
| 157 |
+
<show_in_website>1</show_in_website>
|
| 158 |
+
<show_in_store>1</show_in_store>
|
| 159 |
+
</webservice_alternate>
|
| 160 |
+
|
| 161 |
+
<webservice_debug translate="label">
|
| 162 |
+
<label>Debug: </label>
|
| 163 |
+
<comment>Will add Webservice call info to a log.</comment>
|
| 164 |
+
<frontend_type>select</frontend_type>
|
| 165 |
+
<source_model>OMS_Shippingimport_Model_Handlingfees</source_model>
|
| 166 |
+
<sort_order>49</sort_order>
|
| 167 |
+
<show_in_default>1</show_in_default>
|
| 168 |
+
<show_in_website>1</show_in_website>
|
| 169 |
+
<show_in_store>1</show_in_store>
|
| 170 |
+
</webservice_debug>
|
| 171 |
+
</fields>
|
| 172 |
+
</webservice_group>
|
| 173 |
+
<email_settings translate="label" module="shipping">
|
| 174 |
+
<label>OMS Shipping SMTP Settings</label>
|
| 175 |
+
<frontend_type>text</frontend_type>
|
| 176 |
+
<sort_order>1001</sort_order>
|
| 177 |
+
<show_in_default>1</show_in_default>
|
| 178 |
+
<show_in_website>1</show_in_website>
|
| 179 |
+
<show_in_store>1</show_in_store>
|
| 180 |
+
<fields>
|
| 181 |
+
<hostname translate="label">
|
| 182 |
+
<label>Host Name:</label>
|
| 183 |
+
<comment></comment>
|
| 184 |
+
<frontend_type>text</frontend_type>
|
| 185 |
+
<sort_order>1</sort_order>
|
| 186 |
+
<show_in_default>1</show_in_default>
|
| 187 |
+
<show_in_website>1</show_in_website>
|
| 188 |
+
<show_in_store>1</show_in_store>
|
| 189 |
+
</hostname>
|
| 190 |
+
<username translate="label">
|
| 191 |
+
<label>Username:</label>
|
| 192 |
+
<comment></comment>
|
| 193 |
+
<frontend_type>text</frontend_type>
|
| 194 |
+
<sort_order>2</sort_order>
|
| 195 |
+
<show_in_default>1</show_in_default>
|
| 196 |
+
<show_in_website>1</show_in_website>
|
| 197 |
+
<show_in_store>1</show_in_store>
|
| 198 |
+
</username>
|
| 199 |
+
<password translate="label">
|
| 200 |
+
<label>Password:</label>
|
| 201 |
+
<comment></comment>
|
| 202 |
+
<frontend_type>password</frontend_type>
|
| 203 |
+
<sort_order>3</sort_order>
|
| 204 |
+
<show_in_default>1</show_in_default>
|
| 205 |
+
<show_in_website>1</show_in_website>
|
| 206 |
+
<show_in_store>1</show_in_store>
|
| 207 |
+
</password>
|
| 208 |
+
<port translate="label">
|
| 209 |
+
<label>Port:</label>
|
| 210 |
+
<comment></comment>
|
| 211 |
+
<frontend_type>text</frontend_type>
|
| 212 |
+
<sort_order>4</sort_order>
|
| 213 |
+
<show_in_default>1</show_in_default>
|
| 214 |
+
<show_in_website>1</show_in_website>
|
| 215 |
+
<show_in_store>1</show_in_store>
|
| 216 |
+
</port>
|
| 217 |
+
<send_to translate="label">
|
| 218 |
+
<label>Send to:</label>
|
| 219 |
+
<comment></comment>
|
| 220 |
+
<frontend_type>text</frontend_type>
|
| 221 |
+
<sort_order>5</sort_order>
|
| 222 |
+
<show_in_default>1</show_in_default>
|
| 223 |
+
<show_in_website>1</show_in_website>
|
| 224 |
+
<show_in_store>1</show_in_store>
|
| 225 |
+
</send_to>
|
| 226 |
+
<from_name translate="label">
|
| 227 |
+
<label>Store Name:</label>
|
| 228 |
+
<comment></comment>
|
| 229 |
+
<frontend_type>text</frontend_type>
|
| 230 |
+
<sort_order>6</sort_order>
|
| 231 |
+
<show_in_default>1</show_in_default>
|
| 232 |
+
<show_in_website>1</show_in_website>
|
| 233 |
+
<show_in_store>1</show_in_store>
|
| 234 |
+
</from_name>
|
| 235 |
+
<from_email translate="label">
|
| 236 |
+
<label>Store Email:</label>
|
| 237 |
+
<comment></comment>
|
| 238 |
+
<frontend_type>text</frontend_type>
|
| 239 |
+
<sort_order>6</sort_order>
|
| 240 |
+
<show_in_default>1</show_in_default>
|
| 241 |
+
<show_in_website>1</show_in_website>
|
| 242 |
+
<show_in_store>1</show_in_store>
|
| 243 |
+
</from_email>
|
| 244 |
+
</fields>
|
| 245 |
+
|
| 246 |
+
</email_settings>
|
| 247 |
+
</groups>
|
| 248 |
+
</webservice>
|
| 249 |
+
<carriers>
|
| 250 |
+
<groups>
|
| 251 |
+
<customshiping translate="label" module="shipping">
|
| 252 |
+
<label>OMS Shipping Calculator</label>
|
| 253 |
+
<frontend_type>text</frontend_type>
|
| 254 |
+
<sort_order>13</sort_order>
|
| 255 |
+
<show_in_default>1</show_in_default>
|
| 256 |
+
<show_in_website>1</show_in_website>
|
| 257 |
+
<show_in_store>1</show_in_store>
|
| 258 |
+
<fields>
|
| 259 |
+
<active translate="label">
|
| 260 |
+
<label>Enabled</label>
|
| 261 |
+
<frontend_type>select</frontend_type>
|
| 262 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 263 |
+
<sort_order>1</sort_order>
|
| 264 |
+
<show_in_default>1</show_in_default>
|
| 265 |
+
<show_in_website>1</show_in_website>
|
| 266 |
+
<show_in_store>1</show_in_store>
|
| 267 |
+
</active>
|
| 268 |
+
<title translate="label">
|
| 269 |
+
<label>Title</label>
|
| 270 |
+
<frontend_type>text</frontend_type>
|
| 271 |
+
<sort_order>2</sort_order>
|
| 272 |
+
<show_in_default>1</show_in_default>
|
| 273 |
+
<show_in_website>1</show_in_website>
|
| 274 |
+
<show_in_store>1</show_in_store>
|
| 275 |
+
</title>
|
| 276 |
+
<!-- <sort_order translate="label">
|
| 277 |
+
<label>Sort order</label>
|
| 278 |
+
<frontend_type>text</frontend_type>
|
| 279 |
+
<sort_order>100</sort_order>
|
| 280 |
+
<show_in_default>1</show_in_default>
|
| 281 |
+
<show_in_website>1</show_in_website>
|
| 282 |
+
<show_in_store>1</show_in_store>
|
| 283 |
+
</sort_order>
|
| 284 |
+
<title translate="label">
|
| 285 |
+
<label>Title</label>
|
| 286 |
+
<frontend_type>text</frontend_type>
|
| 287 |
+
<sort_order>2</sort_order>
|
| 288 |
+
<show_in_default>1</show_in_default>
|
| 289 |
+
<show_in_website>1</show_in_website>
|
| 290 |
+
<show_in_store>1</show_in_store>
|
| 291 |
+
</title>
|
| 292 |
+
<methodtitle translate="label">
|
| 293 |
+
<label>Method Title</label>
|
| 294 |
+
<frontend_type>text</frontend_type>
|
| 295 |
+
<sort_order>2</sort_order>
|
| 296 |
+
<show_in_default>1</show_in_default>
|
| 297 |
+
<show_in_website>1</show_in_website>
|
| 298 |
+
<show_in_store>1</show_in_store>
|
| 299 |
+
</methodtitle>
|
| 300 |
+
<handling translate="label">
|
| 301 |
+
<label>Handling fee</label>
|
| 302 |
+
<frontend_type>text</frontend_type>
|
| 303 |
+
<sort_order>12</sort_order>
|
| 304 |
+
<show_in_default>1</show_in_default>
|
| 305 |
+
<show_in_website>1</show_in_website>
|
| 306 |
+
<show_in_store>1</show_in_store>
|
| 307 |
+
</handling>
|
| 308 |
+
<handling_type translate="label">
|
| 309 |
+
<label>Calculate Handling Fee</label>
|
| 310 |
+
<frontend_type>select</frontend_type>
|
| 311 |
+
<source_model>shipping/source_handlingType</source_model>
|
| 312 |
+
<sort_order>10</sort_order>
|
| 313 |
+
<show_in_default>1</show_in_default>
|
| 314 |
+
<show_in_website>1</show_in_website>
|
| 315 |
+
<show_in_store>0</show_in_store>
|
| 316 |
+
</handling_type>-->
|
| 317 |
+
|
| 318 |
+
<domestic_fail_safe_rate>
|
| 319 |
+
<label>Domestic failsafe Rate</label>
|
| 320 |
+
<frontend_type>text</frontend_type>
|
| 321 |
+
<sort_order>78</sort_order>
|
| 322 |
+
<show_in_default>1</show_in_default>
|
| 323 |
+
<show_in_website>1</show_in_website>
|
| 324 |
+
<show_in_store>1</show_in_store>
|
| 325 |
+
</domestic_fail_safe_rate>
|
| 326 |
+
<international_fail_safe_rate>
|
| 327 |
+
<label>International failsafe Rate</label>
|
| 328 |
+
<frontend_type>text</frontend_type>
|
| 329 |
+
<sort_order>79</sort_order>
|
| 330 |
+
<show_in_default>1</show_in_default>
|
| 331 |
+
<show_in_website>1</show_in_website>
|
| 332 |
+
<show_in_store>1</show_in_store>
|
| 333 |
+
</international_fail_safe_rate>
|
| 334 |
+
<allowedmethods translate="label">
|
| 335 |
+
<label>Allowed Methods</label>
|
| 336 |
+
<frontend_type>multiselect</frontend_type>
|
| 337 |
+
<sort_order>80</sort_order>
|
| 338 |
+
<source_model>OMS_Shippingimport_Model_Methodslist</source_model>
|
| 339 |
+
<show_in_default>1</show_in_default>
|
| 340 |
+
<show_in_website>1</show_in_website>
|
| 341 |
+
<show_in_store>1</show_in_store>
|
| 342 |
+
</allowedmethods>
|
| 343 |
+
<sallowspecific translate="label">
|
| 344 |
+
<label>Ship to applicable countries</label>
|
| 345 |
+
<frontend_type>select</frontend_type>
|
| 346 |
+
<sort_order>90</sort_order>
|
| 347 |
+
<frontend_class>shipping-applicable-country</frontend_class>
|
| 348 |
+
<source_model>adminhtml/system_config_source_shipping_allspecificcountries</source_model>
|
| 349 |
+
<show_in_default>1</show_in_default>
|
| 350 |
+
<show_in_website>1</show_in_website>
|
| 351 |
+
<show_in_store>1</show_in_store>
|
| 352 |
+
</sallowspecific>
|
| 353 |
+
<specificcountry translate="label">
|
| 354 |
+
<label>Ship to Specific countries</label>
|
| 355 |
+
<frontend_type>multiselect</frontend_type>
|
| 356 |
+
<sort_order>91</sort_order>
|
| 357 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
| 358 |
+
<show_in_default>1</show_in_default>
|
| 359 |
+
<show_in_website>1</show_in_website>
|
| 360 |
+
<show_in_store>1</show_in_store>
|
| 361 |
+
</specificcountry>
|
| 362 |
+
<specificerrmsg translate="label">
|
| 363 |
+
<label>Displayed Error Message</label>
|
| 364 |
+
<frontend_type>textarea</frontend_type>
|
| 365 |
+
<sort_order>92</sort_order>
|
| 366 |
+
<show_in_default>1</show_in_default>
|
| 367 |
+
<show_in_website>1</show_in_website>
|
| 368 |
+
<show_in_store>1</show_in_store>
|
| 369 |
+
</specificerrmsg>
|
| 370 |
+
</fields>
|
| 371 |
+
</customshiping>
|
| 372 |
+
|
| 373 |
+
|
| 374 |
+
|
| 375 |
+
</groups>
|
| 376 |
+
</carriers>
|
| 377 |
+
</sections>
|
| 378 |
+
</config>
|
app/code/local/OMS/Shippingimport/etc/Backup 2 of system.xml
ADDED
|
@@ -0,0 +1,378 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<config>
|
| 3 |
+
<tabs>
|
| 4 |
+
<webservice translate="label" module="shipping">
|
| 5 |
+
<label>OMS Global Freight Estimator</label>
|
| 6 |
+
<sort_order>100</sort_order>
|
| 7 |
+
</webservice>
|
| 8 |
+
</tabs>
|
| 9 |
+
|
| 10 |
+
<sections>
|
| 11 |
+
<webservice translate="label" module="shipping">
|
| 12 |
+
<label>Extension Options</label>
|
| 13 |
+
<tab>webservice</tab>
|
| 14 |
+
<sort_order>1000</sort_order>
|
| 15 |
+
<show_in_default>1</show_in_default>
|
| 16 |
+
<show_in_website>1</show_in_website>
|
| 17 |
+
<show_in_store>1</show_in_store>
|
| 18 |
+
|
| 19 |
+
<groups>
|
| 20 |
+
<webservice_group translate="label" module="shipping">
|
| 21 |
+
<label>OMS OMS Global Freight Estimator configuration</label>
|
| 22 |
+
<frontend_type>text</frontend_type>
|
| 23 |
+
<sort_order>1000</sort_order>
|
| 24 |
+
<show_in_default>1</show_in_default>
|
| 25 |
+
<show_in_website>1</show_in_website>
|
| 26 |
+
<show_in_store>1</show_in_store>
|
| 27 |
+
|
| 28 |
+
<fields>
|
| 29 |
+
<webservice_enable translate="label">
|
| 30 |
+
<label>Enabled: </label>
|
| 31 |
+
<comment></comment>
|
| 32 |
+
<frontend_type>select</frontend_type>
|
| 33 |
+
<source_model>OMS_Shippingimport_Model_Enable</source_model>
|
| 34 |
+
<sort_order>19</sort_order>
|
| 35 |
+
<show_in_default>1</show_in_default>
|
| 36 |
+
<show_in_website>1</show_in_website>
|
| 37 |
+
<show_in_store>1</show_in_store>
|
| 38 |
+
</webservice_enable>
|
| 39 |
+
<webservice_url translate="label">
|
| 40 |
+
<label>SOAP web service URL: </label>
|
| 41 |
+
<comment>SOAP Web service URL.</comment>
|
| 42 |
+
<frontend_type>text</frontend_type>
|
| 43 |
+
<sort_order>20</sort_order>
|
| 44 |
+
<show_in_default>1</show_in_default>
|
| 45 |
+
<show_in_website>1</show_in_website>
|
| 46 |
+
<show_in_store>1</show_in_store>
|
| 47 |
+
</webservice_url>
|
| 48 |
+
<webservice_custname translate="label">
|
| 49 |
+
<label>Customer Name: </label>
|
| 50 |
+
<comment></comment>
|
| 51 |
+
<frontend_type>text</frontend_type>
|
| 52 |
+
<sort_order>21</sort_order>
|
| 53 |
+
<show_in_default>1</show_in_default>
|
| 54 |
+
<show_in_website>1</show_in_website>
|
| 55 |
+
<show_in_store>1</show_in_store>
|
| 56 |
+
</webservice_custname>
|
| 57 |
+
<webservice_username translate="label">
|
| 58 |
+
<label>Username: </label>
|
| 59 |
+
<comment>Username for SOAP Web service authentication.</comment>
|
| 60 |
+
<frontend_type>text</frontend_type>
|
| 61 |
+
<sort_order>30</sort_order>
|
| 62 |
+
<show_in_default>1</show_in_default>
|
| 63 |
+
<show_in_website>1</show_in_website>
|
| 64 |
+
<show_in_store>1</show_in_store>
|
| 65 |
+
</webservice_username>
|
| 66 |
+
<webservice_password translate="label">
|
| 67 |
+
<label>Password: </label>
|
| 68 |
+
<comment>Password for SOAP Web service authentication.</comment>
|
| 69 |
+
<frontend_type>password</frontend_type>
|
| 70 |
+
<sort_order>40</sort_order>
|
| 71 |
+
<show_in_default>1</show_in_default>
|
| 72 |
+
<show_in_website>1</show_in_website>
|
| 73 |
+
<show_in_store>1</show_in_store>
|
| 74 |
+
</webservice_password>
|
| 75 |
+
<webservice_warehousename translate="label">
|
| 76 |
+
<label>Warehouse Name: </label>
|
| 77 |
+
<comment>Warehouse name.</comment>
|
| 78 |
+
<frontend_type>text</frontend_type>
|
| 79 |
+
<sort_order>41</sort_order>
|
| 80 |
+
<show_in_default>1</show_in_default>
|
| 81 |
+
<show_in_website>1</show_in_website>
|
| 82 |
+
<show_in_store>1</show_in_store>
|
| 83 |
+
</webservice_warehousename>
|
| 84 |
+
<webservice_originCountry translate="label">
|
| 85 |
+
<label>Origin Country: </label>
|
| 86 |
+
<comment></comment>
|
| 87 |
+
<frontend_type>text</frontend_type>
|
| 88 |
+
<sort_order>42</sort_order>
|
| 89 |
+
<show_in_default>1</show_in_default>
|
| 90 |
+
<show_in_website>1</show_in_website>
|
| 91 |
+
<show_in_store>1</show_in_store>
|
| 92 |
+
</webservice_originCountry>
|
| 93 |
+
<webservice_originPostal translate="label">
|
| 94 |
+
<label>Origin Postal: </label>
|
| 95 |
+
<comment></comment>
|
| 96 |
+
<frontend_type>text</frontend_type>
|
| 97 |
+
<sort_order>43</sort_order>
|
| 98 |
+
<show_in_default>1</show_in_default>
|
| 99 |
+
<show_in_website>1</show_in_website>
|
| 100 |
+
<show_in_store>1</show_in_store>
|
| 101 |
+
</webservice_originPostal>
|
| 102 |
+
<webservice_unit translate="label">
|
| 103 |
+
<label>Unit: </label>
|
| 104 |
+
<comment></comment>
|
| 105 |
+
<frontend_type>select</frontend_type>
|
| 106 |
+
<source_model>OMS_Shippingimport_Model_Unit</source_model>
|
| 107 |
+
<sort_order>44</sort_order>
|
| 108 |
+
<show_in_default>1</show_in_default>
|
| 109 |
+
<show_in_website>1</show_in_website>
|
| 110 |
+
<show_in_store>1</show_in_store>
|
| 111 |
+
</webservice_unit>
|
| 112 |
+
<webservice_CurrencyAbbrev translate="label">
|
| 113 |
+
<label>Currency Abbreviation: </label>
|
| 114 |
+
<comment></comment>
|
| 115 |
+
<frontend_type>text</frontend_type>
|
| 116 |
+
<sort_order>44</sort_order>
|
| 117 |
+
<show_in_default>1</show_in_default>
|
| 118 |
+
<show_in_website>1</show_in_website>
|
| 119 |
+
<show_in_store>1</show_in_store>
|
| 120 |
+
</webservice_CurrencyAbbrev>
|
| 121 |
+
|
| 122 |
+
<webservice_insuranceamount translate="label">
|
| 123 |
+
<label>Insurance Amount: </label>
|
| 124 |
+
<comment></comment>
|
| 125 |
+
<frontend_type>text</frontend_type>
|
| 126 |
+
<sort_order>45</sort_order>
|
| 127 |
+
<show_in_default>1</show_in_default>
|
| 128 |
+
<show_in_website>1</show_in_website>
|
| 129 |
+
<show_in_store>1</show_in_store>
|
| 130 |
+
</webservice_insuranceamount>
|
| 131 |
+
<webservice_addhandlingfees translate="label">
|
| 132 |
+
<label>Add Handling Fees: </label>
|
| 133 |
+
<comment></comment>
|
| 134 |
+
<frontend_type>select</frontend_type>
|
| 135 |
+
<source_model>OMS_Shippingimport_Model_Handlingfees</source_model>
|
| 136 |
+
<sort_order>46</sort_order>
|
| 137 |
+
<show_in_default>1</show_in_default>
|
| 138 |
+
<show_in_website>1</show_in_website>
|
| 139 |
+
<show_in_store>1</show_in_store>
|
| 140 |
+
</webservice_addhandlingfees>
|
| 141 |
+
<webservice_handlingfeepercent translate="label">
|
| 142 |
+
<label>Handling Fee Percent: </label>
|
| 143 |
+
<comment></comment>
|
| 144 |
+
<frontend_type>text</frontend_type>
|
| 145 |
+
<sort_order>47</sort_order>
|
| 146 |
+
<show_in_default>1</show_in_default>
|
| 147 |
+
<show_in_website>1</show_in_website>
|
| 148 |
+
<show_in_store>1</show_in_store>
|
| 149 |
+
</webservice_handlingfeepercent>
|
| 150 |
+
<webservice_alternate translate="label">
|
| 151 |
+
<label>Alternate methods: </label>
|
| 152 |
+
<comment>Will be use in case when webservice returns no rates.</comment>
|
| 153 |
+
<frontend_type>select</frontend_type>
|
| 154 |
+
<source_model>OMS_Shippingimport_Model_Alternatemethods</source_model>
|
| 155 |
+
<sort_order>48</sort_order>
|
| 156 |
+
<show_in_default>1</show_in_default>
|
| 157 |
+
<show_in_website>1</show_in_website>
|
| 158 |
+
<show_in_store>1</show_in_store>
|
| 159 |
+
</webservice_alternate>
|
| 160 |
+
|
| 161 |
+
<webservice_debug translate="label">
|
| 162 |
+
<label>Debug: </label>
|
| 163 |
+
<comment>Will add Webservice call info to a log.</comment>
|
| 164 |
+
<frontend_type>select</frontend_type>
|
| 165 |
+
<source_model>OMS_Shippingimport_Model_Handlingfees</source_model>
|
| 166 |
+
<sort_order>49</sort_order>
|
| 167 |
+
<show_in_default>1</show_in_default>
|
| 168 |
+
<show_in_website>1</show_in_website>
|
| 169 |
+
<show_in_store>1</show_in_store>
|
| 170 |
+
</webservice_debug>
|
| 171 |
+
</fields>
|
| 172 |
+
</webservice_group>
|
| 173 |
+
<email_settings translate="label" module="shipping">
|
| 174 |
+
<label>OMS Shipping SMTP Settings</label>
|
| 175 |
+
<frontend_type>text</frontend_type>
|
| 176 |
+
<sort_order>1001</sort_order>
|
| 177 |
+
<show_in_default>1</show_in_default>
|
| 178 |
+
<show_in_website>1</show_in_website>
|
| 179 |
+
<show_in_store>1</show_in_store>
|
| 180 |
+
<fields>
|
| 181 |
+
<hostname translate="label">
|
| 182 |
+
<label>Host Name:</label>
|
| 183 |
+
<comment></comment>
|
| 184 |
+
<frontend_type>text</frontend_type>
|
| 185 |
+
<sort_order>1</sort_order>
|
| 186 |
+
<show_in_default>1</show_in_default>
|
| 187 |
+
<show_in_website>1</show_in_website>
|
| 188 |
+
<show_in_store>1</show_in_store>
|
| 189 |
+
</hostname>
|
| 190 |
+
<username translate="label">
|
| 191 |
+
<label>Username:</label>
|
| 192 |
+
<comment></comment>
|
| 193 |
+
<frontend_type>text</frontend_type>
|
| 194 |
+
<sort_order>2</sort_order>
|
| 195 |
+
<show_in_default>1</show_in_default>
|
| 196 |
+
<show_in_website>1</show_in_website>
|
| 197 |
+
<show_in_store>1</show_in_store>
|
| 198 |
+
</username>
|
| 199 |
+
<password translate="label">
|
| 200 |
+
<label>Password:</label>
|
| 201 |
+
<comment></comment>
|
| 202 |
+
<frontend_type>password</frontend_type>
|
| 203 |
+
<sort_order>3</sort_order>
|
| 204 |
+
<show_in_default>1</show_in_default>
|
| 205 |
+
<show_in_website>1</show_in_website>
|
| 206 |
+
<show_in_store>1</show_in_store>
|
| 207 |
+
</password>
|
| 208 |
+
<port translate="label">
|
| 209 |
+
<label>Port:</label>
|
| 210 |
+
<comment></comment>
|
| 211 |
+
<frontend_type>text</frontend_type>
|
| 212 |
+
<sort_order>4</sort_order>
|
| 213 |
+
<show_in_default>1</show_in_default>
|
| 214 |
+
<show_in_website>1</show_in_website>
|
| 215 |
+
<show_in_store>1</show_in_store>
|
| 216 |
+
</port>
|
| 217 |
+
<send_to translate="label">
|
| 218 |
+
<label>Send to:</label>
|
| 219 |
+
<comment></comment>
|
| 220 |
+
<frontend_type>text</frontend_type>
|
| 221 |
+
<sort_order>5</sort_order>
|
| 222 |
+
<show_in_default>1</show_in_default>
|
| 223 |
+
<show_in_website>1</show_in_website>
|
| 224 |
+
<show_in_store>1</show_in_store>
|
| 225 |
+
</send_to>
|
| 226 |
+
<from_name translate="label">
|
| 227 |
+
<label>Store Name:</label>
|
| 228 |
+
<comment></comment>
|
| 229 |
+
<frontend_type>text</frontend_type>
|
| 230 |
+
<sort_order>6</sort_order>
|
| 231 |
+
<show_in_default>1</show_in_default>
|
| 232 |
+
<show_in_website>1</show_in_website>
|
| 233 |
+
<show_in_store>1</show_in_store>
|
| 234 |
+
</from_name>
|
| 235 |
+
<from_email translate="label">
|
| 236 |
+
<label>Store Email:</label>
|
| 237 |
+
<comment></comment>
|
| 238 |
+
<frontend_type>text</frontend_type>
|
| 239 |
+
<sort_order>6</sort_order>
|
| 240 |
+
<show_in_default>1</show_in_default>
|
| 241 |
+
<show_in_website>1</show_in_website>
|
| 242 |
+
<show_in_store>1</show_in_store>
|
| 243 |
+
</from_email>
|
| 244 |
+
</fields>
|
| 245 |
+
|
| 246 |
+
</email_settings>
|
| 247 |
+
</groups>
|
| 248 |
+
</webservice>
|
| 249 |
+
<carriers>
|
| 250 |
+
<groups>
|
| 251 |
+
<customshiping translate="label" module="shipping">
|
| 252 |
+
<label>OMS Shipping Calculator</label>
|
| 253 |
+
<frontend_type>text</frontend_type>
|
| 254 |
+
<sort_order>13</sort_order>
|
| 255 |
+
<show_in_default>1</show_in_default>
|
| 256 |
+
<show_in_website>1</show_in_website>
|
| 257 |
+
<show_in_store>1</show_in_store>
|
| 258 |
+
<fields>
|
| 259 |
+
<active translate="label">
|
| 260 |
+
<label>Enabled</label>
|
| 261 |
+
<frontend_type>select</frontend_type>
|
| 262 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 263 |
+
<sort_order>1</sort_order>
|
| 264 |
+
<show_in_default>1</show_in_default>
|
| 265 |
+
<show_in_website>1</show_in_website>
|
| 266 |
+
<show_in_store>1</show_in_store>
|
| 267 |
+
</active>
|
| 268 |
+
<title translate="label">
|
| 269 |
+
<label>Title</label>
|
| 270 |
+
<frontend_type>text</frontend_type>
|
| 271 |
+
<sort_order>2</sort_order>
|
| 272 |
+
<show_in_default>1</show_in_default>
|
| 273 |
+
<show_in_website>1</show_in_website>
|
| 274 |
+
<show_in_store>1</show_in_store>
|
| 275 |
+
</title>
|
| 276 |
+
<!-- <sort_order translate="label">
|
| 277 |
+
<label>Sort order</label>
|
| 278 |
+
<frontend_type>text</frontend_type>
|
| 279 |
+
<sort_order>100</sort_order>
|
| 280 |
+
<show_in_default>1</show_in_default>
|
| 281 |
+
<show_in_website>1</show_in_website>
|
| 282 |
+
<show_in_store>1</show_in_store>
|
| 283 |
+
</sort_order>
|
| 284 |
+
<title translate="label">
|
| 285 |
+
<label>Title</label>
|
| 286 |
+
<frontend_type>text</frontend_type>
|
| 287 |
+
<sort_order>2</sort_order>
|
| 288 |
+
<show_in_default>1</show_in_default>
|
| 289 |
+
<show_in_website>1</show_in_website>
|
| 290 |
+
<show_in_store>1</show_in_store>
|
| 291 |
+
</title>
|
| 292 |
+
<methodtitle translate="label">
|
| 293 |
+
<label>Method Title</label>
|
| 294 |
+
<frontend_type>text</frontend_type>
|
| 295 |
+
<sort_order>2</sort_order>
|
| 296 |
+
<show_in_default>1</show_in_default>
|
| 297 |
+
<show_in_website>1</show_in_website>
|
| 298 |
+
<show_in_store>1</show_in_store>
|
| 299 |
+
</methodtitle>
|
| 300 |
+
<handling translate="label">
|
| 301 |
+
<label>Handling fee</label>
|
| 302 |
+
<frontend_type>text</frontend_type>
|
| 303 |
+
<sort_order>12</sort_order>
|
| 304 |
+
<show_in_default>1</show_in_default>
|
| 305 |
+
<show_in_website>1</show_in_website>
|
| 306 |
+
<show_in_store>1</show_in_store>
|
| 307 |
+
</handling>
|
| 308 |
+
<handling_type translate="label">
|
| 309 |
+
<label>Calculate Handling Fee</label>
|
| 310 |
+
<frontend_type>select</frontend_type>
|
| 311 |
+
<source_model>shipping/source_handlingType</source_model>
|
| 312 |
+
<sort_order>10</sort_order>
|
| 313 |
+
<show_in_default>1</show_in_default>
|
| 314 |
+
<show_in_website>1</show_in_website>
|
| 315 |
+
<show_in_store>0</show_in_store>
|
| 316 |
+
</handling_type>-->
|
| 317 |
+
|
| 318 |
+
<domestic_fail_safe_rate>
|
| 319 |
+
<label>Domestic failsafe Rate</label>
|
| 320 |
+
<frontend_type>text</frontend_type>
|
| 321 |
+
<sort_order>78</sort_order>
|
| 322 |
+
<show_in_default>1</show_in_default>
|
| 323 |
+
<show_in_website>1</show_in_website>
|
| 324 |
+
<show_in_store>1</show_in_store>
|
| 325 |
+
</domestic_fail_safe_rate>
|
| 326 |
+
<international_fail_safe_rate>
|
| 327 |
+
<label>International failsafe Rate</label>
|
| 328 |
+
<frontend_type>text</frontend_type>
|
| 329 |
+
<sort_order>79</sort_order>
|
| 330 |
+
<show_in_default>1</show_in_default>
|
| 331 |
+
<show_in_website>1</show_in_website>
|
| 332 |
+
<show_in_store>1</show_in_store>
|
| 333 |
+
</international_fail_safe_rate>
|
| 334 |
+
<allowedmethods translate="label">
|
| 335 |
+
<label>Allowed Methods</label>
|
| 336 |
+
<frontend_type>multiselect</frontend_type>
|
| 337 |
+
<sort_order>80</sort_order>
|
| 338 |
+
<source_model>OMS_Shippingimport_Model_Methodslist</source_model>
|
| 339 |
+
<show_in_default>1</show_in_default>
|
| 340 |
+
<show_in_website>1</show_in_website>
|
| 341 |
+
<show_in_store>1</show_in_store>
|
| 342 |
+
</allowedmethods>
|
| 343 |
+
<sallowspecific translate="label">
|
| 344 |
+
<label>Ship to applicable countries</label>
|
| 345 |
+
<frontend_type>select</frontend_type>
|
| 346 |
+
<sort_order>90</sort_order>
|
| 347 |
+
<frontend_class>shipping-applicable-country</frontend_class>
|
| 348 |
+
<source_model>adminhtml/system_config_source_shipping_allspecificcountries</source_model>
|
| 349 |
+
<show_in_default>1</show_in_default>
|
| 350 |
+
<show_in_website>1</show_in_website>
|
| 351 |
+
<show_in_store>1</show_in_store>
|
| 352 |
+
</sallowspecific>
|
| 353 |
+
<specificcountry translate="label">
|
| 354 |
+
<label>Ship to Specific countries</label>
|
| 355 |
+
<frontend_type>multiselect</frontend_type>
|
| 356 |
+
<sort_order>91</sort_order>
|
| 357 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
| 358 |
+
<show_in_default>1</show_in_default>
|
| 359 |
+
<show_in_website>1</show_in_website>
|
| 360 |
+
<show_in_store>1</show_in_store>
|
| 361 |
+
</specificcountry>
|
| 362 |
+
<specificerrmsg translate="label">
|
| 363 |
+
<label>Displayed Error Message</label>
|
| 364 |
+
<frontend_type>textarea</frontend_type>
|
| 365 |
+
<sort_order>92</sort_order>
|
| 366 |
+
<show_in_default>1</show_in_default>
|
| 367 |
+
<show_in_website>1</show_in_website>
|
| 368 |
+
<show_in_store>1</show_in_store>
|
| 369 |
+
</specificerrmsg>
|
| 370 |
+
</fields>
|
| 371 |
+
</customshiping>
|
| 372 |
+
|
| 373 |
+
|
| 374 |
+
|
| 375 |
+
</groups>
|
| 376 |
+
</carriers>
|
| 377 |
+
</sections>
|
| 378 |
+
</config>
|
app/code/local/OMS/Shippingimport/etc/system.xml
CHANGED
|
@@ -18,7 +18,7 @@
|
|
| 18 |
|
| 19 |
<groups>
|
| 20 |
<webservice_group translate="label" module="shipping">
|
| 21 |
-
<label>OMS Global Freight Estimator configuration</label>
|
| 22 |
<frontend_type>text</frontend_type>
|
| 23 |
<sort_order>1000</sort_order>
|
| 24 |
<show_in_default>1</show_in_default>
|
|
@@ -171,7 +171,7 @@
|
|
| 171 |
</fields>
|
| 172 |
</webservice_group>
|
| 173 |
<email_settings translate="label" module="shipping">
|
| 174 |
-
<label>OMS
|
| 175 |
<frontend_type>text</frontend_type>
|
| 176 |
<sort_order>1001</sort_order>
|
| 177 |
<show_in_default>1</show_in_default>
|
| 18 |
|
| 19 |
<groups>
|
| 20 |
<webservice_group translate="label" module="shipping">
|
| 21 |
+
<label>OMS OMS Global Freight Estimator configuration</label>
|
| 22 |
<frontend_type>text</frontend_type>
|
| 23 |
<sort_order>1000</sort_order>
|
| 24 |
<show_in_default>1</show_in_default>
|
| 171 |
</fields>
|
| 172 |
</webservice_group>
|
| 173 |
<email_settings translate="label" module="shipping">
|
| 174 |
+
<label>OMS SMTP Settings</label>
|
| 175 |
<frontend_type>text</frontend_type>
|
| 176 |
<sort_order>1001</sort_order>
|
| 177 |
<show_in_default>1</show_in_default>
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>OMS_Global_Freight_Estimator</name>
|
| 4 |
-
<version>2.0.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>AFL 3.0</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -10,9 +10,9 @@
|
|
| 10 |
<description>Displays shipping rates.</description>
|
| 11 |
<notes>Completed</notes>
|
| 12 |
<authors><author><name>OMS</name><user>OMS</user><email>david.morris@oms.us.com</email></author></authors>
|
| 13 |
-
<date>2012-12-
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="magelocal"><dir name="OMS"><dir name="Shippingimport"><dir name="Helper"><file name="Data.php" hash="
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.2.0</min><max>5.4.0</max></php></required></dependencies>
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>OMS_Global_Freight_Estimator</name>
|
| 4 |
+
<version>2.0.2</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>AFL 3.0</license>
|
| 7 |
<channel>community</channel>
|
| 10 |
<description>Displays shipping rates.</description>
|
| 11 |
<notes>Completed</notes>
|
| 12 |
<authors><author><name>OMS</name><user>OMS</user><email>david.morris@oms.us.com</email></author></authors>
|
| 13 |
+
<date>2012-12-19</date>
|
| 14 |
+
<time>07:23:15</time>
|
| 15 |
+
<contents><target name="magelocal"><dir name="OMS"><dir name="Shippingimport"><dir name="Helper"><file name="Data.php" hash="d049a4e4cda3224e964be17b2deeec18"/></dir><dir name="Model"><file name="Alternatemethods.php" hash="d317ce8917756cf0666f64495e660b4e"/><dir name="Carrier"><file name="Localdelivery.php" hash="eba9b77a824fcc95bf9686cc2eb2407f"/><file name="Tablerate.php" hash="21f9a9d7e531f9d971210590eedbc4a9"/></dir><file name="Enable.php" hash="27503f2345449d8ad476b7ed705a4196"/><file name="Handlingfees.php" hash="3f3fdf8557190cec4f786d63697c1d66"/><file name="Import.php" hash="9bf8bd095f3880d80263fa77e9841b49"/><file name="Methodslist.php" hash="d2a684ca77d6752e4e38c04033094749"/><dir name="Mysql4"><dir name="Import"><file name="Collection.php" hash="3fdb97c52fc30e58fec1829b6f93f477"/></dir><file name="Import.php" hash="adb97b24eb8f757a0111c87f4d6a323f"/></dir><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><file name="Setup.php" hash="65035aef1bb79a13a49b596187139b85"/></dir></dir></dir><file name="Shipping.php" hash="51a267e460cd17366149b80944483d57"/><file name="Unit.php" hash="51defb0b2281c0add597c57e67e47a10"/></dir><dir name="controllers"><file name="IndexController.php" hash="e2c98fd728c7c0e71f3b9df90934d3b7"/></dir><dir name="etc"><file name="adminhtml.xml" hash="ea5b26de474c6e4ee445013789e383a8"/><file name="config.xml" hash="14bb48f2d233159c6b302131ef80c447"/><file name="system.xml" hash="c2dbc15ef65bbbf4d3a21f8ae2dc3c8d"/></dir><dir name="sql"><dir name="shippingimport_setup"><file name="mysql4-install-0.0.1.php" hash="d6d1d20afa936be5ef35207545df4a15"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="OMS_Shippingimport.xml" hash="24e6c1788c336a0653079edd518c2a3f"/></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.2.0</min><max>5.4.0</max></php></required></dependencies>
|
| 18 |
</package>
|
