Version Notes
Added version number to admin section.
Fixed version number.
Download this release
Release Info
| Developer | nChannel |
| Extension | nChannel_Communicator |
| Version | 0.1.10 |
| Comparing to | |
| See all releases | |
Code changes from version 0.1.4 to 0.1.10
- app/code/community/Nchannel/Communicator/Block/Adminhtml/Version.php +8 -0
- app/code/community/Nchannel/Communicator/Helper/Data.php +5 -2
- app/code/community/Nchannel/Communicator/Model/Productutility/Api/V2.php +89 -6
- app/code/community/Nchannel/Communicator/etc/api.xml +10 -1
- app/code/community/Nchannel/Communicator/etc/config.xml +1 -1
- app/code/community/Nchannel/Communicator/etc/system.xml +9 -0
- app/code/community/Nchannel/Communicator/etc/wsdl.xml +65 -1
- app/locale/en_US/template/email/FailedOrder.html +0 -90
- package.xml +7 -6
app/code/community/Nchannel/Communicator/Block/Adminhtml/Version.php
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
class Nchannel_Communicator_Block_Adminhtml_Version extends Mage_Adminhtml_Block_System_Config_Form_Field
|
| 3 |
+
{
|
| 4 |
+
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
|
| 5 |
+
{
|
| 6 |
+
return (string) Mage::helper('Communicator')->getExtensionVersion();
|
| 7 |
+
}
|
| 8 |
+
}
|
app/code/community/Nchannel/Communicator/Helper/Data.php
CHANGED
|
@@ -1,6 +1,9 @@
|
|
| 1 |
<?php
|
| 2 |
|
| 3 |
class Nchannel_Communicator_Helper_Data extends Mage_Core_Helper_Abstract{
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
}
|
| 6 |
-
?>
|
| 1 |
<?php
|
| 2 |
|
| 3 |
class Nchannel_Communicator_Helper_Data extends Mage_Core_Helper_Abstract{
|
| 4 |
+
|
| 5 |
+
public function getExtensionVersion()
|
| 6 |
+
{
|
| 7 |
+
return (string) Mage::getConfig()->getNode()->modules->Nchannel_Communicator->version;
|
| 8 |
+
}
|
| 9 |
}
|
|
|
app/code/community/Nchannel/Communicator/Model/Productutility/Api/V2.php
CHANGED
|
@@ -23,6 +23,9 @@ class Nchannel_Communicator_Model_Productutility_Api_V2 extends Nchannel_Communi
|
|
| 23 |
//Mage::log('ids: ' . print_r($ids,true),null,'nChannel_Communicator.log');
|
| 24 |
Mage::log('Loop IDs',null,'nChannel_Communicator.log');
|
| 25 |
Mage::log('product id output: ' . $product->getId(),null,'nChannel_Communicator.log');
|
|
|
|
|
|
|
|
|
|
| 26 |
foreach ( $ids as $arr ) {
|
| 27 |
foreach($arr as $id)
|
| 28 |
{
|
|
@@ -32,15 +35,9 @@ class Nchannel_Communicator_Model_Productutility_Api_V2 extends Nchannel_Communi
|
|
| 32 |
|
| 33 |
}
|
| 34 |
}
|
| 35 |
-
Mage::log('Add new Product',null,'nChannel_Communicator.log');
|
| 36 |
-
//Mage::log('newids: ' . print_r($newids,true),null,'nChannel_Communicator.log');
|
| 37 |
-
Mage::log('$addNewID: ' . $addNewID,null,'nChannel_Communicator.log');
|
| 38 |
|
| 39 |
$newids[$product->getId()] = 1;
|
| 40 |
|
| 41 |
-
|
| 42 |
-
//Mage::log(print_r($newids,true),null,'nChannel_Communicator.log');
|
| 43 |
-
Mage::log('Save Products',null,'nChannel_Communicator.log');
|
| 44 |
try{
|
| 45 |
Mage::log('Saving Products', null, 'nChannel_Communicator.log');
|
| 46 |
$loader->saveProducts( $configurableProduct, array_keys( $newids ) );
|
|
@@ -50,9 +47,59 @@ class Nchannel_Communicator_Model_Productutility_Api_V2 extends Nchannel_Communi
|
|
| 50 |
$loader->saveProducts( $configurableProduct, array_keys( $newids ) );
|
| 51 |
Mage::log($ex->getMessage(),null,'nChannel_Communicator.log');
|
| 52 |
}
|
|
|
|
| 53 |
Mage::log('Complete', null, 'nChannel_Communicator.log');
|
| 54 |
return "Success!";
|
| 55 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
public function addAttributes($sku , $configAttrCodes)
|
| 57 |
{
|
| 58 |
/*$product = new Mage_Catalog_Model_Product();
|
|
@@ -118,5 +165,41 @@ class Nchannel_Communicator_Model_Productutility_Api_V2 extends Nchannel_Communi
|
|
| 118 |
return $configProduct->getId();
|
| 119 |
|
| 120 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
}
|
| 122 |
?>
|
| 23 |
//Mage::log('ids: ' . print_r($ids,true),null,'nChannel_Communicator.log');
|
| 24 |
Mage::log('Loop IDs',null,'nChannel_Communicator.log');
|
| 25 |
Mage::log('product id output: ' . $product->getId(),null,'nChannel_Communicator.log');
|
| 26 |
+
|
| 27 |
+
Mage::log('Adding Product: '.$childSku,null,'nChannel_Communicator.log');
|
| 28 |
+
|
| 29 |
foreach ( $ids as $arr ) {
|
| 30 |
foreach($arr as $id)
|
| 31 |
{
|
| 35 |
|
| 36 |
}
|
| 37 |
}
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
$newids[$product->getId()] = 1;
|
| 40 |
|
|
|
|
|
|
|
|
|
|
| 41 |
try{
|
| 42 |
Mage::log('Saving Products', null, 'nChannel_Communicator.log');
|
| 43 |
$loader->saveProducts( $configurableProduct, array_keys( $newids ) );
|
| 47 |
$loader->saveProducts( $configurableProduct, array_keys( $newids ) );
|
| 48 |
Mage::log($ex->getMessage(),null,'nChannel_Communicator.log');
|
| 49 |
}
|
| 50 |
+
Mage::log('Product '.$childSku.' was added', null, 'nChannel_Communicator.log');
|
| 51 |
Mage::log('Complete', null, 'nChannel_Communicator.log');
|
| 52 |
return "Success!";
|
| 53 |
}
|
| 54 |
+
|
| 55 |
+
public function detachProductFromConfigurable( $childSku, $configurableProductID ) {
|
| 56 |
+
Mage::log('sku ' . $childSku,null,'nChannel_Communicator.log');
|
| 57 |
+
Mage::log('pid ' . $configurableProductID,null,'nChannel_Communicator.log');
|
| 58 |
+
$configurableProduct = Mage::getModel('catalog/product')->load($configurableProductID);
|
| 59 |
+
$loader = Mage::getResourceModel( 'catalog/product_type_configurable' )->load($configurableProduct,$configurableProductID);
|
| 60 |
+
$product = Mage::getModel('catalog/product')->loadByAttribute('sku',$childSku);
|
| 61 |
+
$productid = $product->getId();
|
| 62 |
+
Mage::log('child product: ' . print_r($product,true));
|
| 63 |
+
Mage::log($product->getSku(),null,'nChannel_Communicator.log');
|
| 64 |
+
//return print_r($configurableProduct,true);
|
| 65 |
+
//$ids = $configurableProduct->getTypeInstance(true)->getUsedProductIds();
|
| 66 |
+
$ids = Mage::getModel('catalog/product_type_configurable')->getChildrenIds($configurableProductID);
|
| 67 |
+
Mage::log('$ids ' . print_r($ids,true));
|
| 68 |
+
//$ids = $configurableProduct->getUsedProductIds();
|
| 69 |
+
$newids = array();
|
| 70 |
+
//Mage::log('ids: ' . print_r($ids,true),null,'nChannel_Communicator.log');
|
| 71 |
+
Mage::log('Loop IDs',null,'nChannel_Communicator.log');
|
| 72 |
+
Mage::log('product id output: ' . $productid,null,'nChannel_Communicator.log');
|
| 73 |
+
|
| 74 |
+
Mage::log('Removing Product: '.$childSku,null,'nChannel_Communicator.log');
|
| 75 |
+
foreach ( $ids as $arr ) {
|
| 76 |
+
foreach($arr as $id) {
|
| 77 |
+
|
| 78 |
+
Mage::log('id output: ' . $id,null,'nChannel_Communicator.log');
|
| 79 |
+
|
| 80 |
+
if ($productid != $id)
|
| 81 |
+
{
|
| 82 |
+
$newids[$id] = 1;
|
| 83 |
+
}
|
| 84 |
+
}
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
try{
|
| 88 |
+
Mage::log('Saving Products', null, 'nChannel_Communicator.log');
|
| 89 |
+
$loader->saveProducts( $configurableProduct, array_keys( $newids ) );
|
| 90 |
+
} catch(exception $ex)
|
| 91 |
+
{
|
| 92 |
+
array_pop($newids);
|
| 93 |
+
$loader->saveProducts( $configurableProduct, array_keys( $newids ) );
|
| 94 |
+
Mage::log($ex->getMessage(),null,'nChannel_Communicator.log');
|
| 95 |
+
}
|
| 96 |
+
|
| 97 |
+
Mage::log('Product '.$childSku.' was removed', null, 'nChannel_Communicator.log');
|
| 98 |
+
Mage::log('Complete', null, 'nChannel_Communicator.log');
|
| 99 |
+
|
| 100 |
+
//return "Success!";
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
public function addAttributes($sku , $configAttrCodes)
|
| 104 |
{
|
| 105 |
/*$product = new Mage_Catalog_Model_Product();
|
| 165 |
return $configProduct->getId();
|
| 166 |
|
| 167 |
}
|
| 168 |
+
|
| 169 |
+
public function loadSimpleProductsFromConfigurable($configurableProductSKU)
|
| 170 |
+
{
|
| 171 |
+
$product = Mage::getModel('catalog/product')->loadByAttribute('sku', $configurableProductSKU);
|
| 172 |
+
$ids = Mage::getModel('catalog/product_type_configurable')->getChildrenIds($product->getId());
|
| 173 |
+
Mage::log('$ids ' . print_r($ids,true),null,'nChannel_Communicator.log');
|
| 174 |
+
|
| 175 |
+
foreach ( $ids as $arr ) {
|
| 176 |
+
foreach($arr as $id)
|
| 177 |
+
{
|
| 178 |
+
$row = array();
|
| 179 |
+
Mage::log('id output: ' . $id,null,'nChannel_Communicator.log');
|
| 180 |
+
|
| 181 |
+
$row = Mage::getModel('catalog/product')->load($id)->getSku();
|
| 182 |
+
$result[] = $row;
|
| 183 |
+
}
|
| 184 |
+
}
|
| 185 |
+
return $result;
|
| 186 |
+
}
|
| 187 |
+
|
| 188 |
+
public function productLastModified($storeView, $date)
|
| 189 |
+
{
|
| 190 |
+
$products = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($storeView)->addFieldToFilter('updated_at', array("gt" => $date));
|
| 191 |
+
|
| 192 |
+
$result = array();
|
| 193 |
+
foreach ($products as $product)
|
| 194 |
+
{
|
| 195 |
+
$row = array();
|
| 196 |
+
Mage::log('id output: ' . print_r($product->getSku()),'nChannel_Communicator.log');
|
| 197 |
+
|
| 198 |
+
$row = $product->getSku();
|
| 199 |
+
$result[] = $row;
|
| 200 |
+
}
|
| 201 |
+
|
| 202 |
+
return $result;
|
| 203 |
+
}
|
| 204 |
}
|
| 205 |
?>
|
app/code/community/Nchannel/Communicator/etc/api.xml
CHANGED
|
@@ -21,9 +21,18 @@
|
|
| 21 |
<addAttributes translate="title" module="Communicator">
|
| 22 |
<method>addAttributes</method>
|
| 23 |
</addAttributes>
|
| 24 |
-
<attachProductToConfigurable translate="title"
|
| 25 |
<method>attachProductToConfigurable</method>
|
| 26 |
</attachProductToConfigurable>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
</methods>
|
| 28 |
</Communicator_Productutility>
|
| 29 |
</resources>
|
| 21 |
<addAttributes translate="title" module="Communicator">
|
| 22 |
<method>addAttributes</method>
|
| 23 |
</addAttributes>
|
| 24 |
+
<attachProductToConfigurable translate="title" module="Communicator">
|
| 25 |
<method>attachProductToConfigurable</method>
|
| 26 |
</attachProductToConfigurable>
|
| 27 |
+
<loadSimpleProductsFromConfigurable translate="title" module="Communicator">
|
| 28 |
+
<method>loadSimpleProductsFromConfigurable</method>
|
| 29 |
+
</loadSimpleProductsFromConfigurable>
|
| 30 |
+
<productLastModified translate="title" moduel="Communicator">
|
| 31 |
+
<method>productLastModified</method>
|
| 32 |
+
</productLastModified>
|
| 33 |
+
<detachProductFromConfigurable translate="title" module="Communicator">
|
| 34 |
+
<method>detachProductFromConfigurable</method>
|
| 35 |
+
</detachProductFromConfigurable>
|
| 36 |
</methods>
|
| 37 |
</Communicator_Productutility>
|
| 38 |
</resources>
|
app/code/community/Nchannel/Communicator/etc/config.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<config>
|
| 2 |
<modules>
|
| 3 |
<Nchannel_Communicator>
|
| 4 |
-
<version>0.1.
|
| 5 |
</Nchannel_Communicator>
|
| 6 |
</modules>
|
| 7 |
<admin>
|
| 1 |
<config>
|
| 2 |
<modules>
|
| 3 |
<Nchannel_Communicator>
|
| 4 |
+
<version>0.1.10</version>
|
| 5 |
</Nchannel_Communicator>
|
| 6 |
</modules>
|
| 7 |
<admin>
|
app/code/community/Nchannel/Communicator/etc/system.xml
CHANGED
|
@@ -130,6 +130,15 @@
|
|
| 130 |
<show_in_website>1</show_in_website>
|
| 131 |
<show_in_store>1</show_in_store>
|
| 132 |
</EMAILTEMPLATE>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 133 |
</fields>
|
| 134 |
</Support>
|
| 135 |
</groups>
|
| 130 |
<show_in_website>1</show_in_website>
|
| 131 |
<show_in_store>1</show_in_store>
|
| 132 |
</EMAILTEMPLATE>
|
| 133 |
+
<version translate="label">
|
| 134 |
+
<label>Communicator Extension Version</label>
|
| 135 |
+
<frontend_type>select</frontend_type>
|
| 136 |
+
<frontend_model>Nchannel_Communicator_Block_Adminhtml_Version</frontend_model>
|
| 137 |
+
<sort_order>100</sort_order>
|
| 138 |
+
<show_in_default>1</show_in_default>
|
| 139 |
+
<show_in_website>1</show_in_website>
|
| 140 |
+
<show_in_store>1</show_in_store>
|
| 141 |
+
</version>
|
| 142 |
</fields>
|
| 143 |
</Support>
|
| 144 |
</groups>
|
app/code/community/Nchannel/Communicator/etc/wsdl.xml
CHANGED
|
@@ -32,7 +32,29 @@
|
|
| 32 |
<message name="ProductutilityAttachProductToConfigurableResponse">
|
| 33 |
<part name="result" type="xsd:string" />
|
| 34 |
</message>
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
<portType name="{{var wsdl.handler}}PortType">
|
| 38 |
<operation name="CommunicatorHello">
|
|
@@ -49,6 +71,21 @@
|
|
| 49 |
<documentation>Sets up configurable attributes. </documentation>
|
| 50 |
<input message="typens:ProductutilityAttachProductToConfigurableRequest" />
|
| 51 |
<output message="typens:ProductutilityAttachProductToConfigurableResponse" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
</operation>
|
| 53 |
</portType>
|
| 54 |
|
|
@@ -80,6 +117,33 @@
|
|
| 80 |
<output>
|
| 81 |
<soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
|
| 82 |
</output>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
</operation>
|
| 84 |
</binding>
|
| 85 |
|
| 32 |
<message name="ProductutilityAttachProductToConfigurableResponse">
|
| 33 |
<part name="result" type="xsd:string" />
|
| 34 |
</message>
|
| 35 |
+
<message name="ProductutilityLoadSimpleProductsFromConfigurableRequest">
|
| 36 |
+
<part name="sessionId" type="xsd:string" />
|
| 37 |
+
<part name="configurableProductSKU" type="xsd:string" />
|
| 38 |
+
</message>
|
| 39 |
+
<message name="ProductutilityLoadSimpleProductsFromConfigurableResponse">
|
| 40 |
+
<part name="result" type="typens:ArrayOfString" />
|
| 41 |
+
</message>
|
| 42 |
+
<message name="ProductutilityProductLastModifiedRequest">
|
| 43 |
+
<part name="sessionId" type="xsd:string" />
|
| 44 |
+
<part name="storeView" type="xsd:string" />
|
| 45 |
+
<part name="date" type="xsd:string" />
|
| 46 |
+
</message>
|
| 47 |
+
<message name="ProductutilityProductLastModifiedResponse">
|
| 48 |
+
<part name="result" type="typens:ArrayOfString" />
|
| 49 |
+
</message>
|
| 50 |
+
<message name="ProductutilityDetachProductFromConfigurableRequest">
|
| 51 |
+
<part name="sessionId" type="xsd:string" />
|
| 52 |
+
<part name="childSku" type="xsd:string" />
|
| 53 |
+
<part name="configurableProductID" type="xsd:int" />
|
| 54 |
+
</message>
|
| 55 |
+
<message name="ProductutilityDetachProductFromConfigurableResponse">
|
| 56 |
+
<part name="result" type="xsd:string" />
|
| 57 |
+
</message>
|
| 58 |
|
| 59 |
<portType name="{{var wsdl.handler}}PortType">
|
| 60 |
<operation name="CommunicatorHello">
|
| 71 |
<documentation>Sets up configurable attributes. </documentation>
|
| 72 |
<input message="typens:ProductutilityAttachProductToConfigurableRequest" />
|
| 73 |
<output message="typens:ProductutilityAttachProductToConfigurableResponse" />
|
| 74 |
+
</operation>
|
| 75 |
+
<operation name="ProductutilityLoadSimpleProductsFromConfigurable">
|
| 76 |
+
<documentation>Loads simple products from a configurable product. </documentation>
|
| 77 |
+
<input message="typens:ProductutilityLoadSimpleProductsFromConfigurableRequest" />
|
| 78 |
+
<output message="typens:ProductutilityLoadSimpleProductsFromConfigurableResponse" />
|
| 79 |
+
</operation>
|
| 80 |
+
<operation name="ProductutilityProductLastModified">
|
| 81 |
+
<documentation>Queries the last modified time of a product. </documentation>
|
| 82 |
+
<input message="typens:ProductutilityProductLastModifiedRequest" />
|
| 83 |
+
<output message="typens:ProductutilityProductLastModifiedResponse" />
|
| 84 |
+
</operation>
|
| 85 |
+
<operation name="ProductutilityDetachProductFromConfigurable">
|
| 86 |
+
<documentation>Sets up configurable attributes. </documentation>
|
| 87 |
+
<input message="typens:ProductutilityDetachProductFromConfigurableRequest" />
|
| 88 |
+
<output message="typens:ProductutilityDetachProductFromConfigurableResponse" />
|
| 89 |
</operation>
|
| 90 |
</portType>
|
| 91 |
|
| 117 |
<output>
|
| 118 |
<soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
|
| 119 |
</output>
|
| 120 |
+
</operation>
|
| 121 |
+
<operation name="ProductutilityLoadSimpleProductsFromConfigurable">
|
| 122 |
+
<soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
|
| 123 |
+
<input>
|
| 124 |
+
<soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
|
| 125 |
+
</input>
|
| 126 |
+
<output>
|
| 127 |
+
<soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
|
| 128 |
+
</output>
|
| 129 |
+
</operation>
|
| 130 |
+
<operation name="ProductutilityProductLastModified">
|
| 131 |
+
<soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
|
| 132 |
+
<input>
|
| 133 |
+
<soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
|
| 134 |
+
</input>
|
| 135 |
+
<output>
|
| 136 |
+
<soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
|
| 137 |
+
</output>
|
| 138 |
+
</operation>
|
| 139 |
+
<operation name="ProductutilityDetachProductFromConfigurable">
|
| 140 |
+
<soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
|
| 141 |
+
<input>
|
| 142 |
+
<soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
|
| 143 |
+
</input>
|
| 144 |
+
<output>
|
| 145 |
+
<soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
|
| 146 |
+
</output>
|
| 147 |
</operation>
|
| 148 |
</binding>
|
| 149 |
|
app/locale/en_US/template/email/FailedOrder.html
DELETED
|
@@ -1,90 +0,0 @@
|
|
| 1 |
-
There was an issue with sending this order to the nChannel API. Please Investigate.
|
| 2 |
-
|
| 3 |
-
<body style="background:#F6F6F6; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:0; padding:0;">
|
| 4 |
-
<div style="background:#F6F6F6; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:0; padding:0;">
|
| 5 |
-
<table cellspacing="0" cellpadding="0" border="0" width="100%">
|
| 6 |
-
<tr>
|
| 7 |
-
<td align="center" valign="top" style="padding:20px 0 20px 0">
|
| 8 |
-
<table bgcolor="#FFFFFF" cellspacing="0" cellpadding="10" border="0" width="650" style="border:1px solid #E0E0E0;">
|
| 9 |
-
<!-- [ header starts here] -->
|
| 10 |
-
<tr>
|
| 11 |
-
<td valign="top"><a href="{{store url=""}}"><img src="{{skin url="images/logo_email.gif" _area='frontend'}}" alt="{{var store.getFrontendName()}}" style="margin-bottom:10px;" border="0"/></a></td>
|
| 12 |
-
</tr>
|
| 13 |
-
<!-- [ middle starts here] -->
|
| 14 |
-
<tr>
|
| 15 |
-
<td valign="top">
|
| 16 |
-
<h1 style="font-size:22px; font-weight:normal; line-height:22px; margin:0 0 11px 0;"">Hello, {{htmlescape var=$order.getCustomerName()}}</h1>
|
| 17 |
-
<p style="font-size:12px; line-height:16px; margin:0;">
|
| 18 |
-
Thank you for your order from {{var store.getFrontendName()}}.
|
| 19 |
-
Once your package ships we will send an email with a link to track your order.
|
| 20 |
-
You can check the status of your order by <a href="{{store url="customer/account/"}}" style="color:#1E7EC8;">logging into your account</a>.
|
| 21 |
-
If you have any questions about your order please contact us at <a href="mailto:{{config path='trans_email/ident_support/email'}}" style="color:#1E7EC8;">{{config path='trans_email/ident_support/email'}}</a> or call us at <span class="nobr">{{config path='general/store_information/phone'}}</span> Monday - Friday, 8am - 5pm PST.
|
| 22 |
-
</p>
|
| 23 |
-
<p style="font-size:12px; line-height:16px; margin:0;">Your order confirmation is below. Thank you again for your business.</p>
|
| 24 |
-
</tr>
|
| 25 |
-
<tr>
|
| 26 |
-
<td>
|
| 27 |
-
<h2 style="font-size:18px; font-weight:normal; margin:0;">Your Order #{{var order.increment_id}} <small>(placed on {{var order.getCreatedAtFormated('long')}})</small></h2>
|
| 28 |
-
</td>
|
| 29 |
-
</tr>
|
| 30 |
-
<tr>
|
| 31 |
-
<td>
|
| 32 |
-
<table cellspacing="0" cellpadding="0" border="0" width="650">
|
| 33 |
-
<thead>
|
| 34 |
-
<tr>
|
| 35 |
-
<th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px; padding:5px 9px 6px 9px; line-height:1em;">Billing Information:</th>
|
| 36 |
-
<th width="10"></th>
|
| 37 |
-
<th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px; padding:5px 9px 6px 9px; line-height:1em;">Payment Method:</th>
|
| 38 |
-
</tr>
|
| 39 |
-
</thead>
|
| 40 |
-
<tbody>
|
| 41 |
-
<tr>
|
| 42 |
-
<td valign="top" style="font-size:12px; padding:7px 9px 9px 9px; border-left:1px solid #EAEAEA; border-bottom:1px solid #EAEAEA; border-right:1px solid #EAEAEA;">
|
| 43 |
-
{{var order.getBillingAddress().format('html')}}
|
| 44 |
-
</td>
|
| 45 |
-
<td> </td>
|
| 46 |
-
<td valign="top" style="font-size:12px; padding:7px 9px 9px 9px; border-left:1px solid #EAEAEA; border-bottom:1px solid #EAEAEA; border-right:1px solid #EAEAEA;">
|
| 47 |
-
{{var payment_html}}
|
| 48 |
-
</td>
|
| 49 |
-
</tr>
|
| 50 |
-
</tbody>
|
| 51 |
-
</table>
|
| 52 |
-
<br/>
|
| 53 |
-
{{depend order.getIsNotVirtual()}}
|
| 54 |
-
<table cellspacing="0" cellpadding="0" border="0" width="650">
|
| 55 |
-
<thead>
|
| 56 |
-
<tr>
|
| 57 |
-
<th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px; padding:5px 9px 6px 9px; line-height:1em;">Shipping Information:</th>
|
| 58 |
-
<th width="10"></th>
|
| 59 |
-
<th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px; padding:5px 9px 6px 9px; line-height:1em;">Shipping Method:</th>
|
| 60 |
-
</tr>
|
| 61 |
-
</thead>
|
| 62 |
-
<tbody>
|
| 63 |
-
<tr>
|
| 64 |
-
<td valign="top" style="font-size:12px; padding:7px 9px 9px 9px; border-left:1px solid #EAEAEA; border-bottom:1px solid #EAEAEA; border-right:1px solid #EAEAEA;">
|
| 65 |
-
{{var order.getShippingAddress().format('html')}}
|
| 66 |
-
|
| 67 |
-
</td>
|
| 68 |
-
<td> </td>
|
| 69 |
-
<td valign="top" style="font-size:12px; padding:7px 9px 9px 9px; border-left:1px solid #EAEAEA; border-bottom:1px solid #EAEAEA; border-right:1px solid #EAEAEA;">
|
| 70 |
-
{{var order.getShippingDescription()}}
|
| 71 |
-
|
| 72 |
-
</td>
|
| 73 |
-
</tr>
|
| 74 |
-
</tbody>
|
| 75 |
-
</table>
|
| 76 |
-
<br/>
|
| 77 |
-
{{/depend}}
|
| 78 |
-
{{layout handle="sales_email_order_items" order=$order}}
|
| 79 |
-
<p style="font-size:12px; margin:0 0 10px 0">{{var order.getEmailCustomerNote()}}</p>
|
| 80 |
-
</td>
|
| 81 |
-
</tr>
|
| 82 |
-
<tr>
|
| 83 |
-
<td bgcolor="#EAEAEA" align="center" style="background:#EAEAEA; text-align:center;"><center><p style="font-size:12px; margin:0;">Thank you, <strong>{{var store.getFrontendName()}}</strong></p></center></td>
|
| 84 |
-
</tr>
|
| 85 |
-
</table>
|
| 86 |
-
</td>
|
| 87 |
-
</tr>
|
| 88 |
-
</table>
|
| 89 |
-
</div>
|
| 90 |
-
</body>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package.xml
CHANGED
|
@@ -1,18 +1,19 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>nChannel_Communicator</name>
|
| 4 |
-
<version>0.1.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="https://portal.nchannel.com/Content/data/EULA_2012-04-21.pdf">nChannel EULA</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>nChannel Communicator allows for event driven communication with the nChannel API on creation of new orders.</summary>
|
| 10 |
<description>nChannel Communicator allows for event driven communication with the nChannel API on creation of new orders.</description>
|
| 11 |
-
<notes>
|
|
|
|
| 12 |
<authors><author><name>nChannel</name><user>jpepper</user><email>jpepper@nchannel.com</email></author></authors>
|
| 13 |
-
<date>
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="magecommunity"><dir name="Nchannel"><dir name="Communicator"><dir name="Helper"><file name="Data.php" hash="
|
| 16 |
<compatible/>
|
| 17 |
-
<dependencies><required><php><min>5.2.0</min><max>5.5.
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>nChannel_Communicator</name>
|
| 4 |
+
<version>0.1.10</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="https://portal.nchannel.com/Content/data/EULA_2012-04-21.pdf">nChannel EULA</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>nChannel Communicator allows for event driven communication with the nChannel API on creation of new orders.</summary>
|
| 10 |
<description>nChannel Communicator allows for event driven communication with the nChannel API on creation of new orders.</description>
|
| 11 |
+
<notes>Added version number to admin section. 
|
| 12 |
+
Fixed version number.</notes>
|
| 13 |
<authors><author><name>nChannel</name><user>jpepper</user><email>jpepper@nchannel.com</email></author></authors>
|
| 14 |
+
<date>2014-09-04</date>
|
| 15 |
+
<time>20:27:37</time>
|
| 16 |
+
<contents><target name="magecommunity"><dir name="Nchannel"><dir name="Communicator"><dir name="Block"><dir name="Adminhtml"><file name="Version.php" hash="afa8d0feea50602251007002ae1eb4b1"/></dir></dir><dir name="Helper"><file name="Data.php" hash="7d5d9a9593474991cec1d1f521f41482"/></dir><dir name="Model"><file name="Api.php" hash="9001584aa011771215b4a26d31214998"/><dir name="Helloworld"><dir name="Api"><file name="V2.php" hash="f9c5dd40cee982eeb2c8d6d739e42f9d"/></dir><file name="Api.php" hash="fadb95acd58027f40bca5b9847dc2eda"/></dir><file name="Observer.php" hash="461f9acf6b47d6d53240b4f9ef5b3af3"/><dir name="Productutility"><dir name="Api"><file name="V2.php" hash="6a680e28b5fa15d9472e589625deae09"/></dir><file name="Api.php" hash="83e30c3b4526c851d8ff31dd73957495"/></dir><dir name="Source"><file name="NchannelEnvironment.php" hash="cf979a2ce627f3e20d1d04e55533e89f"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="04f02984743361ad17d0d9c85c05afc5"/></dir><dir name="etc"><file name="adminhtml.xml" hash="1c959ca1b60ae9fc0ea61107c4bf3a8d"/><file name="api.xml" hash="37aef0e17ab515697ac0df19cfb3a1b6"/><file name="config.xml" hash="11ac8090f0a1b735aa3e92cbca9108bf"/><file name="system.xml" hash="19596271befc22620795ae244d6c20b0"/><file name="wsdl.xml" hash="a45680e6ce6e3435aa605645e79aef11"/><file name="wsi.xml" hash="41f6baef07d7e977a3fbd26cb37bd5d2"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Nchannel_Communicator.xml" hash="698fe66f544b1bcf42154dcd4d621527"/></dir><dir name="en_US"><dir name="template"><dir name="email"><file name="FailedOrder.html" hash=""/></dir></dir></dir></target></contents>
|
| 17 |
<compatible/>
|
| 18 |
+
<dependencies><required><php><min>5.2.0</min><max>5.5.11</max></php></required></dependencies>
|
| 19 |
</package>
|
