Poq_Integration - Version 2.0.0.2.9

Version Notes

More configurable settings are added. Fields where Price and Special Price are read can be customised.

Download this release

Release Info

Developer Oyvind Henriksen
Extension Poq_Integration
Version 2.0.0.2.9
Comparing to
See all releases


Code changes from version 2.0.0.2.8 to 2.0.0.2.9

app/code/community/Poq/Integration/Helper/Data.php CHANGED
@@ -150,6 +150,15 @@ class Poq_Integration_Helper_Data extends Mage_Core_Helper_Data {
150
  // Get barcode field name
151
  $this->barcode_field = Mage::getStoreConfig('integration/integration_feed_group/integration_feed_barcode_field', Mage::app()->getStore());
152
 
 
 
 
 
 
 
 
 
 
153
  // return settings
154
  return $this;
155
  }
150
  // Get barcode field name
151
  $this->barcode_field = Mage::getStoreConfig('integration/integration_feed_group/integration_feed_barcode_field', Mage::app()->getStore());
152
 
153
+ // Get product price name
154
+ $this->productPrice_field = Mage::getStoreConfig('integration/integration_feed_group/integration_feed_productPrice_field', Mage::app()->getStore());
155
+
156
+ // Get special price name
157
+ $this->specialPrice_field = Mage::getStoreConfig('integration/integration_feed_group/integration_feed_specialPrice_field', Mage::app()->getStore());
158
+
159
+ // Get set categories for child name
160
+ $this->setCategories_field = filter_var(Mage::getStoreConfig('integration/integration_feed_group/integration_feed_categoriesForChild_field', Mage::app()->getStore()), FILTER_VALIDATE_BOOLEAN);
161
+
162
  // return settings
163
  return $this;
164
  }
app/code/community/Poq/Integration/controllers/IndexController.php CHANGED
@@ -197,6 +197,9 @@ class Poq_Integration_IndexController extends Mage_Core_Controller_Front_Action
197
  $description_fields = $settings->description_fields;
198
  $description_values = $settings->description_values;
199
  $barcode_field = $settings->barcode_field;
 
 
 
200
 
201
  //Trying to get default values
202
  if ($store_id == 0)
