Auctane_ShipStation - Version 1.3.11

Version Notes

Official release.
Sends shipment email to customer regardless of comment.

Download this release

Release Info

Developer Clockworkgeek
Extension Auctane_ShipStation
Version 1.3.11
Comparing to
See all releases


Code changes from version 1.3.10 to 1.3.11

Files changed (32) hide show
  1. app/code/community/Auctane/Api/CHANGELOG.txt +3 -0
  2. app/code/community/Auctane/Api/Helper/Data.php +38 -0
  3. app/code/community/Auctane/Api/Model/Action/Export.php +24 -0
  4. app/code/community/Auctane/Api/Model/Action/Shipnotify.php +11 -1
  5. app/code/community/Auctane/Api/Model/Observer.php +98 -0
  6. app/code/community/Auctane/Api/etc/config.xml +33 -2
  7. app/code/community/Auctane/Api/sql/auctaneapi_setup/mysql4-install-1.3.11.php +18 -0
  8. app/code/community/Auctane/ShipStation/Block/Adminhtml/Linkup.php +0 -33
  9. app/code/community/Auctane/ShipStation/Block/Adminhtml/Linkup/Form.php +0 -56
  10. app/code/community/Auctane/ShipStation/Block/Adminhtml/Pending.php +0 -36
  11. app/code/community/Auctane/ShipStation/Helper/Data.php +0 -49
  12. app/code/community/Auctane/ShipStation/LICENSE.html +0 -42
  13. app/code/community/Auctane/ShipStation/LICENSE.txt +0 -48
  14. app/code/community/Auctane/ShipStation/LICENSE_AFL.txt +0 -48
  15. app/code/community/Auctane/ShipStation/Model/Mysql4/User.php +0 -27
  16. app/code/community/Auctane/ShipStation/Model/Mysql4/User/Collection.php +0 -28
  17. app/code/community/Auctane/ShipStation/Model/Observer.php +0 -32
  18. app/code/community/Auctane/ShipStation/Model/User.php +0 -100
  19. app/code/community/Auctane/ShipStation/controllers/Adminhtml/ShipstationController.php +0 -93
  20. app/code/community/Auctane/ShipStation/etc/adminhtml.xml +0 -46
  21. app/code/community/Auctane/ShipStation/etc/api.xml +0 -46
  22. app/code/community/Auctane/ShipStation/etc/config.xml +0 -115
  23. app/code/community/Auctane/ShipStation/sql/auctaneshipstation_setup/mysql4-install-1.0.0.php +0 -46
  24. app/design/adminhtml/default/default/layout/auctaneshipstation.xml +0 -45
  25. app/design/adminhtml/default/default/template/auctane/shipstation/container.phtml +0 -40
  26. app/design/adminhtml/default/default/template/auctane/shipstation/launch.phtml +0 -31
  27. app/design/adminhtml/default/default/template/auctane/shipstation/launchform.phtml +0 -59
  28. app/design/adminhtml/default/default/template/auctane/shipstation/linkup.phtml +0 -28
  29. app/design/adminhtml/default/default/template/auctane/shipstation/pending.phtml +0 -41
  30. app/etc/modules/Auctane_ShipStation.xml +0 -9
  31. package.xml +5 -5
  32. skin/adminhtml/default/default/images/shipstation.png +0 -0
app/code/community/Auctane/Api/CHANGELOG.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ Auctane_Api 1.3.10 (10-21-2013)
2
+ =======================================
3
+ [FIXED] This release addresses an issue with the last beta version.
app/code/community/Auctane/Api/Helper/Data.php CHANGED
@@ -48,6 +48,44 @@ class Auctane_Api_Helper_Data extends Mage_Core_Helper_Data
48
  $xml->endElement();
49
  }
50
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
 
52
  /**
53
  * @return array of string names
48
  $xml->endElement();
49
  }
50
  }
51
+
52
+ /**
53
+ * Write discounts info to order
54
+ * @param array $discount
55
+ * @param XMLWriter $xml
56
+ */
57
+ public function writeDiscountsInfo(array $discounts, XMLWriter $xml)
58
+ {
59
+ foreach ($discounts as $rule => $total) {
60
+ $xml->startElement('Item');
61
+
62
+ $salesRule = Mage::getModel('salesrule/rule')->load($rule);
63
+
64
+ if (!$salesRule->getId()) {
65
+ continue;
66
+ }
67
+
68
+ $xml->startElement('SKU');
69
+ $xml->writeCdata($salesRule->getCouponCode() ? $salesRule->getCouponCode() : 'AUTOMATIC_DISCOUNT');
70
+ $xml->endElement();
71
+ $xml->startElement('Name');
72
+ $xml->writeCdata($salesRule->getName());
73
+ $xml->endElement();
74
+ $xml->startElement('Adjustment');
75
+ $xml->writeCdata('true');
76
+ $xml->endElement();
77
+ $xml->startElement('Quantity');
78
+ $xml->text(1);
79
+ $xml->endElement();
80
+ $xml->startElement('UnitPrice');
81
+ $xml->text(-$total);
82
+ $xml->endElement();
83
+
84
+ $xml->endElement();
85
+ }
86
+ }
87
+
88
+
89
 
90
  /**
91
  * @return array of string names
app/code/community/Auctane/Api/Model/Action/Export.php CHANGED
@@ -123,6 +123,30 @@ class Auctane_Api_Model_Action_Export {
123
  foreach ($order->getItemsCollection($helper->getIncludedProductTypes()) as $item) {
124
  $this->_writeOrderItem($item, $xml, $storeId);
125
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
  $xml->endElement(); // Items
127
 
128
  $xml->endElement(); // Order
123
  foreach ($order->getItemsCollection($helper->getIncludedProductTypes()) as $item) {
124
  $this->_writeOrderItem($item, $xml, $storeId);
125
  }
126
+
127
+
128
+
129
+ $discounts = array();
130
+ if($order->getData('auctaneapi_discounts')) {
131
+ $discounts = @unserialize($order->getData('auctaneapi_discounts'));
132
+ if(is_array($discounts)) {
133
+ $aggregated = array();
134
+ foreach($discounts as $key => $discount) {
135
+ $keyData = explode('-', $key);
136
+ if(isset($aggregated[$keyData[0]])) {
137
+ $aggregated[$keyData[0]] += $discount;
138
+ }
139
+ else {
140
+ $aggregated[$keyData[0]] = $discount;
141
+ }
142
+ }
143
+ Mage::helper('auctaneapi')->writeDiscountsInfo($aggregated, $xml);
144
+ }
145
+ }
146
+
147
+
148
+
149
+
150
  $xml->endElement(); // Items
151
 
152
  $xml->endElement(); // Order
app/code/community/Auctane/Api/Model/Action/Shipnotify.php CHANGED
@@ -122,12 +122,22 @@ class Auctane_Api_Model_Action_Shipnotify {
122
  }
123
 
124
  protected function _getOrderItemQtys(SimpleXMLElement $xmlItems, Mage_Sales_Model_Order $order)
125
- {
 
126
  /* @var $items Mage_Sales_Model_Mysql4_Order_Item_Collection */
127
  $items = $order->getItemsCollection();
128
  $qtys = array();
129
  /* @var $item Mage_Sales_Model_Order_Item */
