Shopferret_Shopferretxmlimport - Version 0.1.2

Version Notes

Bug Fix 1.0

Download this release

Release Info

Developer Shop
Extension Shopferret_Shopferretxmlimport
Version 0.1.2
Comparing to
See all releases


Code changes from version 0.1.1 to 0.1.2

app/code/community/Shopferret/Shopferretxmlimport/Model/Cron.php CHANGED
@@ -96,10 +96,11 @@ class Shopferret_Shopferretxmlimport_Model_Cron{
96
  $__fields['brand'] = trim($_product->getAttributeText('brand'));
97
  else
98
  $__fields['brand'] = "";
99
- $__fields['description'] = trim($_product->getDescription());
 
100
  $__fields['qty'] = trim(Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty());
101
  $__fields['is_in_stock'] = trim(Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getIsInStock());
102
-
103
  $cats = $_product->getCategoryIds();
104
  $LoSCategory = "";
105
  foreach ($cats as $category_id) {
@@ -279,11 +280,11 @@ class Shopferret_Shopferretxmlimport_Model_Cron{
279
  else
280
  $__fields['size'] = "";
281
 
282
- $__fields['brand'] = trim($_product->getAttributeText('brand'));
283
- $__fields['description'] = trim($_product->getDescription());
284
  $__fields['qty'] = trim(Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty());
285
  $__fields['is_in_stock'] = trim(Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getIsInStock());
286
-
287
  $cats = $_product->getCategoryIds();
288
  $LoSCategory = "";
289
  foreach ($cats as $category_id) {
96
  $__fields['brand'] = trim($_product->getAttributeText('brand'));
97
  else
98
  $__fields['brand'] = "";
99
+
100
+ $__fields['description'] = strip_tags(trim($_product->getDescription()));
101
  $__fields['qty'] = trim(Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty());
102
  $__fields['is_in_stock'] = trim(Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getIsInStock());
103
+ $__fields['price'] = Mage::helper('core')->currency($__fields['price'], true, false);
104
  $cats = $_product->getCategoryIds();
105
  $LoSCategory = "";
106
  foreach ($cats as $category_id) {
280
  else
281
  $__fields['size'] = "";
282
 
283
+ $__fields['brand'] = trim($_product->getAttributeText('brand'));
284
+ $__fields['description'] = strip_tags(trim($_product->getDescription()));
285
  $__fields['qty'] = trim(Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty());
286
  $__fields['is_in_stock'] = trim(Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getIsInStock());
287
+ $__fields['price'] = Mage::helper('core')->currency($__fields['price'], true, false);
288
  $cats = $_product->getCategoryIds();
289
  $LoSCategory = "";
290
  foreach ($cats as $category_id) {
app/code/community/Shopferret/Shopferretxmlimport/Model/Observer.php CHANGED
@@ -8,7 +8,8 @@ class Shopferret_Shopferretxmlimport_Model_Observer{
8
  $block->setText(
9
  '<script src="http://www.shopferret.com.au/flat-visual-chat/flat-visual-chat.js"></script>'
10
  );
11
- $layout->getBlock('head')->append($block);
 
12
  }
13
 
14
  //Whenever there is generate of sale order this observer is called
@@ -79,10 +80,13 @@ class Shopferret_Shopferretxmlimport_Model_Observer{
79
  $__fields['brand'] = trim($_product->getAttributeText('brand'));
80
  else
81
  $__fields['brand'] = "";
82
- $__fields['description'] = trim($_product->getDescription());
 
83
  $__fields['qty'] = trim(Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty());
84
  $__fields['is_in_stock'] = trim(Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getIsInStock());
85
 
 
 
86
  $cats = $_product->getCategoryIds();
87
  $LoSCategory = "";
88
  foreach ($cats as $category_id) {
8
  $block->setText(
9
  '<script src="http://www.shopferret.com.au/flat-visual-chat/flat-visual-chat.js"></script>'
10
  );
11
+ if($layout->getBlock('head'))
12
+ $layout->getBlock('head')->append($block);
13
  }
14
 
15
  //Whenever there is generate of sale order this observer is called
80
  $__fields['brand'] = trim($_product->getAttributeText('brand'));
81
  else
82
  $__fields['brand'] = "";
83
+
84
+ $__fields['description'] = strip_tags(trim($_product->getDescription()));
85
  $__fields['qty'] = trim(Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty());
86
  $__fields['is_in_stock'] = trim(Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getIsInStock());
87
 
88
+ $__fields['price'] = Mage::helper('core')->currency($__fields['price'], true, false);
89
+
90
  $cats = $_product->getCategoryIds();
91
  $LoSCategory = "";
92
  foreach ($cats as $category_id) {
app/code/community/Shopferret/Shopferretxmlimport/controllers/IndexController.php CHANGED
@@ -134,10 +134,12 @@ class Shopferret_Shopferretxmlimport_IndexController extends Mage_Core_Controlle
134
  else
135
  $__fields['brand'] = "";
136
 
137
- $__fields['description'] = trim($_product->getDescription());
138
  $__fields['qty'] = trim(Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty());
139
  $__fields['is_in_stock'] = trim(Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getIsInStock());
140
 
 
 
141
  $cats = $_product->getCategoryIds();
142
  $LoSCategory = "";
143
  foreach ($cats as $category_id) {
@@ -244,10 +246,13 @@ class Shopferret_Shopferretxmlimport_IndexController extends Mage_Core_Controlle
244
  else
245
  $__fields['brand'] = "";
246
 
247
- $__fields['description'] = trim($_product->getDescription());
 
248
  $__fields['qty'] = trim(Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty());
249
  $__fields['is_in_stock'] = trim(Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getIsInStock());
250
 
 
 
251
  $cats = $_product->getCategoryIds();
252
  $LoSCategory = "";
253
  foreach ($cats as $category_id) {
@@ -543,7 +548,8 @@ class Shopferret_Shopferretxmlimport_IndexController extends Mage_Core_Controlle
543
  $line['sku'] = $_product->getSku();
544
  $line['quantity'] = (int)$prod->getQtyOrdered();
545
  $line['name'] = $prod->getName();
546
- $line['price'] = (int)$prod->getPrice();
 
547
  $line['itemId'] = (int)$prod->getProductId();
548
  $lines[] = $line;
549
 
134
  else
135
  $__fields['brand'] = "";
136
 
137
+ $__fields['description'] = strip_tags(trim($_product->getDescription()));
138
  $__fields['qty'] = trim(Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty());
139
  $__fields['is_in_stock'] = trim(Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getIsInStock());
140
 
141
+ $__fields['price'] = Mage::helper('core')->currency($__fields['price'], true, false);
142
+
143
  $cats = $_product->getCategoryIds();
144
  $LoSCategory = "";
145
  foreach ($cats as $category_id) {
246
  else
247
  $__fields['brand'] = "";
248
 
249
+ $__fields['description'] = strip_tags(trim($_product->getDescription()));
250
+
251
  $__fields['qty'] = trim(Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty());
252
  $__fields['is_in_stock'] = trim(Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getIsInStock());
253
 
254
+ $__fields['price'] = Mage::helper('core')->currency($__fields['price'], true, false);
255
+
256
  $cats = $_product->getCategoryIds();
257
  $LoSCategory = "";
258
  foreach ($cats as $category_id) {
548
  $line['sku'] = $_product->getSku();
549
  $line['quantity'] = (int)$prod->getQtyOrdered();
550
  $line['name'] = $prod->getName();
551
+ $line['price'] = (int)$prod->getPrice();
552
+ $line['price'] = Mage::helper('core')->currency($line['price'], true, false);
553
  $line['itemId'] = (int)$prod->getProductId();
554
  $lines[] = $line;
555
 
app/code/community/Shopferret/Shopferretxmlimport/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Shopferret_Shopferretxmlimport>
5
- <version>0.1.1</version>
6
  </Shopferret_Shopferretxmlimport>
7
  </modules>
8
  <frontend>
@@ -115,13 +115,5 @@
115
  </observers>
116
  </checkout_submit_all_after>
117
  </events>
118
- </global>
119
- <crontab>
120
- <jobs>
121
- <shopferretxmlimport_cronupdate>
122
- <schedule><cron_expr>5 0 * * *</cron_expr></schedule>
123
- <run><model>shopferretxmlimport/cron::discountindex</model></run>
124
- </shopferretxmlimport_cronupdate>
125
- </jobs>
126
- </crontab>
127
  </config>
2
  <config>
3
  <modules>
4
  <Shopferret_Shopferretxmlimport>
5
+ <version>0.1.2</version>
6
  </Shopferret_Shopferretxmlimport>
7
  </modules>
8
  <frontend>
115
  </observers>
116
  </checkout_submit_all_after>
117
  </events>
118
+ </global>
 
 
 
 
 
 
 
 
119
  </config>
app/code/community/Shopferret/Shopferretxmlimport/sql/shopferretxmlimport_setup/{mysql4-install-0.1.1.php → mysql4-install-0.1.2.php} RENAMED
File without changes
app/etc/modules/Shopferret_Shopferretxmlimport.xml CHANGED
@@ -4,7 +4,7 @@
4
  <Shopferret_Shopferretxmlimport>
5
  <active>true</active>
6
  <codePool>community</codePool>
7
- <version>0.1.1</version>
8
  </Shopferret_Shopferretxmlimport>
9
  </modules>
10
  </config>
4
  <Shopferret_Shopferretxmlimport>
5
  <active>true</active>
6
  <codePool>community</codePool>
7
+ <version>0.1.2</version>
8
  </Shopferret_Shopferretxmlimport>
9
  </modules>
10
  </config>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Shopferret_Shopferretxmlimport</name>
4
- <version>0.1.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>The best and fastest way to find things to buy. Add your products to the millions already viewed daily.</summary>
10
- <description>Shopferret is the best and fastest way to find things to buy online. Now you can add your products to the millions already viewed daily on Shopferret by simply installing this instant plugin. Your products will be published and kept up to date instantly, faster and more accurate that google. With instant product search and a host of other optional features Shopferret can even add chat and comprehensive statistics to your magento experience.</description>
11
- <notes>This is first version of the package</notes>
12
  <authors><author><name>Shop</name><user>shopferret</user><email>james.grace@thepoolhub.com.au</email></author></authors>
13
- <date>2015-03-09</date>
14
- <time>04:00:38</time>
15
- <contents><target name="magecommunity"><dir><dir name="Shopferret"><dir name="Shopferretxmlimport"><dir name="Block"><file name="Index.php" hash="38a7d39de254edb608a1d94f8508b281"/></dir><dir name="Helper"><file name="Data.php" hash="6700bc0e881f5891b7ad4ce903b164ed"/></dir><dir name="Model"><file name="Cron.php" hash="a33c646a371f052b0dee64541a561d91"/><file name="Observer.php" hash="7fc5ea6fd1aeb152384bbdbee27ccc51"/></dir><dir name="controllers"><file name="IndexController.php" hash="5f90d43f6aa5edba4e9449cb80c468cb"/><file name="ModuleupdatorController.php" hash="80383061d341a9d4698aa1ee82e588e2"/></dir><dir name="etc"><file name="adminhtml.xml" hash="d77b559f4226829f7fa06026f139a539"/><file name="config.xml" hash="eb3d20129fd9bdd49c0564da3b54bfcf"/><file name="system.xml" hash="196216d07a269c42a4e73ed1625c65ce"/></dir><dir name="sql"><dir name="shopferretxmlimport_setup"><file name="mysql4-install-0.1.1.php" hash="0cdea9e0ea6215d6c6345a6735972560"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="shopferretxmlimport.xml" hash="16cd469b6ed21b1d57e8eb5bc4e13b17"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Shopferret_Shopferretxmlimport.xml" hash="37a44cc02ece94d97d0e2e997cb31eef"/></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Shopferret_Shopferretxmlimport</name>
4
+ <version>0.1.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>The best and fastest way to find things to buy. Add your products to the millions already viewed daily.</summary>
10
+ <description>Shopferret is the best and fastest way to find things to buy online. Now you can add your products to the millions already viewed daily on Shopferret by simply installing this instant plugin. Your products will be published and kept up to date instantly, faster and more accurate that google.</description>
11
+ <notes>Bug Fix 1.0</notes>
12
  <authors><author><name>Shop</name><user>shopferret</user><email>james.grace@thepoolhub.com.au</email></author></authors>
13
+ <date>2015-03-10</date>
14
+ <time>09:38:45</time>
15
+ <contents><target name="magecommunity"><dir><dir name="Shopferret"><dir name="Shopferretxmlimport"><dir name="Block"><file name="Index.php" hash="38a7d39de254edb608a1d94f8508b281"/></dir><dir name="Helper"><file name="Data.php" hash="6700bc0e881f5891b7ad4ce903b164ed"/></dir><dir name="Model"><file name="Cron.php" hash="7d6b4392dcb0a5f144c42602cccfeead"/><file name="Observer.php" hash="91de465161abfbd6d30db10c76a035e9"/></dir><dir name="controllers"><file name="IndexController.php" hash="9ead1ab2f7b0a686404f263f867838c1"/><file name="ModuleupdatorController.php" hash="80383061d341a9d4698aa1ee82e588e2"/></dir><dir name="etc"><file name="adminhtml.xml" hash="d77b559f4226829f7fa06026f139a539"/><file name="config.xml" hash="79f6b0343056a0b2a39c91a279baaee8"/><file name="system.xml" hash="196216d07a269c42a4e73ed1625c65ce"/></dir><dir name="sql"><dir name="shopferretxmlimport_setup"><file name="mysql4-install-0.1.2.php" hash="0cdea9e0ea6215d6c6345a6735972560"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Shopferret_Shopferretxmlimport.xml" hash="ad823722a9eda39133864d800bfa882e"/></dir></dir></target><target name="magedesign"><dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="shopferretxmlimport.xml" hash="16cd469b6ed21b1d57e8eb5bc4e13b17"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>