Version Notes
Start selling internationally. Get bulk discounted DHL Express rates, displayed in real-time to your customers
Download this release
Release Info
| Developer | Cedcoss |
| Extension | InXpress |
| Version | 0.1.1 |
| Comparing to | |
| See all releases | |
Code changes from version 0.1.0 to 0.1.1
app/code/local/Cedcoss/Inxpress/sql/inxpress_setup/mysql4-install-0.1.0.php
CHANGED
|
@@ -8,15 +8,17 @@ try
|
|
| 8 |
|
| 9 |
$installer->startSetup();
|
| 10 |
|
| 11 |
-
$
|
|
|
|
|
|
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
$company=Mage::getStoreConfig('general/store_information/name');
|
| 16 |
|
| 17 |
-
$firstname=$
|
| 18 |
|
| 19 |
-
$lastname=$
|
| 20 |
|
| 21 |
$countryModel = Mage::getModel('directory/country')->loadByCode(Mage::getStoreConfig('shipping/origin/country_id'));
|
| 22 |
|
|
@@ -46,11 +48,11 @@ try
|
|
| 46 |
|
| 47 |
$phone=Mage::getStoreConfig('general/store_information/phone');
|
| 48 |
|
| 49 |
-
$email
|
| 50 |
|
| 51 |
$address=Mage::getStoreConfig('shipping/origin/street_line1').','.Mage::getStoreConfig('shipping/origin/street_line2');
|
| 52 |
|
| 53 |
-
$website=Mage::getBaseUrl(Mage_Core_Model_Store::
|
| 54 |
|
| 55 |
|
| 56 |
|
|
@@ -76,7 +78,10 @@ try
|
|
| 76 |
|
| 77 |
Mage::log('Website: '.$website);
|
| 78 |
|
| 79 |
-
|
|
|
|
|
|
|
|
|
|
| 80 |
|
| 81 |
$url = 'http://inxpressaz.force.com/leadcreation?cmp='.$company.'&fn='.$firstname.'&ln='.$lastname.'&add='.$address.'&ct='.$city.'&st='.$region_name.'&cnt='.$countryName.'&zp='.$zip.'&ph='.$phone.'&em='.$email.'&ws='.$website.'&ls=Magento';
|
| 82 |
|
| 8 |
|
| 9 |
$installer->startSetup();
|
| 10 |
|
| 11 |
+
$user = Mage::getModel('admin/user')->getCollection();
|
| 12 |
+
|
| 13 |
+
$user=$user->getData();
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
$company=Mage::getStoreConfig('general/store_information/name');
|
| 18 |
|
| 19 |
+
$firstname=$user[0]['firstname'];
|
| 20 |
|
| 21 |
+
$lastname=$user[0]['lastname'];
|
| 22 |
|
| 23 |
$countryModel = Mage::getModel('directory/country')->loadByCode(Mage::getStoreConfig('shipping/origin/country_id'));
|
| 24 |
|
| 48 |
|
| 49 |
$phone=Mage::getStoreConfig('general/store_information/phone');
|
| 50 |
|
| 51 |
+
$email=$user[0]['email'];
|
| 52 |
|
| 53 |
$address=Mage::getStoreConfig('shipping/origin/street_line1').','.Mage::getStoreConfig('shipping/origin/street_line2');
|
| 54 |
|
| 55 |
+
$website=Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK);
|
| 56 |
|
| 57 |
|
| 58 |
|
| 78 |
|
| 79 |
Mage::log('Website: '.$website);
|
| 80 |
|
| 81 |
+
if($company=='')
|
| 82 |
+
{
|
| 83 |
+
$company='Magento Store';
|
| 84 |
+
}
|
| 85 |
|
| 86 |
$url = 'http://inxpressaz.force.com/leadcreation?cmp='.$company.'&fn='.$firstname.'&ln='.$lastname.'&add='.$address.'&ct='.$city.'&st='.$region_name.'&cnt='.$countryName.'&zp='.$zip.'&ph='.$phone.'&em='.$email.'&ws='.$website.'&ls=Magento';
|
| 87 |
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>InXpress</name>
|
| 4 |
-
<version>0.1.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>0.3osl</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -20,9 +20,9 @@ As the largest small business solution of DHL Express, we are an authorized rese
|
|
| 20 |
</description>
|
| 21 |
<notes>Start selling internationally. Get bulk discounted DHL Express rates, displayed in real-time to your customers</notes>
|
| 22 |
<authors><author><name>Cedcoss</name><user>Cedcoss</user><email>developer@cedcoss.com</email></author></authors>
|
| 23 |
-
<date>2014-07-
|
| 24 |
-
<time>
|
| 25 |
-
<contents><target name="magelocal"><dir name="Cedcoss"><dir name="Inxpress"><dir name="Model"><dir name="Carrier"><file name="Inxpress.php" hash="aa4127f3ec66caff79f838af84ff68b4"/></dir><file name="Inxpress.php" hash="c00b406b60986a41713219995929fe35"/><dir name="Mysql4"><dir name="Inxpress"><file name="Collection.php" hash="fac10a23aad024cd73ea5ec0f618a488"/></dir><file name="Inxpress.php" hash="7b61c380c27488dc8cd885f58fe541ed"/><file name="Setup.php" hash="1d62889c7eb878fab5538068a659ff5b"/></dir></dir><dir name="controllers"><file name="ActivateController.php" hash="a5e72af04c62b64ef2e09a358d6ed6f0"/></dir><dir name="etc"><file name="config.xml" hash="8d9dab285eb63b04d7947dabae870960"/><file name="system.xml" hash="a09af7686796dbe3f9c9a48339f0fc3d"/></dir><dir name="sql"><dir name="inxpress_setup"><file name="mysql4-install-0.1.0.php" hash="
|
| 26 |
<compatible/>
|
| 27 |
<dependencies><required><php><min>5.2.0</min><max>5.5.0</max></php></required></dependencies>
|
| 28 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>InXpress</name>
|
| 4 |
+
<version>0.1.1</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>0.3osl</license>
|
| 7 |
<channel>community</channel>
|
| 20 |
</description>
|
| 21 |
<notes>Start selling internationally. Get bulk discounted DHL Express rates, displayed in real-time to your customers</notes>
|
| 22 |
<authors><author><name>Cedcoss</name><user>Cedcoss</user><email>developer@cedcoss.com</email></author></authors>
|
| 23 |
+
<date>2014-07-31</date>
|
| 24 |
+
<time>11:38:40</time>
|
| 25 |
+
<contents><target name="magelocal"><dir name="Cedcoss"><dir name="Inxpress"><dir name="Model"><dir name="Carrier"><file name="Inxpress.php" hash="aa4127f3ec66caff79f838af84ff68b4"/></dir><file name="Inxpress.php" hash="c00b406b60986a41713219995929fe35"/><dir name="Mysql4"><dir name="Inxpress"><file name="Collection.php" hash="fac10a23aad024cd73ea5ec0f618a488"/></dir><file name="Inxpress.php" hash="7b61c380c27488dc8cd885f58fe541ed"/><file name="Setup.php" hash="1d62889c7eb878fab5538068a659ff5b"/></dir></dir><dir name="controllers"><file name="ActivateController.php" hash="a5e72af04c62b64ef2e09a358d6ed6f0"/></dir><dir name="etc"><file name="config.xml" hash="8d9dab285eb63b04d7947dabae870960"/><file name="system.xml" hash="a09af7686796dbe3f9c9a48339f0fc3d"/></dir><dir name="sql"><dir name="inxpress_setup"><file name="mysql4-install-0.1.0.php" hash="afb6f67e348dfb0b7b8e58e4c6058710"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Cedcoss_Inxpress.xml" hash="ce41d55e28a410c66676332f84947239"/></dir></target></contents>
|
| 26 |
<compatible/>
|
| 27 |
<dependencies><required><php><min>5.2.0</min><max>5.5.0</max></php></required></dependencies>
|
| 28 |
</package>
|