130
  foreach ($items as $item) {
 
 
 
 
 
 
 
 
 
131
  // search for item by SKU
132
  @list($xmlItem) = $xmlItems->xpath(sprintf('//Item/SKU[text()="%s"]/..',
133
  addslashes($item->getSku())));
122
  }
123
 
124
  protected function _getOrderItemQtys(SimpleXMLElement $xmlItems, Mage_Sales_Model_Order $order)
125
+ {
126
+ $shipAll = !count((array) $xmlItems);
127
  /* @var $items Mage_Sales_Model_Mysql4_Order_Item_Collection */
128
  $items = $order->getItemsCollection();
129
  $qtys = array();
130
  /* @var $item Mage_Sales_Model_Order_Item */
131
  foreach ($items as $item) {
132
+ /* collect all items qtys if shipall flag is true */
133
+ if($shipAll) {
134
+ if ($item->getParentItemId()) {
135
+ $qtys[$item->getParentItemId()] = $item->getQtyOrdered();
136
+ } else {
137
+ $qtys[$item->getId()] = $item->getQtyOrdered();
138
+ }
139
+ continue;
140
+ }
141
  // search for item by SKU
142
  @list($xmlItem) = $xmlItems->xpath(sprintf('//Item/SKU[text()="%s"]/..',
143
  addslashes($item->getSku())));
app/code/community/Auctane/Api/Model/Observer.php ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Auctane_Api_Model_Observer
4
+ {
5
+ protected static $_counter = 0;
6
+
7
+ protected static $_cartRules = array();
8
+
9
+ protected static $_shippingAmountProcessed = array();
10
+
11
+ /**
12
+ * Calculate discounts by sales rules
13
+ * @param Varien_Event_Observer $observer
14
+ */
15
+ public function salesruleProcess($observer)
16
+ {
17
+ $quote = $observer->getQuote();
18
+ $address = $observer->getAddress();
19
+ $rule = $observer->getRule();
20
+
21
+ $discounts = @unserialize($quote->getAuctaneapiDiscounts());
22
+
23
+ if (!self::$_counter) {
24
+ $discounts = array();
25
+ $address->setBaseShippingDiscountAmount(0);
26
+ self::$_counter++;
27
+ }
28
+
29
+ if (!isset(self::$_shippingAmountProcessed[$rule->getId()]) && $address->getShippingAmount()) {
30
+ $shippingAmount = $address->getShippingAmountForDiscount();
31
+ if ($shippingAmount !== null) {
32
+ $baseShippingAmount = $address->getBaseShippingAmountForDiscount();
33
+ } else {
34
+ $baseShippingAmount = $address->getBaseShippingAmount();
35
+ }
36
+
37
+ $baseDiscountAmount = 0;
38
+ $rulePercent = min(100, $rule->getDiscountAmount());
39
+ switch ($rule->getSimpleAction()) {
40
+ case Mage_SalesRule_Model_Rule::TO_PERCENT_ACTION:
41
+ $rulePercent = max(0, 100 - $rule->getDiscountAmount());
42
+ case Mage_SalesRule_Model_Rule::BY_PERCENT_ACTION:
43
+ $baseDiscountAmount = ($baseShippingAmount -
44
+ $address->getBaseShippingDiscountAmount()) * $rulePercent / 100;
45
+ break;
46
+ case Mage_SalesRule_Model_Rule::TO_FIXED_ACTION:
47
+ $baseDiscountAmount = $baseShippingAmount - $rule->getDiscountAmount();
48
+ break;
49
+ case Mage_SalesRule_Model_Rule::BY_FIXED_ACTION:
50
+ $baseDiscountAmount = $rule->getDiscountAmount();
51
+ break;
52
+ case Mage_SalesRule_Model_Rule::CART_FIXED_ACTION:
53
+ self::$_cartRules = $address->getCartFixedRules();
54
+ if (!isset(self::$_cartRules[$rule->getId()])) {
55
+ self::$_cartRules[$rule->getId()] = $rule->getDiscountAmount();
56
+ }
57
+ if (self::$_cartRules[$rule->getId()] > 0) {
58
+ $baseDiscountAmount = min(
59
+ $baseShippingAmount - $address->getBaseShippingDiscountAmount(), self::$_cartRules[$rule->getId()]
60
+ );
61
+ self::$_cartRules[$rule->getId()] -= $baseDiscountAmount;
62
+ }
63
+ break;
64
+ }
65
+
66
+ $ruleDiscount = 0;
67
+ $left = $baseShippingAmount - ($address->getBaseShippingDiscountAmount() + $baseDiscountAmount);
68
+ if ($left >= 0)
69
+ $ruleDiscount = $baseDiscountAmount;
70
+
71
+ $discounts[$rule->getId() . '-' . $observer->getItem()->getId() . '-' . uniqid()] =
72
+ $observer->getResult()->getBaseDiscountAmount() + $ruleDiscount;
73
+
74
+ $address->setBaseShippingDiscountAmount(min(
75
+ $address->getBaseShippingDiscountAmount() + $baseDiscountAmount,
76
+ $baseShippingAmount
77
+ ));
78
+
79
+ self::$_shippingAmountProcessed[$rule->getId()] = true;
80
+ }
81
+ else {
82
+ $discounts[$rule->getId() . '-' . $observer->getItem()->getId() . '-' . uniqid()] =
83
+ $observer->getResult()->getBaseDiscountAmount();
84
+ }
85
+
86
+ $quote->setAuctaneapiDiscounts(@serialize($discounts));
87
+ }
88
+
89
+ /**
90
+ * Export quote discounts info to order
91
+ * @param Varien_Event_Observer $observer
92
+ */
93
+ public function salesConvertQuoteToOrder($observer)
94
+ {
95
+ $observer->getOrder()->setAuctaneapiDiscounts($observer->getQuote()->getAuctaneapiDiscounts());
96
+ }
97
+
98
+ }
app/code/community/Auctane/Api/etc/config.xml CHANGED
@@ -19,11 +19,32 @@
19
  <config>
20
  <modules>
21
  <Auctane_Api>
22
- <version>1.3.10</version>
23
  </Auctane_Api>
24
  </modules>
25
 
26
  <global>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  <helpers>
28
  <auctaneapi>
29
  <class>Auctane_Api_Helper</class>
@@ -35,7 +56,12 @@
35
  <resourceModel>auctaneapi_mysql4</resourceModel>
36
  </auctaneapi>
37
  <auctaneapi_mysql4>
38
- <class>Auctane_Api_Model_Mysql4</class>
 
 
 
 
 
39
  </auctaneapi_mysql4>
40
  </models>
41
  <resources>
@@ -46,6 +72,11 @@
46
  <auctaneapi_read>
47
  <connection><use>core_read</use></connection>
48
  </auctaneapi_read>
 
 
 
 
 
49
  </resources>
50
 
51
  <fieldsets>
19
  <config>
20
  <modules>
21
  <Auctane_Api>
22
+ <version>1.3.11</version>
23
  </Auctane_Api>
24
  </modules>
25
 
26
  <global>
27
+
28
+ <events>
29
+ <salesrule_validator_process>
30
+ <observers>
31
+ <auctaneapi_salesrule_process>
32
+ <class>auctaneapi/observer</class>
33
+ <method>salesruleProcess</method>
34
+ </auctaneapi_salesrule_process>
35
+ </observers>
36
+ </salesrule_validator_process>
37
+ <sales_convert_quote_to_order>
38
+ <observers>
39
+ <auctaneapi_quote_to_order>
40
+ <class>auctaneapi/observer</class>
41
+ <method>salesConvertQuoteToOrder</method>
42
+ </auctaneapi_quote_to_order>
43
+ </observers>
44
+ </sales_convert_quote_to_order>
45
+ </events>
46
+
47
+
48
  <helpers>
49
  <auctaneapi>
50
  <class>Auctane_Api_Helper</class>
56
  <resourceModel>auctaneapi_mysql4</resourceModel>
57
  </auctaneapi>
58
  <auctaneapi_mysql4>
59
+ <class>Auctane_Api_Model_Mysql4</class>
60
+ <entities>
61
+ <order_discount>
62
+ <table>auctane_api_discounts</table>
63
+ </order_discount>
64
+ </entities>
65
  </auctaneapi_mysql4>
66
  </models>
67
  <resources>
72
  <auctaneapi_read>
73
  <connection><use>core_read</use></connection>
74
  </auctaneapi_read>
75
+ <auctaneapi_setup>
76
+ <setup>
77
+ <module>Auctane_Api</module>
78
+ </setup>
79
+ </auctaneapi_setup>
80
  </resources>
81
 
82
  <fieldsets>
app/code/community/Auctane/Api/sql/auctaneapi_setup/mysql4-install-1.3.11.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /* @var $installer Mage_Core_Model_Resource_Setup */
4
+ $installer = $this;
5
+
6
+ $installer->startSetup();
7
+
8
+ $quoteTable = $installer->getTable('sales/quote');
9
+
10
+ $installer->getConnection()
11
+ ->addColumn($quoteTable, 'auctaneapi_discounts', 'text default NULL');
12
+
13
+ $orderTable = $installer->getTable('sales/order');
14
+
15
+ $installer->getConnection()
16
+ ->addColumn($orderTable, 'auctaneapi_discounts', 'text default NULL');
17
+
18
+ $installer->endSetup();
app/code/community/Auctane/ShipStation/Block/Adminhtml/Linkup.php DELETED
@@ -1,33 +0,0 @@
1
- <?php
2
- /**
3
- * ShipStation
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@auctane.com so we can send you a copy immediately.
14
- *
15
- * @category Shipping
16
- * @package Auctane_ShipStation
17
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
- */
19
-
20
- class Auctane_ShipStation_Block_Adminhtml_Linkup extends Mage_Adminhtml_Block_Widget_Form_Container
21
- {
22
-
23
- protected $_blockGroup = 'auctaneshipstation';
24
- protected $_controller = 'adminhtml';
25
- protected $_mode = 'linkup';
26
-
27
- public function __construct()
28
- {
29
- parent::__construct();
30
- $this->updateButton('save', 'label', $this->__('Link up with ShipStation'));
31
- }
32
-
33
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Auctane/ShipStation/Block/Adminhtml/Linkup/Form.php DELETED
@@ -1,56 +0,0 @@
1
- <?php
2
- /**
3
- * ShipStation
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@auctane.com so we can send you a copy immediately.
14
- *
15
- * @category Shipping
16
- * @package Auctane_ShipStation
17
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
- */
19
-
20
- class Auctane_ShipStation_Block_Adminhtml_Linkup_Form extends Mage_Adminhtml_Block_Widget_Form
21
- {
22
-
23
- protected function _prepareForm()
24
- {
25
- $stores = Mage::getSingleton('adminhtml/system_config_source_store')->toOptionArray();
26
-
27
- $form = new Varien_Data_Form(array(
28
- 'id' => 'edit_form',
29
- 'action'=> $this->getUrl('*/shipstation/linkup'),
30
- 'method'=> 'post'
31
- ));
32
- if (count($stores) > 1) {
33
- $form->addField('store_id', 'select', array(
34
- 'name' => 'store_id',
35
- 'label' => $this->__('Store View:'),
36
- 'values' => $stores
37
- ));
38
- }
39
- $form->addField('request_username', 'text', array(
40
- 'name' => 'request_username',
41
- 'label' => $this->__('ShipStation Username:')
42
- ));
43
- $form->addField('request_password', 'password', array(
44
- 'name' => 'request_password',
45
- 'label' => $this->__('Password:')
46
- ));
47
- if (($id = $this->getRequest()->getParam('id'))) {
48
- $form->setValues(Mage::getModel('auctaneshipstation/user')->load($id)->getData());
49
- }
50
- $form->setUseContainer(true);
51
-
52
- $this->setForm($form);
53
- return parent::_prepareForm();
54
- }
55
-
56
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Auctane/ShipStation/Block/Adminhtml/Pending.php DELETED
@@ -1,36 +0,0 @@
1
- <?php
2
- /**
3
- * ShipStation
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@auctane.com so we can send you a copy immediately.
14
- *
15
- * @category Shipping
16
- * @package Auctane_ShipStation
17
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
- */
19
-
20
- class Auctane_ShipStation_Block_Adminhtml_Pending extends Mage_Adminhtml_Block_Template
21
- {
22
-
23
- protected function _construct()
24
- {
25
- parent::_construct();
26
-
27
- $this->setOrders(
28
- Mage::getResourceModel('sales/order_collection')
29
- ->addAttributeToSelect("*")
30
- ->addAttributeToFilter('status', array('processing','pending'))
31
- );
32
-
33
- return $this;
34
- }
35
-
36
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Auctane/ShipStation/Helper/Data.php DELETED
@@ -1,49 +0,0 @@
1
- <?php
2
-
3
- class Auctane_ShipStation_Helper_Data extends Mage_Core_Helper_Data
4
- {
5
-
6
- /**
7
- * Get current admin from session
8
- *
9
- * @return Mage_Admin_Model_User
10
- */
11
- public function getAdminUser()
12
- {
13
- $session = Mage::getSingleton('admin/session');
14
- if (!$session->isLoggedIn()) {
15
- return false;
16
- }
17
-
18
- return $session->getUser();
19
- }
20
-
21
- /**
22
- * Get ShipStation user object from current admin session
23
- *
24
- * @param Mage_Admin_Model_User $admin
25
- * @return Auctane_ShipStation_Model_User
26
- */
27
- public function getUser($admin = null)
28
- {
29
- if (!$admin) $admin = $this->getAdminUser();
30
- return Mage::getModel('auctaneshipstation/user')->load($admin);
31
- }
32
-
33
- public function setupRequired()
34
- {
35
- $admin = $this->getAdminUser();
36
- if (!$admin) return false;
37
-
38
- $user = $this->getUser($admin);
39
-
40
- return $user->isObjectNew() || !$user->hasAuthToken() || !$user->hasAuthUrl();
41
- }
42
-
43
- public function getStoreDomain($storeId)
44
- {
45
- $url = Mage::getStoreConfig('web/unsecure/base_url', $storeId);
46
- return preg_replace('/^https?:\/\/([[:alnum:]\.]+).*/', '\\1', $url);
47
- }
48
-
49
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Auctane/ShipStation/LICENSE.html DELETED
@@ -1,42 +0,0 @@
1
- <h4>Open Software License ("OSL") v. 3.0</h4>
2
-
3
- <p>This Open Software License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work:</p>
4
- <h5>Licensed under the Open Software License version 3.0</h5>
5
- <p>Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following:</p>
6
- <ul class="disc">
7
- <li>to reproduce the Original Work in copies, either alone or as part of a collective work</li>
8
- <li>to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating derivative works ("Derivative Works") based upon the Original Work</li>
9
- <li>to distribute or communicate copies of the Original Work and Derivative Works to the public, with the proviso that copies of Original Work or Derivative Works that You distribute or communicate shall be licensed under this Open Software License</li>
10
- <li>to perform the Original Work publicly</li>
11
- <li>to display the Original Work publicly</li>
12
- </ul>
13
-
14
- <p><strong>Grant of Patent License.</strong> Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works.</p>
15
-
16
- <p><strong>Grant of Source Code License.</strong> The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work.</p>
17
-
18
- <p><strong>Exclusions From License Grant.</strong> Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor's trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license.</p>
19
-
20
- <p><strong>External Deployment.</strong> The term "External Deployment" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c).</p>
21
-
22
- <p><strong>Attribution Rights.</strong> You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work.</p>
23
-
24
- <p><strong>Warranty of Provenance and Disclaimer of Warranty.</strong> Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer.</p>
25
-
26
- <p><strong>Limitation of Liability.</strong> Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation.</p>
27
-
28
- <p><strong>Acceptance and Termination.</strong> If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including 'fair use' or 'fair dealing'). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c).</p>
29
-
30
- <p><strong>Termination for Patent Action.</strong> This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware.</p>
31
-
32
- <p><strong>Jurisdiction, Venue and Governing Law.</strong> Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License.</p>
33
-
34
- <p><strong>Attorneys Fees.</strong> In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License.</p>
35
-
36
- <p><strong>Miscellaneous.</strong> If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable.</p>
37
-
38
- <p><strong>Definition of "You" in This License.</strong> "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.</p>
39
-
40
- <p><strong>Right to Use.</strong> You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.</p>
41
-
42
- <p><strong>Modification of This License.</strong> This License is Copyright &copy; 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Open Software License" or "OSL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under Open Software License ("OSL") v. 3.0" or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.</p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Auctane/ShipStation/LICENSE.txt DELETED
@@ -1,48 +0,0 @@
1
-
2
- Open Software License ("OSL") v. 3.0
3
-
4
- This Open Software License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work:
5
-
6
- Licensed under the Open Software License version 3.0
7
-
8
- 1. Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following:
9
-
10
- 1. to reproduce the Original Work in copies, either alone or as part of a collective work;
11
-
12
- 2. to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating derivative works ("Derivative Works") based upon the Original Work;
13
-
14
- 3. to distribute or communicate copies of the Original Work and Derivative Works to the public, with the proviso that copies of Original Work or Derivative Works that You distribute or communicate shall be licensed under this Open Software License;
15
-
16
- 4. to perform the Original Work publicly; and
17
-
18
- 5. to display the Original Work publicly.
19
-
20
- 2. Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works.
21
-
22
- 3. Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work.
23
-
24
- 4. Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor's trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license.
25
-
26
- 5. External Deployment. The term "External Deployment" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c).
27
-
28
- 6. Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work.
29
-
30
- 7. Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer.
31
-
32
- 8. Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation.
33
-
34
- 9. Acceptance and Termination. If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including 'fair use' or 'fair dealing'). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c).
35
-
36
- 10. Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware.
37
-
38
- 11. Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License.
39
-
40
- 12. Attorneys' Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License.
41
-
42
- 13. Miscellaneous. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable.
43
-
44
- 14. Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
45
-
46
- 15. Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.
47
-
48
- 16. Modification of This License. This License is Copyright � 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Open Software License" or "OSL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under <insert your license name here>" or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Auctane/ShipStation/LICENSE_AFL.txt DELETED
@@ -1,48 +0,0 @@
1
-
2
- Academic Free License ("AFL") v. 3.0
3
-
4
- This Academic Free License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work:
5
-
6
- Licensed under the Academic Free License version 3.0
7
-
8
- 1. Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following:
9
-
10
- 1. to reproduce the Original Work in copies, either alone or as part of a collective work;
11
-
12
- 2. to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating derivative works ("Derivative Works") based upon the Original Work;
13
-
14
- 3. to distribute or communicate copies of the Original Work and Derivative Works to the public, under any license of your choice that does not contradict the terms and conditions, including Licensor's reserved rights and remedies, in this Academic Free License;
15
-
16
- 4. to perform the Original Work publicly; and
17
-
18
- 5. to display the Original Work publicly.
19
-
20
- 2. Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works.
21
-
22
- 3. Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work.
23
-
24
- 4. Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor's trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license.
25
-
26
- 5. External Deployment. The term "External Deployment" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c).
27
-
28
- 6. Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work.
29
-
30
- 7. Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer.
31
-
32
- 8. Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation.
33
-
34
- 9. Acceptance and Termination. If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including "fair use" or "fair dealing"). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c).
35
-
36
- 10. Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware.
37
-
38
- 11. Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License.
39
-
40
- 12. Attorneys' Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License.
41
-
42
- 13. Miscellaneous. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable.
43
-
44
- 14. Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
45
-
46
- 15. Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.
47
-
48
- 16. Modification of This License. This License is Copyright � 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Academic Free License" or "AFL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under <insert your license name here>" or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Auctane/ShipStation/Model/Mysql4/User.php DELETED
@@ -1,27 +0,0 @@
1
- <?php
2
- /**
3
- * ShipStation
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@auctane.com so we can send you a copy immediately.
14
- *
15
- * @category Shipping
16
- * @package Auctane_ShipStation
17
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
- */
19
-
20
- class Auctane_ShipStation_Model_Mysql4_User extends Mage_Core_Model_Mysql4_Abstract {
21
-
22
- protected function _construct()
23
- {
24
- $this->_init('auctaneshipstation/user', 'entity_id');
25
- }
26
-
27
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Auctane/ShipStation/Model/Mysql4/User/Collection.php DELETED
@@ -1,28 +0,0 @@
1
- <?php
2
- /**
3
- * ShipStation
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@auctane.com so we can send you a copy immediately.
14
- *
15
- * @category Shipping
16
- * @package Auctane_ShipStation
17
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
- */
19
-
20
- class Auctane_ShipStation_Model_Mysql4_User_Collection extends Mage_Eav_Model_Entity_Collection
21
- {
22
-
23
- protected function _construct()
24
- {
25
- $this->_init('auctaneshipstation/user');
26
- }
27
-
28
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Auctane/ShipStation/Model/Observer.php DELETED
@@ -1,32 +0,0 @@
1
- <?php
2
- /**
3
- * ShipStation
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@auctane.com so we can send you a copy immediately.
14
- *
15
- * @category Shipping
16
- * @package Auctane_ShipStation
17
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
- */
19
-
20
- class Auctane_ShipStation_Model_Observer {
21
-
22
- public function appendDashboardSalesHtml(Varien_Event_Observer $observer)
23
- {
24
- $block = $observer->getBlock();
25
- $transport = $observer->getTransport();
26
- /* @var $block Mage_Adminhtml_Block_Dashboard_Sales */
27
- if ($block->getType() == 'adminhtml/dashboard_sales') {
28
- $transport->setHtml($transport->getHtml() . $block->getLayout()->getBlock('pendingorders')->toHtml());
29
- }
30
- }
31
-
32
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Auctane/ShipStation/Model/User.php DELETED
@@ -1,100 +0,0 @@
1
- <?php
2
- /**
3
- * ShipStation
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@auctane.com so we can send you a copy immediately.
14
- *
15
- * @category Shipping
16
- * @package Auctane_ShipStation
17
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
- */
19
-
20
- class Auctane_ShipStation_Model_User extends Mage_Core_Model_Abstract
21
- {
22
-
23
- protected function _construct()
24
- {
25
- $this->_init('auctaneshipstation/user');
26
- }
27
-
28
- public function load($user, $field=null)
29
- {
30
- if (is_object($user)) {
31
- return parent::load($user->getUserId(), 'admin_user_id');
32
- }
33
- else {
34
- return parent::load($user, $field);
35
- }
36
- }
37
-
38
- /**
39
- * Perform authentication with remote server
40
- * @return unknown
41
- */
42
- public function authenticate()
43
- {
44
- $client = new Varien_Http_Client(Mage::getStoreConfig('auctane/shipstation/authenticate_url'), array(
45
- 'storeresponse' => true
46
- ));
47
- $request = '<AuthenticationRequest StoreUrl="' . $this->getRequestUrl() . '"'
48
- . ' Username="' . $this->getRequestUsername() . '"'
49
- . ' Password="' . $this->getRequestPassword() . '"'
50
- . ' />';
51
- $client->setRawData($request, 'text/xml')
52
- ->request(Varien_Http_Client::POST);
53
-
54
- $response = $client->getLastResponse();
55
- if ($response->isError()) {
56
- throw new Exception($response->getMessage());
57
- }
58
-
59
- $xml = new SimpleXMLElement($response->getBody());
60
- if ($xml['Success'] != 'true') {
61
- if ($xml['ErrorMessage'])
62
- throw new Exception($xml['ErrorMessage']);
63
- else
64
- throw new Exception(Mage::helper('auctaneshipstation')->__('Unable to authenticate'));
65
- }
66
-
67
- $this->setAuthToken($xml['AuthToken'])
68
- ->setAuthUrl($xml['AuthUrl']);
69
- if (!$this->hasAdminUserId()) {
70
- $user = Mage::helper('auctaneshipstation')->getAdminUser();
71
- if ($user) {
72
- $this->setAdminUserId($user->getUserId());
73
- }
74
- }
75
-
76
- return $this;
77
- }
78
-
79
- // Shortcuts for encrypted field
80
- public function getAuthToken()
81
- {
82
- return Mage::helper('auctaneshipstation')->decrypt($this->getAuthTokenEnc());
83
- }
84
-
85
- public function setAuthToken($token)
86
- {
87
- return $this->setAuthTokenEnc(Mage::helper('auctaneshipstation')->encrypt($token));
88
- }
89
-
90
- public function hasAuthToken()
91
- {
92
- return $this->hasAuthTokenEnc();
93
- }
94
-
95
- public function unsAuthToken()
96
- {
97
- return $this->unsAuthTokenEnc();
98
- }
99
-
100
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Auctane/ShipStation/controllers/Adminhtml/ShipstationController.php DELETED
@@ -1,93 +0,0 @@
1
- <?php
2
- /**
3
- * ShipStation
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@auctane.com so we can send you a copy immediately.
14
- *
15
- * @category Shipping
16
- * @package Auctane_ShipStation
17
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
- */
19
-
20
- class Auctane_ShipStation_Adminhtml_ShipstationController extends Mage_Adminhtml_Controller_Action
21
- {
22
-
23
- /**
24
- * Ensure all pages have a decent title
25
- */
26
- public function preDispatch()
27
- {
28
- $this->_title($this->__('ShipStation'));
29
- return parent::preDispatch();
30
- }
31
-
32
- /**
33
- * Display a launch page, or redirect to setup page if necessary
34
- */
35
- public function indexAction()
36
- {
37
- if (Mage::helper('auctaneshipstation')->setupRequired()) {
38
- $this->_redirect('*/shipstation/setup');
39
- return;
40
- }
41
-
42
- $this->loadLayout();
43
- $this->renderLayout();
44
- }
45
-
46
- /**
47
- * Launch page needs a GMT value and javascript is not timezone aware
48
- * This is an AJAX action
49
- *
50
- * @deprecated
51
- */
52
- public function timestampAction()
53
- {
54
- $timestamp = new DateTime();
55
- $timestamp->setTimezone(new DateTimeZone('UTC'));
56
- $this->getResponse()->setBody($timestamp->format('m/d/Y H:i:s'));
57
- }
58
-
59
- /**
60
- * Display a setup page for registering
61
- */
62
- public function setupAction()
63
- {
64
- $this->_title($this->__('Register'));
65
- $this->loadLayout();
66
- $this->renderLayout();
67
- }
68
-
69
- /**
70
- * The setup's "linkup" button goes here, register with shipstation server.
71
- */
72
- public function linkupAction()
73
- {
74
- try {
75
-
76
- $user = Mage::getModel('auctaneshipstation/user');
77
- $user->setData($this->getRequest()->getPost());
78
- $user->setRequestUrl(Mage::helper('auctaneshipstation')->getStoreDomain($user->getStoreId()));
79
- $user->authenticate();
80
- // If there is an error it will abort here, no save.
81
- $user->save();
82
- $this->_redirect('*/shipstation');
83
-
84
- } catch (Exception $e) {
85
-
86
- $this->_getSession()->addException($e, $e->getMessage());
87
- $this->_redirect('*/shipstation/setup');
88
-
89
- }
90
- }
91
-
92
- }
93
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Auctane/ShipStation/etc/adminhtml.xml DELETED
@@ -1,46 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!--
3
- * ShipStation
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@auctane.com so we can send you a copy immediately.
14
- *
15
- * @category Shipping
16
- * @package Auctane_ShipStation
17
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
- -->
19
- <config>
20
- <menu>
21
- <sales>
22
- <children>
23
- <auctane_shipstation translate="title" module="auctaneshipstation">
24
- <title>ShipStation</title>
25
- <sort_order>0</sort_order><!-- Place as first item -->
26
- <action>adminhtml/shipstation</action>
27
- </auctane_shipstation>
28
- </children>
29
- </sales>
30
- </menu>
31
- <acl>
32
- <resources>
33
- <admin>
34
- <children>
35
- <sales>
36
- <children>
37
- <auctane_shipstation translate="title" module="auctaneshipstation">
38
- <title>ShipStation</title>
39
- </auctane_shipstation>
40
- </children>
41
- </sales>
42
- </children>
43
- </admin>
44
- </resources>
45
- </acl>
46
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Auctane/ShipStation/etc/api.xml DELETED
@@ -1,46 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!--
3
- * ShipStation
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@auctane.com so we can send you a copy immediately.
14
- *
15
- * @category Shipping
16
- * @package Auctane_ShipStation
17
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
- -->
19
- <config>
20
- <menu>
21
- <sales>
22
- <children>
23
- <auctane_shipstation translate="title" module="auctaneshipstation">
24
- <title>ShipStation</title>
25
- <sort_order>0</sort_order><!-- Place as first item -->
26
- <action>adminhtml/shipstation</action>
27
- </auctane_shipstation>
28
- </children>
29
- </sales>
30
- </menu>
31
- <acl>
32
- <resources>
33
- <admin>
34
- <children>
35
- <sales>
36
- <children>
37
- <auctane_shipstation translate="title" module="auctaneshipstation">
38
- <title>ShipStation</title>
39
- </auctane_shipstation>
40
- </children>
41
- </sales>
42
- </children>
43
- </admin>
44
- </resources>
45
- </acl>
46
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Auctane/ShipStation/etc/config.xml DELETED
@@ -1,115 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <!--
3
- * ShipStation
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@auctane.com so we can send you a copy immediately.
14
- *
15
- * @category Shipping
16
- * @package Auctane_ShipStation
17
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
- -->
19
- <config>
20
- <modules>
21
- <Auctane_ShipStation>
22
- <version>1.3.10</version>
23
- </Auctane_ShipStation>
24
- </modules>
25
-
26
- <default>
27
- <auctane>
28
- <shipstation>
29
- <authenticate_url><![CDATA[https://app.shipstation.com/Marketplace/MagentoAuthenticate]]></authenticate_url>
30
- </shipstation>
31
- </auctane>
32
- </default>
33
-
34
- <global>
35
- <blocks>
36
- <auctaneshipstation>
37
- <class>Auctane_ShipStation_Block</class>
38
- </auctaneshipstation>
39
- </blocks>
40
- <helpers>
41
- <auctaneshipstation>
42
- <class>Auctane_ShipStation_Helper</class>
43
- </auctaneshipstation>
44
- </helpers>
45
- <models>
46
- <auctaneshipstation>
47
- <class>Auctane_ShipStation_Model</class>
48
- <resourceModel>auctaneshipstation_mysql4</resourceModel>
49
- </auctaneshipstation>
50
- <auctaneshipstation_mysql4>
51
- <class>Auctane_ShipStation_Model_Mysql4</class>
52
- <entities>
53
- <user><table>auctaneshipstation_user</table></user>
54
- </entities>
55
- </auctaneshipstation_mysql4>
56
- </models>
57
- <resources>
58
- <auctaneshipstation_setup>
59
- <setup>
60
- <module>Auctane_ShipStation</module>
61
- <!-- Not specifying a class yet because only flat tables are used -->
62
- </setup>
63
- </auctaneshipstation_setup>
64
- <!-- Adapters don't need to be specified in modern versions of Magento, but included here for compatibility -->
65
- <auctaneshipstation_write>
66
- <connection><use>core_write</use></connection>
67
- </auctaneshipstation_write>
68
- <auctaneshipstation_read>
69
- <connection><use>core_read</use></connection>
70
- </auctaneshipstation_read>
71
- </resources>
72
- </global>
73
-
74
- <admin>
75
- <routers>
76
- <adminhtml>
77
- <args>
78
- <modules>
79
- <auctaneshipstation before="Mage_Adminhtml">Auctane_ShipStation_Adminhtml</auctaneshipstation>
80
- </modules>
81
- </args>
82
- </adminhtml>
83
- </routers>
84
- </admin>
85
-
86
- <adminhtml>
87
- <layout>
88
- <updates>
89
- <auctaneshipstation>
90
- <file>auctaneshipstation.xml</file>
91
- </auctaneshipstation>
92
- </updates>
93
- </layout>
94
- <translate>
95
- <modules>
96
- <auctaneshipstation>
97
- <files>
98
- <default>Auctane_ShipStation.csv</default>
99
- </files>
100
- </auctaneshipstation>
101
- </modules>
102
- </translate>
103
- <events>
104
- <core_block_abstract_to_html_after>
105
- <observers>
106
- <auctaneshipstation_dashboard_sales_after>
107
- <class>auctaneshipstation/observer</class>
108
- <method>appendDashboardSalesHtml</method>
109
- <type>singleton</type>
110
- </auctaneshipstation_dashboard_sales_after>
111
- </observers>
112
- </core_block_abstract_to_html_after>
113
- </events>
114
- </adminhtml>
115
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Auctane/ShipStation/sql/auctaneshipstation_setup/mysql4-install-1.0.0.php DELETED
@@ -1,46 +0,0 @@
1
- <?php
2
- /**
3
- * ShipStation
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@auctane.com so we can send you a copy immediately.
14
- *
15
- * @category Shipping
16
- * @package Auctane_ShipStation
17
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
- */
19
- /* @var $this Mage_Core_Model_Resource_Setup */
20
-
21
- $this->startSetup();
22
-
23
- $this->run("
24
-
25
- DROP TABLE IF EXISTS {$this->getTable('auctaneshipstation_user')};
26
- CREATE TABLE {$this->getTable('auctaneshipstation_user')} (
27
- `entity_id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
28
- `store_id` SMALLINT(5) NOT NULL DEFAULT 0 COMMENT 'Store 0 is admin',
29
- `admin_user_id` MEDIUMINT(9) UNSIGNED,
30
- `request_url` VARCHAR(255),
31
- `request_username` VARCHAR(255),
32
- `auth_token_enc` VARCHAR(255),
33
- `auth_url` VARCHAR(255),
34
- PRIMARY KEY (`entity_id`),
35
- UNIQUE KEY (`admin_user_id`, `store_id`)
36
- -- CONSTRAINT `FK_shipstation_core_store_id` FOREIGN KEY (`store_id`)
37
- -- REFERENCES {$this->getTable('core_store')} (`store_id`)
38
- -- ON DELETE CASCADE ON UPDATE CASCADE,
39
- -- CONSTRAINT `FK_shipstation_admin_user_id` FOREIGN KEY (`admin_user_id`)
40
- -- REFERENCES {$this->getTable('admin_user')} (`user_id`)
41
- -- ON DELETE CASCADE ON UPDATE CASCADE
42
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
43
-
44
- ");
45
-
46
- $this->endSetup();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/adminhtml/default/default/layout/auctaneshipstation.xml DELETED
@@ -1,45 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!--
3
- * ShipStation
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@auctane.com so we can send you a copy immediately.
14
- *
15
- * @category Shipping
16
- * @package Auctane_ShipStation
17
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
- -->
19
- <layout>
20
-
21
- <adminhtml_dashboard_index>
22
- <reference name="dashboard">
23
- <block type="auctaneshipstation/adminhtml_pending" name="pendingorders" template="auctane/shipstation/pending.phtml">
24
- <block type="adminhtml/template" name="launchform" template="auctane/shipstation/launchform.phtml" />
25
- </block>
26
- </reference>
27
- </adminhtml_dashboard_index>
28
-
29
- <adminhtml_shipstation_index>
30
- <reference name="content">
31
- <block type="adminhtml/template" name="launch" template="auctane/shipstation/launch.phtml">
32
- <block type="adminhtml/template" name="launchform" template="auctane/shipstation/launchform.phtml" />
33
- </block>
34
- </reference>
35
- </adminhtml_shipstation_index>
36
-
37
- <adminhtml_shipstation_setup>
38
- <reference name="content">
39
- <block type="adminhtml/template" name="container" template="auctane/shipstation/container.phtml">
40
- <block type="auctaneshipstation/adminhtml_linkup" name="linkup" template="auctane/shipstation/linkup.phtml" />
41
- </block>
42
- </reference>
43
- </adminhtml_shipstation_setup>
44
-
45
- </layout>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/adminhtml/default/default/template/auctane/shipstation/container.phtml DELETED
@@ -1,40 +0,0 @@
1
- <?php
2
- /**
3
- * ShipStation
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@auctane.com so we can send you a copy immediately.
14
- *
15
- * @category Shipping
16
- * @package Auctane_ShipStation
17
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
- */
19
- ?>
20
- <table>
21
- <col width="50%" />
22
- <col width="50%" />
23
- <tbody><tr>
24
- <td><?php echo $this->getChildHtml('linkup') ?></td>
25
- <td>
26
- <p><b><?php echo $this->__('Don\'t have a ShipStation account yet?') ?></b></p>
27
- <p><?php echo $this->__('Please go to %s to select a plan. You can try it for free for 30 days!', '<a href="http://www.shipstation.com/pricing" target="_blank">http://www.shipstation.com/pricing</a>') ?></p>
28
- <p><?php echo $this->__('Here are some highlights:') ?></p>
29
- <ol style="list-style: decimal; padding-left: 20px;">
30
- <li><?php echo $this->__('Consolidate your orders from Magento and other marketplaces such as eBay, Amazon, Buy.com and more.') ?></li>
31
- <li><?php echo $this->__('Print shipping labels for both USPS and UPS.') ?></li>
32
- <li><?php echo $this->__('Receive deep discounts on USPS Priority and Express Mail postage.') ?></li>
33
- <li><?php echo $this->__('Create labels and packing slips in batch.') ?></li>
34
- <li><?php echo $this->__('Automate your business with order automation rules.') ?></li>
35
- </ol>
36
- <br />
37
- <img src="//app.shipstation.com/images/home-screen-shot.png" />
38
- </td>
39
- </tr></tbody>
40
- </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/adminhtml/default/default/template/auctane/shipstation/launch.phtml DELETED
@@ -1,31 +0,0 @@
1
- <?php
2
- /**
3
- * ShipStation
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@auctane.com so we can send you a copy immediately.
14
- *
15
- * @category Shipping
16
- * @package Auctane_ShipStation
17
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
- */
19
- ?>
20
- <?php /* @var $this Mage_Adminhtml_Block_Template */ ?>
21
- <img alt="<?php echo $this->__('ShipStation') ?>" src="<?php echo $this->getSkinUrl('images/shipstation.png') ?>">
22
- <p><?php echo $this->__('Click the button below to launch ShipStation!') ?></p>
23
- <?php
24
- $form = $this->getLayout()->getBlock('launchform');
25
- $form->setLabel($this->__('Launch ShipStation'));
26
- echo $form->toHtml();
27
- ?>
28
- <p>&nbsp;</p>
29
- <p>&nbsp;</p>
30
- <p>&nbsp;</p>
31
- <p><a href="<?php echo $this->getUrl('*/shipstation/setup') ?>"><?php echo $this->__('Click here to set a new ShipStation account') ?></a></p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/adminhtml/default/default/template/auctane/shipstation/launchform.phtml DELETED
@@ -1,59 +0,0 @@
1
- <?php
2
- /**
3
- * ShipStation
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@auctane.com so we can send you a copy immediately.
14
- *
15
- * @category Shipping
16
- * @package Auctane_ShipStation
17
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
- */
19
- ?>
20
- <?php /* @var $this Mage_Adminhtml_Block_Template */ ?>
21
- <?php $helper = Mage::helper('auctaneshipstation') ?>
22
- <?php if ($helper->setupRequired()):
23
-
24
- $button = $this->getLayout()->createBlock('adminhtml/widget_button', 'launch_button', array(
25
- 'label' => $this->getLabel(),
26
- 'onclick' => "setLocation('{$this->getUrl('*/shipstation/setup')}');"
27
- ));
28
- echo $button->toHtml();
29
-
30
- else:
31
-
32
- $user = $helper->getUser();
33
- $timestamp = new DateTime();
34
- $timestamp->setTimezone(new DateTimeZone('UTC'));
35
-
36
- // Use own container otherwise private form key is revealed.
37
- $form = new Varien_Data_Form();
38
- $form->addField('shipstationusername', 'hidden', array(
39
- 'name' => 'Username',
40
- 'value' => $user->getRequestUsername()
41
- ));
42
- $form->addField('shipstationauthtoken', 'hidden', array(
43
- 'name' => 'AuthToken',
44
- 'value' => $user->getAuthToken()
45
- ));
46
- $form->addField('shipstationtimestamp', 'hidden', array(
47
- 'name' => 'Timestamp',
48
- 'value' => $timestamp->format('m/d/Y H:i:s')
49
- ));
50
- $form->addField('shipstationsubmit', 'submit', array(
51
- 'class' => 'form-button',
52
- 'value' => $this->getLabel()
53
- ));
54
-
55
- ?>
56
- <form action="<?php echo $user->getAuthUrl() ?>" method="post" target="_blank">
57
- <?php echo $form->toHtml() ?>
58
- </form>
59
- <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/adminhtml/default/default/template/auctane/shipstation/linkup.phtml DELETED
@@ -1,28 +0,0 @@
1
- <?php
2
- /**
3
- * ShipStation
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@auctane.com so we can send you a copy immediately.
14
- *
15
- * @category Shipping
16
- * @package Auctane_ShipStation
17
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
- */
19
- ?>
20
- <?php /* @var $this Auctane_ShipStation_Block_Adminhtml_Linkup */ ?>
21
- <img alt="<?php echo $this->__('ShipStation') ?>" src="<?php echo $this->getSkinUrl('images/shipstation.png') ?>">
22
- <p><?php echo $this->__('It looks like you have not linked up your ShipStation account yet. Please fill out the following form:') ?></p>
23
- <?php echo $this->getFormHtml() ?>
24
- <?php $this->getButtonsHtml(); echo $this->getChildHtml('save_button') ?>
25
- <script type="text/javascript">
26
- editForm = new varienForm('edit_form', '<?php echo $this->getValidationUrl() ?>');
27
- </script>
28
- <?php echo $this->getFormScripts() ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/adminhtml/default/default/template/auctane/shipstation/pending.phtml DELETED
@@ -1,41 +0,0 @@
1
- <?php
2
- /**
3
- * ShipStation
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@auctane.com so we can send you a copy immediately.
14
- *
15
- * @category Shipping
16
- * @package Auctane_ShipStation
17
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
- */
19
- ?>
20
- <?php /* @var $this Mage_Adminhtml_Block_Template */ ?>
21
- <div class="entry-edit">
22
- <div class="entry-edit-head"><h4><?php echo $this->__('Orders Awaiting Shipment') ?></h4></div>
23
- <fieldset>
24
- <table style="width: 100%">
25
- <col width="50%">
26
- <col width="50%">
27
- <tr>
28
- <td class="v-middle">
29
- <?php if (($numOrders = $this->getOrders()->getSize()) == 1): ?>
30
- <p><?php echo $this->__('%d order awaiting shipment', $numOrders) ?></p>
31
- <?php elseif ($numOrders > 1): ?>
32
- <p><?php echo $this->__('%d orders awaiting shipment', $numOrders) ?></p>
33
- <?php endif; ?>
34
- <?php echo $this->getLayout()->getBlock('launchform')->setLabel($this->__('Ship Now'))->toHtml() ?>
35
- </td>
36
- <td class="v-middle">
37
- <img alt="<?php echo $this->__('ShipStation') ?>" src="<?php echo $this->getSkinUrl('images/shipstation.png') ?>">
38
- </td>
39
- </tr></table>
40
- </fieldset>
41
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/etc/modules/Auctane_ShipStation.xml DELETED
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <config>
3
- <modules>
4
- <Auctane_ShipStation>
5
- <active>false</active>
6
- <codePool>community</codePool>
7
- </Auctane_ShipStation>
8
- </modules>
9
- </config>
 
 
 
 
 
 
 
 
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Auctane_ShipStation</name>
4
- <version>1.3.10</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -11,9 +11,9 @@
11
  <notes>Official release.&#xD;
12
  Sends shipment email to customer regardless of comment.</notes>
13
  <authors><author><name>clockworkgeek</name><user>nonproffessional</user><email>nonproffessional@clockworkgeek.com</email></author><author><name>nvncbl</name><user>nvncbl</user><email>nvncbl@nvncbl.com</email></author></authors>
14
- <date>2013-10-21</date>
15
- <time>18:05:56</time>
16
- <contents><target name="magecommunity"><dir name="Auctane"><dir name="Api"><dir name="Helper"><file name="Data.php" hash="0f99ca3811ec41b3b6672117d449305e"/></dir><file name="LICENSE.html" hash="caf0a79ffb5e4719f9f4de286f253a61"/><file name="LICENSE.txt" hash="34410d4f566fdc33f094525a2d9865fa"/><file name="LICENSE_AFL.txt" hash="0e3cb8112c018920eee7a316a2a69103"/><dir name="Model"><dir name="Action"><file name="Export.php" hash="8626dce87bd32eb48ae6141544f570b7"/><file name="Shipnotify.php" hash="bd454725d7a32c60a4c871dd5850514d"/></dir><dir name="Server"><file name="Adapter.php" hash="3a6ec08e20d4926d9f4488ea79785d8e"/></dir><dir name="System"><dir name="Source"><dir name="Config"><file name="Customattributes.php" hash="a10dff7d323044151803ce2e30313615"/></dir></dir></dir></dir><dir name="controllers"><file name="AuctaneController.php" hash="b7100ac35e0b3a5d737cde7ef96e19c0"/></dir><dir name="etc"><file name="api.xml" hash="3b6279da3c6a4e5fc71c72f1caf94ae1"/><file name="config.xml" hash="6e74eb24fce8f6efc9b2a4c496fa751d"/><file name="system.xml" hash="37d6921d13f1410dbb98f53925fba200"/></dir></dir><dir name="ShipStation"><dir name="Block"><dir name="Adminhtml"><dir name="Linkup"><file name="Form.php" hash="68b7c7bc627e89c304cf630c24aa5164"/></dir><file name="Linkup.php" hash="f280d1f6a26e74244898ea16cdf29c9b"/><file name="Pending.php" hash="6bc7a07b5d0b5192db32fefc55b94b08"/></dir></dir><dir name="Helper"><file name="Data.php" hash="cf2bd6a04dd7b88cae8096c2dd548214"/></dir><file name="LICENSE.html" hash="caf0a79ffb5e4719f9f4de286f253a61"/><file name="LICENSE.txt" hash="34410d4f566fdc33f094525a2d9865fa"/><file name="LICENSE_AFL.txt" hash="0e3cb8112c018920eee7a316a2a69103"/><dir name="Model"><dir name="Mysql4"><dir name="User"><file name="Collection.php" hash="eee6af3b0c7ecf4f4a42eb0b50605d29"/></dir><file name="User.php" hash="296427f3d22c7cc18c0ece7c1afbc278"/></dir><file name="Observer.php" hash="ffb797d5cfc2f0724d20a44140661bed"/><file name="User.php" hash="9e3fad822b8adcd79dd5438d995fc61a"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ShipstationController.php" hash="c7cd0029ed2a0a46d7b16821b1e6a683"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="3021b17f108f3f50230194ff63975481"/><file name="api.xml" hash="3021b17f108f3f50230194ff63975481"/><file name="config.xml" hash="7c3e7b3ad2cd9d6e5f4cf4bbde8d3164"/></dir><dir name="sql"><dir name="auctaneshipstation_setup"><file name="mysql4-install-1.0.0.php" hash="ab307db58a6d8ec97b5efc8d4eedb349"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="auctaneshipstation.xml" hash="d89f79f6de41bb4b23866356f16f48a1"/></dir><dir name="template"><dir name="auctane"><dir name="shipstation"><file name="container.phtml" hash="fb3df40a0baa33a21f6a51d52a90066c"/><file name="launch.phtml" hash="c3fbbc817cbf307fbd500defb2ab9f8e"/><file name="launchform.phtml" hash="b77583e98de80857b185d19a8ce03987"/><file name="linkup.phtml" hash="282a2114ca36efb68f1e681a29739a87"/><file name="pending.phtml" hash="100ec728f3b5ce479e09361bb22960bb"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_us"><file name="Auctane_ShipStation.csv" hash=""/></dir></target><target name="mageetc"><dir name="modules"><file name="Auctane_ShipStation.xml" hash="bacef7ff4049dece52644ec7be714ee6"/><file name="Auctane_Api.xml" hash="a27b534a3ad08732488959f8bdb72a03"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><file name="shipstation.png" hash="e19a42099ef020edaf7c10d9a068c1c0"/></dir></dir></dir></dir></target></contents>
17
  <compatible/>
18
- <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
19
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Auctane_ShipStation</name>
4
+ <version>1.3.11</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
11
  <notes>Official release.&#xD;
12
  Sends shipment email to customer regardless of comment.</notes>
13
  <authors><author><name>clockworkgeek</name><user>nonproffessional</user><email>nonproffessional@clockworkgeek.com</email></author><author><name>nvncbl</name><user>nvncbl</user><email>nvncbl@nvncbl.com</email></author></authors>
14
+ <date>2014-03-10</date>
15
+ <time>17:16:47</time>
16
+ <contents><target name="magecommunity"><dir name="Auctane"><dir name="Api"><file name="CHANGELOG.txt" hash="ac302cdb9f343e0ec036b7a846294235"/><dir name="controllers"><file name="AuctaneController.php" hash="b7100ac35e0b3a5d737cde7ef96e19c0"/></dir><dir name="etc"><file name="api.xml" hash="3b6279da3c6a4e5fc71c72f1caf94ae1"/><file name="config.xml" hash="8be70db53d17c6e1c66d5f3b16e28778"/><file name="system.xml" hash="37d6921d13f1410dbb98f53925fba200"/></dir><dir name="Helper"><file name="Data.php" hash="47d13f88b8eaa0da3fd6fce4955cc7b8"/></dir><file name="LICENSE_AFL.txt" hash="0e3cb8112c018920eee7a316a2a69103"/><file name="LICENSE.html" hash="caf0a79ffb5e4719f9f4de286f253a61"/><file name="LICENSE.txt" hash="34410d4f566fdc33f094525a2d9865fa"/><dir name="Model"><dir name="Action"><file name="Export.php" hash="6c36eefcd82c3903a81145d6d3ab10b8"/><file name="Shipnotify.php" hash="7a50801f09508f66b77c639f820a6a1a"/></dir><file name="Observer.php" hash="1ce225c9cdd5b64f00b6ec5ecbd19219"/><dir name="Server"><file name="Adapter.php" hash="3a6ec08e20d4926d9f4488ea79785d8e"/></dir><dir name="System"><dir name="Source"><dir name="Config"><file name="Customattributes.php" hash="a10dff7d323044151803ce2e30313615"/></dir></dir></dir></dir><dir name="sql"><dir name="auctaneapi_setup"><file name="mysql4-install-1.3.11.php" hash="971cc403751b0b44f793c96a3213c963"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Auctane_Api.xml" hash="a27b534a3ad08732488959f8bdb72a03"/></dir></target></contents>
17
  <compatible/>
18
+ <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
19
  </package>
skin/adminhtml/default/default/images/shipstation.png DELETED
Binary file