@@ -412,8 +415,31 @@ class Poq_Integration_IndexController extends Mage_Core_Controller_Front_Action
412
  {
413
 
414
  // Original price without tax
415
- $product_price = $product->getPrice();
416
- $special_price = $product->getFinalPrice();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
417
 
418
  if ($tax_rates_enabled)
419
  {
@@ -563,7 +589,7 @@ class Poq_Integration_IndexController extends Mage_Core_Controller_Front_Action
563
  // }
564
  echo ",\"" . $imageString . "\"";
565
 
566
- if ($product->getVisibility() == 4)
567
  { //Only products that are individually visible need URLs, pictures, categories.
568
  //Get product URL
569
  echo ",\"" . $product->getProductUrl() . "\"";
197
  $description_fields = $settings->description_fields;
198
  $description_values = $settings->description_values;
199
  $barcode_field = $settings->barcode_field;
200
+ $productPrice_field = $settings->productPrice_field;
201
+ $specialPrice_field = $settings->specialPrice_field;
202
+ $setCategories_field = $settings->setCategories_field;
203
 
204
  //Trying to get default values
205
  if ($store_id == 0)
415
  {
416
 
417
  // Original price without tax
418
+ //$product_price = $product->getPrice();
419
+ //$special_price = $product->getFinalPrice();
420
+
421
+ if (isset($productPrice_field)) {
422
+ $product_price = $product->getData($productPrice_field);
423
+ if (!isset($product_price)) {
424
+ $product = Mage::getModel('catalog/product')->load($product->getId());
425
+ $product_price = $product->getData($productPrice_field);
426
+ }
427
+ }
428
+ else {
429
+ $product_price = $product->getPrice();
430
+ }
431
+
432
+ if (isset($specialPrice_field)) {
433
+ $special_price = $product->getData($specialPrice_field);
434
+ if (!isset($special_price)) {
435
+ $product = Mage::getModel('catalog/product')->load($product->getId());
436
+ $special_price = $product->getData($specialPrice_field);
437
+ }
438
+ }
439
+ else {
440
+ $special_price = $product->getFinalPrice();
441
+ }
442
+
443
 
444
  if ($tax_rates_enabled)
445
  {
589
  // }
590
  echo ",\"" . $imageString . "\"";
591
 
592
+ if ($product->getVisibility() == 4 || $setCategories_field == true)
593
  { //Only products that are individually visible need URLs, pictures, categories.
594
  //Get product URL
595
  echo ",\"" . $product->getProductUrl() . "\"";
app/code/community/Poq/Integration/etc/config.xml CHANGED
@@ -9,7 +9,7 @@
9
  <config>
10
  <modules>
11
  <Poq_Integration>
12
- <version>2.0.0.2.8</version>
13
  </Poq_Integration>
14
  </modules>
15
  <global>
9
  <config>
10
  <modules>
11
  <Poq_Integration>
12
+ <version>2.0.0.2.9</version>
13
  </Poq_Integration>
14
  </modules>
15
  <global>
app/code/community/Poq/Integration/etc/system.xml CHANGED
@@ -88,6 +88,34 @@
88
  <show_in_website>1</show_in_website>
89
  <show_in_store>1</show_in_store>
90
  </integration_feed_barcode_field>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  </fields>
92
  </integration_feed_group>
93
  <integration_checkout_group translate="label" module="poq_integration">
88
  <show_in_website>1</show_in_website>
89
  <show_in_store>1</show_in_store>
90
  </integration_feed_barcode_field>
91
+ <integration_feed_productPrice_field translate="label">
92
+ <label>Product Price Field</label>
93
+ <comment>Specify how product price information will be read.</comment>
94
+ <frontend_type>text</frontend_type>
95
+ <sort_order>27</sort_order>
96
+ <show_in_default>1</show_in_default>
97
+ <show_in_website>1</show_in_website>
98
+ <show_in_store>1</show_in_store>
99
+ </integration_feed_productPrice_field>
100
+ <integration_feed_specialPrice_field translate="label">
101
+ <label>Special Price Field</label>
102
+ <comment>Specify how special price information will be read.</comment>
103
+ <frontend_type>text</frontend_type>
104
+ <sort_order>28</sort_order>
105
+ <show_in_default>1</show_in_default>
106
+ <show_in_website>1</show_in_website>
107
+ <show_in_store>1</show_in_store>
108
+ </integration_feed_specialPrice_field>
109
+ <integration_feed_categoriesForChild_field translate="label">
110
+ <label>Category information for child Products</label>
111
+ <comment>If set, child products will have category information in the feed.</comment>
112
+ <frontend_type>select</frontend_type>
113
+ <sort_order>29</sort_order>
114
+ <show_in_default>1</show_in_default>
115
+ <show_in_website>1</show_in_website>
116
+ <show_in_store>1</show_in_store>
117
+ <source_model>adminhtml/system_config_source_yesno</source_model>
118
+ </integration_feed_categoriesForChild_field>
119
  </fields>
120
  </integration_feed_group>
121
  <integration_checkout_group translate="label" module="poq_integration">
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Poq_Integration</name>
4
- <version>2.0.0.2.8</version>
5
  <stability>stable</stability>
6
  <license>ASL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>This integration forms a connection between the Magento and Poq Studio platforms.</summary>
10
  <description>The extension has two main features: Exposing your catalogue information in the Poq Feed Format and Accepting a shopping cart transfer from the Poq Studio platform.</description>
11
- <notes>Fixed a bug where product description and barcode fields display in wrong columns.</notes>
12
  <authors><author><name>Oyvind Henriksen</name><user>poqmagento</user><email>info@poqstudio.com</email></author></authors>
13
- <date>2014-11-13</date>
14
- <time>10:46:45</time>
15
- <contents><target name="magecommunity"><dir name="Poq"><dir name="Integration"><dir name="Helper"><file name="Data.php" hash="12410f17762f6ae40294252a0c383d87"/></dir><dir name="controllers"><file name="IndexController.php" hash="8f86f776d5ac14b0422534360db04048"/><file name="OrderController.php" hash="2fe18c8f02b05440412f84df1bb6bc13"/></dir><dir name="etc"><file name="adminhtml.xml" hash="545b50fa7d354adb75a6bc27ff2ef41e"/><file name="config.xml" hash="d94b65be7f74d0a5b9189db9319d19cd"/><file name="system.xml" hash="4c572e04c7adf4e6feb37385376134e2"/></dir><file name=".DS_Store" hash="edbbdc9cbdcde369d585980e7a279eac"/></dir><file name=".DS_Store" hash="16eb133391c4355b50681fccd76eee48"/></dir></target><target name="mageetc"><dir name="modules"><file name="Poq_Integration.xml" hash="f735b9c01c16c559a05ba50185ef8a61"/></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>Poq_Integration</name>
4
+ <version>2.0.0.2.9</version>
5
  <stability>stable</stability>
6
  <license>ASL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>This integration forms a connection between the Magento and Poq Studio platforms.</summary>
10
  <description>The extension has two main features: Exposing your catalogue information in the Poq Feed Format and Accepting a shopping cart transfer from the Poq Studio platform.</description>
11
+ <notes>More configurable settings are added. Fields where Price and Special Price are read can be customised.</notes>
12
  <authors><author><name>Oyvind Henriksen</name><user>poqmagento</user><email>info@poqstudio.com</email></author></authors>
13
+ <date>2014-12-03</date>
14
+ <time>10:31:01</time>
15
+ <contents><target name="magecommunity"><dir name="Poq"><dir name="Integration"><dir name="Helper"><file name="Data.php" hash="3ad2ea1d31787b22734440395b3c4042"/></dir><dir name="controllers"><file name="IndexController.php" hash="4e7afce805f04fe70c7f0ff10d293ee1"/><file name="OrderController.php" hash="2fe18c8f02b05440412f84df1bb6bc13"/></dir><dir name="etc"><file name="adminhtml.xml" hash="545b50fa7d354adb75a6bc27ff2ef41e"/><file name="config.xml" hash="fbc7fde78fec1f3e6ea43636eb5fdf81"/><file name="system.xml" hash="c11516cad4666cf9be1523781e66aeb0"/></dir><file name=".DS_Store" hash="edbbdc9cbdcde369d585980e7a279eac"/></dir><file name=".DS_Store" hash="16eb133391c4355b50681fccd76eee48"/></dir></target><target name="mageetc"><dir name="modules"><file name="Poq_Integration.xml" hash="f735b9c01c16c559a05ba50185ef8a61"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>