Nosto_Tagging - Version 2.6.15

Version Notes

- Add support for sending the account details & new platform UI
- Add check if table `nosto_tagging_customer` already exists before creating it
- Add visitor checksum tagging
- Strip out _Main Website_ from the default account title
- Disable tagging categories if there are hidden categories in the category path

Download this release

Release Info

Developer Nosto
Extension Nosto_Tagging
Version 2.6.15
Comparing to
See all releases


Code changes from version 2.6.14 to 2.6.15

Files changed (128) hide show
  1. app/code/community/Nosto/Tagging/Block/Addtocart.php +6 -6
  2. app/code/community/Nosto/Tagging/Block/Adminhtml/Iframe.php +8 -6
  3. app/code/community/Nosto/Tagging/Block/Adminhtml/Wizard.php +6 -6
  4. app/code/community/Nosto/Tagging/Block/Cart.php +17 -6
  5. app/code/community/Nosto/Tagging/Block/Category.php +6 -6
  6. app/code/community/Nosto/Tagging/Block/Customer.php +18 -6
  7. app/code/community/Nosto/Tagging/Block/Element.php +6 -6
  8. app/code/community/Nosto/Tagging/Block/Embed.php +6 -6
  9. app/code/community/Nosto/Tagging/Block/Meta.php +6 -6
  10. app/code/community/Nosto/Tagging/Block/Order.php +18 -6
  11. app/code/community/Nosto/Tagging/Block/Product.php +6 -6
  12. app/code/community/Nosto/Tagging/Helper/Account.php +6 -6
  13. app/code/community/Nosto/Tagging/Helper/Customer.php +6 -6
  14. app/code/community/Nosto/Tagging/Helper/Data.php +51 -6
  15. app/code/community/Nosto/Tagging/Helper/Date.php +6 -6
  16. app/code/community/Nosto/Tagging/Helper/Oauth.php +6 -6
  17. app/code/community/Nosto/Tagging/Helper/Price.php +6 -6
  18. app/code/community/Nosto/Tagging/Helper/Url.php +6 -6
  19. app/code/community/Nosto/Tagging/Model/Base.php +6 -6
  20. app/code/community/Nosto/Tagging/Model/Container/Cart.php +6 -6
  21. app/code/community/Nosto/Tagging/Model/Container/Customer.php +6 -6
  22. app/code/community/Nosto/Tagging/Model/Customer.php +6 -6
  23. app/code/community/Nosto/Tagging/Model/Export/Collection/Order.php +6 -6
  24. app/code/community/Nosto/Tagging/Model/Meta/Account.php +32 -3
  25. app/code/community/Nosto/Tagging/Model/Meta/Account/Billing.php +6 -6
  26. app/code/community/Nosto/Tagging/Model/Meta/Account/Iframe.php +6 -6
  27. app/code/community/Nosto/Tagging/Model/Meta/Account/Owner.php +6 -6
  28. app/code/community/Nosto/Tagging/Model/Meta/Oauth.php +6 -6
  29. app/code/community/Nosto/Tagging/Model/Meta/Order.php +6 -6
  30. app/code/community/Nosto/Tagging/Model/Meta/Order/Buyer.php +6 -6
  31. app/code/community/Nosto/Tagging/Model/Meta/Order/Item.php +6 -6
  32. app/code/community/Nosto/Tagging/Model/Meta/Order/Status.php +6 -6
  33. app/code/community/Nosto/Tagging/Model/Meta/Product.php +10 -30
  34. app/code/community/Nosto/Tagging/Model/Observer.php +6 -6
  35. app/code/community/Nosto/Tagging/Model/Product.php +6 -6
  36. app/code/community/Nosto/Tagging/Model/Resource/Customer.php +6 -6
  37. app/code/community/Nosto/Tagging/Model/Resource/Customer/Collection.php +6 -6
  38. app/code/community/Nosto/Tagging/Model/Resource/Product/Collection.php +6 -6
  39. app/code/community/Nosto/Tagging/Model/Resource/Setup.php +6 -6
  40. app/code/community/Nosto/Tagging/Model/Service/Order.php +6 -6
  41. app/code/community/Nosto/Tagging/Model/System/Config/Source/Image.php +6 -6
  42. app/code/community/Nosto/Tagging/bootstrap.php +23 -31
  43. app/code/community/Nosto/Tagging/controllers/Adminhtml/NostoController.php +10 -6
  44. app/code/community/Nosto/Tagging/controllers/ExportController.php +6 -6
  45. app/code/community/Nosto/Tagging/controllers/OauthController.php +6 -6
  46. app/code/community/Nosto/Tagging/etc/adminhtml.xml +24 -26
  47. app/code/community/Nosto/Tagging/etc/cache.xml +24 -26
  48. app/code/community/Nosto/Tagging/etc/config.xml +25 -27
  49. app/code/community/Nosto/Tagging/etc/system.xml +24 -26
  50. app/code/community/Nosto/Tagging/sql/tagging_setup/mysql4-install-1.2.0.php +45 -43
  51. app/code/community/Nosto/Tagging/sql/tagging_setup/mysql4-upgrade-1.1.7-1.2.0.php +6 -6
  52. app/design/adminhtml/default/default/layout/nostotagging.xml +24 -26
  53. app/design/adminhtml/default/default/template/nostotagging/iframe.phtml +8 -8
  54. app/design/adminhtml/default/default/template/nostotagging/wizard.phtml +8 -8
  55. app/design/frontend/base/default/layout/nostotagging.xml +24 -26
  56. app/design/frontend/base/default/template/nostotagging/addtocart.phtml +8 -8
  57. app/design/frontend/base/default/template/nostotagging/cart.phtml +9 -8
  58. app/design/frontend/base/default/template/nostotagging/category.phtml +8 -8
  59. app/design/frontend/base/default/template/nostotagging/category/view.phtml +8 -8
  60. app/design/frontend/base/default/template/nostotagging/customer.phtml +9 -8
  61. app/design/frontend/base/default/template/nostotagging/element.phtml +8 -8
  62. app/design/frontend/base/default/template/nostotagging/embed.phtml +8 -8
  63. app/design/frontend/base/default/template/nostotagging/meta.phtml +8 -8
  64. app/design/frontend/base/default/template/nostotagging/order.phtml +9 -8
  65. app/design/frontend/base/default/template/nostotagging/product.phtml +8 -8
  66. app/design/frontend/base/default/template/nostotagging/searchterm.phtml +5 -5
  67. app/etc/modules/Nosto_Tagging.xml +24 -26
  68. js/nosto/iframeHandler.min.js +1 -1
  69. lib/nosto/php-sdk/src/classes/Nosto.php +47 -7
  70. lib/nosto/php-sdk/src/classes/NostoAccount.php +9 -3
  71. lib/nosto/php-sdk/src/classes/NostoAccountMeta.php +110 -43
  72. lib/nosto/php-sdk/src/classes/NostoCipher.php +3 -2
  73. lib/nosto/php-sdk/src/classes/NostoCurrency.php +27 -16
  74. lib/nosto/php-sdk/src/classes/NostoCurrencyCode.php +1 -0
  75. lib/nosto/php-sdk/src/classes/NostoCurrencyFormat.php +1 -0
  76. lib/nosto/php-sdk/src/classes/NostoCurrencyInfo.php +1 -0
  77. lib/nosto/php-sdk/src/classes/NostoCurrencySymbol.php +1 -0
  78. lib/nosto/php-sdk/src/classes/NostoDotEnv.php +3 -2
  79. lib/nosto/php-sdk/src/classes/NostoExchangeRate.php +1 -0
  80. lib/nosto/php-sdk/src/classes/NostoMessage.php +3 -2
  81. lib/nosto/php-sdk/src/classes/NostoObject.php +3 -2
  82. lib/nosto/php-sdk/src/classes/NostoOrderConfirmation.php +5 -2
  83. lib/nosto/php-sdk/src/classes/NostoProductReCrawl.php +6 -3
  84. lib/nosto/php-sdk/src/classes/NostoValidator.php +14 -13
  85. lib/nosto/php-sdk/src/classes/api/NostoApiRequest.php +3 -2
  86. lib/nosto/php-sdk/src/classes/api/NostoApiToken.php +3 -2
  87. lib/nosto/php-sdk/src/classes/collection/NostoCollection.php +3 -2
  88. lib/nosto/php-sdk/src/classes/collection/NostoExchangeRateCollection.php +3 -2
  89. lib/nosto/php-sdk/src/classes/collection/NostoOrderCollection.php +3 -2
  90. lib/nosto/php-sdk/src/classes/collection/NostoProductCollection.php +3 -2
  91. lib/nosto/php-sdk/src/classes/exception/NostoApiResponseException.php +42 -0
  92. lib/nosto/php-sdk/src/classes/exception/NostoException.php +3 -2
  93. lib/nosto/php-sdk/src/classes/exception/NostoHttpException.php +64 -2
  94. lib/nosto/php-sdk/src/classes/exception/NostoHttpResponseException.php +42 -0
  95. lib/nosto/php-sdk/src/classes/export/NostoExportOrderCollection.php +5 -2
  96. lib/nosto/php-sdk/src/classes/export/NostoExportProductCollection.php +3 -2
  97. lib/nosto/php-sdk/src/classes/export/NostoExporter.php +3 -2
  98. lib/nosto/php-sdk/src/classes/helper/NostoHelper.php +3 -2
  99. lib/nosto/php-sdk/src/classes/helper/NostoHelperDate.php +3 -2
  100. lib/nosto/php-sdk/src/classes/helper/NostoHelperIframe.php +3 -2
  101. lib/nosto/php-sdk/src/classes/helper/NostoHelperPrice.php +3 -2
  102. lib/nosto/php-sdk/src/classes/http/NostoHttpRequest.php +3 -2
  103. lib/nosto/php-sdk/src/classes/http/NostoHttpRequestAdapter.php +3 -2
  104. lib/nosto/php-sdk/src/classes/http/NostoHttpRequestAdapterCurl.php +3 -2
  105. lib/nosto/php-sdk/src/classes/http/NostoHttpRequestAdapterSocket.php +3 -2
  106. lib/nosto/php-sdk/src/classes/http/NostoHttpResponse.php +7 -6
  107. lib/nosto/php-sdk/src/classes/oauth/NostoOAuthClient.php +5 -4
  108. lib/nosto/php-sdk/src/classes/oauth/NostoOAuthToken.php +3 -2
  109. lib/nosto/php-sdk/src/classes/operation/NostoOperationAccount.php +1 -0
  110. lib/nosto/php-sdk/src/classes/operation/NostoOperationExchangeRate.php +7 -4
  111. lib/nosto/php-sdk/src/classes/operation/NostoOperationProduct.php +3 -2
  112. lib/nosto/php-sdk/src/config.inc.php +5 -2
  113. lib/nosto/php-sdk/src/interfaces/NostoExchangeRateInterface.php +3 -2
  114. lib/nosto/php-sdk/src/interfaces/NostoExportCollectionInterface.php +3 -2
  115. lib/nosto/php-sdk/src/interfaces/NostoOAuthClientMetaDataInterface.php +3 -2
  116. lib/nosto/php-sdk/src/interfaces/NostoProductInterface.php +9 -2
  117. lib/nosto/php-sdk/src/interfaces/NostoValidatableInterface.php +3 -2
  118. lib/nosto/php-sdk/src/interfaces/account/NostoAccountInterface.php +3 -2
  119. lib/nosto/php-sdk/src/interfaces/account/NostoAccountMetaDataBillingDetailsInterface.php +3 -2
  120. lib/nosto/php-sdk/src/interfaces/account/NostoAccountMetaDataIframeInterface.php +3 -2
  121. lib/nosto/php-sdk/src/interfaces/account/NostoAccountMetaDataInterface.php +10 -2
  122. lib/nosto/php-sdk/src/interfaces/account/NostoAccountMetaDataOwnerInterface.php +3 -2
  123. lib/nosto/php-sdk/src/interfaces/order/NostoOrderBuyerInterface.php +3 -2
  124. lib/nosto/php-sdk/src/interfaces/order/NostoOrderInterface.php +10 -2
  125. lib/nosto/php-sdk/src/interfaces/order/NostoOrderPurchasedItemInterface.php +3 -2
  126. lib/nosto/php-sdk/src/interfaces/order/NostoOrderStatusInterface.php +3 -2
  127. lib/nosto/php-sdk/src/js/src/NostoIframe.js +4 -3
  128. package.xml +131 -129
app/code/community/Nosto/Tagging/Block/Addtocart.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Block/Adminhtml/Iframe.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
@@ -36,6 +36,7 @@
36
  class Nosto_Tagging_Block_Adminhtml_Iframe extends Mage_Adminhtml_Block_Template
37
  {
38
  const DEFAULT_IFRAME_ORIGIN_REGEXP = '(https:\/\/(.*)\.hub\.nosto\.com)|(https:\/\/my\.nosto\.com)';
 
39
 
40
  /**
41
  * @var string the iframe url if SSO to Nosto can be made.
@@ -77,6 +78,7 @@ class Nosto_Tagging_Block_Adminhtml_Iframe extends Mage_Adminhtml_Block_Template
77
  $session->setData('nosto_message', null);
78
  }
79
  }
 
80
  $store = $this->getSelectedStore();
81
  $account = Mage::helper('nosto_tagging/account')->find($store);
82
  return $this->_iframeUrl = Mage::helper('nosto_tagging/account')
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
36
  class Nosto_Tagging_Block_Adminhtml_Iframe extends Mage_Adminhtml_Block_Template
37
  {
38
  const DEFAULT_IFRAME_ORIGIN_REGEXP = '(https:\/\/(.*)\.hub\.nosto\.com)|(https:\/\/my\.nosto\.com)';
39
+ const IFRAME_VERSION = 1;
40
 
41
  /**
42
  * @var string the iframe url if SSO to Nosto can be made.
78
  $session->setData('nosto_message', null);
79
  }
80
  }
81
+ $params['v'] = self::IFRAME_VERSION;
82
  $store = $this->getSelectedStore();
83
  $account = Mage::helper('nosto_tagging/account')->find($store);
84
  return $this->_iframeUrl = Mage::helper('nosto_tagging/account')
app/code/community/Nosto/Tagging/Block/Adminhtml/Wizard.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Block/Cart.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
@@ -181,4 +181,15 @@ class Nosto_Tagging_Block_Cart extends Mage_Checkout_Block_Cart_Abstract
181
 
182
  return $name;
183
  }
 
 
 
 
 
 
 
 
 
 
 
184
  }
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
181
 
182
  return $name;
183
  }
184
+
185
+ /*
186
+ * Returns the visitor's Nosto Id
187
+ */
188
+ public function getVisitorChecksum()
189
+ {
190
+ /* @var $helper Nosto_Tagging_Helper_Data */
191
+ $helper = Mage::helper('nosto_tagging');
192
+
193
+ return $helper->getVisitorChecksum();
194
+ }
195
  }
app/code/community/Nosto/Tagging/Block/Category.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Block/Customer.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
@@ -52,4 +52,16 @@ class Nosto_Tagging_Block_Customer extends Mage_Customer_Block_Account_Dashboard
52
 
53
  return parent::_toHtml();
54
  }
 
 
 
 
 
 
 
 
 
 
 
 
55
  }
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
52
 
53
  return parent::_toHtml();
54
  }
