pict - Version 1.1.0

Version Notes

Added currency support

Download this release

Release Info

Developer PICT
Extension pict
Version 1.1.0
Comparing to
See all releases


Code changes from version 1.0.1 to 1.1.0

app/code/community/Pict/FeedBuilder/Model/.FeedBuilder.php.swp ADDED
Binary file
app/code/community/Pict/FeedBuilder/Model/FeedBuilder.php CHANGED
@@ -72,6 +72,7 @@ class Pict_FeedBuilder_Model_FeedBuilder extends Mage_Core_Model_Abstract {
72
  'id', //sku
73
  'name',
74
  'description',
 
75
  'price',
76
  'product_url', // product image url
77
  'qty',
@@ -108,6 +109,7 @@ class Pict_FeedBuilder_Model_FeedBuilder extends Mage_Core_Model_Abstract {
108
 
109
  ->addAttributeToSelect('sku')
110
  ->addAttributeToSelect('name')
 
111
  ->addAttributeToSelect('price')
112
  ->addAttributeToSelect('short_description')
113
  ->addAttributeToSelect('meta_title')
@@ -127,7 +129,7 @@ class Pict_FeedBuilder_Model_FeedBuilder extends Mage_Core_Model_Abstract {
127
  // echo "<br>PAGE NO : " . $i;
128
 
129
 
130
-
131
 
132
  foreach ($collection->getItems() as $_product) {
133
 
@@ -135,7 +137,7 @@ class Pict_FeedBuilder_Model_FeedBuilder extends Mage_Core_Model_Abstract {
135
  $productRow['id'] = $_product->getSku(); //product's sku
136
  $productRow['title'] = $_product->getName(); //product name
137
  $productRow['description'] = $_product->getShortDescription(); //product's short description
138
- //$productRow['abc']= $_product->getDescription(); // product's long description
139
  $productRow['price'] = $_product->getPrice(); //product's regular Price
140
  //$productRow['special_price']= $_product->getSpecialPrice(); //product's special Price
141
  $productRow['link'] = $_product->getProductUrl(); //product url
72
  'id', //sku
73
  'name',
74
  'description',
75
+ 'currency_code',
76
  'price',
77
  'product_url', // product image url
78
  'qty',
109
 
110
  ->addAttributeToSelect('sku')
111
  ->addAttributeToSelect('name')
112
+ ->addAttributeToSelect('currency_code')
113
  ->addAttributeToSelect('price')
114
  ->addAttributeToSelect('short_description')
115
  ->addAttributeToSelect('meta_title')
129
  // echo "<br>PAGE NO : " . $i;
130
 
131
 
132
+ $currency_code = Mage::app()->getStore()->getCurrentCurrencyCode();
133
 
134
  foreach ($collection->getItems() as $_product) {
135
 
137
  $productRow['id'] = $_product->getSku(); //product's sku
138
  $productRow['title'] = $_product->getName(); //product name
139
  $productRow['description'] = $_product->getShortDescription(); //product's short description
140
+ $productRow['currency_code']= $currency_code;
141
  $productRow['price'] = $_product->getPrice(); //product's regular Price
142
  //$productRow['special_price']= $_product->getSpecialPrice(); //product's special Price
143
  $productRow['link'] = $_product->getProductUrl(); //product url
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>pict</name>
4
- <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license>GNU General Public License</license>
7
  <channel>community</channel>
@@ -32,11 +32,11 @@ With the click of a button, share PICT photos to Facebook, Twitter, Pinterest, T
32
  Measure&amp;#xD;&#xD;
33
  &amp;#xD;&#xD;
34
  See which photos and products are generating the most revenue and driving the most engagement.</description>
35
- <notes>First Release</notes>
36
  <authors><author><name>PICT</name><user>PICT</user><email>operations@pict.com</email></author><author><name>Sajid Unar</name><user>sajidunnar</user><email>sajidunnar@gmail.com</email></author></authors>
37
- <date>2013-04-18</date>
38
- <time>22:37:58</time>
39
- <contents><target name="magecommunity"><dir name="Pict"><dir name="FeedBuilder"><dir name="Helper"><file name="Data.php" hash="87cd964b8008e8c0f4b706f49a6a13e8"/></dir><dir name="Model"><file name="FeedBuilder.php" hash="ddd3646280217576846b20a68136b81c"/></dir><dir name="controllers"><file name="IndexController.php" hash="c4d5d1b324b666671aece80a7e7b0ec3"/></dir><dir name="etc"><file name="adminhtml.xml" hash="6a201b46b9c28faea2167d4111477f71"/><file name="config.xml" hash="2b1971dc6ab294f148e0d6feec9ac34d"/><file name="system.xml" hash="2737718479917c321154e2250bc154ee"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Pict_FeedBuilder.xml" hash="4a1e7926edb8f612583951ae57cd07d8"/></dir></target></contents>
40
  <compatible/>
41
  <dependencies><required><php><min>5.2.0</min><max>5.3.22</max></php></required></dependencies>
42
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>pict</name>
4
+ <version>1.1.0</version>
5
  <stability>stable</stability>
6
  <license>GNU General Public License</license>
7
  <channel>community</channel>
32
  Measure&amp;#xD;&#xD;
33
  &amp;#xD;&#xD;
34
  See which photos and products are generating the most revenue and driving the most engagement.</description>
35
+ <notes>Added currency support</notes>
36
  <authors><author><name>PICT</name><user>PICT</user><email>operations@pict.com</email></author><author><name>Sajid Unar</name><user>sajidunnar</user><email>sajidunnar@gmail.com</email></author></authors>
37
+ <date>2013-05-08</date>
38
+ <time>22:23:35</time>
39
+ <contents><target name="magecommunity"><dir name="Pict"><dir name="FeedBuilder"><dir name="Helper"><file name="Data.php" hash="87cd964b8008e8c0f4b706f49a6a13e8"/></dir><dir name="Model"><file name="FeedBuilder.php" hash="a45ded7530b5a9826474db785132d0f4"/><file name=".FeedBuilder.php.swp" hash="c10019c76d494cde65505465a53d2565"/></dir><dir name="controllers"><file name="IndexController.php" hash="c4d5d1b324b666671aece80a7e7b0ec3"/></dir><dir name="etc"><file name="adminhtml.xml" hash="6a201b46b9c28faea2167d4111477f71"/><file name="config.xml" hash="2b1971dc6ab294f148e0d6feec9ac34d"/><file name="system.xml" hash="2737718479917c321154e2250bc154ee"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Pict_FeedBuilder.xml" hash="4a1e7926edb8f612583951ae57cd07d8"/></dir></target></contents>
40
  <compatible/>
41
  <dependencies><required><php><min>5.2.0</min><max>5.3.22</max></php></required></dependencies>
42
  </package>