Svitla_IBoughtIt - Version 0.1.5

Version Notes

new place for iboughtit widget

Download this release

Release Info

Developer Magento Core Team
Extension Svitla_IBoughtIt
Version 0.1.5
Comparing to
See all releases


Code changes from version 0.1.4 to 0.1.5

app/code/community/Svitla/Iboughtit/Helper/Data.php CHANGED
@@ -60,7 +60,7 @@ class Svitla_Iboughtit_Helper_Data extends Mage_Catalog_Helper_Data {
60
 
61
  public function getHash($orderId=null){
62
  $storedOrder=Mage::getSingleton('core/session')->getStoredOrder();
63
- if(isset($storedOrder) && is_array($storedOrder) && count($storedOrder)>0 && isset($storedOrder[$orderId])){
64
  return $storedOrder[$orderId];
65
  }
66
  else{
@@ -90,7 +90,7 @@ class Svitla_Iboughtit_Helper_Data extends Mage_Catalog_Helper_Data {
90
  $productCategory = $this->fetchCategories($categoryIds);
91
 
92
  $aResult['items'][$key]['prod_id']=$productId;
93
- $aResult['items'][$key]['prod_category']=$productCategory;
94
 
95
  $aResult['items'][$key]['category_id']=(is_array($categoryIds) && count($categoryIds)>0) ? implode(',', $categoryIds) : '';
96
  $aResult['items'][$key]['category_title']=$productCategory;
60
 
61
  public function getHash($orderId=null){
62
  $storedOrder=Mage::getSingleton('core/session')->getStoredOrder();
63
+ if(isset($storedOrder) && is_array($storedOrder) && count($storedOrder)>0 && isset($storedOrder[$orderId])){// && $storedOrder[$orderId]->error==''){
64
  return $storedOrder[$orderId];
65
  }
66
  else{
90
  $productCategory = $this->fetchCategories($categoryIds);
91
 
92
  $aResult['items'][$key]['prod_id']=$productId;
93
+ //$aResult['items'][$key]['prod_category']=$productCategory;
94
 
95
  $aResult['items'][$key]['category_id']=(is_array($categoryIds) && count($categoryIds)>0) ? implode(',', $categoryIds) : '';
96
  $aResult['items'][$key]['category_title']=$productCategory;
app/code/community/Svitla/Iboughtit/etc/config.xml CHANGED
@@ -3,7 +3,7 @@
3
  <config>
4
  <modules>
5
  <Svitla_Iboughtit>
6
- <version>0.1.4</version>
7
  </Svitla_Iboughtit>
8
  </modules>
9
  <global>
3
  <config>
4
  <modules>
5
  <Svitla_Iboughtit>
6
+ <version>0.1.5</version>
7
  </Svitla_Iboughtit>
8
  </modules>
9
  <global>
app/design/frontend/base/default/layout/iboughtit.xml CHANGED
@@ -7,20 +7,30 @@
7
  </reference>
8
  </checkout_multishipping_success>
9
 
10
- <checkout_onepage_success translate="label">
11
- <reference name="checkout.success">
12
- <block type="iboughtit/script" name="iboughtit_success" before="downloadable.checkout.success">
13
- <action method="setTemplate">
14
- <template>iboughtit/social.phtml</template>
15
- </action>
16
- </block>
17
- </reference>
 
 
 
 
 
 
 
 
 
 
18
  <!--
19
  <reference name="before_body_end">
20
- <block type="iboughtit/script" name="iboughtit_success" />
21
- </reference>
22
  -->
23
- </checkout_onepage_success>
24
 
25
  <sales_email_order_items>
26
  <reference name="items" >
7
  </reference>
8
  </checkout_multishipping_success>
9
 
10
+ <checkout_onepage_success translate="label">
11
+ <reference name="content">
12
+ <block type="iboughtit/script" name="iboughtit_success" before="checkout.success">
13
+ <action method="setTemplate">
14
+ <template>iboughtit/social.phtml</template>
15
+ </action>
16
+ </block>
17
+ </reference>
18
+ <!--
19
+ <reference name="checkout.success">
20
+ <block type="iboughtit/script" name="iboughtit_success" before="downloadable.checkout.success">
21
+ <action method="setTemplate">
22
+ <template>iboughtit/social.phtml</template>
23
+ </action>
24
+ </block>
25
+ </reference>
26
+ -->
27
+
28
  <!--
29
  <reference name="before_body_end">
30
+ <block type="iboughtit/script" name="iboughtit_success" />
31
+ </reference>
32
  -->
33
+ </checkout_onepage_success>
34
 
35
  <sales_email_order_items>
36
  <reference name="items" >
app/design/frontend/base/default/template/iboughtit/items.phtml CHANGED
@@ -23,7 +23,7 @@
23
  </table>
24
 
25
  <br />
26
- <p>*<?php echo $this->getChildHtml('iboughtit_email') ?>*</p>
27
  <br />
28
  <br />
29
  <table cellspacing="0" cellpadding="0" border="0" width="100%" style="border:1px solid #bebcb7; background:#f8f7f5;">
23
  </table>
24
 
25
  <br />
26
+ <p><?php echo $this->getChildHtml('iboughtit_email') ?></p>
27
  <br />
28
  <br />
29
  <table cellspacing="0" cellpadding="0" border="0" width="100%" style="border:1px solid #bebcb7; background:#f8f7f5;">
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Svitla_IBoughtIt</name>
4
- <version>0.1.4</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>Extension to recommend goods over social networks</summary>
10
  <description>Extension to recommend goods over social networks</description>
11
- <notes>facebook responder</notes>
12
  <authors><author><name>Svitla</name><user>auto-converted</user><email>okhokhliuk@svitla.com</email></author></authors>
13
- <date>2012-07-24</date>
14
- <time>10:29:42</time>
15
- <contents><target name="magecommunity"><dir name="Svitla"><dir name="Iboughtit"><dir name="Block"><file name="Email.php" hash="b13dff4f97744b48bb6c24cde270d45a"/><file name="Iboughtit.php" hash="badd52e9ba20f2cc0fc3b60be82d1aee"/><file name="Link.php" hash="716af1f7464f1f05b9ac398e37dd1d0b"/><file name="Script.php" hash="09591f4e7d4aa96cf5e43ea3fbf5bc35"/><file name="Social.php" hash="fb546910c18fc4f808b6c0cb24157d23"/></dir><dir name="Helper"><file name="Data.php" hash="047eab8b03b07d3749ed995bc3fe8ad7"/></dir><dir name="Model"><file name="Iboughtit.php" hash="88ca3383b67908168a717ebc3781f635"/><file name="Status.php" hash="7f7e065cb80e95c5344731957f160d10"/></dir><dir name="controllers"><file name="IndexController.php" hash="2f0aed815ee879b456039bcd77f472c1"/></dir><dir name="etc"><file name="config.xml" hash="989d0140852905f50be6d23b7b6b6f32"/><file name="system.xml" hash="6b96dbfdd6a713da0acb290aa95f24d8"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Svitla_Iboughtit.xml" hash="cb2ee7f8f58fb73c60f85ddf977a5f41"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="iboughtit"><file name="items.phtml" hash="92dcc460d264d6d5cbca634dcdd0b1f6"/><file name="link.phtml" hash="fc3e3607c7ceaa1dff6b71fe148f5b01"/><file name="social.phtml" hash="8d35064f3312f8f3cd224ef8f555d7bd"/></dir></dir><dir name="layout"><file name="iboughtit.xml" hash="2aea6a6db9c2277466591a94cb5487aa"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Svitla_IBoughtIt</name>
4
+ <version>0.1.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>Extension to recommend goods over social networks</summary>
10
  <description>Extension to recommend goods over social networks</description>
11
+ <notes>new place for iboughtit widget</notes>
12
  <authors><author><name>Svitla</name><user>auto-converted</user><email>okhokhliuk@svitla.com</email></author></authors>
13
+ <date>2012-07-30</date>
14
+ <time>10:00:33</time>
15
+ <contents><target name="magecommunity"><dir name="Svitla"><dir name="Iboughtit"><dir name="Block"><file name="Email.php" hash="b13dff4f97744b48bb6c24cde270d45a"/><file name="Iboughtit.php" hash="badd52e9ba20f2cc0fc3b60be82d1aee"/><file name="Link.php" hash="716af1f7464f1f05b9ac398e37dd1d0b"/><file name="Script.php" hash="09591f4e7d4aa96cf5e43ea3fbf5bc35"/><file name="Social.php" hash="fb546910c18fc4f808b6c0cb24157d23"/></dir><dir name="Helper"><file name="Data.php" hash="8a3b98709f37338b0926e117ba60a47a"/></dir><dir name="Model"><file name="Iboughtit.php" hash="88ca3383b67908168a717ebc3781f635"/><file name="Status.php" hash="7f7e065cb80e95c5344731957f160d10"/></dir><dir name="controllers"><file name="IndexController.php" hash="2f0aed815ee879b456039bcd77f472c1"/></dir><dir name="etc"><file name="config.xml" hash="8199380c5af9d03180dcf83d9f52a8ca"/><file name="system.xml" hash="6b96dbfdd6a713da0acb290aa95f24d8"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Svitla_Iboughtit.xml" hash="cb2ee7f8f58fb73c60f85ddf977a5f41"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="iboughtit"><file name="items.phtml" hash="9cb99903e94603bb162fcdcbab09af84"/><file name="link.phtml" hash="fc3e3607c7ceaa1dff6b71fe148f5b01"/><file name="social.phtml" hash="8d35064f3312f8f3cd224ef8f555d7bd"/></dir></dir><dir name="layout"><file name="iboughtit.xml" hash="9abc66ff070ef4e2f60dddcde7a33742"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>