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.7.1 |
Comparing to | |
See all releases |
Code changes from version 2.6.14 to 2.7.1
- app/code/community/Nosto/Tagging/Block/Addtocart.php +6 -6
- app/code/community/Nosto/Tagging/Block/Adminhtml/Iframe.php +8 -6
- app/code/community/Nosto/Tagging/Block/Adminhtml/Wizard.php +6 -6
- app/code/community/Nosto/Tagging/Block/Cart.php +17 -6
- app/code/community/Nosto/Tagging/Block/Category.php +6 -6
- app/code/community/Nosto/Tagging/Block/Customer.php +18 -6
- app/code/community/Nosto/Tagging/Block/Element.php +6 -6
- app/code/community/Nosto/Tagging/Block/Embed.php +6 -6
- app/code/community/Nosto/Tagging/Block/Meta.php +6 -6
- app/code/community/Nosto/Tagging/Block/Order.php +18 -6
- app/code/community/Nosto/Tagging/Block/Product.php +6 -6
- app/code/community/Nosto/Tagging/Helper/Account.php +15 -8
- app/code/community/Nosto/Tagging/Helper/Cache.php +55 -0
- app/code/community/Nosto/Tagging/Helper/Customer.php +6 -6
- app/code/community/Nosto/Tagging/Helper/Data.php +164 -8
- app/code/community/Nosto/Tagging/Helper/Date.php +6 -6
- app/code/community/Nosto/Tagging/Helper/Oauth.php +6 -6
- app/code/community/Nosto/Tagging/Helper/Price.php +6 -6
- app/code/community/Nosto/Tagging/Helper/Url.php +111 -34
- app/code/community/Nosto/Tagging/Model/Base.php +6 -6
- app/code/community/Nosto/Tagging/Model/Container/Cart.php +6 -6
- app/code/community/Nosto/Tagging/Model/Container/Customer.php +6 -6
- app/code/community/Nosto/Tagging/Model/Customer.php +6 -6
- app/code/community/Nosto/Tagging/Model/Export/Collection/Order.php +6 -6
- app/code/community/Nosto/Tagging/Model/Meta/Account.php +42 -9
- app/code/community/Nosto/Tagging/Model/Meta/Account/Billing.php +6 -6
- app/code/community/Nosto/Tagging/Model/Meta/Account/Iframe.php +6 -6
- app/code/community/Nosto/Tagging/Model/Meta/Account/Owner.php +13 -12
- app/code/community/Nosto/Tagging/Model/Meta/Oauth.php +8 -7
- app/code/community/Nosto/Tagging/Model/Meta/Order.php +6 -6
- app/code/community/Nosto/Tagging/Model/Meta/Order/Buyer.php +6 -6
- app/code/community/Nosto/Tagging/Model/Meta/Order/Item.php +6 -6
- app/code/community/Nosto/Tagging/Model/Meta/Order/Status.php +6 -6
- app/code/community/Nosto/Tagging/Model/Meta/Product.php +78 -47
- app/code/community/Nosto/Tagging/Model/Observer.php +12 -12
- app/code/community/Nosto/Tagging/Model/Product.php +6 -6
- app/code/community/Nosto/Tagging/Model/Resource/Customer.php +6 -6
- app/code/community/Nosto/Tagging/Model/Resource/Customer/Collection.php +6 -6
- app/code/community/Nosto/Tagging/Model/Resource/Product/Collection.php +6 -6
- app/code/community/Nosto/Tagging/Model/Resource/Setup.php +6 -6
- app/code/community/Nosto/Tagging/Model/Service/Order.php +6 -6
- app/code/community/Nosto/Tagging/Model/System/Config/CustomTags/Source.php +50 -0
- app/code/community/Nosto/Tagging/Model/System/Config/Source/Image.php +13 -11
- app/code/community/Nosto/Tagging/bootstrap.php +23 -31
- app/code/community/Nosto/Tagging/controllers/Adminhtml/NostoController.php +10 -7
- app/code/community/Nosto/Tagging/controllers/ExportController.php +6 -6
- app/code/community/Nosto/Tagging/controllers/OauthController.php +6 -6
- app/code/community/Nosto/Tagging/etc/adminhtml.xml +24 -26
- app/code/community/Nosto/Tagging/etc/cache.xml +24 -26
- app/code/community/Nosto/Tagging/etc/config.xml +25 -27
- app/code/community/Nosto/Tagging/etc/system.xml +85 -28
- app/code/community/Nosto/Tagging/sql/tagging_setup/mysql4-install-1.2.0.php +45 -43
- app/code/community/Nosto/Tagging/sql/tagging_setup/mysql4-upgrade-1.1.7-1.2.0.php +6 -6
- app/design/adminhtml/default/default/layout/nostotagging.xml +24 -26
- app/design/adminhtml/default/default/template/nostotagging/iframe.phtml +8 -8
- app/design/adminhtml/default/default/template/nostotagging/wizard.phtml +8 -8
- app/design/frontend/base/default/layout/nostotagging.xml +24 -26
- app/design/frontend/base/default/template/nostotagging/addtocart.phtml +37 -12
- app/design/frontend/base/default/template/nostotagging/cart.phtml +9 -8
- app/design/frontend/base/default/template/nostotagging/category.phtml +8 -8
- app/design/frontend/base/default/template/nostotagging/category/view.phtml +8 -8
- app/design/frontend/base/default/template/nostotagging/customer.phtml +9 -8
- app/design/frontend/base/default/template/nostotagging/element.phtml +8 -8
- app/design/frontend/base/default/template/nostotagging/embed.phtml +8 -8
- app/design/frontend/base/default/template/nostotagging/meta.phtml +8 -8
- app/design/frontend/base/default/template/nostotagging/order.phtml +9 -8
- app/design/frontend/base/default/template/nostotagging/product.phtml +8 -8
- app/design/frontend/base/default/template/nostotagging/searchterm.phtml +5 -5
- app/etc/modules/Nosto_Tagging.xml +24 -26
- js/nosto/iframeHandler.min.js +1 -1
- lib/nosto/php-sdk/src/classes/Nosto.php +47 -7
- lib/nosto/php-sdk/src/classes/NostoAccount.php +9 -3
- lib/nosto/php-sdk/src/classes/NostoAccountMeta.php +110 -43
- lib/nosto/php-sdk/src/classes/NostoCipher.php +3 -2
- lib/nosto/php-sdk/src/classes/NostoCurrency.php +27 -16
- lib/nosto/php-sdk/src/classes/NostoCurrencyCode.php +1 -0
- lib/nosto/php-sdk/src/classes/NostoCurrencyFormat.php +1 -0
- lib/nosto/php-sdk/src/classes/NostoCurrencyInfo.php +1 -0
- lib/nosto/php-sdk/src/classes/NostoCurrencySymbol.php +1 -0
- lib/nosto/php-sdk/src/classes/NostoDotEnv.php +3 -2
- lib/nosto/php-sdk/src/classes/NostoExchangeRate.php +1 -0
- lib/nosto/php-sdk/src/classes/NostoMessage.php +3 -2
- lib/nosto/php-sdk/src/classes/NostoObject.php +3 -2
- lib/nosto/php-sdk/src/classes/NostoOrderConfirmation.php +5 -2
- lib/nosto/php-sdk/src/classes/NostoProductReCrawl.php +6 -3
- lib/nosto/php-sdk/src/classes/NostoValidator.php +14 -13
- lib/nosto/php-sdk/src/classes/api/NostoApiRequest.php +3 -2
- lib/nosto/php-sdk/src/classes/api/NostoApiToken.php +3 -2
- lib/nosto/php-sdk/src/classes/collection/NostoCollection.php +3 -2
- lib/nosto/php-sdk/src/classes/collection/NostoExchangeRateCollection.php +3 -2
- lib/nosto/php-sdk/src/classes/collection/NostoOrderCollection.php +3 -2
- lib/nosto/php-sdk/src/classes/collection/NostoProductCollection.php +3 -2
- lib/nosto/php-sdk/src/classes/exception/NostoApiResponseException.php +42 -0
- lib/nosto/php-sdk/src/classes/exception/NostoException.php +3 -2
- lib/nosto/php-sdk/src/classes/exception/NostoHttpException.php +64 -2
- lib/nosto/php-sdk/src/classes/exception/NostoHttpResponseException.php +42 -0
- lib/nosto/php-sdk/src/classes/export/NostoExportOrderCollection.php +5 -2
- lib/nosto/php-sdk/src/classes/export/NostoExportProductCollection.php +3 -2
- lib/nosto/php-sdk/src/classes/export/NostoExporter.php +3 -2
- lib/nosto/php-sdk/src/classes/helper/NostoHelper.php +3 -2
- lib/nosto/php-sdk/src/classes/helper/NostoHelperDate.php +3 -2
- lib/nosto/php-sdk/src/classes/helper/NostoHelperIframe.php +3 -2
- lib/nosto/php-sdk/src/classes/helper/NostoHelperPrice.php +3 -2
- lib/nosto/php-sdk/src/classes/http/NostoHttpRequest.php +3 -2
- lib/nosto/php-sdk/src/classes/http/NostoHttpRequestAdapter.php +3 -2
- lib/nosto/php-sdk/src/classes/http/NostoHttpRequestAdapterCurl.php +3 -2
- lib/nosto/php-sdk/src/classes/http/NostoHttpRequestAdapterSocket.php +3 -2
- lib/nosto/php-sdk/src/classes/http/NostoHttpResponse.php +7 -6
- lib/nosto/php-sdk/src/classes/oauth/NostoOAuthClient.php +5 -4
- lib/nosto/php-sdk/src/classes/oauth/NostoOAuthToken.php +3 -2
- lib/nosto/php-sdk/src/classes/operation/NostoOperationAccount.php +1 -0
- lib/nosto/php-sdk/src/classes/operation/NostoOperationExchangeRate.php +7 -4
- lib/nosto/php-sdk/src/classes/operation/NostoOperationProduct.php +3 -2
- lib/nosto/php-sdk/src/config.inc.php +5 -2
- lib/nosto/php-sdk/src/interfaces/NostoExchangeRateInterface.php +3 -2
- lib/nosto/php-sdk/src/interfaces/NostoExportCollectionInterface.php +3 -2
- lib/nosto/php-sdk/src/interfaces/NostoOAuthClientMetaDataInterface.php +3 -2
- lib/nosto/php-sdk/src/interfaces/NostoProductInterface.php +9 -2
- lib/nosto/php-sdk/src/interfaces/NostoValidatableInterface.php +3 -2
- lib/nosto/php-sdk/src/interfaces/account/NostoAccountInterface.php +3 -2
- lib/nosto/php-sdk/src/interfaces/account/NostoAccountMetaDataBillingDetailsInterface.php +3 -2
- lib/nosto/php-sdk/src/interfaces/account/NostoAccountMetaDataIframeInterface.php +3 -2
- lib/nosto/php-sdk/src/interfaces/account/NostoAccountMetaDataInterface.php +10 -2
- lib/nosto/php-sdk/src/interfaces/account/NostoAccountMetaDataOwnerInterface.php +3 -2
- lib/nosto/php-sdk/src/interfaces/order/NostoOrderBuyerInterface.php +3 -2
- lib/nosto/php-sdk/src/interfaces/order/NostoOrderInterface.php +10 -2
- lib/nosto/php-sdk/src/interfaces/order/NostoOrderPurchasedItemInterface.php +3 -2
- lib/nosto/php-sdk/src/interfaces/order/NostoOrderStatusInterface.php +3 -2
- lib/nosto/php-sdk/src/js/src/NostoIframe.js +4 -3
- package.xml +135 -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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
25 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
26 |
*/
|
27 |
|
@@ -77,7 +77,11 @@ class Nosto_Tagging_Helper_Account extends Mage_Core_Helper_Abstract
|
|
77 |
self::XML_PATH_TOKENS, json_encode($tokens), 'stores',
|
78 |
$store->getId()
|
79 |
);
|
80 |
-
|
|
|
|
|
|
|
|
|
81 |
return true;
|
82 |
}
|
83 |
|
@@ -105,7 +109,10 @@ class Nosto_Tagging_Helper_Account extends Mage_Core_Helper_Abstract
|
|
105 |
$config->saveConfig(
|
106 |
self::XML_PATH_TOKENS, null, 'stores', $store->getId()
|
107 |
);
|
108 |
-
|
|
|
|
|
|
|
109 |
|
110 |
try {
|
111 |
// Notify Nosto that the account was deleted.
|
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 |
|
77 |
self::XML_PATH_TOKENS, json_encode($tokens), 'stores',
|
78 |
$store->getId()
|
79 |
);
|
80 |
+
|
81 |
+
/** @var Nosto_Tagging_Helper_Cache $helper */
|
82 |
+
$helper = Mage::helper('nosto_tagging/cache');
|
83 |
+
$helper->flushCache();
|
84 |
+
|
85 |
return true;
|
86 |
}
|
87 |
|
109 |
$config->saveConfig(
|
110 |
self::XML_PATH_TOKENS, null, 'stores', $store->getId()
|
111 |
);
|
112 |
+
|
113 |
+
/** @var Nosto_Tagging_Helper_Cache $helper */
|
114 |
+
$helper = Mage::helper('nosto_tagging/cache');
|
115 |
+
$helper->flushCache();
|
116 |
|
117 |
try {
|
118 |
// Notify Nosto that the account was deleted.
|
app/code/community/Nosto/Tagging/Helper/Cache.php
ADDED
@@ -0,0 +1,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:
|
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 |
+
/**
|
29 |
+
* Helper class for working with the cache
|
30 |
+
*
|
31 |
+
* @category Nosto
|
32 |
+
* @package Nosto_Tagging
|
33 |
+
* @author Nosto Solutions Ltd <magento@nosto.com>
|
34 |
+
*/
|
35 |
+
class Nosto_Tagging_Helper_Cache extends Mage_Core_Helper_Abstract
|
36 |
+
{
|
37 |
+
/**
|
38 |
+
* Flushes the Magento caches, not all of them but some of them, normally
|
39 |
+
* after creating an account or connecting with nosto.
|
40 |
+
*/
|
41 |
+
public function flushCache()
|
42 |
+
{
|
43 |
+
Mage::app()->getCacheInstance()->cleanType('config');
|
44 |
+
Mage::app()->getCacheInstance()->cleanType('layout');
|
45 |
+
Mage::app()->getCacheInstance()->cleanType('block_html');
|
46 |
+
}
|
47 |
+
|
48 |
+
/**
|
49 |
+
* Flushes the Magento caches, specifically the configuration cache
|
50 |
+
*/
|
51 |
+
public function flushConfigCache()
|
52 |
+
{
|
53 |
+
Mage::app()->getCacheInstance()->cleanType('config');
|
54 |
+
}
|
55 |
+
}
|
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-
|
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-
|
25 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
26 |
*/
|
27 |
|
@@ -44,6 +44,11 @@ class Nosto_Tagging_Helper_Data extends Mage_Core_Helper_Abstract
|
|
44 |
*/
|
45 |
const XML_PATH_IMAGE_VERSION = 'nosto_tagging/image_options/image_version';
|
46 |
|
|
|
|
|
|
|
|
|
|
|
47 |
/**
|
48 |
* @var string the name of the cookie where the Nosto ID can be found.
|
49 |
*/
|
@@ -54,13 +59,53 @@ class Nosto_Tagging_Helper_Data extends Mage_Core_Helper_Abstract
|
|
54 |
*/
|
55 |
const VISITOR_HASH_ALGO = 'sha256';
|
56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
/**
|
58 |
* @inheritdoc
|
59 |
*/
|
60 |
public function quoteEscape($data, $addSlashes = false)
|
61 |
{
|
62 |
if ($addSlashes === true) {
|
63 |
-
$data = addslashes($data);
|
64 |
}
|
65 |
return htmlspecialchars($data, ENT_QUOTES, null, false);
|
66 |
}
|
@@ -87,6 +132,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 |
}
|
@@ -116,7 +162,10 @@ class Nosto_Tagging_Helper_Data extends Mage_Core_Helper_Abstract
|
|
116 |
$config->saveConfig(
|
117 |
self::XML_PATH_INSTALLATION_ID, $installationId, 'default', 0
|
118 |
);
|
119 |
-
|
|
|
|
|
|
|
120 |
}
|
121 |
return $installationId;
|
122 |
}
|
@@ -132,4 +181,111 @@ 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 |
|
44 |
*/
|
45 |
const XML_PATH_IMAGE_VERSION = 'nosto_tagging/image_options/image_version';
|
46 |
|
47 |
+
/**
|
48 |
+
* Path to store config for attributes to tag 1
|
49 |
+
*/
|
50 |
+
const XML_PATH_CUSTOM_TAGS = 'nosto_tagging/attribute_to_tag/';
|
51 |
+
|
52 |
/**
|
53 |
* @var string the name of the cookie where the Nosto ID can be found.
|
54 |
*/
|
59 |
*/
|
60 |
const VISITOR_HASH_ALGO = 'sha256';
|
61 |
|
62 |
+
/*
|
63 |
+
* @var boolean the path for setting for product urls
|
64 |
+
*/
|
65 |
+
const XML_PATH_PRETTY_URL = 'nosto_tagging/pretty_url/in_use';
|
66 |
+
|
67 |
+
/*
|
68 |
+
* @var int the product attribute type id
|
69 |
+
*/
|
70 |
+
const PRODUCT_TYPE_ATTRIBUTE_ID = 4;
|
71 |
+
|
72 |
+
/**
|
73 |
+
* List of strings to remove from the default Nosto account title
|
74 |
+
*
|
75 |
+
* @var array
|
76 |
+
*/
|
77 |
+
public static $removeFromTitle = array(
|
78 |
+
'Main Website - '
|
79 |
+
);
|
80 |
+
|
81 |
+
/**
|
82 |
+
* List of valid tag types
|
83 |
+
*
|
84 |
+
* @var array
|
85 |
+
*/
|
86 |
+
public static $validTags = array(
|
87 |
+
'tag1',
|
88 |
+
'tag2',
|
89 |
+
'tag3'
|
90 |
+
);
|
91 |
+
|
92 |
+
/**
|
93 |
+
* List of attributes that cannot be added to tags due to buggy internal
|
94 |
+
* processing of attributes
|
95 |
+
*
|
96 |
+
* @var array
|
97 |
+
*/
|
98 |
+
public static $notValidAttributesForTags = array(
|
99 |
+
'group_price', // Magento fails to get the value
|
100 |
+
);
|
101 |
+
|
102 |
/**
|
103 |
* @inheritdoc
|
104 |
*/
|
105 |
public function quoteEscape($data, $addSlashes = false)
|
106 |
{
|
107 |
if ($addSlashes === true) {
|
108 |
+
$data = addslashes($data); //@codingStandardsIgnoreLine
|
109 |
}
|
110 |
return htmlspecialchars($data, ENT_QUOTES, null, false);
|
111 |
}
|
132 |
if (isset($categories[$id]) && $categories[$id]->getName()) {
|
133 |
$data[] = $categories[$id]->getName();
|
134 |
} else {
|
135 |
+
$data = array();
|
136 |
break;
|
137 |
}
|
138 |
}
|
162 |
$config->saveConfig(
|
163 |
self::XML_PATH_INSTALLATION_ID, $installationId, 'default', 0
|
164 |
);
|
165 |
+
|
166 |
+
/** @var Nosto_Tagging_Helper_Cache $helper */
|
167 |
+
$helper = Mage::helper('nosto_tagging/cache');
|
168 |
+
$helper->flushConfigCache();
|
169 |
}
|
170 |
return $installationId;
|
171 |
}
|
181 |
{
|
182 |
return Mage::getStoreConfig(self::XML_PATH_IMAGE_VERSION, $store);
|
183 |
}
|
184 |
+
|
185 |
+
/**
|
186 |
+
* Return if virtual hosts / pretty urls should be used for products
|
187 |
+
*
|
188 |
+
* @param Mage_Core_Model_Store|null $store the store model or null.
|
189 |
+
*
|
190 |
+
* @return boolean
|
191 |
+
*/
|
192 |
+
public function getUsePrettyProductUrls($store = null)
|
193 |
+
{
|
194 |
+
return Mage::getStoreConfig(self::XML_PATH_PRETTY_URL, $store);
|
195 |
+
}
|
196 |
+
|
197 |
+
/**
|
198 |
+
* Return the Nosto cookie value
|
199 |
+
*
|
200 |
+
* @return string
|
201 |
+
*/
|
202 |
+
public function getCookieId()
|
203 |
+
{
|
204 |
+
return Mage::getModel('core/cookie')->get(self::COOKIE_NAME);
|
205 |
+
}
|
206 |
+
|
207 |
+
/**
|
208 |
+
* Return the checksum for visitor
|
209 |
+
*
|
210 |
+
* @return string
|
211 |
+
*/
|
212 |
+
public function getVisitorChecksum()
|
213 |
+
{
|
214 |
+
$coo = $this->getCookieId();
|
215 |
+
if ($coo) {
|
216 |
+
return hash(self::VISITOR_HASH_ALGO, $coo);
|
217 |
+
}
|
218 |
+
return null;
|
219 |
+
}
|
220 |
+
|
221 |
+
/**
|
222 |
+
* Return the checksum for visitor
|
223 |
+
*
|
224 |
+
* @param string $name
|
225 |
+
* @return string
|
226 |
+
*/
|
227 |
+
public function cleanUpAccountTitle($name)
|
228 |
+
{
|
229 |
+
$clean = str_replace(self::$removeFromTitle, '', $name);
|
230 |
+
return $clean;
|
231 |
+
}
|
232 |
+
|
233 |
+
public function getProductAttributeOptions()
|
234 |
+
{
|
235 |
+
$resourceModel = Mage::getResourceModel(
|
236 |
+
'catalog/product_attribute_collection'
|
237 |
+
);
|
238 |
+
$attributes = $resourceModel
|
239 |
+
->addFieldToFilter(
|
240 |
+
'entity_type_id',
|
241 |
+
self::PRODUCT_TYPE_ATTRIBUTE_ID
|
242 |
+
)
|
243 |
+
->setOrder(
|
244 |
+
'attribute_code',
|
245 |
+
Varien_Data_Collection::SORT_ORDER_ASC
|
246 |
+
);
|
247 |
+
// Add single empty option as a first option. Otherwise multiselect
|
248 |
+
// cannot not be unset in Magento.
|
249 |
+
$attributeArray = array(
|
250 |
+
array(
|
251 |
+
'value' => 0,
|
252 |
+
'label' => 'None'
|
253 |
+
)
|
254 |
+
);
|
255 |
+
foreach($attributes as $attribute) {
|
256 |
+
$code = $attribute->getData('attribute_code');
|
257 |
+
if (in_array($code, self::$notValidAttributesForTags)) {
|
258 |
+
continue;
|
259 |
+
}
|
260 |
+
$label = $attribute->getData('frontend_label');
|
261 |
+
$attributeArray[] = array(
|
262 |
+
'value' => $code,
|
263 |
+
'label' => sprintf('%s (%s)', $code, $label)
|
264 |
+
);
|
265 |
+
}
|
266 |
+
|
267 |
+
return $attributeArray;
|
268 |
+
}
|
269 |
+
|
270 |
+
/**
|
271 |
+
* Return the attributes to be tagged in Nosto tags
|
272 |
+
*
|
273 |
+
* @param string $tag_id the name / identifier of the tag (e.g. tag1, tag2).
|
274 |
+
* @param Mage_Core_Model_Store|null $store the store model or null.
|
275 |
+
*
|
276 |
+
* @throws NostoException
|
277 |
+
*
|
278 |
+
* @return array
|
279 |
+
*/
|
280 |
+
public function getAttributesToTag($tag_id, $store = null)
|
281 |
+
{
|
282 |
+
if (!in_array($tag_id, self::$validTags)) {
|
283 |
+
throw new NostoException(
|
284 |
+
sprintf('Invalid tag identifier %s', $tag_id)
|
285 |
+
);
|
286 |
+
}
|
287 |
+
$tag_path = self::XML_PATH_CUSTOM_TAGS . $tag_id;
|
288 |
+
$tags = Mage::getStoreConfig($tag_path, $store);
|
289 |
+
return explode(',', $tags);
|
290 |
+
}
|
291 |
}
|
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-
|
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-
|
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-
|
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-
|
25 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
26 |
*/
|
27 |
|
@@ -36,6 +36,11 @@
|
|
36 |
*/
|
37 |
class Nosto_Tagging_Helper_Url extends Mage_Core_Helper_Abstract
|
38 |
{
|
|
|
|
|
|
|
|
|
|
|
39 |
/**
|
40 |
* Gets the absolute preview URL to the current store view product page.
|
41 |
* The product is the first one found in the database for the store.
|
@@ -47,10 +52,10 @@ class Nosto_Tagging_Helper_Url extends Mage_Core_Helper_Abstract
|
|
47 |
*/
|
48 |
public function getPreviewUrlProduct(Mage_Core_Model_Store $store)
|
49 |
{
|
|
|
50 |
$collection = Mage::getModel('catalog/product')
|
51 |
->getCollection()
|
52 |
->addStoreFilter($store->getId())
|
53 |
-
->addAttributeToSelect('*')
|
54 |
->addAttributeToFilter(
|
55 |
'status', array(
|
56 |
'eq' => Mage_Catalog_Model_Product_Status::STATUS_ENABLED
|
@@ -64,10 +69,12 @@ class Nosto_Tagging_Helper_Url extends Mage_Core_Helper_Abstract
|
|
64 |
->setCurPage(1);
|
65 |
foreach ($collection as $product) {
|
66 |
/** @var Mage_Catalog_Model_Product $product */
|
67 |
-
$url = $product->getProductUrl();
|
68 |
-
$
|
69 |
-
|
70 |
-
|
|
|
|
|
71 |
return NostoHttpRequest::replaceQueryParamInUrl(
|
72 |
'nostodebug', 'true', $url
|
73 |
);
|
@@ -86,20 +93,22 @@ class Nosto_Tagging_Helper_Url extends Mage_Core_Helper_Abstract
|
|
86 |
*/
|
87 |
public function getPreviewUrlCategory(Mage_Core_Model_Store $store)
|
88 |
{
|
|
|
89 |
$rootCategoryId = (int)$store->getRootCategoryId();
|
90 |
$collection = Mage::getModel('catalog/category')
|
91 |
->getCollection()
|
92 |
->addFieldToFilter('is_active', 1)
|
93 |
->addFieldToFilter('path', array('like' => "1/$rootCategoryId/%"))
|
94 |
-
->addAttributeToSelect('*')
|
95 |
->setPageSize(1)
|
96 |
->setCurPage(1);
|
|
|
97 |
foreach ($collection as $category) {
|
98 |
-
/** @var Mage_Catalog_Model_Category $category */
|
99 |
$url = $category->getUrl();
|
100 |
-
$
|
101 |
-
|
102 |
-
|
|
|
|
|
103 |
return NostoHttpRequest::replaceQueryParamInUrl(
|
104 |
'nostodebug', 'true', $url
|
105 |
);
|
@@ -118,12 +127,7 @@ class Nosto_Tagging_Helper_Url extends Mage_Core_Helper_Abstract
|
|
118 |
*/
|
119 |
public function getPreviewUrlSearch(Mage_Core_Model_Store $store)
|
120 |
{
|
121 |
-
$url = Mage::getUrl(
|
122 |
-
'catalogsearch/result', array(
|
123 |
-
'_store' => $store->getId(),
|
124 |
-
'_store_to_url' => true
|
125 |
-
)
|
126 |
-
);
|
127 |
$url = NostoHttpRequest::replaceQueryParamInUrl('q', 'nosto', $url);
|
128 |
return NostoHttpRequest::replaceQueryParamInUrl(
|
129 |
'nostodebug', 'true', $url
|
@@ -140,12 +144,7 @@ class Nosto_Tagging_Helper_Url extends Mage_Core_Helper_Abstract
|
|
140 |
*/
|
141 |
public function getPreviewUrlCart(Mage_Core_Model_Store $store)
|
142 |
{
|
143 |
-
$url = Mage::getUrl(
|
144 |
-
'checkout/cart', array(
|
145 |
-
'_store' => $store->getId(),
|
146 |
-
'_store_to_url' => true
|
147 |
-
)
|
148 |
-
);
|
149 |
return NostoHttpRequest::replaceQueryParamInUrl(
|
150 |
'nostodebug', 'true', $url
|
151 |
);
|
@@ -161,14 +160,92 @@ class Nosto_Tagging_Helper_Url extends Mage_Core_Helper_Abstract
|
|
161 |
*/
|
162 |
public function getPreviewUrlFront(Mage_Core_Model_Store $store)
|
163 |
{
|
164 |
-
$url = Mage::getUrl(
|
165 |
-
'', array(
|
166 |
-
'_store' => $store->getId(),
|
167 |
-
'_store_to_url' => true
|
168 |
-
)
|
169 |
-
);
|
170 |
return NostoHttpRequest::replaceQueryParamInUrl(
|
171 |
'nostodebug', 'true', $url
|
172 |
);
|
173 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
}
|
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_Helper_Url extends Mage_Core_Helper_Abstract
|
38 |
{
|
39 |
+
/**
|
40 |
+
* The ___store parameter in Magento URLs
|
41 |
+
*/
|
42 |
+
const MAGENTO_STORE_URL_PARAMETER = '___store';
|
43 |
+
|
44 |
/**
|
45 |
* Gets the absolute preview URL to the current store view product page.
|
46 |
* The product is the first one found in the database for the store.
|
52 |
*/
|
53 |
public function getPreviewUrlProduct(Mage_Core_Model_Store $store)
|
54 |
{
|
55 |
+
$url_options = $this->getUrlOptions($store);
|
56 |
$collection = Mage::getModel('catalog/product')
|
57 |
->getCollection()
|
58 |
->addStoreFilter($store->getId())
|
|
|
59 |
->addAttributeToFilter(
|
60 |
'status', array(
|
61 |
'eq' => Mage_Catalog_Model_Product_Status::STATUS_ENABLED
|
69 |
->setCurPage(1);
|
70 |
foreach ($collection as $product) {
|
71 |
/** @var Mage_Catalog_Model_Product $product */
|
72 |
+
$url = $product->getProductUrl(!$url_options['_nosid']);
|
73 |
+
if ($url_options['_store_to_url']) {
|
74 |
+
$url = NostoHttpRequest::replaceQueryParamInUrl(
|
75 |
+
'___store', $store->getCode(), $url
|
76 |
+
);
|
77 |
+
}
|
78 |
return NostoHttpRequest::replaceQueryParamInUrl(
|
79 |
'nostodebug', 'true', $url
|
80 |
);
|
93 |
*/
|
94 |
public function getPreviewUrlCategory(Mage_Core_Model_Store $store)
|
95 |
{
|
96 |
+
$url_options = $this->getUrlOptions($store);
|
97 |
$rootCategoryId = (int)$store->getRootCategoryId();
|
98 |
$collection = Mage::getModel('catalog/category')
|
99 |
->getCollection()
|
100 |
->addFieldToFilter('is_active', 1)
|
101 |
->addFieldToFilter('path', array('like' => "1/$rootCategoryId/%"))
|
|
|
102 |
->setPageSize(1)
|
103 |
->setCurPage(1);
|
104 |
+
/** @var Mage_Catalog_Model_Category $category */
|
105 |
foreach ($collection as $category) {
|
|
|
106 |
$url = $category->getUrl();
|
107 |
+
if ($url_options['_store_to_url']) {
|
108 |
+
$url = NostoHttpRequest::replaceQueryParamInUrl(
|
109 |
+
'___store', $store->getCode(), $url
|
110 |
+
);
|
111 |
+
}
|
112 |
return NostoHttpRequest::replaceQueryParamInUrl(
|
113 |
'nostodebug', 'true', $url
|
114 |
);
|
127 |
*/
|
128 |
public function getPreviewUrlSearch(Mage_Core_Model_Store $store)
|
129 |
{
|
130 |
+
$url = Mage::getUrl('catalogsearch/result', $this->getUrlOptions($store));
|
|
|
|
|
|
|
|
|
|
|
131 |
$url = NostoHttpRequest::replaceQueryParamInUrl('q', 'nosto', $url);
|
132 |
return NostoHttpRequest::replaceQueryParamInUrl(
|
133 |
'nostodebug', 'true', $url
|
144 |
*/
|
145 |
public function getPreviewUrlCart(Mage_Core_Model_Store $store)
|
146 |
{
|
147 |
+
$url = Mage::getUrl('checkout/cart', $this->getUrlOptions($store));
|
|
|
|
|
|
|
|
|
|
|
148 |
return NostoHttpRequest::replaceQueryParamInUrl(
|
149 |
'nostodebug', 'true', $url
|
150 |
);
|
160 |
*/
|
161 |
public function getPreviewUrlFront(Mage_Core_Model_Store $store)
|
162 |
{
|
163 |
+
$url = Mage::getUrl('', $this->getUrlOptions($store));
|
|
|
|
|
|
|
|
|
|
|
164 |
return NostoHttpRequest::replaceQueryParamInUrl(
|
165 |
'nostodebug', 'true', $url
|
166 |
);
|
167 |
}
|
168 |
+
|
169 |
+
/**
|
170 |
+
* Returns the default options for fetching Magento urls
|
171 |
+
*
|
172 |
+
* @param Mage_Core_Model_Store $store
|
173 |
+
* @return array
|
174 |
+
*/
|
175 |
+
private function getUrlOptions(Mage_Core_Model_Store $store)
|
176 |
+
{
|
177 |
+
/* @var Nosto_Tagging_Helper_Data $nosto_helper */
|
178 |
+
$nosto_helper = Mage::helper('nosto_tagging');
|
179 |
+
$params = array(
|
180 |
+
'_store' => $store->getId(),
|
181 |
+
'_store_to_url' => true,
|
182 |
+
'_nosid' => true
|
183 |
+
);
|
184 |
+
if ($nosto_helper->getUsePrettyProductUrls($store)) {
|
185 |
+
$params['_store_to_url'] = false;
|
186 |
+
}
|
187 |
+
|
188 |
+
return $params;
|
189 |
+
}
|
190 |
+
|
191 |
+
/**
|
192 |
+
* Generates url for a product
|
193 |
+
*
|
194 |
+
* @param Mage_Catalog_Model_Product $product
|
195 |
+
* @param Mage_Core_Model_Store $store
|
196 |
+
*
|
197 |
+
* @return string the url.
|
198 |
+
*/
|
199 |
+
public function generateProductUrl(Mage_Catalog_Model_Product $product, Mage_Core_Model_Store $store)
|
200 |
+
{
|
201 |
+
// Unset the cached url first, as it won't include the `___store` param
|
202 |
+
// if it's cached. We need to define the specific store view in the url
|
203 |
+
// in case the same domain is used for all sites.
|
204 |
+
$product->unsetData('url');
|
205 |
+
/** @var Nosto_Tagging_Helper_Data $helper */
|
206 |
+
$helper = Mage::helper('nosto_tagging');
|
207 |
+
$url_params = array(
|
208 |
+
'_nosid' => true,
|
209 |
+
'_ignore_category' => true,
|
210 |
+
'_store' => $store->getId(),
|
211 |
+
'_store_to_url' => true
|
212 |
+
);
|
213 |
+
$product_url = $product->getUrlInStore($url_params);
|
214 |
+
if ($helper->getUsePrettyProductUrls($store)) {
|
215 |
+
$product_url = $this->removeQueryParamFromUrl($product_url, '___store');
|
216 |
+
}
|
217 |
+
|
218 |
+
return $product_url;
|
219 |
+
}
|
220 |
+
|
221 |
+
|
222 |
+
/**
|
223 |
+
* Removes given parameter from the url
|
224 |
+
*
|
225 |
+
* @param $url
|
226 |
+
* @param $param
|
227 |
+
* @return string
|
228 |
+
*/
|
229 |
+
public function removeQueryParamFromUrl($url, $param)
|
230 |
+
{
|
231 |
+
$modified_url = $url;
|
232 |
+
$url_parts = NostoHttpRequest::parseUrl($url);
|
233 |
+
if (
|
234 |
+
$url_parts !== false
|
235 |
+
&& isset($url_parts['query'])
|
236 |
+
) {
|
237 |
+
$query_array = NostoHttpRequest::parseQueryString($url_parts['query']);
|
238 |
+
if(isset($query_array[$param])) {
|
239 |
+
unset($query_array[$param]);
|
240 |
+
if (empty($query_array)) {
|
241 |
+
unset($url_parts['query']);
|
242 |
+
} else {
|
243 |
+
$url_parts['query'] = http_build_query($query_array);
|
244 |
+
}
|
245 |
+
$modified_url = NostoHttpRequest::buildUrl($url_parts);
|
246 |
+
}
|
247 |
+
}
|
248 |
+
|
249 |
+
return $modified_url;
|
250 |
+
}
|
251 |
}
|
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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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,17 +100,25 @@ class Nosto_Tagging_Model_Meta_Account extends Mage_Core_Model_Abstract implemen
|
|
95 |
*/
|
96 |
public function loadData(Mage_Core_Model_Store $store)
|
97 |
{
|
98 |
-
|
|
|
|
|
|
|
99 |
. ' - '
|
100 |
. $store->getGroup()->getName()
|
101 |
. ' - '
|
102 |
-
. $store->getName()
|
103 |
-
$this->_name = substr(sha1(rand()), 0, 8);
|
104 |
-
$this->_frontPageUrl = NostoHttpRequest::replaceQueryParamInUrl(
|
105 |
-
'___store',
|
106 |
-
$store->getCode(),
|
107 |
-
$store->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB)
|
108 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
$this->_currencyCode = $store->getBaseCurrencyCode();
|
110 |
$this->_languageCode = substr(
|
111 |
$store->getConfig('general/locale/code'), 0, 2
|
@@ -116,7 +129,7 @@ class Nosto_Tagging_Model_Meta_Account extends Mage_Core_Model_Abstract implemen
|
|
116 |
|
117 |
/** @var Nosto_Tagging_Model_Meta_Account_Owner $owner */
|
118 |
$owner = Mage::getModel('nosto_tagging/meta_account_owner');
|
119 |
-
$owner->loadData(
|
120 |
$this->_owner = $owner;
|
121 |
|
122 |
/** @var Nosto_Tagging_Model_Meta_Account_Billing $billing */
|
@@ -277,4 +290,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 |
+
if (!$helper->getUsePrettyProductUrls()) {
|
114 |
+
$this->_frontPageUrl = NostoHttpRequest::replaceQueryParamInUrl(
|
115 |
+
'___store',
|
116 |
+
$store->getCode(),
|
117 |
+
$store->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB)
|
118 |
+
);
|
119 |
+
} else {
|
120 |
+
$this->_frontPageUrl = $store->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
|
121 |
+
}
|
122 |
$this->_currencyCode = $store->getBaseCurrencyCode();
|
123 |
$this->_languageCode = substr(
|
124 |
$store->getConfig('general/locale/code'), 0, 2
|
129 |
|
130 |
/** @var Nosto_Tagging_Model_Meta_Account_Owner $owner */
|
131 |
$owner = Mage::getModel('nosto_tagging/meta_account_owner');
|
132 |
+
$owner->loadData();
|
133 |
$this->_owner = $owner;
|
134 |
|
135 |
/** @var Nosto_Tagging_Model_Meta_Account_Billing $billing */
|
290 |
{
|
291 |
return null;
|
292 |
}
|
293 |
+
|
294 |
+
/**
|
295 |
+
* Set details
|
296 |
+
*
|
297 |
+
* @param array|stdClass $details
|
298 |
+
*/
|
299 |
+
public function setDetails($details)
|
300 |
+
{
|
301 |
+
$this->_details = $details;
|
302 |
+
}
|
303 |
+
|
304 |
+
/**
|
305 |
+
* Get the details
|
306 |
+
*
|
307 |
+
* @return array|stdClass
|
308 |
+
*/
|
309 |
+
public function getDetails()
|
310 |
+
{
|
311 |
+
return $this->_details;
|
312 |
+
}
|
313 |
}
|
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-
|
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-
|
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-
|
25 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
26 |
*/
|
27 |
|
@@ -59,17 +59,18 @@ class Nosto_Tagging_Model_Meta_Account_Owner extends Mage_Core_Model_Abstract im
|
|
59 |
}
|
60 |
|
61 |
/**
|
62 |
-
* Loads the
|
63 |
*
|
64 |
-
* @param Mage_Core_Model_Store $store the store view to load the data for.
|
65 |
*/
|
66 |
-
public function loadData(
|
67 |
{
|
68 |
/** @var Mage_Admin_Model_User $user */
|
69 |
$user = Mage::getSingleton('admin/session')->getUser();
|
70 |
-
|
71 |
-
|
72 |
-
|
|
|
|
|
73 |
}
|
74 |
|
75 |
/**
|
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 |
|
59 |
}
|
60 |
|
61 |
/**
|
62 |
+
* Loads the user data from the active session.
|
63 |
*
|
|
|
64 |
*/
|
65 |
+
public function loadData()
|
66 |
{
|
67 |
/** @var Mage_Admin_Model_User $user */
|
68 |
$user = Mage::getSingleton('admin/session')->getUser();
|
69 |
+
if ($user) {
|
70 |
+
$this->_firstName = $user->getFirstname();
|
71 |
+
$this->_lastName = $user->getLastname();
|
72 |
+
$this->_email = $user->getEmail();
|
73 |
+
}
|
74 |
}
|
75 |
|
76 |
/**
|
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-
|
25 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
26 |
*/
|
27 |
|
@@ -64,7 +64,8 @@ class Nosto_Tagging_Model_Meta_Oauth extends Mage_Core_Model_Abstract implements
|
|
64 |
'nosto/oauth',
|
65 |
array(
|
66 |
'_store' => $store->getId(),
|
67 |
-
'_store_to_url' => true
|
|
|
68 |
)
|
69 |
);
|
70 |
$this->_languageIsoCode = substr(
|
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 |
|
64 |
'nosto/oauth',
|
65 |
array(
|
66 |
'_store' => $store->getId(),
|
67 |
+
'_store_to_url' => true,
|
68 |
+
'_type' => Mage_Core_Model_Store::URL_TYPE_WEB,
|
69 |
)
|
70 |
);
|
71 |
$this->_languageIsoCode = substr(
|
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-
|
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-
|
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-
|
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-
|
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-
|
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 |
*/
|
@@ -99,11 +79,7 @@ class Nosto_Tagging_Model_Meta_Product extends Nosto_Tagging_Model_Base implemen
|
|
99 |
/**
|
100 |
* @var array the tags for the product.
|
101 |
*/
|
102 |
-
protected $_tags = array(
|
103 |
-
'tag1' => array(),
|
104 |
-
'tag2' => array(),
|
105 |
-
'tag3' => array(),
|
106 |
-
);
|
107 |
|
108 |
/**
|
109 |
* @var array the categories the product is located in.
|
@@ -160,6 +136,14 @@ class Nosto_Tagging_Model_Meta_Product extends Nosto_Tagging_Model_Base implemen
|
|
160 |
);
|
161 |
}
|
162 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
/**
|
164 |
* Loads the product info from a Magento product model.
|
165 |
*
|
@@ -202,6 +186,8 @@ class Nosto_Tagging_Model_Meta_Product extends Nosto_Tagging_Model_Base implemen
|
|
202 |
if ($product->hasData('created_at')) {
|
203 |
$this->_datePublished = $product->getData('created_at');
|
204 |
}
|
|
|
|
|
205 |
}
|
206 |
|
207 |
/**
|
@@ -213,11 +199,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::
|
217 |
if(!$product->isVisibleInSiteVisibility()) {
|
218 |
-
$availability = self::
|
219 |
} elseif ($product->isAvailable()) {
|
220 |
-
$availability = self::
|
221 |
}
|
222 |
|
223 |
return $availability;
|
@@ -259,12 +245,65 @@ class Nosto_Tagging_Model_Meta_Product extends Nosto_Tagging_Model_Base implemen
|
|
259 |
}
|
260 |
|
261 |
if (!$product->canConfigure()) {
|
262 |
-
$tags[] = self::
|
263 |
}
|
264 |
|
|
|
265 |
return $tags;
|
266 |
}
|
267 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
268 |
/**
|
269 |
* Builds the absolute store front url for the product page.
|
270 |
*
|
@@ -279,18 +318,10 @@ class Nosto_Tagging_Model_Meta_Product extends Nosto_Tagging_Model_Base implemen
|
|
279 |
*/
|
280 |
protected function buildUrl(Mage_Catalog_Model_Product $product, Mage_Core_Model_Store $store)
|
281 |
{
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
$
|
286 |
-
return $product
|
287 |
-
->getUrlInStore(
|
288 |
-
array(
|
289 |
-
'_nosid' => true,
|
290 |
-
'_ignore_category' => true,
|
291 |
-
'_store' => $store->getCode(),
|
292 |
-
)
|
293 |
-
);
|
294 |
}
|
295 |
|
296 |
/**
|
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 |
*/
|
79 |
/**
|
80 |
* @var array the tags for the product.
|
81 |
*/
|
82 |
+
protected $_tags = array();
|
|
|
|
|
|
|
|
|
83 |
|
84 |
/**
|
85 |
* @var array the categories the product is located in.
|
136 |
);
|
137 |
}
|
138 |
|
139 |
+
public function __construct()
|
140 |
+
{
|
141 |
+
parent::__construct();
|
142 |
+
foreach (Nosto_Tagging_Helper_Data::$validTags as $validTag) {
|
143 |
+
$this->_tags[$validTag] = array();
|
144 |
+
}
|
145 |
+
}
|
146 |
+
|
147 |
/**
|
148 |
* Loads the product info from a Magento product model.
|
149 |
*
|
186 |
if ($product->hasData('created_at')) {
|
187 |
$this->_datePublished = $product->getData('created_at');
|
188 |
}
|
189 |
+
|
190 |
+
$this->amendAttributeTags($product, $store);
|
191 |
}
|
192 |
|
193 |
/**
|
199 |
*/
|
200 |
protected function buildAvailability(Mage_Catalog_Model_Product $product)
|
201 |
{
|
202 |
+
$availability = self::OUT_OF_STOCK;
|
203 |
if(!$product->isVisibleInSiteVisibility()) {
|
204 |
+
$availability = self::INVISIBLE;
|
205 |
} elseif ($product->isAvailable()) {
|
206 |
+
$availability = self::IN_STOCK;
|
207 |
}
|
208 |
|
209 |
return $availability;
|
245 |
}
|
246 |
|
247 |
if (!$product->canConfigure()) {
|
248 |
+
$tags[] = self::ADD_TO_CART;
|
249 |
}
|
250 |
|
251 |
+
|
252 |
return $tags;
|
253 |
}
|
254 |
|
255 |
+
/**
|
256 |
+
* Amends the product attributes to tags array if attributes are defined
|
257 |
+
* and are present in product
|
258 |
+
*
|
259 |
+
* @param Mage_Catalog_Model_Product $product the product model.
|
260 |
+
* @param Mage_Core_Model_Store $store the store model.
|
261 |
+
*
|
262 |
+
*/
|
263 |
+
protected function amendAttributeTags(Mage_Catalog_Model_Product $product, Mage_Core_Model_Store $store)
|
264 |
+
{
|
265 |
+
$product_attributes = $product->getAttributes();
|
266 |
+
/* @var Nosto_Tagging_Helper_Data $nosto_helper */
|
267 |
+
$nosto_helper = Mage::helper("nosto_tagging");
|
268 |
+
|
269 |
+
foreach (Nosto_Tagging_Helper_Data::$validTags as $tag_id) {
|
270 |
+
$attributes_to_tag = $nosto_helper->getAttributesToTag($tag_id, $store->getId());
|
271 |
+
if (empty($attributes_to_tag) || !is_array($attributes_to_tag)) {
|
272 |
+
continue;
|
273 |
+
}
|
274 |
+
/* @var Mage_Catalog_Model_Resource_Eav_Attribute $product_attribute*/
|
275 |
+
foreach ($product_attributes as $key=>$product_attribute) {
|
276 |
+
if (in_array($key, $attributes_to_tag)) {
|
277 |
+
try {
|
278 |
+
$attribute_data = $product->getData($key);
|
279 |
+
$attribute_value = $product->getAttributeText($key);
|
280 |
+
if (!$attribute_value && is_scalar($attribute_data)) {
|
281 |
+
$attribute_value = $attribute_data;
|
282 |
+
}
|
283 |
+
$attribute_value = trim($attribute_value);
|
284 |
+
if (!empty($attribute_value)) {
|
285 |
+
$this->_tags[$tag_id][] = sprintf(
|
286 |
+
'%s:%s',
|
287 |
+
$key,
|
288 |
+
$attribute_value
|
289 |
+
);
|
290 |
+
}
|
291 |
+
} catch (Exception $e) {
|
292 |
+
Mage::log(
|
293 |
+
sprintf(
|
294 |
+
'Failed to add attribute %s to tags. Error message was: %s',
|
295 |
+
$key,
|
296 |
+
$e->getMessage()
|
297 |
+
),
|
298 |
+
Zend_Log::WARN,
|
299 |
+
Nosto_Tagging_Model_Base::LOG_FILE_NAME
|
300 |
+
);
|
301 |
+
}
|
302 |
+
}
|
303 |
+
}
|
304 |
+
}
|
305 |
+
}
|
306 |
+
|
307 |
/**
|
308 |
* Builds the absolute store front url for the product page.
|
309 |
*
|
318 |
*/
|
319 |
protected function buildUrl(Mage_Catalog_Model_Product $product, Mage_Core_Model_Store $store)
|
320 |
{
|
321 |
+
/** @var Nosto_Tagging_Helper_Url $url_helper */
|
322 |
+
$url_helper = Mage::helper('nosto_tagging/url');
|
323 |
+
$product_url = $url_helper->generateProductUrl($product, $store);
|
324 |
+
return $product_url;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
325 |
}
|
326 |
|
327 |
/**
|
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-
|
25 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
26 |
*/
|
27 |
|
@@ -106,9 +106,9 @@ class Nosto_Tagging_Model_Observer
|
|
106 |
$validator = new NostoValidator($model);
|
107 |
if ($validator->validate()) {
|
108 |
try {
|
109 |
-
$
|
110 |
-
$
|
111 |
-
$
|
112 |
} catch (NostoException $e) {
|
113 |
Mage::log("\n" . $e, Zend_Log::ERR, 'nostotagging.log');
|
114 |
}
|
@@ -149,9 +149,9 @@ class Nosto_Tagging_Model_Observer
|
|
149 |
$model->setProductId($product->getId());
|
150 |
|
151 |
try {
|
152 |
-
$
|
153 |
-
$
|
154 |
-
$
|
155 |
} catch (NostoException $e) {
|
156 |
Mage::log("\n" . $e, Zend_Log::ERR, 'nostotagging.log');
|
157 |
}
|
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 |
|
106 |
$validator = new NostoValidator($model);
|
107 |
if ($validator->validate()) {
|
108 |
try {
|
109 |
+
$service = new NostoOperationProduct($account);
|
110 |
+
$service->addProduct($model);
|
111 |
+
$service->upsert();
|
112 |
} catch (NostoException $e) {
|
113 |
Mage::log("\n" . $e, Zend_Log::ERR, 'nostotagging.log');
|
114 |
}
|
149 |
$model->setProductId($product->getId());
|
150 |
|
151 |
try {
|
152 |
+
$service = new NostoOperationProduct($account);
|
153 |
+
$service->addProduct($model);
|
154 |
+
$service->delete();
|
155 |
} catch (NostoException $e) {
|
156 |
Mage::log("\n" . $e, Zend_Log::ERR, 'nostotagging.log');
|
157 |
}
|
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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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/CustomTags/Source.php
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
/**
|
29 |
+
* Extension system setting source model for choosing which attributes should
|
30 |
+
* be added to tags
|
31 |
+
*
|
32 |
+
* @category Nosto
|
33 |
+
* @package Nosto_Tagging
|
34 |
+
* @author Nosto Solutions Ltd <magento@nosto.com>
|
35 |
+
*/
|
36 |
+
class Nosto_Tagging_Model_System_Config_CustomTags_Source
|
37 |
+
{
|
38 |
+
/**
|
39 |
+
* Returns all available product attributes
|
40 |
+
*
|
41 |
+
* @return array the options.
|
42 |
+
*/
|
43 |
+
public function toOptionArray()
|
44 |
+
{
|
45 |
+
/* @var Nosto_Tagging_Helper_Data $nosto_helper */
|
46 |
+
$nosto_helper = Mage::helper('nosto_tagging');
|
47 |
+
|
48 |
+
return $nosto_helper->getProductAttributeOptions();
|
49 |
+
}
|
50 |
+
}
|
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-
|
25 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
26 |
*/
|
27 |
|
@@ -50,12 +50,14 @@ class Nosto_Tagging_Model_System_Config_Source_Image
|
|
50 |
$collection = Mage::getResourceModel('catalog/product_attribute_collection');
|
51 |
$collection->setEntityTypeFilter($entityTypeId);
|
52 |
$collection->setFrontendInputTypeFilter('media_image');
|
|
|
53 |
foreach ($collection as $attribute) {
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
|
|
59 |
}
|
60 |
|
61 |
return $options;
|
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 |
|
50 |
$collection = Mage::getResourceModel('catalog/product_attribute_collection');
|
51 |
$collection->setEntityTypeFilter($entityTypeId);
|
52 |
$collection->setFrontendInputTypeFilter('media_image');
|
53 |
+
/* @var $attribute Mage_Eav_Model_Entity_Attribute */
|
54 |
foreach ($collection as $attribute) {
|
55 |
+
if ($attribute instanceof Mage_Eav_Model_Entity_Attribute) {
|
56 |
+
$options[] = array(
|
57 |
+
'value' => $attribute->getAttributeCode(),
|
58 |
+
'label' => $attribute->getFrontend()->getLabel(),
|
59 |
+
);
|
60 |
+
}
|
61 |
}
|
62 |
|
63 |
return $options;
|
app/code/community/Nosto/Tagging/bootstrap.php
CHANGED
@@ -1,36 +1,28 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
-
*
|
5 |
-
*
|
6 |
-
*
|
7 |
-
*
|
8 |
-
*
|
9 |
-
*
|
10 |
-
*
|
11 |
-
*
|
12 |
-
*
|
13 |
-
*
|
14 |
-
*
|
15 |
-
*
|
16 |
-
*
|
17 |
-
*
|
18 |
-
*
|
19 |
-
*
|
20 |
-
*
|
21 |
-
*
|
22 |
-
*
|
23 |
-
*
|
24 |
-
*
|
25 |
-
*
|
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,20 +11,19 @@
|
|
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-
|
25 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
26 |
*/
|
27 |
-
|
28 |
require_once __DIR__ . '/../../bootstrap.php';
|
29 |
|
30 |
/**
|
@@ -146,10 +145,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 |
require_once __DIR__ . '/../../bootstrap.php';
|
28 |
|
29 |
/**
|
145 |
if ($this->getRequest()->isPost() && $store !== null) {
|
146 |
try {
|
147 |
$email = $this->getRequest()->getPost('email');
|
148 |
+
$details = $this->getRequest()->getPost('details');
|
149 |
$meta = $accountHelper->getMetaData($store);
|
150 |
if (Zend_Validate::is($email, 'EmailAddress')) {
|
151 |
$meta->getOwner()->setEmail($email);
|
152 |
}
|
153 |
+
if (!empty($details)) {
|
154 |
+
$meta->setDetails(json_decode($details));
|
155 |
+
}
|
156 |
$account = NostoAccount::create($meta);
|
157 |
if ($accountHelper->save($account, $store)) {
|
158 |
$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-
|
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-
|
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 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
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 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
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 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
*/
|
28 |
-
-->
|
29 |
<config>
|
30 |
<modules>
|
31 |
<Nosto_Tagging>
|
32 |
-
|
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.7.1</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 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
*/
|
28 |
-
-->
|
29 |
<config>
|
30 |
<sections>
|
31 |
<nosto_tagging translate="label">
|
@@ -38,12 +36,11 @@
|
|
38 |
<groups>
|
39 |
<image_options translate="label">
|
40 |
<label>Image Options</label>
|
41 |
-
<frontend_type>text</frontend_type>
|
42 |
<sort_order>20</sort_order>
|
43 |
<show_in_default>1</show_in_default>
|
44 |
<show_in_website>1</show_in_website>
|
45 |
<show_in_store>1</show_in_store>
|
46 |
-
<expanded>
|
47 |
<fields>
|
48 |
<image_version translate="label">
|
49 |
<label>Image Version</label>
|
@@ -56,6 +53,66 @@
|
|
56 |
</image_version>
|
57 |
</fields>
|
58 |
</image_options>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
</groups>
|
60 |
</nosto_tagging>
|
61 |
</sections>
|
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">
|
36 |
<groups>
|
37 |
<image_options translate="label">
|
38 |
<label>Image Options</label>
|
|
|
39 |
<sort_order>20</sort_order>
|
40 |
<show_in_default>1</show_in_default>
|
41 |
<show_in_website>1</show_in_website>
|
42 |
<show_in_store>1</show_in_store>
|
43 |
+
<expanded>1</expanded>
|
44 |
<fields>
|
45 |
<image_version translate="label">
|
46 |
<label>Image Version</label>
|
53 |
</image_version>
|
54 |
</fields>
|
55 |
</image_options>
|
56 |
+
<pretty_url translate="label">
|
57 |
+
<label>URL structure</label>
|
58 |
+
<sort_order>30</sort_order>
|
59 |
+
<show_in_default>1</show_in_default>
|
60 |
+
<show_in_website>1</show_in_website>
|
61 |
+
<show_in_store>1</show_in_store>
|
62 |
+
<expanded>1</expanded>
|
63 |
+
<fields>
|
64 |
+
<in_use translate="label">
|
65 |
+
<label>Remove store parameter from URLs</label>
|
66 |
+
<comment>Set this to yes if you have configured different URLs or domains for each store or if you are only using single store view.</comment>
|
67 |
+
<frontend_type>select</frontend_type>
|
68 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
69 |
+
<sort_order>10</sort_order>
|
70 |
+
<show_in_default>1</show_in_default>
|
71 |
+
<show_in_website>1</show_in_website>
|
72 |
+
<show_in_store>1</show_in_store>
|
73 |
+
</in_use>
|
74 |
+
</fields>
|
75 |
+
</pretty_url>
|
76 |
+
<attribute_to_tag translate="label">
|
77 |
+
<label>Attributes to tags</label>
|
78 |
+
<sort_order>40</sort_order>
|
79 |
+
<show_in_default>0</show_in_default>
|
80 |
+
<show_in_website>1</show_in_website>
|
81 |
+
<show_in_store>1</show_in_store>
|
82 |
+
<expanded>0</expanded>
|
83 |
+
<fields>
|
84 |
+
<tag1 translate="label">
|
85 |
+
<label>Product attributes for Nosto tags 1</label>
|
86 |
+
<comment>Choose attributes that will be added to tags 1 when present</comment>
|
87 |
+
<frontend_type>multiselect</frontend_type>
|
88 |
+
<source_model>nosto_tagging/system_config_customTags_source</source_model>
|
89 |
+
<sort_order>10</sort_order>
|
90 |
+
<show_in_default>0</show_in_default>
|
91 |
+
<show_in_website>1</show_in_website>
|
92 |
+
<show_in_store>1</show_in_store>
|
93 |
+
</tag1>
|
94 |
+
<tag2 translate="label">
|
95 |
+
<label>Product attributes for Nosto tags 2</label>
|
96 |
+
<comment>Choose attributes that will be added to tags 2 when present</comment>
|
97 |
+
<frontend_type>multiselect</frontend_type>
|
98 |
+
<source_model>nosto_tagging/system_config_customTags_source</source_model>
|
99 |
+
<sort_order>20</sort_order>
|
100 |
+
<show_in_default>0</show_in_default>
|
101 |
+
<show_in_website>1</show_in_website>
|
102 |
+
<show_in_store>1</show_in_store>
|
103 |
+
</tag2>
|
104 |
+
<tag3 translate="label">
|
105 |
+
<label>Product attributes for Nosto tags 3</label>
|
106 |
+
<comment>Choose attributes that will be added to tags 3 when present</comment>
|
107 |
+
<frontend_type>multiselect</frontend_type>
|
108 |
+
<source_model>nosto_tagging/system_config_customTags_source</source_model>
|
109 |
+
<sort_order>30</sort_order>
|
110 |
+
<show_in_default>0</show_in_default>
|
111 |
+
<show_in_website>1</show_in_website>
|
112 |
+
<show_in_store>1</show_in_store>
|
113 |
+
</tag3>
|
114 |
+
</fields>
|
115 |
+
</attribute_to_tag>
|
116 |
</groups>
|
117 |
</nosto_tagging>
|
118 |
</sections>
|
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-
|
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 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
'
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
->addColumn(
|
52 |
-
'quote_id', Varien_Db_Ddl_Table::TYPE_INTEGER, 10, array(
|
53 |
-
'unsigned' => true,
|
54 |
-
'nullable' => false
|
55 |
)
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
|
|
60 |
)
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
)
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
)
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
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->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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-
|
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 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
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
|
22 |
-
* @package
|
23 |
* @author Nosto Solutions Ltd <magento@nosto.com>
|
24 |
-
* @copyright Copyright (c) 2013-
|
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
|
22 |
-
* @package
|
23 |
* @author Nosto Solutions Ltd <magento@nosto.com>
|
24 |
-
* @copyright Copyright (c) 2013-
|
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 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
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
|
22 |
-
* @package
|
23 |
* @author Nosto Solutions Ltd <magento@nosto.com>
|
24 |
-
* @copyright Copyright (c) 2013-
|
25 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
26 |
*/
|
27 |
?>
|
@@ -33,9 +33,17 @@ $formKey = Mage::getSingleton('core/session')->getFormKey();
|
|
33 |
<!-- Nosto `add-to-cart` Script -->
|
34 |
<script type="text/javascript">
|
35 |
if (typeof Nosto === "undefined") {
|
36 |
-
|
37 |
}
|
38 |
-
Nosto.addProductToCart = function (productId) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
var form = document.createElement("form");
|
40 |
form.setAttribute("method", "post");
|
41 |
form.setAttribute("action", "<?php echo $formAction; ?>");
|
@@ -45,8 +53,8 @@ $formKey = Mage::getSingleton('core/session')->getFormKey();
|
|
45 |
"form_key": "<?php echo $formKey; ?>"
|
46 |
};
|
47 |
|
48 |
-
for(var key in hiddenFields) {
|
49 |
-
if(hiddenFields.hasOwnProperty(key)) {
|
50 |
var hiddenField = document.createElement("input");
|
51 |
hiddenField.setAttribute("type", "hidden");
|
52 |
hiddenField.setAttribute("name", key);
|
@@ -58,4 +66,21 @@ $formKey = Mage::getSingleton('core/session')->getFormKey();
|
|
58 |
document.body.appendChild(form);
|
59 |
form.submit();
|
60 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
</script>
|
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 |
?>
|
33 |
<!-- Nosto `add-to-cart` Script -->
|
34 |
<script type="text/javascript">
|
35 |
if (typeof Nosto === "undefined") {
|
36 |
+
var Nosto = {};
|
37 |
}
|
38 |
+
Nosto.addProductToCart = function (productId, element) {
|
39 |
+
if (typeof nostojs !== 'undefined' && typeof element == 'object') {
|
40 |
+
var slotId = Nosto.resolveContextSlotId(element);
|
41 |
+
if (slotId) {
|
42 |
+
nostojs(function (api) {
|
43 |
+
api.recommendedProductAddedToCart(productId, slotId);
|
44 |
+
});
|
45 |
+
}
|
46 |
+
}
|
47 |
var form = document.createElement("form");
|
48 |
form.setAttribute("method", "post");
|
49 |
form.setAttribute("action", "<?php echo $formAction; ?>");
|
53 |
"form_key": "<?php echo $formKey; ?>"
|
54 |
};
|
55 |
|
56 |
+
for (var key in hiddenFields) {
|
57 |
+
if (hiddenFields.hasOwnProperty(key)) {
|
58 |
var hiddenField = document.createElement("input");
|
59 |
hiddenField.setAttribute("type", "hidden");
|
60 |
hiddenField.setAttribute("name", key);
|
66 |
document.body.appendChild(form);
|
67 |
form.submit();
|
68 |
};
|
69 |
+
Nosto.resolveContextSlotId = function (element) {
|
70 |
+
var m = 20;
|
71 |
+
var n = 0;
|
72 |
+
var e = element;
|
73 |
+
while (typeof e.parentElement !== "undefined" && e.parentElement) {
|
74 |
+
++n;
|
75 |
+
e = e.parentElement;
|
76 |
+
if (e.getAttribute('class') == 'nosto_element' && e.getAttribute('id')) {
|
77 |
+
return e.getAttribute('id');
|
78 |
+
}
|
79 |
+
if (n >= m) {
|
80 |
+
return false;
|
81 |
+
}
|
82 |
+
}
|
83 |
+
return false;
|
84 |
+
}
|
85 |
+
|
86 |
</script>
|
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
|
22 |
-
* @package
|
23 |
* @author Nosto Solutions Ltd <magento@nosto.com>
|
24 |
-
* @copyright Copyright (c) 2013-
|
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
|
22 |
-
* @package
|
23 |
* @author Nosto Solutions Ltd <magento@nosto.com>
|
24 |
-
* @copyright Copyright (c) 2013-
|
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
|
22 |
-
* @package
|
23 |
* @author Nosto Solutions Ltd <magento@nosto.com>
|
24 |
-
* @copyright Copyright (c) 2013-
|
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
|
22 |
-
* @package
|
23 |
* @author Nosto Solutions Ltd <magento@nosto.com>
|
24 |
-
* @copyright Copyright (c) 2013-
|
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
|
22 |
-
* @package
|
23 |
* @author Nosto Solutions Ltd <magento@nosto.com>
|
24 |
-
* @copyright Copyright (c) 2013-
|
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
|
22 |
-
* @package
|
23 |
* @author Nosto Solutions Ltd <magento@nosto.com>
|
24 |
-
* @copyright Copyright (c) 2013-
|
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
|
22 |
-
* @package
|
23 |
* @author Nosto Solutions Ltd <magento@nosto.com>
|
24 |
-
* @copyright Copyright (c) 2013-
|
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
|
22 |
-
* @package
|
23 |
* @author Nosto Solutions Ltd <magento@nosto.com>
|
24 |
-
* @copyright Copyright (c) 2013-
|
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
|
22 |
-
* @package
|
23 |
* @author Nosto Solutions Ltd <magento@nosto.com>
|
24 |
-
* @copyright Copyright (c) 2013-
|
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 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
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:
|
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)
|
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
|
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 |
-
$
|
120 |
-
|
121 |
-
|
122 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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)
|
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
|
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('
|
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 |
-
*
|
|
|
4 |
*
|
5 |
-
*
|
|
|
6 |
*
|
7 |
-
*
|
8 |
-
*
|
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 |
-
*
|
|
|
|
|
16 |
*
|
17 |
-
*
|
18 |
-
*
|
19 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
307 |
*
|
308 |
* @return string
|
309 |
*/
|
|
|
|
|
|
|
|
|
|
|
310 |
/**
|
|
|
|
|
311 |
* @return string
|
312 |
*/
|
313 |
-
public function
|
314 |
{
|
315 |
-
return $this->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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)
|
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
|
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 |
-
*
|
|
|
4 |
*
|
5 |
-
*
|
|
|
6 |
*
|
7 |
-
*
|
8 |
-
*
|
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 |
-
*
|
|
|
|
|
16 |
*
|
17 |
-
*
|
18 |
-
*
|
19 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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(
|
|
|
|
|
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)
|
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
|
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 $
|
45 |
|
46 |
/**
|
47 |
* @var array map of validation errors per attribute.
|
48 |
*/
|
49 |
-
private $
|
50 |
|
51 |
/**
|
52 |
* Constructor.
|
@@ -56,7 +57,7 @@ class NostoValidator
|
|
56 |
*/
|
57 |
public function __construct(NostoValidatableInterface $object)
|
58 |
{
|
59 |
-
$this->
|
60 |
}
|
61 |
|
62 |
/**
|
@@ -67,7 +68,7 @@ class NostoValidator
|
|
67 |
*/
|
68 |
public function validate()
|
69 |
{
|
70 |
-
foreach ($this->
|
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->
|
95 |
}
|
96 |
|
97 |
/**
|
@@ -101,7 +102,7 @@ class NostoValidator
|
|
101 |
*/
|
102 |
public function getErrors()
|
103 |
{
|
104 |
-
return $this->
|
105 |
}
|
106 |
|
107 |
/**
|
@@ -112,10 +113,10 @@ class NostoValidator
|
|
112 |
*/
|
113 |
protected function addError($attribute, $message)
|
114 |
{
|
115 |
-
if (!isset($this->
|
116 |
-
$this->
|
117 |
}
|
118 |
-
$this->
|
119 |
}
|
120 |
|
121 |
/**
|
@@ -127,7 +128,7 @@ class NostoValidator
|
|
127 |
protected function validateRequired(array $properties)
|
128 |
{
|
129 |
foreach ($properties as $property) {
|
130 |
-
$value = $this->
|
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->
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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 $
|
60 |
|
61 |
/**
|
62 |
* Constructor.
|
@@ -117,7 +118,7 @@ class NostoHttpResponse
|
|
117 |
*/
|
118 |
public function getCode()
|
119 |
{
|
120 |
-
if (is_null($this->
|
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->
|
132 |
}
|
133 |
-
return $this->
|
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)
|
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
|
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)
|
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
|
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 |
-
|
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 |
-
|
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 |
-
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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)
|
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
|
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.
|
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>-
|
12 |
<authors>
|
13 |
<author>
|
14 |
<name>Nosto</name>
|
@@ -16,106 +16,110 @@
|
|
16 |
<email>magento@nosto.com</email>
|
17 |
</author>
|
18 |
</authors>
|
19 |
-
<date>2016-
|
20 |
-
<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="
|
27 |
<dir name="Adminhtml">
|
28 |
-
<file name="Iframe.php" hash="
|
29 |
-
<file name="Wizard.php" hash="
|
30 |
</dir>
|
31 |
-
<file name="Cart.php" hash="
|
32 |
-
<file name="Category.php" hash="
|
33 |
-
<file name="Customer.php" hash="
|
34 |
-
<file name="Element.php" hash="
|
35 |
-
<file name="Embed.php" hash="
|
36 |
-
<file name="Meta.php" hash="
|
37 |
-
<file name="Order.php" hash="
|
38 |
-
<file name="Product.php" hash="
|
39 |
<file name="Searchterm.php" hash="884cbca118486d922e73821242d8fc83"/>
|
40 |
</dir>
|
41 |
<dir name="Helper">
|
42 |
-
<file name="Account.php" hash="
|
43 |
-
<file name="
|
44 |
-
<file name="
|
45 |
-
<file name="
|
46 |
-
<file name="
|
47 |
-
<file name="
|
48 |
-
<file name="
|
|
|
49 |
</dir>
|
50 |
<dir name="Model">
|
51 |
-
<file name="Base.php" hash="
|
52 |
<dir name="Container">
|
53 |
-
<file name="Cart.php" hash="
|
54 |
-
<file name="Customer.php" hash="
|
55 |
</dir>
|
56 |
-
<file name="Customer.php" hash="
|
57 |
<dir name="Export">
|
58 |
<dir name="Collection">
|
59 |
-
<file name="Order.php" hash="
|
60 |
</dir>
|
61 |
</dir>
|
62 |
<dir name="Meta">
|
63 |
<dir name="Account">
|
64 |
-
<file name="Billing.php" hash="
|
65 |
-
<file name="Iframe.php" hash="
|
66 |
-
<file name="Owner.php" hash="
|
67 |
</dir>
|
68 |
-
<file name="Account.php" hash="
|
69 |
-
<file name="Oauth.php" hash="
|
70 |
<dir name="Order">
|
71 |
-
<file name="Buyer.php" hash="
|
72 |
-
<file name="Item.php" hash="
|
73 |
-
<file name="Status.php" hash="
|
74 |
</dir>
|
75 |
-
<file name="Order.php" hash="
|
76 |
-
<file name="Product.php" hash="
|
77 |
</dir>
|
78 |
-
<file name="Observer.php" hash="
|
79 |
-
<file name="Product.php" hash="
|
80 |
<dir name="Resource">
|
81 |
<dir name="Customer">
|
82 |
-
<file name="Collection.php" hash="
|
83 |
</dir>
|
84 |
-
<file name="Customer.php" hash="
|
85 |
<dir name="Product">
|
86 |
-
<file name="Collection.php" hash="
|
87 |
</dir>
|
88 |
-
<file name="Setup.php" hash="
|
89 |
</dir>
|
90 |
<dir name="Service">
|
91 |
-
<file name="Order.php" hash="
|
92 |
</dir>
|
93 |
<dir name="System">
|
94 |
<dir name="Config">
|
|
|
|
|
|
|
95 |
<dir name="Source">
|
96 |
-
<file name="Image.php" hash="
|
97 |
</dir>
|
98 |
</dir>
|
99 |
</dir>
|
100 |
</dir>
|
101 |
-
<file name="bootstrap.php" hash="
|
102 |
<dir name="controllers">
|
103 |
<dir name="Adminhtml">
|
104 |
-
<file name="NostoController.php" hash="
|
105 |
</dir>
|
106 |
-
<file name="ExportController.php" hash="
|
107 |
-
<file name="OauthController.php" hash="
|
108 |
</dir>
|
109 |
<dir name="etc">
|
110 |
-
<file name="adminhtml.xml" hash="
|
111 |
-
<file name="cache.xml" hash="
|
112 |
-
<file name="config.xml" hash="
|
113 |
-
<file name="system.xml" hash="
|
114 |
</dir>
|
115 |
<dir name="sql">
|
116 |
<dir name="tagging_setup">
|
117 |
-
<file name="mysql4-install-1.2.0.php" hash="
|
118 |
-
<file name="mysql4-upgrade-1.1.7-1.2.0.php" hash="
|
119 |
</dir>
|
120 |
</dir>
|
121 |
</dir>
|
@@ -126,12 +130,12 @@
|
|
126 |
<dir name="default">
|
127 |
<dir name="default">
|
128 |
<dir name="layout">
|
129 |
-
<file name="nostotagging.xml" hash="
|
130 |
</dir>
|
131 |
<dir name="template">
|
132 |
<dir name="nostotagging">
|
133 |
-
<file name="iframe.phtml" hash="
|
134 |
-
<file name="wizard.phtml" hash="
|
135 |
</dir>
|
136 |
</dir>
|
137 |
</dir>
|
@@ -141,23 +145,23 @@
|
|
141 |
<dir name="base">
|
142 |
<dir name="default">
|
143 |
<dir name="layout">
|
144 |
-
<file name="nostotagging.xml" hash="
|
145 |
</dir>
|
146 |
<dir name="template">
|
147 |
<dir name="nostotagging">
|
148 |
-
<file name="addtocart.phtml" hash="
|
149 |
-
<file name="cart.phtml" hash="
|
150 |
<dir name="category">
|
151 |
-
<file name="view.phtml" hash="
|
152 |
</dir>
|
153 |
-
<file name="category.phtml" hash="
|
154 |
-
<file name="customer.phtml" hash="
|
155 |
-
<file name="element.phtml" hash="
|
156 |
-
<file name="embed.phtml" hash="
|
157 |
-
<file name="meta.phtml" hash="
|
158 |
-
<file name="order.phtml" hash="
|
159 |
-
<file name="product.phtml" hash="
|
160 |
-
<file name="searchterm.phtml" hash="
|
161 |
</dir>
|
162 |
</dir>
|
163 |
</dir>
|
@@ -166,7 +170,7 @@
|
|
166 |
</target>
|
167 |
<target name="mageetc">
|
168 |
<dir name="modules">
|
169 |
-
<file name="Nosto_Tagging.xml" hash="
|
170 |
</dir>
|
171 |
</target>
|
172 |
<target name="magelib">
|
@@ -174,89 +178,91 @@
|
|
174 |
<dir name="php-sdk">
|
175 |
<dir name="src">
|
176 |
<dir name="classes">
|
177 |
-
<file name="Nosto.php" hash="
|
178 |
-
<file name="NostoAccount.php" hash="
|
179 |
-
<file name="NostoAccountMeta.php" hash="
|
180 |
-
<file name="NostoCipher.php" hash="
|
181 |
-
<file name="NostoCurrency.php" hash="
|
182 |
-
<file name="NostoCurrencyCode.php" hash="
|
183 |
-
<file name="NostoCurrencyFormat.php" hash="
|
184 |
-
<file name="NostoCurrencyInfo.php" hash="
|
185 |
-
<file name="NostoCurrencySymbol.php" hash="
|
186 |
-
<file name="NostoDotEnv.php" hash="
|
187 |
-
<file name="NostoExchangeRate.php" hash="
|
188 |
-
<file name="NostoMessage.php" hash="
|
189 |
-
<file name="NostoObject.php" hash="
|
190 |
-
<file name="NostoOrderConfirmation.php" hash="
|
191 |
-
<file name="NostoProductReCrawl.php" hash="
|
192 |
-
<file name="NostoValidator.php" hash="
|
193 |
<dir name="api">
|
194 |
-
<file name="NostoApiRequest.php" hash="
|
195 |
-
<file name="NostoApiToken.php" hash="
|
196 |
</dir>
|
197 |
<dir name="collection">
|
198 |
-
<file name="NostoCollection.php" hash="
|
199 |
-
<file name="NostoExchangeRateCollection.php" hash="
|
200 |
-
<file name="NostoOrderCollection.php" hash="
|
201 |
-
<file name="NostoProductCollection.php" hash="
|
202 |
</dir>
|
203 |
<dir name="exception">
|
204 |
-
<file name="
|
205 |
-
<file name="
|
|
|
|
|
206 |
</dir>
|
207 |
<dir name="export">
|
208 |
-
<file name="NostoExportOrderCollection.php" hash="
|
209 |
-
<file name="NostoExportProductCollection.php" hash="
|
210 |
-
<file name="NostoExporter.php" hash="
|
211 |
</dir>
|
212 |
<dir name="helper">
|
213 |
-
<file name="NostoHelper.php" hash="
|
214 |
-
<file name="NostoHelperDate.php" hash="
|
215 |
-
<file name="NostoHelperIframe.php" hash="
|
216 |
-
<file name="NostoHelperPrice.php" hash="
|
217 |
</dir>
|
218 |
<dir name="http">
|
219 |
-
<file name="NostoHttpRequest.php" hash="
|
220 |
-
<file name="NostoHttpRequestAdapter.php" hash="
|
221 |
-
<file name="NostoHttpRequestAdapterCurl.php" hash="
|
222 |
-
<file name="NostoHttpRequestAdapterSocket.php" hash="
|
223 |
-
<file name="NostoHttpResponse.php" hash="
|
224 |
</dir>
|
225 |
<dir name="oauth">
|
226 |
-
<file name="NostoOAuthClient.php" hash="
|
227 |
-
<file name="NostoOAuthToken.php" hash="
|
228 |
</dir>
|
229 |
<dir name="operation">
|
230 |
-
<file name="NostoOperationAccount.php" hash="
|
231 |
-
<file name="NostoOperationExchangeRate.php" hash="
|
232 |
-
<file name="NostoOperationProduct.php" hash="
|
233 |
</dir>
|
234 |
</dir>
|
235 |
-
<file name="config.inc.php" hash="
|
236 |
<dir name="interfaces">
|
237 |
-
<file name="NostoExchangeRateInterface.php" hash="
|
238 |
-
<file name="NostoExportCollectionInterface.php" hash="
|
239 |
-
<file name="NostoOAuthClientMetaDataInterface.php" hash="
|
240 |
-
<file name="NostoProductInterface.php" hash="
|
241 |
-
<file name="NostoValidatableInterface.php" hash="
|
242 |
<dir name="account">
|
243 |
-
<file name="NostoAccountInterface.php" hash="
|
244 |
-
<file name="NostoAccountMetaDataBillingDetailsInterface.php" hash="
|
245 |
-
<file name="NostoAccountMetaDataIframeInterface.php" hash="
|
246 |
-
<file name="NostoAccountMetaDataInterface.php" hash="
|
247 |
-
<file name="NostoAccountMetaDataOwnerInterface.php" hash="
|
248 |
</dir>
|
249 |
<dir name="order">
|
250 |
-
<file name="NostoOrderBuyerInterface.php" hash="
|
251 |
-
<file name="NostoOrderInterface.php" hash="
|
252 |
-
<file name="NostoOrderPurchasedItemInterface.php" hash="
|
253 |
-
<file name="NostoOrderStatusInterface.php" hash="
|
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="
|
260 |
</dir>
|
261 |
</dir>
|
262 |
<dir name="libs">
|
@@ -276,7 +282,7 @@
|
|
276 |
<target name="mageweb">
|
277 |
<dir name="js">
|
278 |
<dir name="nosto">
|
279 |
-
<file name="iframeHandler.min.js" hash="
|
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.7.1</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 & new platform UI&#xD;- Add check if table `nosto_tagging_customer` already exists before creating it&#xD;- Add visitor checksum tagging&#xD;- Strip out _Main Website_ from the default account title&#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="082a822d3ece87c935669d8a2c5f3dbd"/>
|
43 |
+
<file name="Cache.php" hash="87750033d028279c8c902eeeafc80de9"/>
|
44 |
+
<file name="Customer.php" hash="f87def2d435ff46ae9708d62892424f5"/>
|
45 |
+
<file name="Data.php" hash="b7867955c7b789fc290acaaef2a58499"/>
|
46 |
+
<file name="Date.php" hash="7d1b55282770627291f781dc9dd55eff"/>
|
47 |
+
<file name="Oauth.php" hash="a9ddbf62971f77b3e86c05bb4a23ee66"/>
|
48 |
+
<file name="Price.php" hash="79218677cb2d9082b02227e7f433e26c"/>
|
49 |
+
<file name="Url.php" hash="23b8bf21bd05ee83af0f8e4335414a03"/>
|
50 |
</dir>
|
51 |
<dir name="Model">
|
52 |
+
<file name="Base.php" hash="512d57dbb91fec6b61d331ffacc93f20"/>
|
53 |
<dir name="Container">
|
54 |
+
<file name="Cart.php" hash="48983d6bf94b57ef6583969dcaec9982"/>
|
55 |
+
<file name="Customer.php" hash="08ed2d6a1661a2499f1fd9963dbbef0d"/>
|
56 |
</dir>
|
57 |
+
<file name="Customer.php" hash="72c0d0d5f2f22881f75e82aa2488ea59"/>
|
58 |
<dir name="Export">
|
59 |
<dir name="Collection">
|
60 |
+
<file name="Order.php" hash="9255336f9ae7c7cf4b34b7ebba3e2e83"/>
|
61 |
</dir>
|
62 |
</dir>
|
63 |
<dir name="Meta">
|
64 |
<dir name="Account">
|
65 |
+
<file name="Billing.php" hash="d26a6d06313a546cc197832c8b6a72e6"/>
|
66 |
+
<file name="Iframe.php" hash="5c603cefadec90159b2e7ee1c36cb9a0"/>
|
67 |
+
<file name="Owner.php" hash="fa16c81fea090bcaa6176f27c339da2f"/>
|
68 |
</dir>
|
69 |
+
<file name="Account.php" hash="aee2a70131b26a530b33f8161a8987a4"/>
|
70 |
+
<file name="Oauth.php" hash="25e361de164751c01872cda7e85cb60f"/>
|
71 |
<dir name="Order">
|
72 |
+
<file name="Buyer.php" hash="e15f9c65f7323630982eb73131716cad"/>
|
73 |
+
<file name="Item.php" hash="615815cf039d733e3363bf2561cf90f2"/>
|
74 |
+
<file name="Status.php" hash="1277dabe24836edc27bba448a0c33afe"/>
|
75 |
</dir>
|
76 |
+
<file name="Order.php" hash="c402e82e20a2282bfe545a9c4481c7b9"/>
|
77 |
+
<file name="Product.php" hash="ad61636e3843645b5385ff126fe5618a"/>
|
78 |
</dir>
|
79 |
+
<file name="Observer.php" hash="035c26e5ccc456c28966d489ee514087"/>
|
80 |
+
<file name="Product.php" hash="df071b5a356793a1a2d3eae36a87d713"/>
|
81 |
<dir name="Resource">
|
82 |
<dir name="Customer">
|
83 |
+
<file name="Collection.php" hash="cb50bd89badc31867fc8927afff833ff"/>
|
84 |
</dir>
|
85 |
+
<file name="Customer.php" hash="2db99b6ea05d69d33747525f3895fe35"/>
|
86 |
<dir name="Product">
|
87 |
+
<file name="Collection.php" hash="b16d1c3559661fa840a79637a01ddd33"/>
|
88 |
</dir>
|
89 |
+
<file name="Setup.php" hash="688082f95af4cd0676f9dac374c48fc3"/>
|
90 |
</dir>
|
91 |
<dir name="Service">
|
92 |
+
<file name="Order.php" hash="35c43839685550db5afc5d184d881011"/>
|
93 |
</dir>
|
94 |
<dir name="System">
|
95 |
<dir name="Config">
|
96 |
+
<dir name="CustomTags">
|
97 |
+
<file name="Source.php" hash="556abacec5981385850f1e2c263eca9d"/>
|
98 |
+
</dir>
|
99 |
<dir name="Source">
|
100 |
+
<file name="Image.php" hash="7ee779b7452d043402b7daf3a429081e"/>
|
101 |
</dir>
|
102 |
</dir>
|
103 |
</dir>
|
104 |
</dir>
|
105 |
+
<file name="bootstrap.php" hash="2ee453bbe4ead0b3db6da08c30c6ddb5"/>
|
106 |
<dir name="controllers">
|
107 |
<dir name="Adminhtml">
|
108 |
+
<file name="NostoController.php" hash="9318d399080eddf165c4d5869f8a306c"/>
|
109 |
</dir>
|
110 |
+
<file name="ExportController.php" hash="b3600647f08ba4b3e094ba960d756513"/>
|
111 |
+
<file name="OauthController.php" hash="2251bba8997207421594086ea444afe6"/>
|
112 |
</dir>
|
113 |
<dir name="etc">
|
114 |
+
<file name="adminhtml.xml" hash="485ad85df190403f03391ffea0ecac2a"/>
|
115 |
+
<file name="cache.xml" hash="c63a5c181de4a93e7dccd5c485e167ff"/>
|
116 |
+
<file name="config.xml" hash="02e41bc18ddd7ab1cc6781a7b52ae357"/>
|
117 |
+
<file name="system.xml" hash="b9e1aa19b256ccfdc5e4869d652ca1b9"/>
|
118 |
</dir>
|
119 |
<dir name="sql">
|
120 |
<dir name="tagging_setup">
|
121 |
+
<file name="mysql4-install-1.2.0.php" hash="be30ee06f46c101c5f078f9d55bb139d"/>
|
122 |
+
<file name="mysql4-upgrade-1.1.7-1.2.0.php" hash="ff774ae3c70648b33eb5eae68debd555"/>
|
123 |
</dir>
|
124 |
</dir>
|
125 |
</dir>
|
130 |
<dir name="default">
|
131 |
<dir name="default">
|
132 |
<dir name="layout">
|
133 |
+
<file name="nostotagging.xml" hash="ba938d9b7c56b27124870641c30d57a1"/>
|
134 |
</dir>
|
135 |
<dir name="template">
|
136 |
<dir name="nostotagging">
|
137 |
+
<file name="iframe.phtml" hash="3d60a678dceaedc806c85741238a8346"/>
|
138 |
+
<file name="wizard.phtml" hash="02b937a25e316e9dfe957104e44be0be"/>
|
139 |
</dir>
|
140 |
</dir>
|
141 |
</dir>
|
145 |
<dir name="base">
|
146 |
<dir name="default">
|
147 |
<dir name="layout">
|
148 |
+
<file name="nostotagging.xml" hash="5086a82ef8d91aea96d19301ead29b35"/>
|
149 |
</dir>
|
150 |
<dir name="template">
|
151 |
<dir name="nostotagging">
|
152 |
+
<file name="addtocart.phtml" hash="a1256ca97b1af6938d7d6b77aba65824"/>
|
153 |
+
<file name="cart.phtml" hash="7e61c0880447f7ea266c3691d8f8172c"/>
|
154 |
<dir name="category">
|
155 |
+
<file name="view.phtml" hash="648ac0a4608a116e91d469147ada5c30"/>
|
156 |
</dir>
|
157 |
+
<file name="category.phtml" hash="61c53d7e8804cc58ecce26e66d2d0a6f"/>
|
158 |
+
<file name="customer.phtml" hash="a535eccc88ce34c56e19891bcc6aaaa9"/>
|
159 |
+
<file name="element.phtml" hash="21c05a2c0db519e876c058ea087d6383"/>
|
160 |
+
<file name="embed.phtml" hash="355769db8c273b7f8c92069b2262add0"/>
|
161 |
+
<file name="meta.phtml" hash="7aa206af71e02c9d24129662dd5b7aef"/>
|
162 |
+
<file name="order.phtml" hash="3d36a75c03d767d294d61015277ac57f"/>
|
163 |
+
<file name="product.phtml" hash="cf68284ba208f46184619f2a63b01b5a"/>
|
164 |
+
<file name="searchterm.phtml" hash="20ff1bbc903c8879e327376cfcdc5e74"/>
|
165 |
</dir>
|
166 |
</dir>
|
167 |
</dir>
|
170 |
</target>
|
171 |
<target name="mageetc">
|
172 |
<dir name="modules">
|
173 |
+
<file name="Nosto_Tagging.xml" hash="c5a467ee1111bff376e98b71da113553"/>
|
174 |
</dir>
|
175 |
</target>
|
176 |
<target name="magelib">
|
178 |
<dir name="php-sdk">
|
179 |
<dir name="src">
|
180 |
<dir name="classes">
|
181 |
+
<file name="Nosto.php" hash="2c7b6c163a017b509a85a5c2a6869e42"/>
|
182 |
+
<file name="NostoAccount.php" hash="6109b8ca5348c4bf71afd68f6b356c95"/>
|
183 |
+
<file name="NostoAccountMeta.php" hash="f6e81dbead7b9425afed98f13faec9c9"/>
|
184 |
+
<file name="NostoCipher.php" hash="f0af45e9fc48fe2734b6798ee5e3cdfc"/>
|
185 |
+
<file name="NostoCurrency.php" hash="511399f42ff5793de445944b5456c28e"/>
|
186 |
+
<file name="NostoCurrencyCode.php" hash="e2f14283c22f7aac9744150b9bd6457a"/>
|
187 |
+
<file name="NostoCurrencyFormat.php" hash="e676309a9f9420f0912bbf65b5363bda"/>
|
188 |
+
<file name="NostoCurrencyInfo.php" hash="2c8b7f50bfa483f1df764909441351fa"/>
|
189 |
+
<file name="NostoCurrencySymbol.php" hash="9f16f03a3d7187710daa37dac7ecf1c2"/>
|
190 |
+
<file name="NostoDotEnv.php" hash="be272235f6d48705023beeb6a24f2ce9"/>
|
191 |
+
<file name="NostoExchangeRate.php" hash="d6b70ad6bb434aba02bc450f1d066d34"/>
|
192 |
+
<file name="NostoMessage.php" hash="48912d9e00c08b5b5374eee368067cb4"/>
|
193 |
+
<file name="NostoObject.php" hash="0a348871fed339e7bdc57237e7947441"/>
|
194 |
+
<file name="NostoOrderConfirmation.php" hash="4f3ceb7ecbbdd2b78824e5d030fd60cf"/>
|
195 |
+
<file name="NostoProductReCrawl.php" hash="0b24f2fb00c9601e9b3d529f61a23bc5"/>
|
196 |
+
<file name="NostoValidator.php" hash="70523f08482bd8ef3a1a52a7fda2e237"/>
|
197 |
<dir name="api">
|
198 |
+
<file name="NostoApiRequest.php" hash="e3f7acbded105c2c521233e25f4c740b"/>
|
199 |
+
<file name="NostoApiToken.php" hash="4db43866f41dfa8739942018e90bffa0"/>
|
200 |
</dir>
|
201 |
<dir name="collection">
|
202 |
+
<file name="NostoCollection.php" hash="9e85a39ac3a860becd63d2d3cc64659f"/>
|
203 |
+
<file name="NostoExchangeRateCollection.php" hash="c06337ff17993eb7da1f2b653a74bccb"/>
|
204 |
+
<file name="NostoOrderCollection.php" hash="57cf60f4c4bc7ad57211d9c542420e15"/>
|
205 |
+
<file name="NostoProductCollection.php" hash="fcae6d129e8fad82099a05600fef8eea"/>
|
206 |
</dir>
|
207 |
<dir name="exception">
|
208 |
+
<file name="NostoApiResponseException.php" hash="e5430f3d3cfdc1a8f02cc68cb351da40"/>
|
209 |
+
<file name="NostoException.php" hash="d73bdc24769b5f9483a46b218254c488"/>
|
210 |
+
<file name="NostoHttpException.php" hash="9abf965891309b45ab9d0cd60382432e"/>
|
211 |
+
<file name="NostoHttpResponseException.php" hash="1549798afd49cf52e522fd6d8d9481f3"/>
|
212 |
</dir>
|
213 |
<dir name="export">
|
214 |
+
<file name="NostoExportOrderCollection.php" hash="9e1c115ef84617f96e9896ffc67f3586"/>
|
215 |
+
<file name="NostoExportProductCollection.php" hash="47549ca2651eb2223602506e48f54a97"/>
|
216 |
+
<file name="NostoExporter.php" hash="6c242c8b66a504483bff29ee83e795b8"/>
|
217 |
</dir>
|
218 |
<dir name="helper">
|
219 |
+
<file name="NostoHelper.php" hash="87ab4af83eb0f346238677e07acdd49e"/>
|
220 |
+
<file name="NostoHelperDate.php" hash="071e881ba63521bd3adfa50d14acfe43"/>
|
221 |
+
<file name="NostoHelperIframe.php" hash="a83dd911b45db7bd69bbfa38a6bb9d3b"/>
|
222 |
+
<file name="NostoHelperPrice.php" hash="15caf64dcf71a420a3e54612c181d470"/>
|
223 |
</dir>
|
224 |
<dir name="http">
|
225 |
+
<file name="NostoHttpRequest.php" hash="d58478a568530607a2e8977993a0ebed"/>
|
226 |
+
<file name="NostoHttpRequestAdapter.php" hash="e3ee66855cb2a81795172d85cafd75f0"/>
|
227 |
+
<file name="NostoHttpRequestAdapterCurl.php" hash="15fd9b4153d7433ac101b742aa8cd69d"/>
|
228 |
+
<file name="NostoHttpRequestAdapterSocket.php" hash="5656a7ffba3b3ea365969ca5cdafc8e3"/>
|
229 |
+
<file name="NostoHttpResponse.php" hash="6e6b6a155679604637e86b2a1faa29db"/>
|
230 |
</dir>
|
231 |
<dir name="oauth">
|
232 |
+
<file name="NostoOAuthClient.php" hash="d0ffcdcac250639715bfc1927f10e59c"/>
|
233 |
+
<file name="NostoOAuthToken.php" hash="b771e384b2751a0255f0f5755f5fb6c6"/>
|
234 |
</dir>
|
235 |
<dir name="operation">
|
236 |
+
<file name="NostoOperationAccount.php" hash="dc7e52907b64b5e5149814bb048eb283"/>
|
237 |
+
<file name="NostoOperationExchangeRate.php" hash="523c253cdd85612333b3e614bcb4aa37"/>
|
238 |
+
<file name="NostoOperationProduct.php" hash="5788862288b3d39424a4d8f6a677b97d"/>
|
239 |
</dir>
|
240 |
</dir>
|
241 |
+
<file name="config.inc.php" hash="2588b6b13b9877dd14a1d4d7d0747c2f"/>
|
242 |
<dir name="interfaces">
|
243 |
+
<file name="NostoExchangeRateInterface.php" hash="6c68bd4b564021cf0cb7e3f5b4b16ebe"/>
|
244 |
+
<file name="NostoExportCollectionInterface.php" hash="5de9b4dbbbbc1d1b41a53990536a51b5"/>
|
245 |
+
<file name="NostoOAuthClientMetaDataInterface.php" hash="98f06f774b4a9af07ef4024bb49ce447"/>
|
246 |
+
<file name="NostoProductInterface.php" hash="a6047977f419ab47564a69aede34526c"/>
|
247 |
+
<file name="NostoValidatableInterface.php" hash="9a14e13c2f20653ceb202b8f247e46ce"/>
|
248 |
<dir name="account">
|
249 |
+
<file name="NostoAccountInterface.php" hash="c84dea82c07743a49049b2b9f526132d"/>
|
250 |
+
<file name="NostoAccountMetaDataBillingDetailsInterface.php" hash="7e294f596d899af9aa5cf8dea94390e0"/>
|
251 |
+
<file name="NostoAccountMetaDataIframeInterface.php" hash="11ae6877125b32ca25a2545b41f91b9e"/>
|
252 |
+
<file name="NostoAccountMetaDataInterface.php" hash="c9d9a739d88db6cc4b3137f06ef930b7"/>
|
253 |
+
<file name="NostoAccountMetaDataOwnerInterface.php" hash="be8d01705b37778a8ed61e01db2178f6"/>
|
254 |
</dir>
|
255 |
<dir name="order">
|
256 |
+
<file name="NostoOrderBuyerInterface.php" hash="400f680f5e1827bf76fea06a454c3ecd"/>
|
257 |
+
<file name="NostoOrderInterface.php" hash="b5c3f5d59b7ac97b925e13ef9d13d96b"/>
|
258 |
+
<file name="NostoOrderPurchasedItemInterface.php" hash="978d961aefce11ec732fa2257d667df0"/>
|
259 |
+
<file name="NostoOrderStatusInterface.php" hash="80dc0acc4644d007279af286515d8073"/>
|
260 |
</dir>
|
261 |
</dir>
|
262 |
<dir name="js">
|
263 |
<file name="NostoIframe.min.js" hash="5fd9f5b418dd796c469aaa0c58b34aaa"/>
|
264 |
<dir name="src">
|
265 |
+
<file name="NostoIframe.js" hash="53eaf62450081dd7fc86bd2203512cb6"/>
|
266 |
</dir>
|
267 |
</dir>
|
268 |
<dir name="libs">
|
282 |
<target name="mageweb">
|
283 |
<dir name="js">
|
284 |
<dir name="nosto">
|
285 |
+
<file name="iframeHandler.min.js" hash="7a4eec2ab2082f0669b106511985ccf7"/>
|
286 |
<file name="iframeResizer.min.js" hash="163b065c9dd702dc364913a951b81fee"/>
|
287 |
</dir>
|
288 |
</dir>
|