55
+
56
+ /*
57
+ * Returns the visitor's Nosto Id
58
+ */
59
+ public function getVisitorChecksum()
60
+ {
61
+ /* @var $helper Nosto_Tagging_Helper_Data */
62
+ $helper = Mage::helper('nosto_tagging');
63
+
64
+ return $helper->getVisitorChecksum();
65
+ }
66
+
67
  }
app/code/community/Nosto/Tagging/Block/Element.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Block/Embed.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Block/Meta.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Block/Order.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
@@ -67,4 +67,16 @@ class Nosto_Tagging_Block_Order extends Mage_Checkout_Block_Success
67
  $meta->loadData($order);
68
  return $meta;
69
  }
 
 
 
 
 
 
 
 
 
 
 
 
70
  }
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
67
  $meta->loadData($order);
68
  return $meta;
69
  }
70
+
71
+ /*
72
+ * Returns the visitor's Nosto Id
73
+ */
74
+ public function getVisitorChecksum()
75
+ {
76
+ /* @var $helper Nosto_Tagging_Helper_Data */
77
+ $helper = Mage::helper('nosto_tagging');
78
+
79
+ return $helper->getVisitorChecksum();
80
+ }
81
+
82
  }
app/code/community/Nosto/Tagging/Block/Product.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Helper/Account.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Helper/Customer.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Helper/Data.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
@@ -54,6 +54,15 @@ class Nosto_Tagging_Helper_Data extends Mage_Core_Helper_Abstract
54
  */
55
  const VISITOR_HASH_ALGO = 'sha256';
56
 
 
 
 
 
 
 
 
 
 
57
  /**
58
  * @inheritdoc
59
  */
@@ -87,6 +96,7 @@ class Nosto_Tagging_Helper_Data extends Mage_Core_Helper_Abstract
87
  if (isset($categories[$id]) && $categories[$id]->getName()) {
88
  $data[] = $categories[$id]->getName();
89
  } else {
 
90
  break;
91
  }
92
  }
@@ -132,4 +142,39 @@ class Nosto_Tagging_Helper_Data extends Mage_Core_Helper_Abstract
132
  {
133
  return Mage::getStoreConfig(self::XML_PATH_IMAGE_VERSION, $store);
134
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
135
  }
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
54
  */
55
  const VISITOR_HASH_ALGO = 'sha256';
56
 
57
+ /**
58
+ * List of strings to remove from the default Nosto account title
59
+ *
60
+ * @var array
61
+ */
62
+ public static $removeFromTitle = array(
63
+ 'Main Website - '
64
+ );
65
+
66
  /**
67
  * @inheritdoc
68
  */
96
  if (isset($categories[$id]) && $categories[$id]->getName()) {
97
  $data[] = $categories[$id]->getName();
98
  } else {
99
+ $data = array();
100
  break;
101
  }
102
  }
142
  {
143
  return Mage::getStoreConfig(self::XML_PATH_IMAGE_VERSION, $store);
144
  }
145
+
146
+ /**
147
+ * Return the Nosto cookie value
148
+ *
149
+ * @return string
150
+ */
151
+ public function getCookieId()
152
+ {
153
+ return Mage::getModel('core/cookie')->get(self::COOKIE_NAME);
154
+ }
155
+
156
+ /**
157
+ * Return the checksum for visitor
158
+ *
159
+ * @return string
160
+ */
161
+ public function getVisitorChecksum()
162
+ {
163
+ $coo = $this->getCookieId();
164
+ if ($coo) {
165
+ return hash(self::VISITOR_HASH_ALGO, $coo);
166
+ }
167
+ return null;
168
+ }
169
+
170
+ /**
171
+ * Return the checksum for visitor
172
+ *
173
+ * @return string
174
+ */
175
+ public function cleanUpAccountTitle($name)
176
+ {
177
+ $clean = str_replace(self::$removeFromTitle, '', $name);
178
+ return $clean;
179
+ }
180
  }
app/code/community/Nosto/Tagging/Helper/Date.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Helper/Oauth.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Helper/Price.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Helper/Url.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Model/Base.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Model/Container/Cart.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Model/Container/Customer.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Model/Customer.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Model/Export/Collection/Order.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Model/Meta/Account.php CHANGED
@@ -21,7 +21,7 @@
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
@@ -80,6 +80,11 @@ class Nosto_Tagging_Model_Meta_Account extends Mage_Core_Model_Abstract implemen
80
  */
81
  protected $_signUpApiToken = 'YBDKYwSqTCzSsU8Bwbg4im2pkHMcgTy9cCX7vevjJwON1UISJIwXOLMM0a8nZY7h';
82
 
 
 
 
 
 
83
  /**
84
  * @inheritdoc
85
  */
@@ -95,11 +100,15 @@ class Nosto_Tagging_Model_Meta_Account extends Mage_Core_Model_Abstract implemen
95
  */
96
  public function loadData(Mage_Core_Model_Store $store)
