Poq_Integration - Version 2.0.0.3.1

Version Notes

Fixed the error while retrieving image URLs.

Download this release

Release Info

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


Code changes from version 2.0.0.3.0 to 2.0.0.3.1

app/{design/frontend/base/default/template/poqintegration → code/community/Poq/Integration/Helper}/.DS_Store RENAMED
Binary file
app/code/community/Poq/Integration/controllers/.DS_Store ADDED
Binary file
app/code/community/Poq/Integration/controllers/IndexController.php CHANGED
@@ -542,11 +542,31 @@ class Poq_Integration_IndexController extends Mage_Core_Controller_Front_Action
542
  $image_base_url = substr($imageString, 0, strrpos($imageString, 'media/catalog/product')) . 'media/catalog/product';
543
  }
544
 
545
- if (count(explode("product/",$imageString)) == 1 || !isset(explode("product/",$imageString)[1]) || explode("product/",$imageString)[1] == "")
546
- {
547
  $imageString = "";
548
  }
549
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
550
  //Option #1 - Fast way to get all media gallery images from preloaded array
551
  $_images = $product->getData('media_gallery');
552
  foreach ($_images as $imagegallery)
542
  $image_base_url = substr($imageString, 0, strrpos($imageString, 'media/catalog/product')) . 'media/catalog/product';
543
  }
544
 
545
+ if (!isset($imageString)) {
 
546
  $imageString = "";
547
  }
548
 
549
+ else {
550
+ $lastIndex = strpos($imageString, ".");
551
+ $imageSubString = substr($imageString, $lastIndex, 4);
552
+ if ($imageSubString != ".png" && $imageSubString != ".jpg" && $imageSubString != ".gif") {
553
+ $imageString = "";
554
+ }
555
+ else
556
+ {
557
+ $imageSubString = substr($imageString, $lastIndex, 5);
558
+ if ($imageSubString != ".jpeg")
559
+ {
560
+ $imageString = "";
561
+ }
562
+ }
563
+ }
564
+
565
+ /* else if (count(explode("product/",$imageString)) == 1 || !isset(explode("product/",$imageString)[1]) || explode("product/",$imageString)[1] == "")
566
+ {
567
+ $imageString = "";
568
+ }*/
569
+
570
  //Option #1 - Fast way to get all media gallery images from preloaded array
571
  $_images = $product->getData('media_gallery');
572
  foreach ($_images as $imagegallery)
app/code/community/Poq/Integration/etc/.DS_Store ADDED
Binary file
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.3.0</version>
13
  </Poq_Integration>
14
  </modules>
15
  <global>
9
  <config>
10
  <modules>
11
  <Poq_Integration>
12
+ <version>2.0.0.3.1</version>
13
  </Poq_Integration>
14
  </modules>
15
  <global>
app/design/frontend/base/default/template/poqintegration/index.phtml DELETED
@@ -1,6 +0,0 @@
1
- <h3>Poq Studio - Integration Settings</h3>
2
- <p><b>Extension is <?php echo Mage::helper('core')->isModuleEnabled('Poq_Integration') ? 'installed' : 'not installed'; ?></b></p>
3
- <hr style="margin-bottom: 10px;"/>
4
- <p>You can change settings on <b><i>System > Configuration</i></b> page under <b><i>Poq Studio</i></b> tab of admin panel.</p>
5
- <p><a href="http://www.poqstudio.com" target="_blank">Contact us</a> for detailed guidance and assistance.</p>
6
- <p><b>Poq Studio</b></p>
 
 
 
 
 
 
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Poq_Integration</name>
4
- <version>2.0.0.3.0</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>Short description is included in the feed file.</notes>
12
  <authors><author><name>Oyvind Henriksen</name><user>poqmagento</user><email>info@poqstudio.com</email></author></authors>
13
- <date>2014-12-18</date>
14
- <time>15:27:23</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="3ea54efd5b846786ada51d8060dad36d"/><file name="OrderController.php" hash="2fe18c8f02b05440412f84df1bb6bc13"/></dir><dir name="etc"><file name="adminhtml.xml" hash="545b50fa7d354adb75a6bc27ff2ef41e"/><file name="config.xml" hash="44a8f98217fee4cc9da3152a92738337"/><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><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="poqintegration"><file name="index.phtml" hash="15602b84477558180e9f6775462d1188"/><file name=".DS_Store" hash="e452d52a3b7369be51b93a5de7d0edaf"/></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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Poq_Integration</name>
4
+ <version>2.0.0.3.1</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 the error while retrieving image URLs.</notes>
12
  <authors><author><name>Oyvind Henriksen</name><user>poqmagento</user><email>info@poqstudio.com</email></author></authors>
13
+ <date>2015-01-13</date>
14
+ <time>11:21:06</time>
15
+ <contents><target name="magecommunity"><dir name="Poq"><dir name="Integration"><dir name="Helper"><file name="Data.php" hash="3ad2ea1d31787b22734440395b3c4042"/><file name=".DS_Store" hash="437544c43163b0c119f0d54b3165090c"/></dir><dir name="controllers"><file name="IndexController.php" hash="e1dd6b5172ff23c02357917433e22a70"/><file name="OrderController.php" hash="2fe18c8f02b05440412f84df1bb6bc13"/><file name=".DS_Store" hash="025876129ca0f7bccb475ea2c8665538"/></dir><dir name="etc"><file name="adminhtml.xml" hash="545b50fa7d354adb75a6bc27ff2ef41e"/><file name="config.xml" hash="33bbec0d093643cfd2fe5d931ee19aa1"/><file name="system.xml" hash="c11516cad4666cf9be1523781e66aeb0"/><file name=".DS_Store" hash="65a604f898cd198153f236c0aeb07b42"/></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>