SimpleRelevance_Integration - Version 0.0.6

Version Notes

-- version 0.0.6
Correcting but on orders export (timestamp)

-- version 0.0.5
Automatic Customer and Product submission

-- version 0.0.4
Bug fixes, new data on product import, debug facility

-- version 0.0.1
First release

Download this release

Release Info

Developer Magento Core Team
Extension SimpleRelevance_Integration
Version 0.0.6
Comparing to
See all releases


Code changes from version 0.0.5 to 0.0.6

app/code/community/SimpleRelevance/Integration/Model/Purchase.php CHANGED
@@ -23,12 +23,6 @@ class SimpleRelevance_Integration_Model_Purchase
23
  public function getPostData()
24
  {
25
  $data = array();
26
-
27
- /*$data ['total_canceled'] = $this->_order->getTotalCanceled();
28
- $data ['created_at'] = $this->_order->getCreatedAt();
29
- $data ['total_paid'] = $this->_order->getTotalPaid();
30
- $data ['zipcode'] = $this->_order->getBillingAddress()->getPostcode();
31
- $data ['email'] = $this->_order->getCustomerEmail();*/
32
  $data ['items'] = $this->getItems();
33
 
34
  return $data;
@@ -43,12 +37,14 @@ class SimpleRelevance_Integration_Model_Purchase
43
  {
44
  $items = array();
45
 
 
 
46
  foreach($this->_order->getItemsCollection() as $item){
47
  $items []= array(
48
  'price' => (float)$item->getRowTotalInclTax(),
49
  'item_id' => $item->getProductId(),
50
  'email' => $this->_order->getCustomerEmail(),
51
- 'timestamp' => Mage::getModel('core/date')->gmtDate('m/d/Y H:i:s')
52
  );
53
  }
54
 
23
  public function getPostData()
24
  {
25
  $data = array();
 
 
 
 
 
 
26
  $data ['items'] = $this->getItems();
27
 
28
  return $data;
37
  {
38
  $items = array();
39
 
40
+ $date = Mage::getModel('core/date')->date('m/d/Y H:i:s', $this->_order->getCreatedAt());
41
+
42
  foreach($this->_order->getItemsCollection() as $item){
43
  $items []= array(
44
  'price' => (float)$item->getRowTotalInclTax(),
45
  'item_id' => $item->getProductId(),
46
  'email' => $this->_order->getCustomerEmail(),
47
+ 'timestamp' => $date
48
  );
49
  }
50
 
app/code/community/SimpleRelevance/Integration/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <SimpleRelevance_Integration>
5
- <version>0.0.5</version>
6
  </SimpleRelevance_Integration>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <SimpleRelevance_Integration>
5
+ <version>0.0.6</version>
6
  </SimpleRelevance_Integration>
7
  </modules>
8
  <global>
package.xml CHANGED
@@ -1,14 +1,17 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>SimpleRelevance_Integration</name>
4
- <version>0.0.5</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>SimpleRelevance integration module</summary>
10
  <description>Featuring customers, products and orders.</description>
11
- <notes>-- version 0.0.5
 
 
 
12
  Automatic Customer and Product submission
13
 
14
  -- version 0.0.4
@@ -18,8 +21,8 @@
18
  First release</notes>
19
  <authors><author><name>SimpleRelevance DEV team</name><user>auto-converted</user><email>info@simplerelevance.com</email></author></authors>
20
  <date>2012-04-11</date>
21
- <time>12:55:16</time>
22
- <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="simple_relevance.xml" hash="f0d73f30b7aeff70f63b295327ac906c"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="simple_relevance"><dir name="images"><file name="box-tab.png" hash="208977131fcbe078f10af53295ac686c"/><file name="simplerelevance-header.png" hash="c25099645618a32b8fdb8d4d7786cf2c"/></dir><file name="css.css" hash="c354dd9c0e48bdb99089b1756058efc1"/><file name="js.js" hash="5831e6e503ebd86f93e07230b56a6d2f"/></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="SimpleRelevance_Integration.csv" hash="05e3ba1c882990c307dbe510bc0bea36"/></dir></target><target name="mageetc"><dir name="modules"><file name="SimpleRelevance_Integration.xml" hash="6ad0b704a9e62de159f09babfe2482d5"/></dir></target><target name="magecommunity"><dir name="SimpleRelevance"><dir name="Integration"><dir name="controllers"><dir name="Adminhtml"><file name="ExportController.php" hash="840104daa154dab436ab043f8ea217af"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="18e9829f6252920f6bf01a5340377b3a"/><file name="config.xml" hash="a06dac4d32e5f010a0ec749484d7ffb9"/><file name="system.xml" hash="638f6aac1d2d19b8b9d9ca4fed0065f5"/></dir><dir name="Helper"><file name="Data.php" hash="7d3955676a03b690a81c4aa98df25514"/></dir><dir name="Model"><file name="Api.php" hash="3598b602c1adf8f425a57836a743e44f"/><file name="Observer.php" hash="3b037003b20423c6dd6a66fdf9b1b1f9"/><file name="Purchase.php" hash="f073c1b379a0946a96ee5fcbfda6cc47"/></dir></dir></dir></target></contents>
23
  <compatible/>
24
  <dependencies/>
25
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>SimpleRelevance_Integration</name>
4
+ <version>0.0.6</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>SimpleRelevance integration module</summary>
10
  <description>Featuring customers, products and orders.</description>
11
+ <notes>-- version 0.0.6
12
+ Correcting but on orders export (timestamp)
13
+
14
+ -- version 0.0.5
15
  Automatic Customer and Product submission
16
 
17
  -- version 0.0.4
21
  First release</notes>
22
  <authors><author><name>SimpleRelevance DEV team</name><user>auto-converted</user><email>info@simplerelevance.com</email></author></authors>
23
  <date>2012-04-11</date>
24
+ <time>19:33:11</time>
25
+ <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="simple_relevance.xml" hash="f0d73f30b7aeff70f63b295327ac906c"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="simple_relevance"><dir name="images"><file name="box-tab.png" hash="208977131fcbe078f10af53295ac686c"/><file name="simplerelevance-header.png" hash="c25099645618a32b8fdb8d4d7786cf2c"/></dir><file name="css.css" hash="c354dd9c0e48bdb99089b1756058efc1"/><file name="js.js" hash="5831e6e503ebd86f93e07230b56a6d2f"/></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="SimpleRelevance_Integration.csv" hash="05e3ba1c882990c307dbe510bc0bea36"/></dir></target><target name="mageetc"><dir name="modules"><file name="SimpleRelevance_Integration.xml" hash="6ad0b704a9e62de159f09babfe2482d5"/></dir></target><target name="magecommunity"><dir name="SimpleRelevance"><dir name="Integration"><dir name="controllers"><dir name="Adminhtml"><file name="ExportController.php" hash="840104daa154dab436ab043f8ea217af"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="18e9829f6252920f6bf01a5340377b3a"/><file name="config.xml" hash="acc9c1ad1bc812402139bac648909ccc"/><file name="system.xml" hash="638f6aac1d2d19b8b9d9ca4fed0065f5"/></dir><dir name="Helper"><file name="Data.php" hash="7d3955676a03b690a81c4aa98df25514"/></dir><dir name="Model"><file name="Api.php" hash="3598b602c1adf8f425a57836a743e44f"/><file name="Observer.php" hash="3b037003b20423c6dd6a66fdf9b1b1f9"/><file name="Purchase.php" hash="dae8d7e715381a9ec160123f27800b15"/></dir></dir></dir></target></contents>
26
  <compatible/>
27
  <dependencies/>
28
  </package>