97
  {
98
- $this->_title = $store->getWebsite()->getName()
 
 
 
99
  . ' - '
100
  . $store->getGroup()->getName()
101
  . ' - '
102
- . $store->getName();
 
103
  $this->_name = substr(sha1(rand()), 0, 8);
104
  $this->_frontPageUrl = NostoHttpRequest::replaceQueryParamInUrl(
105
  '___store',
@@ -277,4 +286,24 @@ class Nosto_Tagging_Model_Meta_Account extends Mage_Core_Model_Abstract implemen
277
  {
278
  return null;
279
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
280
  }
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
80
  */
81
  protected $_signUpApiToken = 'YBDKYwSqTCzSsU8Bwbg4im2pkHMcgTy9cCX7vevjJwON1UISJIwXOLMM0a8nZY7h';
82
 
83
+ /**
84
+ * @var array|stdClass account details
85
+ */
86
+ protected $_details;
87
+
88
  /**
89
  * @inheritdoc
90
  */
100
  */
101
  public function loadData(Mage_Core_Model_Store $store)
102
  {
103
+ /* @var Nosto_Tagging_Helper_Data $helper */
104
+ $helper = Mage::helper('nosto_tagging');
105
+ $this->_title = $helper->cleanUpAccountTitle(
106
+ $store->getWebsite()->getName()
107
  . ' - '
108
  . $store->getGroup()->getName()
109
  . ' - '
110
+ . $store->getName()
111
+ );
112
  $this->_name = substr(sha1(rand()), 0, 8);
113
  $this->_frontPageUrl = NostoHttpRequest::replaceQueryParamInUrl(
114
  '___store',
286
  {
287
  return null;
288
  }
289
+
290
+ /**
291
+ * Set details
292
+ *
293
+ * @param array|stdClass $details
294
+ */
295
+ public function setDetails($details)
296
+ {
297
+ $this->_details = $details;
298
+ }
299
+
300
+ /**
301
+ * Get the details
302
+ *
303
+ * @return array|stdClass
304
+ */
305
+ public function getDetails()
306
+ {
307
+ return $this->_details;
308
+ }
309
  }
app/code/community/Nosto/Tagging/Model/Meta/Account/Billing.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Model/Meta/Account/Iframe.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Model/Meta/Account/Owner.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Model/Meta/Oauth.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Model/Meta/Order.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Model/Meta/Order/Buyer.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Model/Meta/Order/Item.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Model/Meta/Order/Status.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Model/Meta/Product.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
@@ -36,26 +36,6 @@
36
  */
37
  class Nosto_Tagging_Model_Meta_Product extends Nosto_Tagging_Model_Base implements NostoProductInterface, NostoValidatableInterface
38
  {
39
- /**
40
- * Product "in stock" tagging string.
41
- */
42
- const PRODUCT_IN_STOCK = 'InStock';
43
-
44
- /**
45
- * Product "out of stock" tagging string.
46
- */
47
- const PRODUCT_OUT_OF_STOCK = 'OutOfStock';
48
-
49
- /**
50
- * Product "invisible " tagging string.
51
- */
52
- const PRODUCT_INVISIBLE = 'Invisible';
53
-
54
- /**
55
- * Product "can be directly added to cart" tag string.
56
- */
57
- const PRODUCT_ADD_TO_CART = 'add-to-cart';
58
-
59
  /**
60
  * @var string the absolute url to the product page in the shop frontend.
61
  */
@@ -213,11 +193,11 @@ class Nosto_Tagging_Model_Meta_Product extends Nosto_Tagging_Model_Base implemen
213
  */
214
  protected function buildAvailability(Mage_Catalog_Model_Product $product)
215
  {
216
- $availability = self::PRODUCT_OUT_OF_STOCK;
217
  if(!$product->isVisibleInSiteVisibility()) {
218
- $availability = self::PRODUCT_INVISIBLE;
219
  } elseif ($product->isAvailable()) {
220
- $availability = self::PRODUCT_IN_STOCK;
221
  }
222
 
223
  return $availability;
@@ -259,7 +239,7 @@ class Nosto_Tagging_Model_Meta_Product extends Nosto_Tagging_Model_Base implemen
259
  }
260
 
261
  if (!$product->canConfigure()) {
262
- $tags[] = self::PRODUCT_ADD_TO_CART;
263
  }
264
 
265
  return $tags;
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
36
  */
37
  class Nosto_Tagging_Model_Meta_Product extends Nosto_Tagging_Model_Base implements NostoProductInterface, NostoValidatableInterface
38
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  /**
40
  * @var string the absolute url to the product page in the shop frontend.
41
  */
193
  */
194
  protected function buildAvailability(Mage_Catalog_Model_Product $product)
195
  {
196
+ $availability = self::OUT_OF_STOCK;
197
  if(!$product->isVisibleInSiteVisibility()) {
198
+ $availability = self::INVISIBLE;
199
  } elseif ($product->isAvailable()) {
200
+ $availability = self::IN_STOCK;
201
  }
202
 
203
  return $availability;
239
  }
240
 
241
  if (!$product->canConfigure()) {
242
+ $tags[] = self::ADD_TO_CART;
243
  }
244
 
245
  return $tags;
app/code/community/Nosto/Tagging/Model/Observer.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Model/Product.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Model/Resource/Customer.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Model/Resource/Customer/Collection.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Model/Resource/Product/Collection.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Model/Resource/Setup.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Model/Service/Order.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/Model/System/Config/Source/Image.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/bootstrap.php CHANGED
@@ -1,36 +1,28 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
- * All rights reserved.
5
- *
6
- * Redistribution and use in source and binary forms, with or without modification,
7
- * are permitted provided that the following conditions are met:
8
- *
9
- * 1. Redistributions of source code must retain the above copyright notice,
10
- * this list of conditions and the following disclaimer.
11
- *
12
- * 2. Redistributions in binary form must reproduce the above copyright notice,
13
- * this list of conditions and the following disclaimer in the documentation
14
- * and/or other materials provided with the distribution.
15
- *
16
- * 3. Neither the name of the copyright holder nor the names of its contributors
17
- * may be used to endorse or promote products derived from this software without
18
- * specific prior written permission.
19
- *
20
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
21
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
24
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
27
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
- *
31
- * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
- * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
  */
35
 
36
  require_once Mage::getBaseDir('lib') . '/nosto/php-sdk/src/config.inc.php';
1
  <?php
2
  /**
3
+ * Magento
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category Nosto
22
+ * @package Nosto_Tagging
23
+ * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
 
 
 
 
 
 
 
 
26
  */
27
 
28
  require_once Mage::getBaseDir('lib') . '/nosto/php-sdk/src/config.inc.php';
app/code/community/Nosto/Tagging/controllers/Adminhtml/NostoController.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
@@ -146,10 +146,14 @@ class Nosto_Tagging_Adminhtml_NostoController extends Mage_Adminhtml_Controller_
146
  if ($this->getRequest()->isPost() && $store !== null) {
147
  try {
148
  $email = $this->getRequest()->getPost('email');
 
149
  $meta = $accountHelper->getMetaData($store);
150
  if (Zend_Validate::is($email, 'EmailAddress')) {
151
  $meta->getOwner()->setEmail($email);
152
  }
 
 
 
153
  $account = NostoAccount::create($meta);
154
  if ($accountHelper->save($account, $store)) {
155
  $responseBody = array(
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
146
  if ($this->getRequest()->isPost() && $store !== null) {
147
  try {
148
  $email = $this->getRequest()->getPost('email');
149
+ $details = $this->getRequest()->getPost('details');
150
  $meta = $accountHelper->getMetaData($store);
151
  if (Zend_Validate::is($email, 'EmailAddress')) {
152
  $meta->getOwner()->setEmail($email);
153
  }
154
+ if (!empty($details)) {
155
+ $meta->setDetails(json_decode($details));
156
+ }
157
  $account = NostoAccount::create($meta);
158
  if ($accountHelper->save($account, $store)) {
159
  $responseBody = array(
app/code/community/Nosto/Tagging/controllers/ExportController.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/controllers/OauthController.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/code/community/Nosto/Tagging/etc/adminhtml.xml CHANGED
@@ -1,31 +1,29 @@
1
  <?xml version="1.0"?>
2
  <!--
3
- /**
4
- * Magento
5
- *
6
- * NOTICE OF LICENSE
7
- *
8
- * This source file is subject to the Open Software License (OSL 3.0)
9
- * that is bundled with this package in the file LICENSE.txt.
10
- * It is also available through the world-wide-web at this URL:
11
- * http://opensource.org/licenses/osl-3.0.php
12
- * If you did not receive a copy of the license and are unable to
13
- * obtain it through the world-wide-web, please send an email
14
- * to license@magentocommerce.com so we can send you a copy immediately.
15
- *
16
- * DISCLAIMER
17
- *
18
- * Do not edit or add to this file if you wish to upgrade Magento to newer
19
- * versions in the future. If you wish to customize Magento for your
20
- * needs please refer to http://www.magentocommerce.com for more information.
21
- *
22
- * @category Nosto
23
- * @package Nosto_Tagging
24
- * @author Nosto Solutions Ltd <magento@nosto.com>
25
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
26
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
27
- */
28
- -->
29
  <config>
30
  <menu>
31
  <nosto translate="title">
1
  <?xml version="1.0"?>
2
  <!--
3
+ ~ Magento
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@magentocommerce.com so we can send you a copy immediately.
14
+ ~
15
+ ~ DISCLAIMER
16
+ ~
17
+ ~ Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ ~ versions in the future. If you wish to customize Magento for your
19
+ ~ needs please refer to http://www.magentocommerce.com for more information.
20
+ ~
21
+ ~ @category Nosto
22
+ ~ @package Nosto_Tagging
23
+ ~ @author Nosto Solutions Ltd <magento@nosto.com>
24
+ ~ @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
+ ~ @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
+ -->
 
 
27
  <config>
28
  <menu>
29
  <nosto translate="title">
app/code/community/Nosto/Tagging/etc/cache.xml CHANGED
@@ -1,31 +1,29 @@
1
  <?xml version="1.0"?>
2
  <!--
3
- /**
4
- * Magento
5
- *
6
- * NOTICE OF LICENSE
7
- *
8
- * This source file is subject to the Open Software License (OSL 3.0)
9
- * that is bundled with this package in the file LICENSE.txt.
10
- * It is also available through the world-wide-web at this URL:
11
- * http://opensource.org/licenses/osl-3.0.php
12
- * If you did not receive a copy of the license and are unable to
13
- * obtain it through the world-wide-web, please send an email
14
- * to license@magentocommerce.com so we can send you a copy immediately.
15
- *
16
- * DISCLAIMER
17
- *
18
- * Do not edit or add to this file if you wish to upgrade Magento to newer
19
- * versions in the future. If you wish to customize Magento for your
20
- * needs please refer to http://www.magentocommerce.com for more information.
21
- *
22
- * @category Nosto
23
- * @package Nosto_Tagging
24
- * @author Nosto Solutions Ltd <magento@nosto.com>
25
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
26
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
27
- */
28
- -->
29
  <config>
30
  <placeholders>
31
  <nosto_tagging_cart>
1
  <?xml version="1.0"?>
2
  <!--
3
+ ~ Magento
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@magentocommerce.com so we can send you a copy immediately.
14
+ ~
15
+ ~ DISCLAIMER
16
+ ~
17
+ ~ Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ ~ versions in the future. If you wish to customize Magento for your
19
+ ~ needs please refer to http://www.magentocommerce.com for more information.
20
+ ~
21
+ ~ @category Nosto
22
+ ~ @package Nosto_Tagging
23
+ ~ @author Nosto Solutions Ltd <magento@nosto.com>
24
+ ~ @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
+ ~ @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
+ -->
 
 
27
  <config>
28
  <placeholders>
29
  <nosto_tagging_cart>
app/code/community/Nosto/Tagging/etc/config.xml CHANGED
@@ -1,35 +1,33 @@
1
  <?xml version="1.0"?>
2
  <!--
3
- /**
4
- * Magento
5
- *
6
- * NOTICE OF LICENSE
7
- *
8
- * This source file is subject to the Open Software License (OSL 3.0)
9
- * that is bundled with this package in the file LICENSE.txt.
10
- * It is also available through the world-wide-web at this URL:
11
- * http://opensource.org/licenses/osl-3.0.php
12
- * If you did not receive a copy of the license and are unable to
13
- * obtain it through the world-wide-web, please send an email
14
- * to license@magentocommerce.com so we can send you a copy immediately.
15
- *
16
- * DISCLAIMER
17
- *
18
- * Do not edit or add to this file if you wish to upgrade Magento to newer
19
- * versions in the future. If you wish to customize Magento for your
20
- * needs please refer to http://www.magentocommerce.com for more information.
21
- *
22
- * @category Nosto
23
- * @package Nosto_Tagging
24
- * @author Nosto Solutions Ltd <magento@nosto.com>
25
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
26
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
27
- */
28
- -->
29
  <config>
30
  <modules>
31
  <Nosto_Tagging>
32
- <version>2.6.14</version>
33
  </Nosto_Tagging>
34
  </modules>
35
  <global>
1
  <?xml version="1.0"?>
2
  <!--
3
+ ~ Magento
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@magentocommerce.com so we can send you a copy immediately.
14
+ ~
15
+ ~ DISCLAIMER
16
+ ~
17
+ ~ Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ ~ versions in the future. If you wish to customize Magento for your
19
+ ~ needs please refer to http://www.magentocommerce.com for more information.
20
+ ~
21
+ ~ @category Nosto
22
+ ~ @package Nosto_Tagging
23
+ ~ @author Nosto Solutions Ltd <magento@nosto.com>
24
+ ~ @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
+ ~ @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
+ -->
 
 
27
  <config>
28
  <modules>
29
  <Nosto_Tagging>
30
+ <version>2.6.15</version>
31
  </Nosto_Tagging>
32
  </modules>
33
  <global>
app/code/community/Nosto/Tagging/etc/system.xml CHANGED
@@ -1,31 +1,29 @@
1
  <?xml version="1.0"?>
2
  <!--
3
- /**
4
- * Magento
5
- *
6
- * NOTICE OF LICENSE
7
- *
8
- * This source file is subject to the Open Software License (OSL 3.0)
9
- * that is bundled with this package in the file LICENSE.txt.
10
- * It is also available through the world-wide-web at this URL:
11
- * http://opensource.org/licenses/osl-3.0.php
12
- * If you did not receive a copy of the license and are unable to
13
- * obtain it through the world-wide-web, please send an email
14
- * to license@magentocommerce.com so we can send you a copy immediately.
15
- *
16
- * DISCLAIMER
17
- *
18
- * Do not edit or add to this file if you wish to upgrade Magento to newer
19
- * versions in the future. If you wish to customize Magento for your
20
- * needs please refer to http://www.magentocommerce.com for more information.
21
- *
22
- * @category Nosto
23
- * @package Nosto_Tagging
24
- * @author Nosto Solutions Ltd <magento@nosto.com>
25
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
26
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
27
- */
28
- -->
29
  <config>
30
  <sections>
31
  <nosto_tagging translate="label">
1
  <?xml version="1.0"?>
2
  <!--
3
+ ~ Magento
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@magentocommerce.com so we can send you a copy immediately.
14
+ ~
15
+ ~ DISCLAIMER
16
+ ~
17
+ ~ Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ ~ versions in the future. If you wish to customize Magento for your
19
+ ~ needs please refer to http://www.magentocommerce.com for more information.
20
+ ~
21
+ ~ @category Nosto
22
+ ~ @package Nosto_Tagging
23
+ ~ @author Nosto Solutions Ltd <magento@nosto.com>
24
+ ~ @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
+ ~ @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
+ -->
 
 
27
  <config>
28
  <sections>
29
  <nosto_tagging translate="label">
app/code/community/Nosto/Tagging/sql/tagging_setup/mysql4-install-1.2.0.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
@@ -37,47 +37,49 @@
37
  $installer = $this;
38
  $installer->startSetup();
39
 
40
- $table = $installer
41
- ->getConnection()
42
- ->newTable($installer->getTable('nosto_tagging/customer'))
43
- ->addColumn(
44
- 'customer_id', Varien_Db_Ddl_Table::TYPE_INTEGER, 10, array(
45
- 'unsigned' => true,
46
- 'nullable' => false,
47
- 'primary' => true,
48
- 'identity' => true
49
- )
50
- )
51
- ->addColumn(
52
- 'quote_id', Varien_Db_Ddl_Table::TYPE_INTEGER, 10, array(
53
- 'unsigned' => true,
54
- 'nullable' => false
55
  )
56
- )
57
- ->addColumn(
58
- 'nosto_id', Varien_Db_Ddl_Table::TYPE_VARCHAR, 255, array(
59
- 'nullable' => false
 
60
  )
61
- )
62
- ->addColumn(
63
- 'created_at', Varien_Db_Ddl_Table::TYPE_DATETIME, null, array(
64
- 'nullable' => false
65
  )
66
- )
67
- ->addColumn(
68
- 'updated_at', Varien_Db_Ddl_Table::TYPE_DATETIME, null, array(
69
- 'nullable' => true
70
  )
71
- )
72
- ->addIndex(
73
- $installer->getIdxName(
74
- 'nosto_tagging/customer', array('quote_id', 'nosto_id'),
75
- Varien_Db_Adapter_Interface::INDEX_TYPE_UNIQUE
76
- ),
77
- array('quote_id', 'nosto_id'), array(
78
- 'type' => Varien_Db_Adapter_Interface::INDEX_TYPE_UNIQUE
79
  )
80
- );
81
- $installer->getConnection()->createTable($table);
 
 
 
 
 
 
 
 
 
82
 
83
  $installer->endSetup();
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
37
  $installer = $this;
38
  $installer->startSetup();
39
 
40
+ if (!$installer->getConnection()->isTableExists($installer->getTable('nosto_tagging/customer'))) {
41
+ $table = $installer
42
+ ->getConnection()
43
+ ->newTable($installer->getTable('nosto_tagging/customer'))
44
+ ->addColumn(
45
+ 'customer_id', Varien_Db_Ddl_Table::TYPE_INTEGER, 10, array(
46
+ 'unsigned' => true,
47
+ 'nullable' => false,
48
+ 'primary' => true,
49
+ 'identity' => true
50
+ )
 
 
 
 
51
  )
52
+ ->addColumn(
53
+ 'quote_id', Varien_Db_Ddl_Table::TYPE_INTEGER, 10, array(
54
+ 'unsigned' => true,
55
+ 'nullable' => false
56
+ )
57
  )
58
+ ->addColumn(
59
+ 'nosto_id', Varien_Db_Ddl_Table::TYPE_VARCHAR, 255, array(
60
+ 'nullable' => false
61
+ )
62
  )
63
+ ->addColumn(
64
+ 'created_at', Varien_Db_Ddl_Table::TYPE_DATETIME, null, array(
65
+ 'nullable' => false
66
+ )
67
  )
68
+ ->addColumn(
69
+ 'updated_at', Varien_Db_Ddl_Table::TYPE_DATETIME, null, array(
70
+ 'nullable' => true
71
+ )
 
 
 
 
72
  )
73
+ ->addIndex(
74
+ $installer->getIdxName(
75
+ 'nosto_tagging/customer', array('quote_id', 'nosto_id'),
76
+ Varien_Db_Adapter_Interface::INDEX_TYPE_UNIQUE
77
+ ),
78
+ array('quote_id', 'nosto_id'), array(
79
+ 'type' => Varien_Db_Adapter_Interface::INDEX_TYPE_UNIQUE
80
+ )
81
+ );
82
+ $installer->getConnection()->createTable($table);
83
+ }
84
 
85
  $installer->endSetup();
app/code/community/Nosto/Tagging/sql/tagging_setup/mysql4-upgrade-1.1.7-1.2.0.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
app/design/adminhtml/default/default/layout/nostotagging.xml CHANGED
@@ -1,31 +1,29 @@
1
  <?xml version="1.0"?>
2
  <!--
3
- /**
4
- * Magento
5
- *
6
- * NOTICE OF LICENSE
7
- *
8
- * This source file is subject to the Open Software License (OSL 3.0)
9
- * that is bundled with this package in the file LICENSE.txt.
10
- * It is also available through the world-wide-web at this URL:
11
- * http://opensource.org/licenses/osl-3.0.php
12
- * If you did not receive a copy of the license and are unable to
13
- * obtain it through the world-wide-web, please send an email
14
- * to license@magentocommerce.com so we can send you a copy immediately.
15
- *
16
- * DISCLAIMER
17
- *
18
- * Do not edit or add to this file if you wish to upgrade Magento to newer
19
- * versions in the future. If you wish to customize Magento for your
20
- * needs please refer to http://www.magentocommerce.com for more information.
21
- *
22
- * @category design
23
- * @package adminhtml_default_default
24
- * @author Nosto Solutions Ltd <magento@nosto.com>
25
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
26
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
27
- */
28
- -->
29
  <config>
30
  <!-- Nosto main menu link page -->
31
  <adminhtml_nosto_index>
1
  <?xml version="1.0"?>
2
  <!--
3
+ ~ Magento
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@magentocommerce.com so we can send you a copy immediately.
14
+ ~
15
+ ~ DISCLAIMER
16
+ ~
17
+ ~ Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ ~ versions in the future. If you wish to customize Magento for your
19
+ ~ needs please refer to http://www.magentocommerce.com for more information.
20
+ ~
21
+ ~ @category Nosto
22
+ ~ @package Nosto_Tagging
23
+ ~ @author Nosto Solutions Ltd <magento@nosto.com>
24
+ ~ @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
+ ~ @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
+ -->
 
 
27
  <config>
28
  <!-- Nosto main menu link page -->
29
  <adminhtml_nosto_index>
app/design/adminhtml/default/default/template/nostotagging/iframe.phtml CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package adminhtml_default_default
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
  ?>
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category Nosto
22
+ * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
  ?>
app/design/adminhtml/default/default/template/nostotagging/wizard.phtml CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package adminhtml_default_default
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
  ?>
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category Nosto
22
+ * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
  ?>
app/design/frontend/base/default/layout/nostotagging.xml CHANGED
@@ -1,31 +1,29 @@
1
  <?xml version="1.0"?>
2
  <!--
3
- /**
4
- * Magento
5
- *
6
- * NOTICE OF LICENSE
7
- *
8
- * This source file is subject to the Open Software License (OSL 3.0)
9
- * that is bundled with this package in the file LICENSE.txt.
10
- * It is also available through the world-wide-web at this URL:
11
- * http://opensource.org/licenses/osl-3.0.php
12
- * If you did not receive a copy of the license and are unable to
13
- * obtain it through the world-wide-web, please send an email
14
- * to license@magentocommerce.com so we can send you a copy immediately.
15
- *
16
- * DISCLAIMER
17
- *
18
- * Do not edit or add to this file if you wish to upgrade Magento to newer
19
- * versions in the future. If you wish to customize Magento for your
20
- * needs please refer to http://www.magentocommerce.com for more information.
21
- *
22
- * @category design
23
- * @package frontend_base_default
24
- * @author Nosto Solutions Ltd <magento@nosto.com>
25
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
26
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
27
- */
28
- -->
29
  <layout version="1.0.0">
30
  <!-- -->
31
  <!-- Adds Nosto tagging meta-data to site -->
1
  <?xml version="1.0"?>
2
  <!--
3
+ ~ Magento
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@magentocommerce.com so we can send you a copy immediately.
14
+ ~
15
+ ~ DISCLAIMER
16
+ ~
17
+ ~ Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ ~ versions in the future. If you wish to customize Magento for your
19
+ ~ needs please refer to http://www.magentocommerce.com for more information.
20
+ ~
21
+ ~ @category Nosto
22
+ ~ @package Nosto_Tagging
23
+ ~ @author Nosto Solutions Ltd <magento@nosto.com>
24
+ ~ @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
+ ~ @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
+ -->
 
 
27
  <layout version="1.0.0">
28
  <!-- -->
29
  <!-- Adds Nosto tagging meta-data to site -->
app/design/frontend/base/default/template/nostotagging/addtocart.phtml CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package frontend_base_default
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
  ?>
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category Nosto
22
+ * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
  ?>
app/design/frontend/base/default/template/nostotagging/cart.phtml CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package frontend_base_default
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
  ?>
@@ -40,6 +40,7 @@ $nostoPriceHelper = Mage::helper('nosto_tagging/price');
40
 
41
  <!-- Nosto Cart Tagging -->
42
  <div class="nosto_cart" style="display:none">
 
43
  <?php foreach ($items as $item): ?>
44
  <div class="line_item">
45
  <span class="product_id"><?php echo $this->getProductId($item); ?></span>
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category Nosto
22
+ * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
  ?>
40
 
41
  <!-- Nosto Cart Tagging -->
42
  <div class="nosto_cart" style="display:none">
43
+ <span class="hcid"><?php echo $this->getVisitorChecksum(); ?></span>
44
  <?php foreach ($items as $item): ?>
45
  <div class="line_item">
46
  <span class="product_id"><?php echo $this->getProductId($item); ?></span>
app/design/frontend/base/default/template/nostotagging/category.phtml CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package frontend_base_default
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
  ?>
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category Nosto
22
+ * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
  ?>
app/design/frontend/base/default/template/nostotagging/category/view.phtml CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package frontend_base_default
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
  ?>
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category Nosto
22
+ * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
  ?>
app/design/frontend/base/default/template/nostotagging/customer.phtml CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package frontend_base_default
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
  ?>
@@ -37,6 +37,7 @@ $nostoHelper = Mage::helper('nosto_tagging');
37
 
38
  <!-- Nosto Customer Tagging -->
39
  <div class="nosto_customer" style="display:none">
 
40
  <span class="first_name"><?php echo $nostoHelper->escapeHtml($customer->getFirstname()); ?></span>
41
  <span class="last_name"><?php echo $nostoHelper->escapeHtml($customer->getLastname()); ?></span>
42
  <span class="email"><?php echo $nostoHelper->escapeHtml($customer->getEmail()); ?></span>
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category Nosto
22
+ * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
  ?>
37
 
38
  <!-- Nosto Customer Tagging -->
39
  <div class="nosto_customer" style="display:none">
40
+ <span class="hcid"><?php echo $this->getVisitorChecksum(); ?></span>
41
  <span class="first_name"><?php echo $nostoHelper->escapeHtml($customer->getFirstname()); ?></span>
42
  <span class="last_name"><?php echo $nostoHelper->escapeHtml($customer->getLastname()); ?></span>
43
  <span class="email"><?php echo $nostoHelper->escapeHtml($customer->getEmail()); ?></span>
app/design/frontend/base/default/template/nostotagging/element.phtml CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package frontend_base_default
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
  ?>
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category Nosto
22
+ * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
  ?>
app/design/frontend/base/default/template/nostotagging/embed.phtml CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package frontend_base_default
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
  ?>
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category Nosto
22
+ * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
  ?>
app/design/frontend/base/default/template/nostotagging/meta.phtml CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package frontend_base_default
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
  ?>
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category Nosto
22
+ * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
  ?>
app/design/frontend/base/default/template/nostotagging/order.phtml CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package frontend_base_default
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
  ?>
@@ -40,6 +40,7 @@ $priceHelper = Mage::helper('nosto_tagging/price');
40
  <?php if ($order->getPurchasedItems() !== array()): ?>
41
  <!-- Nosto Order Tagging -->
42
  <div class="nosto_purchase_order" style="display:none">
 
43
  <span class="order_number"><?php echo $order->getOrderNumber(); ?></span>
44
  <span class="external_order_ref"><?php echo $helper->escapeHtml($order->getExternalOrderRef()); ?></span>
45
  <?php if ($order->getOrderStatus()): ?>
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category Nosto
22
+ * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
  ?>
40
  <?php if ($order->getPurchasedItems() !== array()): ?>
41
  <!-- Nosto Order Tagging -->
42
  <div class="nosto_purchase_order" style="display:none">
43
+ <span class="hcid"><?php echo $this->getVisitorChecksum(); ?></span>
44
  <span class="order_number"><?php echo $order->getOrderNumber(); ?></span>
45
  <span class="external_order_ref"><?php echo $helper->escapeHtml($order->getExternalOrderRef()); ?></span>
46
  <?php if ($order->getOrderStatus()): ?>
app/design/frontend/base/default/template/nostotagging/product.phtml CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,17 +11,17 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package frontend_base_default
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
  ?>
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category Nosto
22
+ * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
24
+ * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
  ?>
app/design/frontend/base/default/template/nostotagging/searchterm.phtml CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
  * Magento
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:
@@ -11,13 +11,13 @@
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@magentocommerce.com so we can send you a copy immediately.
14
- *
15
  * DISCLAIMER
16
- *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
1
  <?php
2
  /**
3
  * Magento
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:
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@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
  * DISCLAIMER
16
+ *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
  * @category Nosto
22
  * @package Nosto_Tagging
23
  * @author Nosto Solutions Ltd <magento@nosto.com>
app/etc/modules/Nosto_Tagging.xml CHANGED
@@ -1,31 +1,29 @@
1
  <?xml version="1.0"?>
2
  <!--
3
- /**
4
- * Magento
5
- *
6
- * NOTICE OF LICENSE
7
- *
8
- * This source file is subject to the Open Software License (OSL 3.0)
9
- * that is bundled with this package in the file LICENSE.txt.
10
- * It is also available through the world-wide-web at this URL:
11
- * http://opensource.org/licenses/osl-3.0.php
12
- * If you did not receive a copy of the license and are unable to
13
- * obtain it through the world-wide-web, please send an email
14
- * to license@magentocommerce.com so we can send you a copy immediately.
15
- *
16
- * DISCLAIMER
17
- *
18
- * Do not edit or add to this file if you wish to upgrade Magento to newer
19
- * versions in the future. If you wish to customize Magento for your
20
- * needs please refer to http://www.magentocommerce.com for more information.
21
- *
22
- * @category Nosto
23
- * @package Nosto_Tagging
24
- * @author Nosto Solutions Ltd <magento@nosto.com>
25
- * @copyright Copyright (c) 2013-2015 Nosto Solutions Ltd (http://www.nosto.com)
26
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
27
- */
28
- -->
29
  <config>
30
  <modules>
31
  <Nosto_Tagging>
1
  <?xml version="1.0"?>
2
  <!--
3
+ ~ Magento
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@magentocommerce.com so we can send you a copy immediately.
14
+ ~
15
+ ~ DISCLAIMER
16
+ ~
17
+ ~ Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ ~ versions in the future. If you wish to customize Magento for your
19
+ ~ needs please refer to http://www.magentocommerce.com for more information.
20
+ ~
21
+ ~ @category Nosto
22
+ ~ @package Nosto_Tagging
23
+ ~ @author Nosto Solutions Ltd <magento@nosto.com>
24
+ ~ @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com)
25
+ ~ @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
+ -->
 
 
27
  <config>
28
  <modules>
29
  <Nosto_Tagging>
js/nosto/iframeHandler.min.js CHANGED
@@ -1 +1 @@
1
- !function(a){"use strict";function b(b,e){var f=c({method:"POST",async:!0,data:{}},e);f.data.form_key=a.FORM_KEY;var g=new XMLHttpRequest;"function"==typeof f.success&&g.addEventListener("load",function(a){f.success(JSON.parse(a.target.response))},!1),g.open(f.method,decodeURIComponent(b),f.async),g.setRequestHeader("X-Requested-With","XMLHttpRequest"),g.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),g.send(d(f.data))}function c(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}function d(a){var b="";for(var c in a)a.hasOwnProperty(c)&&(""!==b&&(b+="&"),b+=encodeURIComponent(c)+"="+encodeURIComponent(a[c]));return b}var e=function(d,e){var f="newAccount",g="connectAccount",h="removeAccount",i=c({iframeId:"nosto_iframe",urls:{createAccount:"",connectAccount:"",deleteAccount:""}},e),j=document.getElementById(i.iframeId);switch(d.type){case f:b(i.urls.createAccount,{data:{email:d.params.email},success:function(a){a.success&&a.redirect_url&&(j.src=a.redirect_url)}});break;case g:b(i.urls.connectAccount,{success:function(b){b.success&&b.redirect_url?a.location.href=b.redirect_url:!b.success&&b.redirect_url&&(j.src=b.redirect_url)}});break;case h:b(i.urls.deleteAccount,{success:function(a){a.success&&a.redirect_url&&(j.src=a.redirect_url)}});break;default:throw new Error("Nosto: invalid postMessage `type`.")}};a.Nosto=a.Nosto||{},a.Nosto.handlePostMessage=e}(window||{});
1
+ !function(a){"use strict";function b(b,e){var f=c({method:"POST",async:!0,data:{}},e);f.data.form_key=a.FORM_KEY;var g=new XMLHttpRequest;"function"==typeof f.success&&g.addEventListener("load",function(a){f.success(JSON.parse(a.target.response))},!1),g.open(f.method,decodeURIComponent(b),f.async),g.setRequestHeader("X-Requested-With","XMLHttpRequest"),g.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),g.send(d(f.data))}function c(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}function d(a){var b="";for(var c in a)a.hasOwnProperty(c)&&(""!==b&&(b+="&"),b+=encodeURIComponent(c)+"="+encodeURIComponent(a[c]));return b}var e=function(d,e){var f="newAccount",g="connectAccount",h="removeAccount",i=c({iframeId:"nosto_iframe",urls:{createAccount:"",connectAccount:"",deleteAccount:""}},e),j=document.getElementById(i.iframeId);switch(d.type){case f:var k={email:d.params.email};d.params.details&&(k.details=JSON.stringify(d.params.details)),b(i.urls.createAccount,{data:k,success:function(a){a.success&&a.redirect_url&&(j.src=a.redirect_url)}});break;case g:b(i.urls.connectAccount,{success:function(b){b.success&&b.redirect_url?a.location.href=b.redirect_url:!b.success&&b.redirect_url&&(j.src=b.redirect_url)}});break;case h:b(i.urls.deleteAccount,{success:function(a){a.success&&a.redirect_url&&(j.src=a.redirect_url)}});break;default:throw new Error("Nosto: invalid postMessage `type`.")}};a.Nosto=a.Nosto||{},a.Nosto.handlePostMessage=e}(window||{});
lib/nosto/php-sdk/src/classes/Nosto.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
@@ -112,14 +113,53 @@ class Nosto
112
  * @param string $message the error message.
113
  * @param NostoHttpRequest $request the request object to take additional info from.
114
  * @param NostoHttpResponse $response the response object to take additional info from.
115
- * @throws NostoHttpException the exception.
116
  */
117
  public static function throwHttpException($message, NostoHttpRequest $request, NostoHttpResponse $response)
118
  {
119
- $message .= sprintf(' Error: %s.', $response->getCode());
120
- $message .= sprintf(' Request: %s.', $request);
121
- $message .= sprintf(' Response: %s.', $response);
122
- throw new NostoHttpException($message, $response->getCode());
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
  }
124
 
125
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
113
  * @param string $message the error message.
114
  * @param NostoHttpRequest $request the request object to take additional info from.
115
  * @param NostoHttpResponse $response the response object to take additional info from.
116
+ * @throws NostoHttpException|NostoApiResponseException the exception.
117
  */
118
  public static function throwHttpException($message, NostoHttpRequest $request, NostoHttpResponse $response)
119
  {
120
+ $jsonResponse = $response->getJsonResult();
121
+
122
+ if (
123
+ isset($jsonResponse->type)
124
+ && isset($jsonResponse->message)
125
+ ) {
126
+ if (isset($jsonResponse->message)) {
127
+ $message .= '. ' . $jsonResponse->message;
128
+ }
129
+ throw new NostoApiResponseException(
130
+ $message,
131
+ $response->getCode(), // http status code
132
+ null,
133
+ $request,
134
+ $response
135
+ );
136
+ } else {
137
+ if ($response->getMessage()) {
138
+ $message .= '. ' . $response->getMessage();
139
+ }
140
+ throw new NostoHttpException(
141
+ $message,
142
+ $response->getCode(),
143
+ null,
144
+ $request,
145
+ $response
146
+ );
147
+ }
148
+ }
149
+
150
+ /**
151
+ * Throws a new NostoException exception
152
+ *
153
+ * @param string $message the error message
154
+ * @param int $code the code
155
+ * @throws NostoException the exception
156
+ */
157
+ public static function throwException($message, $code = null)
158
+ {
159
+ throw new NostoException(
160
+ $message,
161
+ $code
162
+ );
163
  }
164
 
165
  /**
lib/nosto/php-sdk/src/classes/NostoAccount.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
@@ -109,6 +110,10 @@ class NostoAccount extends NostoObject implements NostoAccountInterface, NostoVa
109
  $params['api_tokens'][] = 'api_'.$name;
110
  }
111
 
 
 
 
 
112
  $request = new NostoApiRequest();
113
  $request->setPath(NostoApiRequest::PATH_SIGN_UP);
114
  $request->setReplaceParams(array('{lang}' => $meta->getLanguageCode()));
@@ -116,8 +121,9 @@ class NostoAccount extends NostoObject implements NostoAccountInterface, NostoVa
116
  $request->setAuthBasic('', $meta->getSignUpApiToken());
117
  $response = $request->post(json_encode($params));
118
 
 
119
  if ($response->getCode() !== 200) {
120
- Nosto::throwHttpException('Nosto account could not be created.', $request, $response);
121
  }
122
 
123
  $account = new self($meta->getPlatform().'-'.$meta->getName());
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
110
  $params['api_tokens'][] = 'api_'.$name;
111
  }
112
 
113
+ if ($meta->getDetails()) {
114
+ $params['details'] = $meta->getDetails();
115
+ }
116
+
117
  $request = new NostoApiRequest();
118
  $request->setPath(NostoApiRequest::PATH_SIGN_UP);
119
  $request->setReplaceParams(array('{lang}' => $meta->getLanguageCode()));
121
  $request->setAuthBasic('', $meta->getSignUpApiToken());
122
  $response = $request->post(json_encode($params));
123
 
124
+ /* In case of no result we have not been able to make the API call */
125
  if ($response->getCode() !== 200) {
126
+ Nosto::throwHttpException('Failed to create Nosto account', $request, $response);
127
  }
128
 
129
  $account = new self($meta->getPlatform().'-'.$meta->getName());
lib/nosto/php-sdk/src/classes/NostoAccountMeta.php CHANGED
@@ -1,26 +1,37 @@
1
  <?php
2
  /**
3
- * 2013-2016 Nosto Solutions Ltd
 
4
  *
5
- * NOTICE OF LICENSE
 
6
  *
7
- * This source file is subject to the Academic Free License (AFL 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/afl-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 contact@nosto.com so we can send you a copy immediately.
14
  *
15
- * DISCLAIMER
 
 
16
  *
17
- * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
18
- * versions in the future. If you wish to customize PrestaShop for your
19
- * needs please refer to http://www.prestashop.com for more information.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  *
21
- * @author Nosto Solutions Ltd <contact@nosto.com>
22
- * @copyright 2013-2016 Nosto Solutions Ltd
23
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
24
  */
25
 
26
  /**
@@ -83,6 +94,40 @@ abstract class NostoAccountMeta implements NostoAccountMetaDataInterface
83
  */
84
  protected $defaultVariationId = false;
85
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86
  /**
87
  * Sets the store title.
88
  *
@@ -125,14 +170,6 @@ abstract class NostoAccountMeta implements NostoAccountMetaDataInterface
125
  return $this->name;
126
  }
127
 
128
- /**
129
- * The name of the platform the account is used on.
130
- * A list of valid platform names is issued by Nosto.
131
- *
132
- * @return string the platform names.
133
- */
134
- abstract public function getPlatform();
135
-
136
  /**
137
  * Sets the store front page url.
138
  *
@@ -237,21 +274,6 @@ abstract class NostoAccountMeta implements NostoAccountMetaDataInterface
237
  return $this->billing;
238
  }
239
 
240
- /**
241
- * The API token used to identify an account creation.
242
- * This token is platform specific and issued by Nosto.
243
- *
244
- * @return string the API token.
245
- */
246
- abstract public function getSignUpApiToken();
247
-
248
- /**
249
- * Returns the partner code
250
- *
251
- * @return string
252
- */
253
- abstract public function getPartnerCode();
254
-
255
  /**
256
  * Returns an array of currencies used for this account
257
  *
@@ -301,17 +323,62 @@ abstract class NostoAccountMeta implements NostoAccountMetaDataInterface
301
  $this->defaultVariationId = $defaultVariationId;
302
  }
303
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
304
 
305
- /*
306
- * Returns the default variation id
307
  *
308
  * @return string
309
  */
 
 
 
 
 
310
  /**
 
 
311
  * @return string
312
  */
313
- public function getDefaultVariationId()
314
  {
315
- return $this->defaultVariationId;
 
 
 
 
 
 
 
 
 
 
316
  }
317
  }
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
+ * All rights reserved.
5
  *
6
+ * Redistribution and use in source and binary forms, with or without modification,
7
+ * are permitted provided that the following conditions are met:
8
  *
9
+ * 1. Redistributions of source code must retain the above copyright notice,
10
+ * this list of conditions and the following disclaimer.
 
 
 
 
 
11
  *
12
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ * this list of conditions and the following disclaimer in the documentation
14
+ * and/or other materials provided with the distribution.
15
  *
16
+ * 3. Neither the name of the copyright holder nor the names of its contributors
17
+ * may be used to endorse or promote products derived from this software without
18
+ * specific prior written permission.
19
+ *
20
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
21
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
24
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
27
+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
+ *
31
+ * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
+ * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
  *
 
 
 
35
  */
36
 
37
  /**
94
  */
95
  protected $defaultVariationId = false;
96
 
97
+ /**
98
+ * @var string details
99
+ */
100
+ protected $details = false;
101
+
102
+ /**
103
+ * @var string sign up api token
104
+ */
105
+ protected $signupApiToken;
106
+
107
+ /**
108
+ * @var string platform name
109
+ */
110
+ protected $platform;
111
+
112
+ /**
113
+ * @var string partner code
114
+ */
115
+ protected $partnerCode;
116
+
117
+ /**
118
+ * Constructor
119
+ *
120
+ * @param string $platform
121
+ * @param string $signupApiToken
122
+ * @param string $partnerCode
123
+ */
124
+ public function __construct($platform, $signupApiToken, $partnerCode)
125
+ {
126
+ $this->platform = $platform;
127
+ $this->signupApiToken = $signupApiToken;
128
+ $this->partnerCode = $partnerCode;
129
+ }
130
+
131
  /**
132
  * Sets the store title.
133
  *
170
  return $this->name;
171
  }
172
 
 
 
 
 
 
 
 
 
173
  /**
174
  * Sets the store front page url.
175
  *
274
  return $this->billing;
275
  }
276
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
277
  /**
278
  * Returns an array of currencies used for this account
279
  *
323
  $this->defaultVariationId = $defaultVariationId;
324
  }
325
 
326
+ /**
327
+ * Return the default variation id
328
+ *
329
+ * @return string
330
+ */
331
+ public function getDefaultVariationId()
332
+ {
333
+ return $this->defaultVariationId;
334
+ }
335
+
336
+ /**
337
+ * Sets the details
338
+ * @param string $details
339
+ */
340
+ public function setDetails($details)
341
+ {
342
+ $this->details = $details;
343
+ }
344
+
345
+ /**
346
+ * Returns the account details
347
+ *
348
+ * @return string
349
+ */
350
+ public function getDetails()
351
+ {
352
+ return $this->details;
353
+ }
354
 
355
+ /**
356
+ * Returns the partner code
357
  *
358
  * @return string
359
  */
360
+ public function getPartnerCode()
361
+ {
362
+ return $this->partnerCode;
363
+ }
364
+
365
  /**
366
+ * Returns the name of the platform
367
+ *
368
  * @return string
369
  */
370
+ public function getPlatform()
371
  {
372
+ return $this->platform;
373
+ }
374
+
375
+ /**
376
+ * Returns the signup api token
377
+ *
378
+ * @return string
379
+ */
380
+ public function getSignupApiToken()
381
+ {
382
+ return $this->signupApiToken;
383
  }
384
  }
lib/nosto/php-sdk/src/classes/NostoCipher.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/NostoCurrency.php CHANGED
@@ -1,26 +1,37 @@
1
  <?php
2
  /**
3
- * 2013-2016 Nosto Solutions Ltd
 
4
  *
5
- * NOTICE OF LICENSE
 
6
  *
7
- * This source file is subject to the Academic Free License (AFL 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/afl-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 contact@nosto.com so we can send you a copy immediately.
14
  *
15
- * DISCLAIMER
 
 
16
  *
17
- * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
18
- * versions in the future. If you wish to customize PrestaShop for your
19
- * needs please refer to http://www.prestashop.com for more information.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  *
21
- * @author Nosto Solutions Ltd <contact@nosto.com>
22
- * @copyright 2013-2016 Nosto Solutions Ltd
23
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
24
  */
25
 
26
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
+ * All rights reserved.
5
  *
6
+ * Redistribution and use in source and binary forms, with or without modification,
7
+ * are permitted provided that the following conditions are met:
8
  *
9
+ * 1. Redistributions of source code must retain the above copyright notice,
10
+ * this list of conditions and the following disclaimer.
 
 
 
 
 
11
  *
12
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ * this list of conditions and the following disclaimer in the documentation
14
+ * and/or other materials provided with the distribution.
15
  *
16
+ * 3. Neither the name of the copyright holder nor the names of its contributors
17
+ * may be used to endorse or promote products derived from this software without
18
+ * specific prior written permission.
19
+ *
20
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
21
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
24
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
27
+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
+ *
31
+ * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
+ * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
  *
 
 
 
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/NostoCurrencyCode.php CHANGED
@@ -31,6 +31,7 @@
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
  * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
  * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/NostoCurrencyFormat.php CHANGED
@@ -31,6 +31,7 @@
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
  * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
  * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/NostoCurrencyInfo.php CHANGED
@@ -31,6 +31,7 @@
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
  * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
  * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/NostoCurrencySymbol.php CHANGED
@@ -31,6 +31,7 @@
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
  * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
  * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/NostoDotEnv.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/NostoExchangeRate.php CHANGED
@@ -31,6 +31,7 @@
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
  * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
  * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/NostoMessage.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/NostoObject.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/NostoOrderConfirmation.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
@@ -78,8 +79,10 @@ class NostoOrderConfirmation
78
  ),
79
  'created_at' => Nosto::helper('date')->format($order->getCreatedDate()),
80
  'payment_provider' => $order->getPaymentProvider(),
 
81
  'purchased_items' => array(),
82
  );
 
83
  foreach ($order->getPurchasedItems() as $item) {
84
  $orderData['purchased_items'][] = array(
85
  'product_id' => $item->getProductId(),
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
79
  ),
80
  'created_at' => Nosto::helper('date')->format($order->getCreatedDate()),
81
  'payment_provider' => $order->getPaymentProvider(),
82
+ 'external_order_ref' => $order->getExternalOrderRef(),
83
  'purchased_items' => array(),
84
  );
85
+
86
  foreach ($order->getPurchasedItems() as $item) {
87
  $orderData['purchased_items'][] = array(
88
  'product_id' => $item->getProductId(),
lib/nosto/php-sdk/src/classes/NostoProductReCrawl.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
@@ -99,7 +100,9 @@ class NostoProductReCrawl
99
  {
100
  $token = $account->getApiToken('products');
101
  if ($token === null) {
102
- throw new NostoException('Failed to send product re-crawl to Nosto. No `products` API token found for account.');
 
 
103
  }
104
  $request = new NostoApiRequest();
105
  $request->setPath(NostoApiRequest::PATH_PRODUCT_RE_CRAWL);
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
100
  {
101
  $token = $account->getApiToken('products');
102
  if ($token === null) {
103
+ throw new NostoException(
104
+ 'Failed to send product re-crawl to Nosto. No `products` API token found for account.'
105
+ );
106
  }
107
  $request = new NostoApiRequest();
108
  $request->setPath(NostoApiRequest::PATH_PRODUCT_RE_CRAWL);
lib/nosto/php-sdk/src/classes/NostoValidator.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
@@ -41,12 +42,12 @@ class NostoValidator
41
  /**
42
  * @var NostoValidatableInterface the object to validate.
43
  */
44
- private $_object;
45
 
46
  /**
47
  * @var array map of validation errors per attribute.
48
  */
49
- private $_errors = array();
50
 
51
  /**
52
  * Constructor.
@@ -56,7 +57,7 @@ class NostoValidator
56
  */
57
  public function __construct(NostoValidatableInterface $object)
58
  {
59
- $this->_object = $object;
60
  }
61
 
62
  /**
@@ -67,7 +68,7 @@ class NostoValidator
67
  */
68
  public function validate()
69
  {
70
- foreach ($this->_object->getValidationRules() as $rule) {
71
  if (isset($rule[0], $rule[1])) {
72
  $properties = $rule[0];
73
  $validator = 'validate'.$rule[1];
@@ -91,7 +92,7 @@ class NostoValidator
91
  */
92
  public function hasErrors()
93
  {
94
- return (bool)count($this->_errors);
95
  }
96
 
97
  /**
@@ -101,7 +102,7 @@ class NostoValidator
101
  */
102
  public function getErrors()
103
  {
104
- return $this->_errors;
105
  }
106
 
107
  /**
@@ -112,10 +113,10 @@ class NostoValidator
112
  */
113
  protected function addError($attribute, $message)
114
  {
115
- if (!isset($this->_errors[$attribute])) {
116
- $this->_errors[$attribute] = array();
117
  }
118
- $this->_errors[$attribute][] = $message;
119
  }
120
 
121
  /**
@@ -127,7 +128,7 @@ class NostoValidator
127
  protected function validateRequired(array $properties)
128
  {
129
  foreach ($properties as $property) {
130
- $value = $this->_object->{$property};
131
  if (empty($value)) {
132
  $this->addError($property, sprintf('Property "%s" must not be empty.', $property));
133
  return false;
@@ -147,7 +148,7 @@ class NostoValidator
147
  {
148
  $supported = implode('", "', $values);
149
  foreach ($properties as $property) {
150
- $value = $this->_object->{$property};
151
  if (!in_array($value, $values)) {
152
  $this->addError(
153
  $property,
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
42
  /**
43
  * @var NostoValidatableInterface the object to validate.
44
  */
45
+ private $object;
46
 
47
  /**
48
  * @var array map of validation errors per attribute.
49
  */
50
+ private $errors = array();
51
 
52
  /**
53
  * Constructor.
57
  */
58
  public function __construct(NostoValidatableInterface $object)
59
  {
60
+ $this->object = $object;
61
  }
62
 
63
  /**
68
  */
69
  public function validate()
70
  {
71
+ foreach ($this->object->getValidationRules() as $rule) {
72
  if (isset($rule[0], $rule[1])) {
73
  $properties = $rule[0];
74
  $validator = 'validate'.$rule[1];
92
  */
93
  public function hasErrors()
94
  {
95
+ return (bool)count($this->errors);
96
  }
97
 
98
  /**
102
  */
103
  public function getErrors()
104
  {
105
+ return $this->errors;
106
  }
107
 
108
  /**
113
  */
114
  protected function addError($attribute, $message)
115
  {
116
+ if (!isset($this->errors[$attribute])) {
117
+ $this->errors[$attribute] = array();
118
  }
119
+ $this->errors[$attribute][] = $message;
120
  }
121
 
122
  /**
128
  protected function validateRequired(array $properties)
129
  {
130
  foreach ($properties as $property) {
131
+ $value = $this->object->{$property};
132
  if (empty($value)) {
133
  $this->addError($property, sprintf('Property "%s" must not be empty.', $property));
134
  return false;
148
  {
149
  $supported = implode('", "', $values);
150
  foreach ($properties as $property) {
151
+ $value = $this->object->{$property};
152
  if (!in_array($value, $values)) {
153
  $this->addError(
154
  $property,
lib/nosto/php-sdk/src/classes/api/NostoApiRequest.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/api/NostoApiToken.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/collection/NostoCollection.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/collection/NostoExchangeRateCollection.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/collection/NostoOrderCollection.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/collection/NostoProductCollection.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/exception/NostoApiResponseException.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without modification,
7
+ * are permitted provided that the following conditions are met:
8
+ *
9
+ * 1. Redistributions of source code must retain the above copyright notice,
10
+ * this list of conditions and the following disclaimer.
11
+ *
12
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ * this list of conditions and the following disclaimer in the documentation
14
+ * and/or other materials provided with the distribution.
15
+ *
16
+ * 3. Neither the name of the copyright holder nor the names of its contributors
17
+ * may be used to endorse or promote products derived from this software without
18
+ * specific prior written permission.
19
+ *
20
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
21
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
24
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
27
+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
+ *
31
+ * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
+ * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
+ */
36
+
37
+ /**
38
+ * Nosto exception class for api response errors within the sdk.
39
+ */
40
+ class NostoApiResponseException extends NostoHttpResponseException
41
+ {
42
+ }
lib/nosto/php-sdk/src/classes/exception/NostoException.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/exception/NostoHttpException.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
@@ -38,4 +39,65 @@
38
  */
39
  class NostoHttpException extends NostoException
40
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  }
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
39
  */
40
  class NostoHttpException extends NostoException
41
  {
42
+ /**
43
+ * @var NostoHttpResponse
44
+ */
45
+ private $response;
46
+
47
+ /**
48
+ * @var NostoHttpRequest
49
+ */
50
+ private $request;
51
+
52
+ /**
53
+ * NostoHttpException constructor.
54
+ * @param string $message
55
+ * @param null $code
56
+ * @param Throwable|null $previous
57
+ * @param NostoHttpRequest|null $request
58
+ * @param NostoHttpResponse|null $response
59
+ */
60
+ public function __construct(
61
+ $message = "",
62
+ $code = null,
63
+ Throwable $previous = null,
64
+ NostoHttpRequest $request = null,
65
+ NostoHttpResponse $response = null
66
+ ) {
67
+ parent::__construct($message, $code, $previous);
68
+ $this->setRequest($request);
69
+ $this->setResponse($response);
70
+ }
71
+
72
+ /**
73
+ * @return NostoHttpRequest
74
+ */
75
+ public function getRequest()
76
+ {
77
+ return $this->request;
78
+ }
79
+
80
+ /**
81
+ * @param NostoHttpRequest $request
82
+ */
83
+ public function setRequest(NostoHttpRequest $request)
84
+ {
85
+ $this->request = $request;
86
+ }
87
+
88
+ /**
89
+ * @return NostoHttpResponse
90
+ */
91
+ public function getResponse()
92
+ {
93
+ return $this->response;
94
+ }
95
+
96
+ /**
97
+ * @param NostoHttpResponse $response
98
+ */
99
+ public function setResponse(NostoHttpResponse $response)
100
+ {
101
+ $this->response = $response;
102
+ }
103
  }
lib/nosto/php-sdk/src/classes/exception/NostoHttpResponseException.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without modification,
7
+ * are permitted provided that the following conditions are met:
8
+ *
9
+ * 1. Redistributions of source code must retain the above copyright notice,
10
+ * this list of conditions and the following disclaimer.
11
+ *
12
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ * this list of conditions and the following disclaimer in the documentation
14
+ * and/or other materials provided with the distribution.
15
+ *
16
+ * 3. Neither the name of the copyright holder nor the names of its contributors
17
+ * may be used to endorse or promote products derived from this software without
18
+ * specific prior written permission.
19
+ *
20
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
21
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
24
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
27
+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
+ *
31
+ * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
+ * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
+ */
36
+
37
+ /**
38
+ * Nosto exception class for api response errors within the sdk.
39
+ */
40
+ class NostoHttpResponseException extends NostoHttpException
41
+ {
42
+ }
lib/nosto/php-sdk/src/classes/export/NostoExportOrderCollection.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
@@ -58,6 +59,7 @@ class NostoExportOrderCollection extends NostoOrderCollection implements NostoEx
58
  'email' => $item->getBuyerInfo()->getEmail(),
59
  ),
60
  'payment_provider' => $item->getPaymentProvider(),
 
61
  'purchased_items' => array(),
62
  );
63
  foreach ($item->getPurchasedItems() as $orderItem) {
@@ -69,6 +71,7 @@ class NostoExportOrderCollection extends NostoOrderCollection implements NostoEx
69
  'price_currency_code' => strtoupper($orderItem->getCurrencyCode()),
70
  );
71
  }
 
72
  $array[] = $data;
73
  }
74
  return json_encode($array);
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
59
  'email' => $item->getBuyerInfo()->getEmail(),
60
  ),
61
  'payment_provider' => $item->getPaymentProvider(),
62
+ 'external_order_ref' => $item->getExternalOrderRef(),
63
  'purchased_items' => array(),
64
  );
65
  foreach ($item->getPurchasedItems() as $orderItem) {
71
  'price_currency_code' => strtoupper($orderItem->getCurrencyCode()),
72
  );
73
  }
74
+
75
  $array[] = $data;
76
  }
77
  return json_encode($array);
lib/nosto/php-sdk/src/classes/export/NostoExportProductCollection.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/export/NostoExporter.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/helper/NostoHelper.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/helper/NostoHelperDate.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/helper/NostoHelperIframe.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/helper/NostoHelperPrice.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/http/NostoHttpRequest.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/http/NostoHttpRequestAdapter.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/http/NostoHttpRequestAdapterCurl.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/http/NostoHttpRequestAdapterSocket.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/http/NostoHttpResponse.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
@@ -56,7 +57,7 @@ class NostoHttpResponse
56
  /**
57
  * @var int runtime cache for the http response code.
58
  */
59
- private $_code;
60
 
61
  /**
62
  * Constructor.
@@ -117,7 +118,7 @@ class NostoHttpResponse
117
  */
118
  public function getCode()
119
  {
120
- if (is_null($this->_code)) {
121
  $code = 0;
122
  if (!empty($this->headers)) {
123
  foreach ($this->headers as $header) {
@@ -128,9 +129,9 @@ class NostoHttpResponse
128
  }
129
  }
130
  }
131
- $this->_code = $code;
132
  }
133
- return $this->_code;
134
  }
135
 
136
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
57
  /**
58
  * @var int runtime cache for the http response code.
59
  */
60
+ private $code;
61
 
62
  /**
63
  * Constructor.
118
  */
119
  public function getCode()
120
  {
121
+ if (is_null($this->code)) {
122
  $code = 0;
123
  if (!empty($this->headers)) {
124
  foreach ($this->headers as $header) {
129
  }
130
  }
131
  }
132
+ $this->code = $code;
133
  }
134
+ return $this->code;
135
  }
136
 
137
  /**
lib/nosto/php-sdk/src/classes/oauth/NostoOAuthClient.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
@@ -39,8 +40,8 @@
39
  */
40
  class NostoOAuthClient
41
  {
42
- const PATH_AUTH = '?client_id={cid}&redirect_uri={uri}&response_type=code&scope={sco}&lang={iso}';
43
- const PATH_TOKEN = '/token?code={cod}&client_id={cid}&client_secret={sec}&redirect_uri={uri}&grant_type=authorization_code';
44
 
45
  /**
46
  * @var string the nosto oauth endpoint base url.
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
40
  */
41
  class NostoOAuthClient
42
  {
43
+ const PATH_AUTH = '?client_id={cid}&redirect_uri={uri}&response_type=code&scope={sco}&lang={iso}'; // @codingStandardsIgnoreLine
44
+ const PATH_TOKEN = '/token?code={cod}&client_id={cid}&client_secret={sec}&redirect_uri={uri}&grant_type=authorization_code'; // @codingStandardsIgnoreLine
45
 
46
  /**
47
  * @var string the nosto oauth endpoint base url.
lib/nosto/php-sdk/src/classes/oauth/NostoOAuthToken.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/operation/NostoOperationAccount.php CHANGED
@@ -31,6 +31,7 @@
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
  * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
  * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/classes/operation/NostoOperationExchangeRate.php CHANGED
@@ -31,6 +31,7 @@
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
  * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
@@ -74,11 +75,13 @@ class NostoOperationExchangeRate
74
  $request = $this->initApiRequest();
75
  $response = $request->post($this->getCollectionAsJson());
76
  if ($response->getCode() !== 200) {
77
- throw new NostoException(
78
  sprintf(
79
  'Failed to update currencyCode exchange rates for account %s.',
80
  $this->account->getName()
81
- )
 
 
82
  );
83
  }
84
  return true;
@@ -94,7 +97,7 @@ class NostoOperationExchangeRate
94
  {
95
  $token = $this->account->getApiToken(NostoApiToken::API_EXCHANGE_RATES);
96
  if (is_null($token)) {
97
- throw new NostoException(
98
  sprintf(
99
  'No `%s` API token found for account "%s".',
100
  NostoApiToken::API_EXCHANGE_RATES,
@@ -142,7 +145,7 @@ class NostoOperationExchangeRate
142
  );
143
  }
144
  if (empty($data['rates'])) {
145
- throw new NostoException(
146
  sprintf(
147
  'Failed to update currencyCode exchange rates for account %s. No rates found in collection.',
148
  $this->account->getName()
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
  * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
75
  $request = $this->initApiRequest();
76
  $response = $request->post($this->getCollectionAsJson());
77
  if ($response->getCode() !== 200) {
78
+ Nosto::throwHttpException(
79
  sprintf(
80
  'Failed to update currencyCode exchange rates for account %s.',
81
  $this->account->getName()
82
+ ),
83
+ $request,
84
+ $response
85
  );
86
  }
87
  return true;
97
  {
98
  $token = $this->account->getApiToken(NostoApiToken::API_EXCHANGE_RATES);
99
  if (is_null($token)) {
100
+ Nosto::throwHttpException(
101
  sprintf(
102
  'No `%s` API token found for account "%s".',
103
  NostoApiToken::API_EXCHANGE_RATES,
145
  );
146
  }
147
  if (empty($data['rates'])) {
148
+ Nosto::throwException(
149
  sprintf(
150
  'Failed to update currencyCode exchange rates for account %s. No rates found in collection.',
151
  $this->account->getName()
lib/nosto/php-sdk/src/classes/operation/NostoOperationProduct.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/config.inc.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  // Interfaces
@@ -65,6 +66,8 @@ require_once(dirname(__FILE__).'/classes/collection/NostoExchangeRateCollection.
65
 
66
  require_once(dirname(__FILE__).'/classes/exception/NostoException.php');
67
  require_once(dirname(__FILE__).'/classes/exception/NostoHttpException.php');
 
 
68
 
69
  require_once(dirname(__FILE__).'/classes/export/NostoExporter.php');
70
  require_once(dirname(__FILE__).'/classes/export/NostoExportProductCollection.php');
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  // Interfaces
66
 
67
  require_once(dirname(__FILE__).'/classes/exception/NostoException.php');
68
  require_once(dirname(__FILE__).'/classes/exception/NostoHttpException.php');
69
+ require_once(dirname(__FILE__).'/classes/exception/NostoHttpResponseException.php');
70
+ require_once(dirname(__FILE__).'/classes/exception/NostoApiResponseException.php');
71
 
72
  require_once(dirname(__FILE__).'/classes/export/NostoExporter.php');
73
  require_once(dirname(__FILE__).'/classes/export/NostoExportProductCollection.php');
lib/nosto/php-sdk/src/interfaces/NostoExchangeRateInterface.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/interfaces/NostoExportCollectionInterface.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/interfaces/NostoOAuthClientMetaDataInterface.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/interfaces/NostoProductInterface.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
@@ -39,6 +40,12 @@
39
  */
40
  interface NostoProductInterface
41
  {
 
 
 
 
 
 
42
  /**
43
  * Returns the absolute url to the product page in the shop frontend.
44
  *
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
40
  */
41
  interface NostoProductInterface
42
  {
43
+ const IN_STOCK = 'InStock';
44
+ const OUT_OF_STOCK = 'OutOfStock';
45
+ const INVISIBLE = 'Invisible';
46
+ const DISCONTINUED = 'Discontinued';
47
+ const ADD_TO_CART = 'add-to-cart';
48
+
49
  /**
50
  * Returns the absolute url to the product page in the shop frontend.
51
  *
lib/nosto/php-sdk/src/interfaces/NostoValidatableInterface.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/interfaces/account/NostoAccountInterface.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/interfaces/account/NostoAccountMetaDataBillingDetailsInterface.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/interfaces/account/NostoAccountMetaDataIframeInterface.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/interfaces/account/NostoAccountMetaDataInterface.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
@@ -142,4 +143,11 @@ interface NostoAccountMetaDataInterface
142
  * @return string
143
  */
144
  public function getDefaultVariationId();
 
 
 
 
 
 
 
145
  }
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
143
  * @return string
144
  */
145
  public function getDefaultVariationId();
146
+
147
+ /**
148
+ * Returns the account details
149
+ *
150
+ * @return string
151
+ */
152
+ public function getDetails();
153
  }
lib/nosto/php-sdk/src/interfaces/account/NostoAccountMetaDataOwnerInterface.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/interfaces/order/NostoOrderBuyerInterface.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/interfaces/order/NostoOrderInterface.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
@@ -80,4 +81,11 @@ interface NostoOrderInterface
80
  * @return NostoOrderStatusInterface the model.
81
  */
82
  public function getOrderStatus();
 
 
 
 
 
 
 
83
  }
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
81
  * @return NostoOrderStatusInterface the model.
82
  */
83
  public function getOrderStatus();
84
+
85
+ /**
86
+ * Returns the external order ref.
87
+ *
88
+ * @return string the external order ref.
89
+ */
90
+ public function getExternalOrderRef();
91
  }
lib/nosto/php-sdk/src/interfaces/order/NostoOrderPurchasedItemInterface.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/interfaces/order/NostoOrderStatusInterface.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Copyright (c) 2015, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
@@ -29,8 +29,9 @@
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
- * @copyright 2015 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
34
  */
35
 
36
  /**
1
  <?php
2
  /**
3
+ * Copyright (c) 2016, Nosto Solutions Ltd
4
  * All rights reserved.
5
  *
6
  * Redistribution and use in source and binary forms, with or without modification,
29
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
  *
31
  * @author Nosto Solutions Ltd <contact@nosto.com>
32
+ * @copyright 2016 Nosto Solutions Ltd
33
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
34
+ *
35
  */
36
 
37
  /**
lib/nosto/php-sdk/src/js/src/NostoIframe.js CHANGED
@@ -1,5 +1,5 @@
1
- /**
2
- * Copyright (c) 2015, Nosto Solutions Ltd
3
  * All rights reserved.
4
  *
5
  * Redistribution and use in source and binary forms, with or without modification,
@@ -28,8 +28,9 @@
28
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
  *
30
  * @author Nosto Solutions Ltd <contact@nosto.com>
31
- * @copyright 2015 Nosto Solutions Ltd
32
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
 
33
  */
34
 
35
  // Define the "Nosto" namespace if not already defined.
1
+ /*
2
+ * Copyright (c) 2016, Nosto Solutions Ltd
3
  * All rights reserved.
4
  *
5
  * Redistribution and use in source and binary forms, with or without modification,
28
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
  *
30
  * @author Nosto Solutions Ltd <contact@nosto.com>
31
+ * @copyright 2016 Nosto Solutions Ltd
32
  * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
33
+ *
34
  */
35
 
36
  // Define the "Nosto" namespace if not already defined.
package.xml CHANGED
@@ -1,14 +1,14 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Nosto_Tagging</name>
4
- <version>2.6.14</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Personalization for Magento</summary>
10
  <description>Increase your conversion rate and average order value by delivering your customers personalized product recommendations throughout their shopping journey.</description>
11
- <notes>- Bug fixes</notes>
12
  <authors>
13
  <author>
14
  <name>Nosto</name>
@@ -16,106 +16,106 @@
16
  <email>magento@nosto.com</email>
17
  </author>
18
  </authors>
19
- <date>2016-05-13</date>
20
- <time>14:15:56</time>
21
  <contents>
22
  <target name="magecommunity">
23
  <dir name="Nosto">
24
  <dir name="Tagging">
25
  <dir name="Block">
26
- <file name="Addtocart.php" hash="61d645e5cc9e54a5170ae03797f0426a"/>
27
  <dir name="Adminhtml">
28
- <file name="Iframe.php" hash="f9e8bc4dcdff141b2f070777d025960d"/>
29
- <file name="Wizard.php" hash="f98931a1a6e327c0d05e43b73063f672"/>
30
  </dir>
31
- <file name="Cart.php" hash="c1c707dad76c98d807d5160b90c06ac6"/>
32
- <file name="Category.php" hash="177a5d8d9f1ba9e246d149c228c3aec8"/>
33
- <file name="Customer.php" hash="d35777ca399244e4fb441456320f8ad7"/>
34
- <file name="Element.php" hash="e5b12bb118b92eb7075ff7a6e16e0eba"/>
35
- <file name="Embed.php" hash="e8b628b6bc49fb865697552300d08526"/>
36
- <file name="Meta.php" hash="1f761e731214b7572ef139d9e0577ea1"/>
37
- <file name="Order.php" hash="32115070d380e654f093da11dd6e4d85"/>
38
- <file name="Product.php" hash="ac7b85e6d03d94d03c59416b622b0039"/>
39
  <file name="Searchterm.php" hash="884cbca118486d922e73821242d8fc83"/>
40
  </dir>
41
  <dir name="Helper">
42
- <file name="Account.php" hash="30f3d55fb86876108a0440ffc3153610"/>
43
- <file name="Customer.php" hash="8faa27321f26ece8ff5ebf12058f546f"/>
44
- <file name="Data.php" hash="11b848036443a431eafbbd155b72e40d"/>
45
- <file name="Date.php" hash="1a108a4ec8169b73411b6c11b86a1d80"/>
46
- <file name="Oauth.php" hash="d8932bd97b03116774e7aaac62a25103"/>
47
- <file name="Price.php" hash="364bb50e9ee5453a4d61bf3e484cd894"/>
48
- <file name="Url.php" hash="289294904d246c56e4de96798927a7f6"/>
49
  </dir>
50
  <dir name="Model">
51
- <file name="Base.php" hash="c4246068fa6667578188a8c1fc289334"/>
52
  <dir name="Container">
53
- <file name="Cart.php" hash="20d2936693361999575f1e6ac56f2e40"/>
54
- <file name="Customer.php" hash="b03bca89845b6c939521add8df1f7e9a"/>
55
  </dir>
56
- <file name="Customer.php" hash="6d992a43a75f29836ed1450e130df560"/>
57
  <dir name="Export">
58
  <dir name="Collection">
59
- <file name="Order.php" hash="29c370bdfcaedab833df0abcc83f9f32"/>
60
  </dir>
61
  </dir>
62
  <dir name="Meta">
63
  <dir name="Account">
64
- <file name="Billing.php" hash="353e807f832a37591bf7359857044ca1"/>
65
- <file name="Iframe.php" hash="731e2bf424e1b9d4e00d403f55a87b54"/>
66
- <file name="Owner.php" hash="6fd3228a2758d06f78729c0250f7fd30"/>
67
  </dir>
68
- <file name="Account.php" hash="8bfa659be33a3dd3eeabe4846bdb14c4"/>
69
- <file name="Oauth.php" hash="0863271d8a3db0de93525f0e64308f1c"/>
70
  <dir name="Order">
71
- <file name="Buyer.php" hash="45ee761ba052ef3372846c22e28921d8"/>
72
- <file name="Item.php" hash="d28e1c901b168ad381696dde605551db"/>
73
- <file name="Status.php" hash="795b2e53be043aeb0b27bbd500e2c412"/>
74
  </dir>
75
- <file name="Order.php" hash="1a5d115199f87ead195e0b3510ab1439"/>
76
- <file name="Product.php" hash="0c06e4a7dfd59522f267c825fa37c357"/>
77
  </dir>
78
- <file name="Observer.php" hash="dc91cb5a878ca1fb85b402883a68382f"/>
79
- <file name="Product.php" hash="3630a2a688f013b296d1865e6f32e1d2"/>
80
  <dir name="Resource">
81
  <dir name="Customer">
82
- <file name="Collection.php" hash="0c99b46d5108a6fe31cad1190d8ef47c"/>
83
  </dir>
84
- <file name="Customer.php" hash="f92e4e5334b5e3493e8f04664b20f105"/>
85
  <dir name="Product">
86
- <file name="Collection.php" hash="fe8114fbccd62fe3a0bca18732e5d852"/>
87
  </dir>
88
- <file name="Setup.php" hash="506b08bcb10cbe74e95812c5f646429f"/>
89
  </dir>
90
  <dir name="Service">
91
- <file name="Order.php" hash="63670c0cb5d3cc0804e13e90b47afbb8"/>
92
  </dir>
93
  <dir name="System">
94
  <dir name="Config">
95
  <dir name="Source">
96
- <file name="Image.php" hash="d1fcc96aab01342627b96edf6fad1dd1"/>
97
  </dir>
98
  </dir>
99
  </dir>
100
  </dir>
101
- <file name="bootstrap.php" hash="366135b22b216e1167118021dbf2aacf"/>
102
  <dir name="controllers">
103
  <dir name="Adminhtml">
104
- <file name="NostoController.php" hash="fc79c34f2c363911d47e49207716d6b0"/>
105
  </dir>
106
- <file name="ExportController.php" hash="0e0c8972da54575e8b73c9adb9830c81"/>
107
- <file name="OauthController.php" hash="78a92e0e413bb6d7f2e8eaf594a40f1d"/>
108
  </dir>
109
  <dir name="etc">
110
- <file name="adminhtml.xml" hash="7ea210738a77630f299a14b442f3b8d0"/>
111
- <file name="cache.xml" hash="e874fbbf2eb89b325deb1a62afbcfb4d"/>
112
- <file name="config.xml" hash="caa04383a2d6c212878c966b403e8cb9"/>
113
- <file name="system.xml" hash="7deba6544a09d7af8c07e6b5edc0975a"/>
114
  </dir>
115
  <dir name="sql">
116
  <dir name="tagging_setup">
117
- <file name="mysql4-install-1.2.0.php" hash="3cbc52834c44870859562eec7969b9fd"/>
118
- <file name="mysql4-upgrade-1.1.7-1.2.0.php" hash="0d8eb7990461a9d4b74b479120067aeb"/>
119
  </dir>
120
  </dir>
121
  </dir>
@@ -126,12 +126,12 @@
126
  <dir name="default">
127
  <dir name="default">
128
  <dir name="layout">
129
- <file name="nostotagging.xml" hash="81c0aa3f71e1c509475410e8ec017214"/>
130
  </dir>
131
  <dir name="template">
132
  <dir name="nostotagging">
133
- <file name="iframe.phtml" hash="8b6a8faca7d5ab5240b9411993021ca8"/>
134
- <file name="wizard.phtml" hash="3f92e94e5ee3d3cd9906a6b0942a3a1b"/>
135
  </dir>
136
  </dir>
137
  </dir>
@@ -141,23 +141,23 @@
141
  <dir name="base">
142
  <dir name="default">
143
  <dir name="layout">
144
- <file name="nostotagging.xml" hash="7d69705eb6a9cce411671b792ec2b08b"/>
145
  </dir>
146
  <dir name="template">
147
  <dir name="nostotagging">
148
- <file name="addtocart.phtml" hash="e8776f59ec4c7c7b6eea2fae9d56e2a4"/>
149
- <file name="cart.phtml" hash="fe8a33cf63709d05e4be388b0a92addf"/>
150
  <dir name="category">
151
- <file name="view.phtml" hash="fc09e2770ad6281ec96c8e92accc01f1"/>
152
  </dir>
153
- <file name="category.phtml" hash="81f36742cb4e3adbf9f692cc8f0ea8a8"/>
154
- <file name="customer.phtml" hash="e9bc92bb7f7df989cc706c7eaee3614a"/>
155
- <file name="element.phtml" hash="e1d38981789e632a3607ccf2e171f0cb"/>
156
- <file name="embed.phtml" hash="9193ddd1ae373b68c53f8364f511b0a5"/>
157
- <file name="meta.phtml" hash="c1b862a4993503fae420fb0eba194b00"/>
158
- <file name="order.phtml" hash="a7940109561b6ec9d74c8a566d24c3f3"/>
159
- <file name="product.phtml" hash="9df3ff9f6e363e478d7fd68bd09827b1"/>
160
- <file name="searchterm.phtml" hash="5a61837f4d4b787e24c6133afd43a507"/>
161
  </dir>
162
  </dir>
163
  </dir>
@@ -166,7 +166,7 @@
166
  </target>
167
  <target name="mageetc">
168
  <dir name="modules">
169
- <file name="Nosto_Tagging.xml" hash="1705cb7e6db28388662ef52882d61701"/>
170
  </dir>
171
  </target>
172
  <target name="magelib">
@@ -174,89 +174,91 @@
174
  <dir name="php-sdk">
175
  <dir name="src">
176
  <dir name="classes">
177
- <file name="Nosto.php" hash="c595c5f646f6e513b6604848f8d10118"/>
178
- <file name="NostoAccount.php" hash="c422a7f104c5ebc6eac9d83986280579"/>
179
- <file name="NostoAccountMeta.php" hash="8a30b97aaf66823ff554ba4ea6956cad"/>
180
- <file name="NostoCipher.php" hash="a3d7d148311aa0319387c0918e5e26dc"/>
181
- <file name="NostoCurrency.php" hash="e1b92eb7f46c51c83abb2afe34a30c3b"/>
182
- <file name="NostoCurrencyCode.php" hash="70849a5592e559ae88c5648930055905"/>
183
- <file name="NostoCurrencyFormat.php" hash="dc1f0bc1dff3d855ff3fcea970ea16ab"/>
184
- <file name="NostoCurrencyInfo.php" hash="4706d8e1de526d2a5fe2755028ff887b"/>
185
- <file name="NostoCurrencySymbol.php" hash="9b84b959987edb5b8c8fbf49e3d2df2e"/>
186
- <file name="NostoDotEnv.php" hash="90b23c1b02095c9368372f1d5346c3f9"/>
187
- <file name="NostoExchangeRate.php" hash="f23f06c5bc1bcda5e4164edd8a0b6ca7"/>
188
- <file name="NostoMessage.php" hash="5933eadd2ad08427010b0bf16657266b"/>
189
- <file name="NostoObject.php" hash="187808f0c55d02294d41e9395f4c5d58"/>
190
- <file name="NostoOrderConfirmation.php" hash="2a3fd5efb196bc0dcb7ad57fb61a81d0"/>
191
- <file name="NostoProductReCrawl.php" hash="f370c539409dd74fc98b7aa1ea0f6387"/>
192
- <file name="NostoValidator.php" hash="2096ddc9979ec77f8f0b1ec58b459329"/>
193
  <dir name="api">
194
- <file name="NostoApiRequest.php" hash="fd6d7d1b33137a7b7eaef5edbd50e2ec"/>
195
- <file name="NostoApiToken.php" hash="72f179170de6c469b8d8e97d40d0aec4"/>
196
  </dir>
197
  <dir name="collection">
198
- <file name="NostoCollection.php" hash="35cea0282628354413f629062b58663a"/>
199
- <file name="NostoExchangeRateCollection.php" hash="28bd7b287b825a780300b2b3790c8209"/>
200
- <file name="NostoOrderCollection.php" hash="db6f517948c1258e1521ceb1ce49d477"/>
201
- <file name="NostoProductCollection.php" hash="3ae29dbbcb7effa234fa83461d3e6901"/>
202
  </dir>
203
  <dir name="exception">
204
- <file name="NostoException.php" hash="c4610fb70278d01bd85bc83b8e74df30"/>
205
- <file name="NostoHttpException.php" hash="dabf4298746db898c8fe709ea9e25818"/>
 
 
206
  </dir>
207
  <dir name="export">
208
- <file name="NostoExportOrderCollection.php" hash="91bdd99a2be75be062fe5c7cde1803e4"/>
209
- <file name="NostoExportProductCollection.php" hash="3be4f5974cf15adc1f79136566efaf48"/>
210
- <file name="NostoExporter.php" hash="72ad0af4bce8e57ada5a29e3634df94f"/>
211
  </dir>
212
  <dir name="helper">
213
- <file name="NostoHelper.php" hash="f4ca6c78e047fec93c32b7eb822b0692"/>
214
- <file name="NostoHelperDate.php" hash="081a2d8bfec710f2baa52192a99a2658"/>
215
- <file name="NostoHelperIframe.php" hash="303668f25103c245396b43811a15c28d"/>
216
- <file name="NostoHelperPrice.php" hash="ee9f217dc1b8e0fc679fb56ca3fd3ca1"/>
217
  </dir>
218
  <dir name="http">
219
- <file name="NostoHttpRequest.php" hash="46cc219301911bd29383d7efd559a4cf"/>
220
- <file name="NostoHttpRequestAdapter.php" hash="d8bf8e5db44ad982b655372529f4d88c"/>
221
- <file name="NostoHttpRequestAdapterCurl.php" hash="0af177b860f6aef58b69154ec2f7c988"/>
222
- <file name="NostoHttpRequestAdapterSocket.php" hash="40f5ca4bbbd0dcc46e8cd3af981b40e0"/>
223
- <file name="NostoHttpResponse.php" hash="9982d3ed15bfcc8f0147b2b4cc400223"/>
224
  </dir>
225
  <dir name="oauth">
226
- <file name="NostoOAuthClient.php" hash="2672d9de80d23c91776d97b9803d01b4"/>
227
- <file name="NostoOAuthToken.php" hash="f81c1c1e5c4fc2010162d8f69de2cb33"/>
228
  </dir>
229
  <dir name="operation">
230
- <file name="NostoOperationAccount.php" hash="3d41614e4e81b1b625dc688faf984f64"/>
231
- <file name="NostoOperationExchangeRate.php" hash="c46784f0b73fb6343a46627dc1391bdd"/>
232
- <file name="NostoOperationProduct.php" hash="eccdbd3d54af0ad3779e9edfcd760161"/>
233
  </dir>
234
  </dir>
235
- <file name="config.inc.php" hash="61c514981d155acdd4f60e3cc0b47139"/>
236
  <dir name="interfaces">
237
- <file name="NostoExchangeRateInterface.php" hash="217538d3c06e0eb2e5349b4dfd1cb1a6"/>
238
- <file name="NostoExportCollectionInterface.php" hash="63c833c17fe43ce48b45e0f552313a8b"/>
239
- <file name="NostoOAuthClientMetaDataInterface.php" hash="75a82417bfc27cd82e41ea9810d31428"/>
240
- <file name="NostoProductInterface.php" hash="687c6f112f76c2cfed28b067ef96b855"/>
241
- <file name="NostoValidatableInterface.php" hash="57ad8b28225344127843b97049f5868d"/>
242
  <dir name="account">
243
- <file name="NostoAccountInterface.php" hash="063da0d25a5420f4e727938467c078f3"/>
244
- <file name="NostoAccountMetaDataBillingDetailsInterface.php" hash="ef31f0c3b41591fd76f85a25021f0fe4"/>
245
- <file name="NostoAccountMetaDataIframeInterface.php" hash="c739e6a3ef39a308df6852361f2fd1d7"/>
246
- <file name="NostoAccountMetaDataInterface.php" hash="f31c8943b0de8b3c6bf8dd5cd3ce0be9"/>
247
- <file name="NostoAccountMetaDataOwnerInterface.php" hash="4c037b8cb1b529c16c91f25cce2b0ed7"/>
248
  </dir>
249
  <dir name="order">
250
- <file name="NostoOrderBuyerInterface.php" hash="890884e45bcca61f96f0f98cda40b6c1"/>
251
- <file name="NostoOrderInterface.php" hash="d341b4faf020bfca01336c5d60ca5e48"/>
252
- <file name="NostoOrderPurchasedItemInterface.php" hash="e33b94290465eea80d614db35144b75a"/>
253
- <file name="NostoOrderStatusInterface.php" hash="8c89cf4296629b635f52b53a9b800b1f"/>
254
  </dir>
255
  </dir>
256
  <dir name="js">
257
  <file name="NostoIframe.min.js" hash="5fd9f5b418dd796c469aaa0c58b34aaa"/>
258
  <dir name="src">
259
- <file name="NostoIframe.js" hash="ca03585215f846258d2dbb58724e48fa"/>
260
  </dir>
261
  </dir>
262
  <dir name="libs">
@@ -276,7 +278,7 @@
276
  <target name="mageweb">
277
  <dir name="js">
278
  <dir name="nosto">
279
- <file name="iframeHandler.min.js" hash="c13b574b829791cd061ed63c81060680"/>
280
  <file name="iframeResizer.min.js" hash="163b065c9dd702dc364913a951b81fee"/>
281
  </dir>
282
  </dir>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Nosto_Tagging</name>
4
+ <version>2.6.15</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Personalization for Magento</summary>
10
  <description>Increase your conversion rate and average order value by delivering your customers personalized product recommendations throughout their shopping journey.</description>
11
+ <notes>- Add support for sending the account details &amp; new platform UI&amp;#xD;- Add check if table `nosto_tagging_customer` already exists before creating it&amp;#xD;- Add visitor checksum tagging&amp;#xD;- Strip out _Main Website_ from the default account title&amp;#xD;- Disable tagging categories if there are hidden categories in the category path</notes>
12
  <authors>
13
  <author>
14
  <name>Nosto</name>
16
  <email>magento@nosto.com</email>
17
  </author>
18
  </authors>
19
+ <date>2016-06-16</date>
20
+ <time>08:12:43</time>
21
  <contents>
22
  <target name="magecommunity">
23
  <dir name="Nosto">
24
  <dir name="Tagging">
25
  <dir name="Block">
26
+ <file name="Addtocart.php" hash="b5107b218baecbbcceeeeed451e65c3f"/>
27
  <dir name="Adminhtml">
28
+ <file name="Iframe.php" hash="322da1336a0ce7cd7222fc69ef819693"/>
29
+ <file name="Wizard.php" hash="7a67ca3cf25ccd8085426a3bdda3be9b"/>
30
  </dir>
31
+ <file name="Cart.php" hash="2d4ec5f8f3adc5dc9760b6d577604773"/>
32
+ <file name="Category.php" hash="fcdd8eabff592fbfd32e70e9e8ffac48"/>
33
+ <file name="Customer.php" hash="866c1150fb798acd475814c793670f6b"/>
34
+ <file name="Element.php" hash="1ed6a3f6e815a36c0cc8e2ac26e97237"/>
35
+ <file name="Embed.php" hash="5c4cf0bcc78e28df5fd877c798e8293e"/>
36
+ <file name="Meta.php" hash="dcf83fc72a7c3ea6349f32dbfdf469d8"/>
37
+ <file name="Order.php" hash="2bd05136ccce9f53c8657f0c1bb8da8c"/>
38
+ <file name="Product.php" hash="d928da8c2196537b2d7b370fd60c84f6"/>
39
  <file name="Searchterm.php" hash="884cbca118486d922e73821242d8fc83"/>
40
  </dir>
41
  <dir name="Helper">
42
+ <file name="Account.php" hash="cbdca4a9968d1529031a34fb0a4ebb48"/>
43
+ <file name="Customer.php" hash="f87def2d435ff46ae9708d62892424f5"/>
44
+ <file name="Data.php" hash="5594525f14dfc2c011cae77eadc09a82"/>
45
+ <file name="Date.php" hash="7d1b55282770627291f781dc9dd55eff"/>
46
+ <file name="Oauth.php" hash="a9ddbf62971f77b3e86c05bb4a23ee66"/>
47
+ <file name="Price.php" hash="79218677cb2d9082b02227e7f433e26c"/>
48
+ <file name="Url.php" hash="f6f540650274ea87bc703b83d600d2c8"/>
49
  </dir>
50
  <dir name="Model">
51
+ <file name="Base.php" hash="512d57dbb91fec6b61d331ffacc93f20"/>
52
  <dir name="Container">
53
+ <file name="Cart.php" hash="48983d6bf94b57ef6583969dcaec9982"/>
54
+ <file name="Customer.php" hash="08ed2d6a1661a2499f1fd9963dbbef0d"/>
55
  </dir>
56
+ <file name="Customer.php" hash="72c0d0d5f2f22881f75e82aa2488ea59"/>
57
  <dir name="Export">
58
  <dir name="Collection">
59
+ <file name="Order.php" hash="9255336f9ae7c7cf4b34b7ebba3e2e83"/>
60
  </dir>
61
  </dir>
62
  <dir name="Meta">
63
  <dir name="Account">
64
+ <file name="Billing.php" hash="d26a6d06313a546cc197832c8b6a72e6"/>
65
+ <file name="Iframe.php" hash="5c603cefadec90159b2e7ee1c36cb9a0"/>
66
+ <file name="Owner.php" hash="c1e6a5ceb14800db9d1f38b5441673d5"/>
67
  </dir>
68
+ <file name="Account.php" hash="bb3d8121f1e9c331a8fd61e2edd8ae20"/>
69
+ <file name="Oauth.php" hash="9460f80c324c6cf89f26296e4d4d4a20"/>
70
  <dir name="Order">
71
+ <file name="Buyer.php" hash="e15f9c65f7323630982eb73131716cad"/>
72
+ <file name="Item.php" hash="615815cf039d733e3363bf2561cf90f2"/>
73
+ <file name="Status.php" hash="1277dabe24836edc27bba448a0c33afe"/>
74
  </dir>
75
+ <file name="Order.php" hash="c402e82e20a2282bfe545a9c4481c7b9"/>
76
+ <file name="Product.php" hash="f06380fcb7a02d31e4db83f28ac08924"/>
77
  </dir>
78
+ <file name="Observer.php" hash="1af16bc0aae56e93b7ec1ec3a7c7ae7c"/>
79
+ <file name="Product.php" hash="df071b5a356793a1a2d3eae36a87d713"/>
80
  <dir name="Resource">
81
  <dir name="Customer">
82
+ <file name="Collection.php" hash="cb50bd89badc31867fc8927afff833ff"/>
83
  </dir>
84
+ <file name="Customer.php" hash="2db99b6ea05d69d33747525f3895fe35"/>
85
  <dir name="Product">
86
+ <file name="Collection.php" hash="b16d1c3559661fa840a79637a01ddd33"/>
87
  </dir>
88
+ <file name="Setup.php" hash="688082f95af4cd0676f9dac374c48fc3"/>
89
  </dir>
90
  <dir name="Service">
91
+ <file name="Order.php" hash="35c43839685550db5afc5d184d881011"/>
92
  </dir>
93
  <dir name="System">
94
  <dir name="Config">
95
  <dir name="Source">
96
+ <file name="Image.php" hash="c407a3912727093fd334a800948d7b23"/>
97
  </dir>
98
  </dir>
99
  </dir>
100
  </dir>
101
+ <file name="bootstrap.php" hash="2ee453bbe4ead0b3db6da08c30c6ddb5"/>
102
  <dir name="controllers">
103
  <dir name="Adminhtml">
104
+ <file name="NostoController.php" hash="1620dd4ea1bcbe558d32b0711211afa3"/>
105
  </dir>
106
+ <file name="ExportController.php" hash="b3600647f08ba4b3e094ba960d756513"/>
107
+ <file name="OauthController.php" hash="2251bba8997207421594086ea444afe6"/>
108
  </dir>
109
  <dir name="etc">
110
+ <file name="adminhtml.xml" hash="485ad85df190403f03391ffea0ecac2a"/>
111
+ <file name="cache.xml" hash="c63a5c181de4a93e7dccd5c485e167ff"/>
112
+ <file name="config.xml" hash="7d7cdf5d40f7f9dc3a1b6c322a468cc1"/>
113
+ <file name="system.xml" hash="13bf5e2b575f9d352c87f65beff1ce55"/>
114
  </dir>
115
  <dir name="sql">
116
  <dir name="tagging_setup">
117
+ <file name="mysql4-install-1.2.0.php" hash="be30ee06f46c101c5f078f9d55bb139d"/>
118
+ <file name="mysql4-upgrade-1.1.7-1.2.0.php" hash="ff774ae3c70648b33eb5eae68debd555"/>
119
  </dir>
120
  </dir>
121
  </dir>
126
  <dir name="default">
127
  <dir name="default">
128
  <dir name="layout">
129
+ <file name="nostotagging.xml" hash="ba938d9b7c56b27124870641c30d57a1"/>
130
  </dir>
131
  <dir name="template">
132
  <dir name="nostotagging">
133
+ <file name="iframe.phtml" hash="3d60a678dceaedc806c85741238a8346"/>
134
+ <file name="wizard.phtml" hash="02b937a25e316e9dfe957104e44be0be"/>
135
  </dir>
136
  </dir>
137
  </dir>
141
  <dir name="base">
142
  <dir name="default">
143
  <dir name="layout">
144
+ <file name="nostotagging.xml" hash="5086a82ef8d91aea96d19301ead29b35"/>
145
  </dir>
146
  <dir name="template">
147
  <dir name="nostotagging">
148
+ <file name="addtocart.phtml" hash="2c66033eae4cdb64b246e0fad23c1a43"/>
149
+ <file name="cart.phtml" hash="7e61c0880447f7ea266c3691d8f8172c"/>
150
  <dir name="category">
151
+ <file name="view.phtml" hash="648ac0a4608a116e91d469147ada5c30"/>
152
  </dir>
153
+ <file name="category.phtml" hash="61c53d7e8804cc58ecce26e66d2d0a6f"/>
154
+ <file name="customer.phtml" hash="a535eccc88ce34c56e19891bcc6aaaa9"/>
155
+ <file name="element.phtml" hash="21c05a2c0db519e876c058ea087d6383"/>
156
+ <file name="embed.phtml" hash="355769db8c273b7f8c92069b2262add0"/>
157
+ <file name="meta.phtml" hash="7aa206af71e02c9d24129662dd5b7aef"/>
158
+ <file name="order.phtml" hash="3d36a75c03d767d294d61015277ac57f"/>
159
+ <file name="product.phtml" hash="cf68284ba208f46184619f2a63b01b5a"/>
160
+ <file name="searchterm.phtml" hash="20ff1bbc903c8879e327376cfcdc5e74"/>
161
  </dir>
162
  </dir>
163
  </dir>
166
  </target>
167
  <target name="mageetc">
168
  <dir name="modules">
169
+ <file name="Nosto_Tagging.xml" hash="c5a467ee1111bff376e98b71da113553"/>
170
  </dir>
171
  </target>
172
  <target name="magelib">
174
  <dir name="php-sdk">
175
  <dir name="src">
176
  <dir name="classes">
177
+ <file name="Nosto.php" hash="2c7b6c163a017b509a85a5c2a6869e42"/>
178
+ <file name="NostoAccount.php" hash="6109b8ca5348c4bf71afd68f6b356c95"/>
179
+ <file name="NostoAccountMeta.php" hash="f6e81dbead7b9425afed98f13faec9c9"/>
180
+ <file name="NostoCipher.php" hash="f0af45e9fc48fe2734b6798ee5e3cdfc"/>
181
+ <file name="NostoCurrency.php" hash="511399f42ff5793de445944b5456c28e"/>
182
+ <file name="NostoCurrencyCode.php" hash="e2f14283c22f7aac9744150b9bd6457a"/>
183
+ <file name="NostoCurrencyFormat.php" hash="e676309a9f9420f0912bbf65b5363bda"/>
184
+ <file name="NostoCurrencyInfo.php" hash="2c8b7f50bfa483f1df764909441351fa"/>
185
+ <file name="NostoCurrencySymbol.php" hash="9f16f03a3d7187710daa37dac7ecf1c2"/>
186
+ <file name="NostoDotEnv.php" hash="be272235f6d48705023beeb6a24f2ce9"/>
187
+ <file name="NostoExchangeRate.php" hash="d6b70ad6bb434aba02bc450f1d066d34"/>
188
+ <file name="NostoMessage.php" hash="48912d9e00c08b5b5374eee368067cb4"/>
189
+ <file name="NostoObject.php" hash="0a348871fed339e7bdc57237e7947441"/>
190
+ <file name="NostoOrderConfirmation.php" hash="4f3ceb7ecbbdd2b78824e5d030fd60cf"/>
191
+ <file name="NostoProductReCrawl.php" hash="0b24f2fb00c9601e9b3d529f61a23bc5"/>
192
+ <file name="NostoValidator.php" hash="70523f08482bd8ef3a1a52a7fda2e237"/>
193
  <dir name="api">
194
+ <file name="NostoApiRequest.php" hash="e3f7acbded105c2c521233e25f4c740b"/>
195
+ <file name="NostoApiToken.php" hash="4db43866f41dfa8739942018e90bffa0"/>
196
  </dir>
197
  <dir name="collection">
198
+ <file name="NostoCollection.php" hash="9e85a39ac3a860becd63d2d3cc64659f"/>
199
+ <file name="NostoExchangeRateCollection.php" hash="c06337ff17993eb7da1f2b653a74bccb"/>
200
+ <file name="NostoOrderCollection.php" hash="57cf60f4c4bc7ad57211d9c542420e15"/>
201
+ <file name="NostoProductCollection.php" hash="fcae6d129e8fad82099a05600fef8eea"/>
202
  </dir>
203
  <dir name="exception">
204
+ <file name="NostoApiResponseException.php" hash="e5430f3d3cfdc1a8f02cc68cb351da40"/>
205
+ <file name="NostoException.php" hash="d73bdc24769b5f9483a46b218254c488"/>
206
+ <file name="NostoHttpException.php" hash="9abf965891309b45ab9d0cd60382432e"/>
207
+ <file name="NostoHttpResponseException.php" hash="1549798afd49cf52e522fd6d8d9481f3"/>
208
  </dir>
209
  <dir name="export">
210
+ <file name="NostoExportOrderCollection.php" hash="9e1c115ef84617f96e9896ffc67f3586"/>
211
+ <file name="NostoExportProductCollection.php" hash="47549ca2651eb2223602506e48f54a97"/>
212
+ <file name="NostoExporter.php" hash="6c242c8b66a504483bff29ee83e795b8"/>
213
  </dir>
214
  <dir name="helper">
215
+ <file name="NostoHelper.php" hash="87ab4af83eb0f346238677e07acdd49e"/>
216
+ <file name="NostoHelperDate.php" hash="071e881ba63521bd3adfa50d14acfe43"/>
217
+ <file name="NostoHelperIframe.php" hash="a83dd911b45db7bd69bbfa38a6bb9d3b"/>
218
+ <file name="NostoHelperPrice.php" hash="15caf64dcf71a420a3e54612c181d470"/>
219
  </dir>
220
  <dir name="http">
221
+ <file name="NostoHttpRequest.php" hash="d58478a568530607a2e8977993a0ebed"/>
222
+ <file name="NostoHttpRequestAdapter.php" hash="e3ee66855cb2a81795172d85cafd75f0"/>
223
+ <file name="NostoHttpRequestAdapterCurl.php" hash="15fd9b4153d7433ac101b742aa8cd69d"/>
224
+ <file name="NostoHttpRequestAdapterSocket.php" hash="5656a7ffba3b3ea365969ca5cdafc8e3"/>
225
+ <file name="NostoHttpResponse.php" hash="6e6b6a155679604637e86b2a1faa29db"/>
226
  </dir>
227
  <dir name="oauth">
228
+ <file name="NostoOAuthClient.php" hash="d0ffcdcac250639715bfc1927f10e59c"/>
229
+ <file name="NostoOAuthToken.php" hash="b771e384b2751a0255f0f5755f5fb6c6"/>
230
  </dir>
231
  <dir name="operation">
232
+ <file name="NostoOperationAccount.php" hash="dc7e52907b64b5e5149814bb048eb283"/>
233
+ <file name="NostoOperationExchangeRate.php" hash="523c253cdd85612333b3e614bcb4aa37"/>
234
+ <file name="NostoOperationProduct.php" hash="5788862288b3d39424a4d8f6a677b97d"/>
235
  </dir>
236
  </dir>
237
+ <file name="config.inc.php" hash="2588b6b13b9877dd14a1d4d7d0747c2f"/>
238
  <dir name="interfaces">
239
+ <file name="NostoExchangeRateInterface.php" hash="6c68bd4b564021cf0cb7e3f5b4b16ebe"/>
240
+ <file name="NostoExportCollectionInterface.php" hash="5de9b4dbbbbc1d1b41a53990536a51b5"/>
241
+ <file name="NostoOAuthClientMetaDataInterface.php" hash="98f06f774b4a9af07ef4024bb49ce447"/>
242
+ <file name="NostoProductInterface.php" hash="a6047977f419ab47564a69aede34526c"/>
243
+ <file name="NostoValidatableInterface.php" hash="9a14e13c2f20653ceb202b8f247e46ce"/>
244
  <dir name="account">
245
+ <file name="NostoAccountInterface.php" hash="c84dea82c07743a49049b2b9f526132d"/>
246
+ <file name="NostoAccountMetaDataBillingDetailsInterface.php" hash="7e294f596d899af9aa5cf8dea94390e0"/>
247
+ <file name="NostoAccountMetaDataIframeInterface.php" hash="11ae6877125b32ca25a2545b41f91b9e"/>
248
+ <file name="NostoAccountMetaDataInterface.php" hash="c9d9a739d88db6cc4b3137f06ef930b7"/>
249
+ <file name="NostoAccountMetaDataOwnerInterface.php" hash="be8d01705b37778a8ed61e01db2178f6"/>
250
  </dir>
251
  <dir name="order">
252
+ <file name="NostoOrderBuyerInterface.php" hash="400f680f5e1827bf76fea06a454c3ecd"/>
253
+ <file name="NostoOrderInterface.php" hash="b5c3f5d59b7ac97b925e13ef9d13d96b"/>
254
+ <file name="NostoOrderPurchasedItemInterface.php" hash="978d961aefce11ec732fa2257d667df0"/>
255
+ <file name="NostoOrderStatusInterface.php" hash="80dc0acc4644d007279af286515d8073"/>
256
  </dir>
257
  </dir>
258
  <dir name="js">
259
  <file name="NostoIframe.min.js" hash="5fd9f5b418dd796c469aaa0c58b34aaa"/>
260
  <dir name="src">
261
+ <file name="NostoIframe.js" hash="53eaf62450081dd7fc86bd2203512cb6"/>
262
  </dir>
263
  </dir>
264
  <dir name="libs">
278
  <target name="mageweb">
279
  <dir name="js">
280
  <dir name="nosto">
281
+ <file name="iframeHandler.min.js" hash="7a4eec2ab2082f0669b106511985ccf7"/>
282
  <file name="iframeResizer.min.js" hash="163b065c9dd702dc364913a951b81fee"/>
283
  </dir>
284
  </dir>