Version Notes
Stable release. Compatible with older versions. Feed creation has been optimized to handle larger loads. The option to choose the store is now available. Can retrieve associated products for grouped types.Bug fixes.Has support for PHP V5.2. Quantity script has now been added. Flat Catalog support has been added,
Download this release
Release Info
Developer | Intelligent Reach |
Extension | Intelligent_Reach |
Version | 1.0.33 |
Comparing to | |
See all releases |
Code changes from version 1.0.32 to 1.0.33
- app/code/local/IntelligentReach/AmazonPayment/etc/config.xml +1 -1
- app/code/local/IntelligentReach/DebenhamsPayment/etc/config.xml +1 -1
- app/code/local/IntelligentReach/EbayPayment/etc/config.xml +1 -1
- app/code/local/IntelligentReach/IRShipping/Helper/Data.php +5 -0
- app/code/local/IntelligentReach/IRShipping/Model/Carrier.php +44 -0
- app/code/local/IntelligentReach/IRShipping/Model/Cart/Api.php +84 -0
- app/code/local/IntelligentReach/IRShipping/Model/Cart/Api/V2.php +37 -0
- app/code/local/IntelligentReach/IRShipping/Model/Cart/Shipping/Api.php +55 -0
- app/code/local/IntelligentReach/IRShipping/Model/Cart/Shipping/Api/V2.php +38 -0
- app/code/local/IntelligentReach/IRShipping/Model/Quote/Address/Total/Shipping.php +178 -0
- app/code/local/IntelligentReach/IRShipping/etc/api.xml +45 -0
- app/code/local/IntelligentReach/IRShipping/etc/config.xml +40 -0
- app/code/local/IntelligentReach/IRShipping/etc/system.xml +36 -0
- app/code/local/IntelligentReach/IRShipping/etc/wsdl.xml +39 -0
- app/code/local/IntelligentReach/IRShipping/etc/wsi.xml +58 -0
- app/code/local/IntelligentReach/Integration/etc/config.xml +1 -1
- app/code/local/IntelligentReach/LazadaPayment/etc/config.xml +1 -1
- app/code/local/IntelligentReach/PlayPayment/etc/config.xml +1 -1
- app/code/local/IntelligentReach/RakutenPayment/etc/config.xml +1 -1
- app/code/local/IntelligentReach/TradeMePayment/etc/config.xml +1 -1
- app/code/local/IntelligentReach/WestfieldPayment/etc/config.xml +1 -1
- app/etc/modules/IntelligentReach_IRShipping.xml +9 -0
- intelligentreach_integration.php +2 -2
- intelligentreach_integration_qty.php +2 -2
- package.xml +4 -4
app/code/local/IntelligentReach/AmazonPayment/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_AmazonPayment>
|
5 |
-
<version>1.0.
|
6 |
</IntelligentReach_AmazonPayment>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_AmazonPayment>
|
5 |
+
<version>1.0.33</version>
|
6 |
</IntelligentReach_AmazonPayment>
|
7 |
</modules>
|
8 |
<global>
|
app/code/local/IntelligentReach/DebenhamsPayment/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_DebenhamsPayment>
|
5 |
-
<version>1.0.
|
6 |
</IntelligentReach_DebenhamsPayment>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_DebenhamsPayment>
|
5 |
+
<version>1.0.33</version>
|
6 |
</IntelligentReach_DebenhamsPayment>
|
7 |
</modules>
|
8 |
<global>
|
app/code/local/IntelligentReach/EbayPayment/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_EbayPayment>
|
5 |
-
<version>1.0.
|
6 |
</IntelligentReach_EbayPayment>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_EbayPayment>
|
5 |
+
<version>1.0.33</version>
|
6 |
</IntelligentReach_EbayPayment>
|
7 |
</modules>
|
8 |
<global>
|
app/code/local/IntelligentReach/IRShipping/Helper/Data.php
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class IntelligentReach_IRShipping_Helper_Data extends Mage_Core_Helper_Abstract
|
3 |
+
{
|
4 |
+
}
|
5 |
+
?>
|
app/code/local/IntelligentReach/IRShipping/Model/Carrier.php
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
//Shipping Method required for the Intelligent Reach platform marketplace integration (http://www.intelligentreach.com).
|
3 |
+
//Copyright � 2016 Intuitive Search Technologies Ltd.
|
4 |
+
//Release under OSL license (http://opensource.org/licenses/osl-3.0).
|
5 |
+
//
|
6 |
+
class IntelligentReach_IRShipping_Model_Carrier
|
7 |
+
extends Mage_Shipping_Model_Carrier_Abstract
|
8 |
+
implements Mage_Shipping_Model_Carrier_Interface
|
9 |
+
{
|
10 |
+
protected $_code = 'intelligentreach_irshipping';
|
11 |
+
|
12 |
+
public function collectRates(Mage_Shipping_Model_Rate_Request $request)
|
13 |
+
{
|
14 |
+
if(Mage::getSingleton('api/server')->getAdapter() != null)
|
15 |
+
{
|
16 |
+
$result = Mage::getModel('shipping/rate_result');
|
17 |
+
$result->append($this->_getIRShippingRate());
|
18 |
+
return $result;
|
19 |
+
}
|
20 |
+
}
|
21 |
+
|
22 |
+
protected function _getIRShippingRate()
|
23 |
+
{
|
24 |
+
$rate = Mage::getModel('shipping/rate_result_method');
|
25 |
+
|
26 |
+
$rate->setCarrier($this->_code);
|
27 |
+
$rate->setCarrierTitle('IR Standard Shipping');
|
28 |
+
|
29 |
+
$rate->setMethod('standard');
|
30 |
+
$rate->setMethodTitle('An error has occurred, please contact IntelligentReach for support.');
|
31 |
+
$rate->setPrice('0.00');
|
32 |
+
$rate->setCost('0.00');
|
33 |
+
|
34 |
+
return $rate;
|
35 |
+
}
|
36 |
+
|
37 |
+
public function getAllowedMethods()
|
38 |
+
{
|
39 |
+
return array(
|
40 |
+
'standard' => 'IR Standard Shipping',
|
41 |
+
);
|
42 |
+
}
|
43 |
+
}
|
44 |
+
?>
|
app/code/local/IntelligentReach/IRShipping/Model/Cart/Api.php
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
//Shopping Cart API required for the Intelligent Reach platform marketplace integration (http://www.intelligentreach.com).
|
3 |
+
//Copyright � 2016 Intuitive Search Technologies Ltd.
|
4 |
+
//Release under OSL license (http://opensource.org/licenses/osl-3.0).
|
5 |
+
//
|
6 |
+
class IntelligentReach_IRShipping_Model_Cart_Api extends Mage_Checkout_Model_Cart_Api
|
7 |
+
{
|
8 |
+
/**
|
9 |
+
* Create an order from the shopping cart (quote)
|
10 |
+
*
|
11 |
+
* @param $quoteId
|
12 |
+
* @param $store
|
13 |
+
* @param $agreements array
|
14 |
+
* @return string
|
15 |
+
*/
|
16 |
+
public function createOrder($quoteId, $store = null, $agreements = null)
|
17 |
+
{
|
18 |
+
$requiredAgreements = Mage::helper('checkout')->getRequiredAgreementIds();
|
19 |
+
if (!empty($requiredAgreements)) {
|
20 |
+
$diff = array_diff($agreements, $requiredAgreements);
|
21 |
+
if (!empty($diff)) {
|
22 |
+
$this->_fault('required_agreements_are_not_all');
|
23 |
+
}
|
24 |
+
}
|
25 |
+
|
26 |
+
$quote = $this->_getQuote($quoteId, $store);
|
27 |
+
if ($quote->getIsMultiShipping()) {
|
28 |
+
$this->_fault('invalid_checkout_type');
|
29 |
+
}
|
30 |
+
if ($quote->getCheckoutMethod() == Mage_Checkout_Model_Api_Resource_Customer::MODE_GUEST
|
31 |
+
&& !Mage::helper('checkout')->isAllowedGuestCheckout($quote, $quote->getStoreId())) {
|
32 |
+
$this->_fault('guest_checkout_is_not_enabled');
|
33 |
+
}
|
34 |
+
|
35 |
+
/** @var $customerResource Mage_Checkout_Model_Api_Resource_Customer */
|
36 |
+
$customerResource = Mage::getModel("checkout/api_resource_customer");
|
37 |
+
$isNewCustomer = $customerResource->prepareCustomerForQuote($quote);
|
38 |
+
|
39 |
+
try {
|
40 |
+
$quote->collectTotals();
|
41 |
+
/** @var $service Mage_Sales_Model_Service_Quote */
|
42 |
+
$service = Mage::getModel('sales/service_quote', $quote);
|
43 |
+
$service->submitAll();
|
44 |
+
|
45 |
+
if ($isNewCustomer) {
|
46 |
+
try {
|
47 |
+
$customerResource->involveNewCustomer($quote);
|
48 |
+
} catch (Exception $e) {
|
49 |
+
Mage::logException($e);
|
50 |
+
}
|
51 |
+
}
|
52 |
+
|
53 |
+
$order = $service->getOrder();
|
54 |
+
if ($order) {
|
55 |
+
Mage::dispatchEvent('checkout_type_onepage_save_order_after',
|
56 |
+
array('order' => $order, 'quote' => $quote));
|
57 |
+
|
58 |
+
try {
|
59 |
+
$order->sendNewOrderEmail();
|
60 |
+
} catch (Exception $e) {
|
61 |
+
Mage::logException($e);
|
62 |
+
}
|
63 |
+
}
|
64 |
+
|
65 |
+
Mage::dispatchEvent(
|
66 |
+
'checkout_submit_all_after',
|
67 |
+
array('order' => $order, 'quote' => $quote)
|
68 |
+
);
|
69 |
+
|
70 |
+
$sessionId = $this->_getSession()->getSessionId();
|
71 |
+
$directory = Mage::getBaseDir('var');
|
72 |
+
$directory = str_replace(DIRECTORY_SEPARATOR, '/', $directory);
|
73 |
+
$directory = $directory.'/intelligentreach_temp_files';
|
74 |
+
$filepath = $directory.'/custom_shipping_info_'.$sessionId.'.txt';
|
75 |
+
if(file_exists($filepath))
|
76 |
+
unlink($filepath);
|
77 |
+
|
78 |
+
} catch (Mage_Core_Exception $e) {
|
79 |
+
$this->_fault('create_order_fault', $e->getMessage());
|
80 |
+
}
|
81 |
+
|
82 |
+
return $order->getIncrementId();
|
83 |
+
}
|
84 |
+
}
|
app/code/local/IntelligentReach/IRShipping/Model/Cart/Api/V2.php
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento Enterprise Edition
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Magento Enterprise Edition License
|
8 |
+
* that is bundled with this package in the file LICENSE_EE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://www.magentocommerce.com/license/enterprise-edition
|
11 |
+
* If you did not receive 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 Mage
|
22 |
+
* @package Mage_Checkout
|
23 |
+
* @copyright Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://www.magentocommerce.com/license/enterprise-edition
|
25 |
+
*/
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Shopping cart model
|
29 |
+
*
|
30 |
+
* @category Mage
|
31 |
+
* @package Mage_Checkout
|
32 |
+
* @author Magento Core Team <core@magentocommerce.com>
|
33 |
+
*/
|
34 |
+
class IntelligentReach_IRShipping_Model_Cart_Api_V2 extends IntelligentReach_IRShipping_Model_Cart_Api
|
35 |
+
{
|
36 |
+
|
37 |
+
}
|
app/code/local/IntelligentReach/IRShipping/Model/Cart/Shipping/Api.php
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
//Shopping Cart Shipping API required for the Intelligent Reach platform marketplace integration (http://www.intelligentreach.com).
|
3 |
+
//Copyright � 2016 Intuitive Search Technologies Ltd.
|
4 |
+
//Release under OSL license (http://opensource.org/licenses/osl-3.0).
|
5 |
+
//
|
6 |
+
class IntelligentReach_IRShipping_Model_Cart_Shipping_Api extends Mage_Checkout_Model_Cart_Shipping_Api
|
7 |
+
{
|
8 |
+
/**
|
9 |
+
* Set a Shipping Method for Shopping Cart with custom price and description.
|
10 |
+
*
|
11 |
+
* @param $quoteId
|
12 |
+
* @param $shippingMethod
|
13 |
+
* @param $price
|
14 |
+
* @param $description
|
15 |
+
* @param $store
|
16 |
+
* @return bool
|
17 |
+
*/
|
18 |
+
public function setCustomShippingMethod($quoteId, $shippingMethod, $price, $description, $store = null)
|
19 |
+
{
|
20 |
+
$quote = $this->_getQuote($quoteId, $store);
|
21 |
+
|
22 |
+
$quoteShippingAddress = $quote->getShippingAddress();
|
23 |
+
if(is_null($quoteShippingAddress->getId()) ) {
|
24 |
+
$this->_fault("shipping_address_is_not_set");
|
25 |
+
}
|
26 |
+
|
27 |
+
$this->writeShippingValuesToTempFile($price, $description);
|
28 |
+
|
29 |
+
// force calling carrier collectRates() again
|
30 |
+
$quote->getShippingAddress()->setCollectShippingRates(true);
|
31 |
+
|
32 |
+
$rate = $quote->getShippingAddress()->collectShippingRates()->getShippingRateByCode($shippingMethod);
|
33 |
+
if (!$rate) {
|
34 |
+
$this->_fault('shipping_method_is_not_available');
|
35 |
+
}
|
36 |
+
|
37 |
+
try {
|
38 |
+
$quote->getShippingAddress()->setShippingMethod($shippingMethod);
|
39 |
+
$quote->collectTotals()->save();
|
40 |
+
} catch(Mage_Core_Exception $e) {
|
41 |
+
$this->_fault('shipping_method_is_not_set', $e->getMessage());
|
42 |
+
}
|
43 |
+
|
44 |
+
return true;
|
45 |
+
}
|
46 |
+
|
47 |
+
private function writeShippingValuesToTempFile($price, $description)
|
48 |
+
{
|
49 |
+
$sessionId = $this->_getSession()->getSessionId();
|
50 |
+
$customShippingInfo = '{"price":'.$price.',"description":"'.$description.'"}';
|
51 |
+
if (!is_dir('var/intelligentreach_temp_files'))
|
52 |
+
mkdir('var/intelligentreach_temp_files');
|
53 |
+
file_put_contents("var/intelligentreach_temp_files/custom_shipping_info_".$sessionId.".txt", $customShippingInfo, FILE_APPEND | LOCK_EX);
|
54 |
+
}
|
55 |
+
}
|
app/code/local/IntelligentReach/IRShipping/Model/Cart/Shipping/Api/V2.php
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento Enterprise Edition
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Magento Enterprise Edition License
|
8 |
+
* that is bundled with this package in the file LICENSE_EE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://www.magentocommerce.com/license/enterprise-edition
|
11 |
+
* If you did not receive 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 Mage
|
22 |
+
* @package Mage_Checkout
|
23 |
+
* @copyright Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://www.magentocommerce.com/license/enterprise-edition
|
25 |
+
*/
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Shopping cart api
|
29 |
+
*
|
30 |
+
* @category Mage
|
31 |
+
* @package Mage_Checkout
|
32 |
+
* @author Magento Core Team <core@magentocommerce.com>
|
33 |
+
*/
|
34 |
+
|
35 |
+
class IntelligentReach_IRShipping_Model_Cart_Shipping_Api_V2 extends IntelligentReach_IRShipping_Model_Cart_Shipping_Api
|
36 |
+
{
|
37 |
+
|
38 |
+
}
|
app/code/local/IntelligentReach/IRShipping/Model/Quote/Address/Total/Shipping.php
ADDED
@@ -0,0 +1,178 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
//Quote Address Total Shipping Model required for the Intelligent Reach platform marketplace integration (http://www.intelligentreach.com).
|
3 |
+
//Copyright � 2016 Intuitive Search Technologies Ltd.
|
4 |
+
//Release under OSL license (http://opensource.org/licenses/osl-3.0).
|
5 |
+
//
|
6 |
+
class IntelligentReach_IRShipping_Model_Quote_Address_Total_Shipping extends Mage_Sales_Model_Quote_Address_Total_Shipping
|
7 |
+
{
|
8 |
+
/**
|
9 |
+
* Collect totals information about shipping
|
10 |
+
*
|
11 |
+
* @param Mage_Sales_Model_Quote_Address $address
|
12 |
+
* @return Mage_Sales_Model_Quote_Address_Total_Shipping
|
13 |
+
*/
|
14 |
+
public function collect(Mage_Sales_Model_Quote_Address $address)
|
15 |
+
{
|
16 |
+
parent::collect($address);
|
17 |
+
|
18 |
+
$oldWeight = $address->getWeight();
|
19 |
+
$address->setWeight(0);
|
20 |
+
$address->setFreeMethodWeight(0);
|
21 |
+
$this->_setAmount(0)
|
22 |
+
->_setBaseAmount(0);
|
23 |
+
|
24 |
+
$items = $this->_getAddressItems($address);
|
25 |
+
if (!count($items)) {
|
26 |
+
return $this;
|
27 |
+
}
|
28 |
+
|
29 |
+
$method = $address->getShippingMethod();
|
30 |
+
$freeAddress= $address->getFreeShipping();
|
31 |
+
|
32 |
+
$addressWeight = $address->getWeight();
|
33 |
+
$freeMethodWeight = $address->getFreeMethodWeight();
|
34 |
+
|
35 |
+
$addressQty = 0;
|
36 |
+
|
37 |
+
foreach ($items as $item) {
|
38 |
+
/**
|
39 |
+
* Skip if this item is virtual
|
40 |
+
*/
|
41 |
+
if ($item->getProduct()->isVirtual()) {
|
42 |
+
continue;
|
43 |
+
}
|
44 |
+
|
45 |
+
/**
|
46 |
+
* Children weight we calculate for parent
|
47 |
+
*/
|
48 |
+
if ($item->getParentItem()) {
|
49 |
+
continue;
|
50 |
+
}
|
51 |
+
|
52 |
+
if ($item->getHasChildren() && $item->isShipSeparately()) {
|
53 |
+
foreach ($item->getChildren() as $child) {
|
54 |
+
if ($child->getProduct()->isVirtual()) {
|
55 |
+
continue;
|
56 |
+
}
|
57 |
+
$addressQty += $child->getTotalQty();
|
58 |
+
|
59 |
+
if (!$item->getProduct()->getWeightType()) {
|
60 |
+
$itemWeight = $child->getWeight();
|
61 |
+
$itemQty = $child->getTotalQty();
|
62 |
+
$rowWeight = $itemWeight*$itemQty;
|
63 |
+
$addressWeight += $rowWeight;
|
64 |
+
if ($freeAddress || $child->getFreeShipping()===true) {
|
65 |
+
$rowWeight = 0;
|
66 |
+
} elseif (is_numeric($child->getFreeShipping())) {
|
67 |
+
$freeQty = $child->getFreeShipping();
|
68 |
+
if ($itemQty>$freeQty) {
|
69 |
+
$rowWeight = $itemWeight*($itemQty-$freeQty);
|
70 |
+
}
|
71 |
+
else {
|
72 |
+
$rowWeight = 0;
|
73 |
+
}
|
74 |
+
}
|
75 |
+
$freeMethodWeight += $rowWeight;
|
76 |
+
$item->setRowWeight($rowWeight);
|
77 |
+
}
|
78 |
+
}
|
79 |
+
if ($item->getProduct()->getWeightType()) {
|
80 |
+
$itemWeight = $item->getWeight();
|
81 |
+
$rowWeight = $itemWeight*$item->getQty();
|
82 |
+
$addressWeight+= $rowWeight;
|
83 |
+
if ($freeAddress || $item->getFreeShipping()===true) {
|
84 |
+
$rowWeight = 0;
|
85 |
+
} elseif (is_numeric($item->getFreeShipping())) {
|
86 |
+
$freeQty = $item->getFreeShipping();
|
87 |
+
if ($item->getQty()>$freeQty) {
|
88 |
+
$rowWeight = $itemWeight*($item->getQty()-$freeQty);
|
89 |
+
}
|
90 |
+
else {
|
91 |
+
$rowWeight = 0;
|
92 |
+
}
|
93 |
+
}
|
94 |
+
$freeMethodWeight+= $rowWeight;
|
95 |
+
$item->setRowWeight($rowWeight);
|
96 |
+
}
|
97 |
+
}
|
98 |
+
else {
|
99 |
+
if (!$item->getProduct()->isVirtual()) {
|
100 |
+
$addressQty += $item->getQty();
|
101 |
+
}
|
102 |
+
$itemWeight = $item->getWeight();
|
103 |
+
$rowWeight = $itemWeight*$item->getQty();
|
104 |
+
$addressWeight+= $rowWeight;
|
105 |
+
if ($freeAddress || $item->getFreeShipping()===true) {
|
106 |
+
$rowWeight = 0;
|
107 |
+
} elseif (is_numeric($item->getFreeShipping())) {
|
108 |
+
$freeQty = $item->getFreeShipping();
|
109 |
+
if ($item->getQty()>$freeQty) {
|
110 |
+
$rowWeight = $itemWeight*($item->getQty()-$freeQty);
|
111 |
+
}
|
112 |
+
else {
|
113 |
+
$rowWeight = 0;
|
114 |
+
}
|
115 |
+
}
|
116 |
+
$freeMethodWeight+= $rowWeight;
|
117 |
+
$item->setRowWeight($rowWeight);
|
118 |
+
}
|
119 |
+
}
|
120 |
+
|
121 |
+
if (isset($addressQty)) {
|
122 |
+
$address->setItemQty($addressQty);
|
123 |
+
}
|
124 |
+
|
125 |
+
$address->setWeight($addressWeight);
|
126 |
+
$address->setFreeMethodWeight($freeMethodWeight);
|
127 |
+
|
128 |
+
$address->collectShippingRates();
|
129 |
+
|
130 |
+
$this->_setAmount(0)
|
131 |
+
->_setBaseAmount(0);
|
132 |
+
|
133 |
+
$method = $address->getShippingMethod();
|
134 |
+
|
135 |
+
if ($method) {
|
136 |
+
if(Mage::getSingleton('api/server')->getAdapter() != null)
|
137 |
+
{
|
138 |
+
$session = Mage::getSingleton('api/session');
|
139 |
+
$sessionId = $session->getSessionId();
|
140 |
+
$directory = Mage::getBaseDir('var');
|
141 |
+
$directory = str_replace(DIRECTORY_SEPARATOR, '/', $directory);
|
142 |
+
$filepath = $directory.'/intelligentreach_temp_files/custom_shipping_info_'.$sessionId.'.txt';
|
143 |
+
if(file_exists($filepath))
|
144 |
+
$customShippingInfo = json_decode(file_get_contents($filepath));
|
145 |
+
else
|
146 |
+
{
|
147 |
+
if(Mage::getSingleton('api/session')->getUser()->getUsername() == 'IR')
|
148 |
+
throw new Mage_Api_Exception('Custom shipping information does not exist');
|
149 |
+
}
|
150 |
+
}
|
151 |
+
|
152 |
+
foreach ($address->getAllShippingRates() as $rate) {
|
153 |
+
if ($rate->getCode()==$method) {
|
154 |
+
if (isset($customShippingInfo))
|
155 |
+
{
|
156 |
+
$customPrice = $customShippingInfo->{'price'};
|
157 |
+
$amountPrice = $address->getQuote()->getStore()->convertPrice($customPrice, false);
|
158 |
+
$this->_setAmount($amountPrice);
|
159 |
+
$this->_setBaseAmount($customPrice);
|
160 |
+
$shippingDescription = $customShippingInfo->{'description'};
|
161 |
+
}
|
162 |
+
else
|
163 |
+
{
|
164 |
+
$amountPrice = $address->getQuote()->getStore()->convertPrice($rate->getPrice(), false);
|
165 |
+
$this->_setAmount($amountPrice);
|
166 |
+
$this->_setBaseAmount($rate->getPrice());
|
167 |
+
$shippingDescription = $rate->getCarrierTitle() . ' - ' . $rate->getMethodTitle();
|
168 |
+
}
|
169 |
+
|
170 |
+
$address->setShippingDescription(trim($shippingDescription, ' -'));
|
171 |
+
break;
|
172 |
+
}
|
173 |
+
}
|
174 |
+
}
|
175 |
+
|
176 |
+
return $this;
|
177 |
+
}
|
178 |
+
}
|
app/code/local/IntelligentReach/IRShipping/etc/api.xml
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Magento Enterprise Edition
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Magento Enterprise Edition License
|
9 |
+
* that is bundled with this package in the file LICENSE_EE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://www.magentocommerce.com/license/enterprise-edition
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
19 |
+
* versions in the future. If you wish to customize Magento for your
|
20 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
21 |
+
*
|
22 |
+
* @category Mage
|
23 |
+
* @package Mage_Checkout
|
24 |
+
* @copyright Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com)
|
25 |
+
* @license http://www.magentocommerce.com/license/enterprise-edition
|
26 |
+
*/
|
27 |
+
-->
|
28 |
+
<config>
|
29 |
+
<api>
|
30 |
+
<resources>
|
31 |
+
<cart_shipping translate="title" module="checkout">
|
32 |
+
<model>checkout/cart_shipping_api</model>
|
33 |
+
<title>Shipping information</title>
|
34 |
+
<acl>cart/shipping</acl>
|
35 |
+
<methods>
|
36 |
+
<customIRMethod translate="title" module="checkout">
|
37 |
+
<title>Set shipping method and custom values</title>
|
38 |
+
<method>setCustomShippingMethod</method>
|
39 |
+
<acl>cart/shipping/method</acl>
|
40 |
+
</customIRMethod>
|
41 |
+
</methods>
|
42 |
+
</cart_shipping>
|
43 |
+
</resources>
|
44 |
+
</api>
|
45 |
+
</config>
|
app/code/local/IntelligentReach/IRShipping/etc/config.xml
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<IntelligentReach_IRShipping>
|
5 |
+
<version>1.0.33</version>
|
6 |
+
</IntelligentReach_IRShipping>
|
7 |
+
</modules>
|
8 |
+
<global>
|
9 |
+
<models>
|
10 |
+
<intelligentreach_irshipping>
|
11 |
+
<class>IntelligentReach_IRShipping_Model</class>
|
12 |
+
</intelligentreach_irshipping>
|
13 |
+
<sales>
|
14 |
+
<rewrite>
|
15 |
+
<quote_address_total_shipping>IntelligentReach_IRShipping_Model_Quote_Address_Total_Shipping</quote_address_total_shipping>
|
16 |
+
</rewrite>
|
17 |
+
</sales>
|
18 |
+
<checkout>
|
19 |
+
<rewrite>
|
20 |
+
<cart_shipping_api>IntelligentReach_IRShipping_Model_Cart_Shipping_Api</cart_shipping_api>
|
21 |
+
<cart_shipping_api_v2>IntelligentReach_IRShipping_Model_Cart_Shipping_Api_V2</cart_shipping_api_v2>
|
22 |
+
<cart_api>IntelligentReach_IRShipping_Model_Cart_Api</cart_api>
|
23 |
+
<cart_api_v2>IntelligentReach_IRShipping_Model_Cart_Api_V2</cart_api_v2>
|
24 |
+
</rewrite>
|
25 |
+
</checkout>
|
26 |
+
</models>
|
27 |
+
</global>
|
28 |
+
<default>
|
29 |
+
<carriers>
|
30 |
+
<intelligentreach_irshipping>
|
31 |
+
<active>1</active>
|
32 |
+
<model>intelligentreach_irshipping/carrier</model>
|
33 |
+
<title>Intelligent Reach Shipping</title>
|
34 |
+
<name>Intelligent Reach Shipping</name>
|
35 |
+
<sort_order>10</sort_order>
|
36 |
+
<sallowspecific>0</sallowspecific>
|
37 |
+
</intelligentreach_irshipping>
|
38 |
+
</carriers>
|
39 |
+
</default>
|
40 |
+
</config>
|
app/code/local/IntelligentReach/IRShipping/etc/system.xml
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<config>
|
3 |
+
<sections>
|
4 |
+
<carriers>
|
5 |
+
<groups>
|
6 |
+
<intelligentreach_irshipping translate="label">
|
7 |
+
<label>Intelligent Reach Shipping</label>
|
8 |
+
<frontend_type>text</frontend_type>
|
9 |
+
<sort_order>13</sort_order>
|
10 |
+
<show_in_default>1</show_in_default>
|
11 |
+
<show_in_website>0</show_in_website>
|
12 |
+
<show_in_store>0</show_in_store>
|
13 |
+
<fields>
|
14 |
+
<active translate="label">
|
15 |
+
<label>Enabled</label>
|
16 |
+
<frontend_type>select</frontend_type>
|
17 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
18 |
+
<sort_order>1</sort_order>
|
19 |
+
<show_in_default>1</show_in_default>
|
20 |
+
<show_in_website>0</show_in_website>
|
21 |
+
<show_in_store>0</show_in_store>
|
22 |
+
</active>
|
23 |
+
<title translate="label">
|
24 |
+
<label>Title</label>
|
25 |
+
<frontend_type>text</frontend_type>
|
26 |
+
<sort_order>3</sort_order>
|
27 |
+
<show_in_default>1</show_in_default>
|
28 |
+
<show_in_website>0</show_in_website>
|
29 |
+
<show_in_store>0</show_in_store>
|
30 |
+
</title>
|
31 |
+
</fields>
|
32 |
+
</intelligentreach_irshipping>
|
33 |
+
</groups>
|
34 |
+
</carriers>
|
35 |
+
</sections>
|
36 |
+
</config>
|
app/code/local/IntelligentReach/IRShipping/etc/wsdl.xml
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<definitions xmlns:typens="urn:{{var wsdl.name}}" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
3 |
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
4 |
+
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
|
5 |
+
xmlns="http://schemas.xmlsoap.org/wsdl/"
|
6 |
+
name="{{var wsdl.name}}" targetNamespace="urn:{{var wsdl.name}}">
|
7 |
+
<message name="shoppingCartShippingCustomIRMethodRequest">
|
8 |
+
<part name="sessionId" type="xsd:string"/>
|
9 |
+
<part name="quoteId" type="xsd:int"/>
|
10 |
+
<part name="method" type="xsd:string"/>
|
11 |
+
<part name="price" type="xsd:double"/>
|
12 |
+
<part name="description" type="xsd:string"/>
|
13 |
+
<part name="storeId" type="xsd:string"/>
|
14 |
+
</message>
|
15 |
+
<message name="shoppingCartShippingCustomIRMethodResponse">
|
16 |
+
<part name="result" type="xsd:boolean"/>
|
17 |
+
</message>
|
18 |
+
<portType name="{{var wsdl.handler}}PortType">
|
19 |
+
<operation name="shoppingCartShippingCustomIRMethod">
|
20 |
+
<documentation>Set shipping method and custom values</documentation>
|
21 |
+
<input message="typens:shoppingCartShippingCustomIRMethodRequest"/>
|
22 |
+
<output message="typens:shoppingCartShippingCustomIRMethodResponse"/>
|
23 |
+
</operation>
|
24 |
+
</portType>
|
25 |
+
<binding name="{{var wsdl.handler}}Binding" type="typens:{{var wsdl.handler}}PortType">
|
26 |
+
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
|
27 |
+
<operation name="shoppingCartShippingCustomIRMethod">
|
28 |
+
<soap:operation soapAction="urn:{{var wsdl.handler}}Action"/>
|
29 |
+
<input>
|
30 |
+
<soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
|
31 |
+
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
|
32 |
+
</input>
|
33 |
+
<output>
|
34 |
+
<soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
|
35 |
+
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
|
36 |
+
</output>
|
37 |
+
</operation>
|
38 |
+
</binding>
|
39 |
+
</definitions>
|
app/code/local/IntelligentReach/IRShipping/etc/wsi.xml
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<wsdl:definitions xmlns:typens="urn:{{var wsdl.name}}"
|
3 |
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
4 |
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
5 |
+
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
|
6 |
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
|
7 |
+
name="{{var wsdl.name}}"
|
8 |
+
targetNamespace="urn:{{var wsdl.name}}">
|
9 |
+
<wsdl:types>
|
10 |
+
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:{{var wsdl.name}}">
|
11 |
+
<xsd:element name="shoppingCartShippingCustomIRMethodRequestParam">
|
12 |
+
<xsd:complexType>
|
13 |
+
<xsd:sequence>
|
14 |
+
<xsd:element minOccurs="1" maxOccurs="1" name="sessionId" type="xsd:string" />
|
15 |
+
<xsd:element minOccurs="1" maxOccurs="1" name="quoteId" type="xsd:int" />
|
16 |
+
<xsd:element minOccurs="1" maxOccurs="1" name="shippingMethod" type="xsd:string" />
|
17 |
+
<xsd:element minOccurs="1" maxOccurs="1" name="price" type="xsd:double" />
|
18 |
+
<xsd:element minOccurs="1" maxOccurs="1" name="description" type="xsd:string" />
|
19 |
+
<xsd:element minOccurs="0" maxOccurs="1" name="store" type="xsd:string" />
|
20 |
+
</xsd:sequence>
|
21 |
+
</xsd:complexType>
|
22 |
+
</xsd:element>
|
23 |
+
<xsd:element name="shoppingCartShippingCustomIRMethodResponseParam">
|
24 |
+
<xsd:complexType>
|
25 |
+
<xsd:sequence>
|
26 |
+
<xsd:element minOccurs="1" maxOccurs="1" name="result" type="xsd:boolean" />
|
27 |
+
</xsd:sequence>
|
28 |
+
</xsd:complexType>
|
29 |
+
</xsd:element>
|
30 |
+
</xsd:schema>
|
31 |
+
</wsdl:types>
|
32 |
+
<wsdl:message name="shoppingCartShippingCustomIRMethodRequest">
|
33 |
+
<wsdl:part name="parameters" element="typens:shoppingCartShippingCustomIRMethodRequestParam" />
|
34 |
+
</wsdl:message>
|
35 |
+
<wsdl:message name="shoppingCartShippingCustomIRMethodResponse">
|
36 |
+
<wsdl:part name="parameters" element="typens:shoppingCartShippingCustomIRMethodResponseParam" />
|
37 |
+
</wsdl:message>
|
38 |
+
|
39 |
+
<wsdl:portType name="{{var wsdl.handler}}PortType">
|
40 |
+
<wsdl:operation name="shoppingCartShippingCustomIRMethod">
|
41 |
+
<wsdl:documentation>Set shipping method and custom values</wsdl:documentation>
|
42 |
+
<wsdl:input message="typens:shoppingCartShippingCustomIRMethodRequest"/>
|
43 |
+
<wsdl:output message="typens:shoppingCartShippingCustomIRMethodResponse"/>
|
44 |
+
</wsdl:operation>
|
45 |
+
</wsdl:portType>
|
46 |
+
<wsdl:binding name="{{var wsdl.handler}}Binding" type="typens:{{var wsdl.handler}}PortType">
|
47 |
+
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
|
48 |
+
<wsdl:operation name="shoppingCartShippingCustomIRMethod">
|
49 |
+
<soap:operation soapAction=""/>
|
50 |
+
<wsdl:input>
|
51 |
+
<soap:body use="literal" />
|
52 |
+
</wsdl:input>
|
53 |
+
<wsdl:output>
|
54 |
+
<soap:body use="literal" />
|
55 |
+
</wsdl:output>
|
56 |
+
</wsdl:operation>
|
57 |
+
</wsdl:binding>
|
58 |
+
</wsdl:definitions>
|
app/code/local/IntelligentReach/Integration/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_Integration>
|
5 |
-
<version>1.0.
|
6 |
</IntelligentReach_Integration>
|
7 |
</modules>
|
8 |
<frontend>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_Integration>
|
5 |
+
<version>1.0.33</version>
|
6 |
</IntelligentReach_Integration>
|
7 |
</modules>
|
8 |
<frontend>
|
app/code/local/IntelligentReach/LazadaPayment/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_LazadaPayment>
|
5 |
-
<version>1.0.
|
6 |
</IntelligentReach_LazadaPayment>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_LazadaPayment>
|
5 |
+
<version>1.0.33</version>
|
6 |
</IntelligentReach_LazadaPayment>
|
7 |
</modules>
|
8 |
<global>
|
app/code/local/IntelligentReach/PlayPayment/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_PlayPayment>
|
5 |
-
<version>1.0.
|
6 |
</IntelligentReach_PlayPayment>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_PlayPayment>
|
5 |
+
<version>1.0.33</version>
|
6 |
</IntelligentReach_PlayPayment>
|
7 |
</modules>
|
8 |
<global>
|
app/code/local/IntelligentReach/RakutenPayment/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_RakutenPayment>
|
5 |
-
<version>1.0.
|
6 |
</IntelligentReach_RakutenPayment>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_RakutenPayment>
|
5 |
+
<version>1.0.33</version>
|
6 |
</IntelligentReach_RakutenPayment>
|
7 |
</modules>
|
8 |
<global>
|
app/code/local/IntelligentReach/TradeMePayment/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_TradeMePayment>
|
5 |
-
<version>1.0.
|
6 |
</IntelligentReach_TradeMePayment>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_TradeMePayment>
|
5 |
+
<version>1.0.33</version>
|
6 |
</IntelligentReach_TradeMePayment>
|
7 |
</modules>
|
8 |
<global>
|
app/code/local/IntelligentReach/WestfieldPayment/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_WestfieldPayment>
|
5 |
-
<version>1.0.
|
6 |
</IntelligentReach_WestfieldPayment>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_WestfieldPayment>
|
5 |
+
<version>1.0.33</version>
|
6 |
</IntelligentReach_WestfieldPayment>
|
7 |
</modules>
|
8 |
<global>
|
app/etc/modules/IntelligentReach_IRShipping.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<IntelligentReach_IRShipping>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>local</codePool>
|
7 |
+
</IntelligentReach_IRShipping>
|
8 |
+
</modules>
|
9 |
+
</config>
|
intelligentreach_integration.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
/** Version 1.0.
|
4 |
ini_set('display_errors', 1);
|
5 |
ini_set('max_execution_time', 1800);
|
6 |
include_once 'app/Mage.php';
|
@@ -15,7 +15,7 @@ class IntelligentReach
|
|
15 |
private $_splitby = 100;
|
16 |
private $_amountOfProductsPerPage = 100;
|
17 |
private $_lastPageNumber = 0;
|
18 |
-
private $_versionDisplay = "Version 1.0.
|
19 |
|
20 |
public function run()
|
21 |
{
|
1 |
<?php
|
2 |
|
3 |
+
/** Version 1.0.33 Last updated by Kire on 10/11/2015 **/
|
4 |
ini_set('display_errors', 1);
|
5 |
ini_set('max_execution_time', 1800);
|
6 |
include_once 'app/Mage.php';
|
15 |
private $_splitby = 100;
|
16 |
private $_amountOfProductsPerPage = 100;
|
17 |
private $_lastPageNumber = 0;
|
18 |
+
private $_versionDisplay = "Version 1.0.33 <br />Last updated on 10/11/2015";
|
19 |
|
20 |
public function run()
|
21 |
{
|
intelligentreach_integration_qty.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
/** Version 1.0.
|
4 |
ini_set('display_errors', 1);
|
5 |
ini_set('max_execution_time', 1800);
|
6 |
include_once 'app/Mage.php';
|
@@ -16,7 +16,7 @@ class IntelligentReach
|
|
16 |
private $_splitby = 100;
|
17 |
private $_amountOfProductsPerPage = 100;
|
18 |
private $_lastPageNumber = 0;
|
19 |
-
private $_versionDisplay = "Version 1.0.
|
20 |
|
21 |
public function run()
|
22 |
{
|
1 |
<?php
|
2 |
|
3 |
+
/** Version 1.0.33 Last updated by Kire on 24/09/2015 **/
|
4 |
ini_set('display_errors', 1);
|
5 |
ini_set('max_execution_time', 1800);
|
6 |
include_once 'app/Mage.php';
|
16 |
private $_splitby = 100;
|
17 |
private $_amountOfProductsPerPage = 100;
|
18 |
private $_lastPageNumber = 0;
|
19 |
+
private $_versionDisplay = "Version 1.0.33 <br />Last updated on 24/09/2015";
|
20 |
|
21 |
public function run()
|
22 |
{
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Intelligent_Reach</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/OSL-3.0">OSL</license>
|
7 |
<channel>community</channel>
|
@@ -17,9 +17,9 @@ Intelligent reach also offers advanced insight and trading services; whilst ensu
|
|
17 |
Contact us to arrange a free E-commerce therapy session. Get advice about e-privacy compliance, tag management, analytics or BI implementations and Data quality as well as any key pain points or challenges which are hampering your growth.</description>
|
18 |
<notes>Stable release. Compatible with older versions. Feed creation has been optimized to handle larger loads. The option to choose the store is now available. Can retrieve associated products for grouped types.Bug fixes.Has support for PHP V5.2. Quantity script has now been added. Flat Catalog support has been added,</notes>
|
19 |
<authors><author><name>Intelligent Reach</name><user>IR</user><email>development@intelligentreach.com</email></author></authors>
|
20 |
-
<date>
|
21 |
-
<time>
|
22 |
-
<contents><target name="mage"><dir name="."><file name="intelligentreach_integration.php" hash="
|
23 |
<compatible/>
|
24 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
25 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Intelligent_Reach</name>
|
4 |
+
<version>1.0.33</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/OSL-3.0">OSL</license>
|
7 |
<channel>community</channel>
|
17 |
Contact us to arrange a free E-commerce therapy session. Get advice about e-privacy compliance, tag management, analytics or BI implementations and Data quality as well as any key pain points or challenges which are hampering your growth.</description>
|
18 |
<notes>Stable release. Compatible with older versions. Feed creation has been optimized to handle larger loads. The option to choose the store is now available. Can retrieve associated products for grouped types.Bug fixes.Has support for PHP V5.2. Quantity script has now been added. Flat Catalog support has been added,</notes>
|
19 |
<authors><author><name>Intelligent Reach</name><user>IR</user><email>development@intelligentreach.com</email></author></authors>
|
20 |
+
<date>2016-01-06</date>
|
21 |
+
<time>12:03:27</time>
|
22 |
+
<contents><target name="mage"><dir name="."><file name="intelligentreach_integration.php" hash="2f945bf4c74550d5f0d18031caccef5d"/><file name="intelligentreach_integration_qty.php" hash="003796f50dcabb7b739332d21b6b44e9"/></dir><dir><dir name="app"><dir name="etc"><dir name="modules"><file name="IntelligentReach_Integration.xml" hash="6cdd19a11572e7073dbb3d746b6b57b6"/><file name="IntelligentReach_AmazonPayment.xml" hash="10faf651f19ea2298217be1a95707b7c"/><file name="IntelligentReach_EbayPayment.xml" hash="eb9acbd1b55da29e10b09981f0b7af8f"/><file name="IntelligentReach_DebenhamsPayment.xml" hash="649e25d5edf93ea84ce0a35240441ecb"/><file name="IntelligentReach_LazadaPayment.xml" hash="74ebd9f7bab6023049128e6de012b52c"/><file name="IntelligentReach_PlayPayment.xml" hash="c711e18f9a79c24bcddce4143ffb6fb6"/><file name="IntelligentReach_RakutenPayment.xml" hash="d70ce1efcf60b29ecc02fcea8df1f7e9"/><file name="IntelligentReach_TradeMePayment.xml" hash="367154d17430c1000c3798454be25dcb"/><file name="IntelligentReach_WestfieldPayment.xml" hash="b0ae5878bb26f86674ce88a50876496b"/><file name="IntelligentReach_IRShipping.xml" hash="f0e21aff453dc0436541117f33d58e74"/></dir></dir><dir name="code"><dir name="local"><dir name="IntelligentReach"><dir name="Integration"><dir name="etc"><file name="config.xml" hash="f8da524206712b6151dc35f5a9200de2"/></dir></dir><dir name="AmazonPayment"><dir name="etc"><file name="config.xml" hash="6720937f2a31c200d9590f0126093f84"/><file name="system.xml" hash="7b236978b8022dc4deda628640ea8689"/></dir><dir name="Helper"><file name="Data.php" hash="2e4ef89b210d0f992cd25b8ef5f4b96e"/></dir><dir name="Model"><file name="Pay.php" hash="4f706307986b9cd0f7cb64f69402cbd5"/></dir></dir><dir name="EbayPayment"><dir name="etc"><file name="config.xml" hash="00022bd8d740dfaa5306928e6a2f55ac"/><file name="system.xml" hash="7246fbf64d238328f74bd6445cc05b29"/></dir><dir name="Helper"><file name="Data.php" hash="0e112e22a4786f3624216628dee796a0"/></dir><dir name="Model"><file name="Pay.php" hash="9195dd4e2dbdeae9170220d78efc9f7b"/></dir></dir><dir name="DebenhamsPayment"><dir name="etc"><file name="config.xml" hash="cac60dae93b3a916934cdd6039a422cd"/><file name="system.xml" hash="fab15158ef26748821326174ca9d91eb"/></dir><dir name="Helper"><file name="Data.php" hash="24e03a8fb06b27480aae4e37f2dc54d8"/></dir><dir name="Model"><file name="Pay.php" hash="45162537d76f8c9e9ccc1ec493c59691"/></dir></dir><dir name="LazadaPayment"><dir name="etc"><file name="config.xml" hash="00811c4e05ea478c644e82ba281a0358"/><file name="system.xml" hash="bf34e8ec60287c727d8221163f436c9c"/></dir><dir name="Helper"><file name="Data.php" hash="7eee4edb781ab93817979b61f314787f"/></dir><dir name="Model"><file name="Pay.php" hash="d52eafb63ab3bad2a390e2f83ebfab6e"/></dir></dir><dir name="PlayPayment"><dir name="etc"><file name="config.xml" hash="f76e7283ddc11c20b5f1441d6e282c3b"/><file name="system.xml" hash="4afb9b545ca22d4043b0606222d734a6"/></dir><dir name="Helper"><file name="Data.php" hash="486d43158da7188608eb07d3c9e45845"/></dir><dir name="Model"><file name="Pay.php" hash="78432762a0020455de623fbe79166045"/></dir></dir><dir name="RakutenPayment"><dir name="etc"><file name="config.xml" hash="9832377a43ca80640a9b26f8c3af961a"/><file name="system.xml" hash="6c19c11b0ad20305d3dd705a0e3f71b9"/></dir><dir name="Helper"><file name="Data.php" hash="87cc7e597d4f70a26911c861358d5695"/></dir><dir name="Model"><file name="Pay.php" hash="b52e5cb4fdb78db91c23bc929e8a70eb"/></dir></dir><dir name="TradeMePayment"><dir name="etc"><file name="config.xml" hash="97a488e63568f142543cf72f8cd988fb"/><file name="system.xml" hash="98893010b7a44f27611421780a09cd6a"/></dir><dir name="Helper"><file name="Data.php" hash="b789a1164f2296882e81d4dced4897a0"/></dir><dir name="Model"><file name="Pay.php" hash="74ba42a1af907d6159fcd8c507d533de"/></dir></dir><dir name="WestfieldPayment"><dir name="etc"><file name="config.xml" hash="1fa26336247ecf5e8d325f76b2547c6e"/><file name="system.xml" hash="de52dce1e16aaa20f62253a4a22f419f"/></dir><dir name="Helper"><file name="Data.php" hash="1d1fcc723fc60d73b004173094a8499e"/></dir><dir name="Model"><file name="Pay.php" hash="d398e69f34d1b7b4105d264eccf01799"/></dir></dir><dir name="IRShipping"><dir name="etc"><file name="api.xml" hash="e6a94fbe12b32f3c7ff52d1a5e0f1641"/><file name="config.xml" hash="d37a1aef5b9ea0e535d1ffbf4a3d1e1f"/><file name="system.xml" hash="a8557991e72769db9da9f2ac90b0b9a5"/><file name="wsdl.xml" hash="ffc7012d4eece41205102d41c8c6b953"/><file name="wsi.xml" hash="77ce37c2b3adb664c3b9f2cc4f901388"/></dir><dir name="Model"><file name="Carrier.php" hash="262539a4ab189952a4e6f914bb0855d8"/><dir name="Cart"><file name="Api.php" hash="9eac552aecc9f4de277b4e15976ea7b5"/><dir name="Api"><file name="V2.php" hash="0f02ea1b2ba3e88d166b0fdaea8444d1"/></dir><dir name="Shipping"><file name="Api.php" hash="75a01931a00a72b74890858f1fc994a9"/><dir name="Api"><file name="V2.php" hash="ca18e89a5d9846423682dedb58e72762"/></dir></dir></dir><dir name="Quote"><dir name="Address"><dir name="Total"><file name="Shipping.php" hash="5f6b34bd1fc668481580010573091e38"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="d2d25617c465d0dce4dd52b9eac7649f"/></dir></dir></dir></dir></dir><dir name="design"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="intelligentreach_integration.xml" hash="c45eb729e1e4b5025b25c20ac2723eeb"/></dir><dir name="template"><dir name="intelligentreach_integration"><file name="intelligentreach_integration.phtml" hash="cfcf6e1c2de50fa66258a820fb296775"/><dir name="product"><file name="intelligentreach_integration.phtml" hash="0d1f3ce4a57d977d8955176b01e2f87d"/></dir><dir name="basket"><file name="intelligentreach_integration.phtml" hash="983743acab4cd1c2819ea4fb6eebe0b5"/></dir><dir name="checkout"><dir name="onepage"><file name="intelligentreach_integration.phtml" hash="dfcfe625fadaf06fb3b069cb9257b4cc"/></dir><dir name="multishipping"><file name="intelligentreach_integration.phtml" hash="206d1fe72ab530829ca274fd52e90108"/></dir></dir></dir></dir></dir></dir><dir name="enterprise"><dir name="default"><dir name="layout"><file name="intelligentreach_integration.xml" hash="c45eb729e1e4b5025b25c20ac2723eeb"/></dir><dir name="template"><dir name="intelligentreach_integration"><file name="intelligentreach_integration.phtml" hash="cfcf6e1c2de50fa66258a820fb296775"/><dir name="product"><file name="intelligentreach_integration.phtml" hash="0d1f3ce4a57d977d8955176b01e2f87d"/></dir><dir name="basket"><file name="intelligentreach_integration.phtml" hash="983743acab4cd1c2819ea4fb6eebe0b5"/></dir><dir name="checkout"><dir name="onepage"><file name="intelligentreach_integration.phtml" hash="dfcfe625fadaf06fb3b069cb9257b4cc"/></dir><dir name="multishipping"><file name="intelligentreach_integration.phtml" hash="206d1fe72ab530829ca274fd52e90108"/></dir></dir></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="layout"><file name="intelligentreach_integration.xml" hash="c45eb729e1e4b5025b25c20ac2723eeb"/></dir><dir name="template"><dir name="intelligentreach_integration"><file name="intelligentreach_integration.phtml" hash="cfcf6e1c2de50fa66258a820fb296775"/><dir name="product"><file name="intelligentreach_integration.phtml" hash="0d1f3ce4a57d977d8955176b01e2f87d"/></dir><dir name="basket"><file name="intelligentreach_integration.phtml" hash="983743acab4cd1c2819ea4fb6eebe0b5"/></dir><dir name="checkout"><dir name="onepage"><file name="intelligentreach_integration.phtml" hash="dfcfe625fadaf06fb3b069cb9257b4cc"/></dir><dir name="multishipping"><file name="intelligentreach_integration.phtml" hash="206d1fe72ab530829ca274fd52e90108"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></dir></target></contents>
|
23 |
<compatible/>
|
24 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
25 |
</package>
|