Webinterpret_Connector - Version 1.2.7.5

Version Notes

- Fixed bug related to notifications
- Fixed bug with country redirect popup
- Fixed bug related to bridge
- Added automatic update functionality
- Added German translations
- Added support for Magento 1.7
- Added support for compiler

Download this release

Release Info

Developer Webinterpret
Extension Webinterpret_Connector
Version 1.2.7.5
Comparing to
See all releases


Code changes from version 1.2.7.4 to 1.2.7.5

app/code/community/Webinterpret/Connector/Model/Notification.php CHANGED
@@ -9,7 +9,7 @@
9
  */
10
  class Webinterpret_Connector_Model_Notification extends Varien_object
11
  {
12
- protected $messages = [ ];
13
 
14
  public function getMessages()
15
  {
9
  */
10
  class Webinterpret_Connector_Model_Notification extends Varien_object
11
  {
12
+ protected $messages = array();
13
 
14
  public function getMessages()
15
  {
app/code/community/Webinterpret/Connector/bridge2cart/helper.php CHANGED
@@ -56,7 +56,7 @@ if (!function_exists('getallheaders')) {
56
 
57
  class Webinterpret_Bridge2Cart_Helper
58
  {
59
- const VERSION = '1.2.7.4';
60
  const PLATFORM_MAGENTO = 'magento';
61
  const PLATFORM_UNKNOWN = 'unknown';
62
  protected static $_storeBaseDir = null;
@@ -754,6 +754,62 @@ EOD;
754
  return false;
755
  }
756
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
757
  public static function platformConfigurationRefreshAction()
758
  {
759
  $response = self::newResponse();
@@ -949,7 +1005,7 @@ EOD;
949
  }
950
 
951
  // Write file
952
- if (file_put_contents($dest, $contents) === false) {
953
  throw new Exception("Failed to write file: $dest");
954
  }
955
  @chmod($dest, 0664);
56
 
57
  class Webinterpret_Bridge2Cart_Helper
58
  {
59
+ const VERSION = '1.2.7.5';
60
  const PLATFORM_MAGENTO = 'magento';
61
  const PLATFORM_UNKNOWN = 'unknown';
62
  protected static $_storeBaseDir = null;
754
  return false;
755
  }
756
 
757
+ public static function platformCompilerUpdateAction()
758
+ {
759
+ $response = self::newResponse();
760
+ $platform = self::getPlatform();
761
+ if ($platform == self::PLATFORM_MAGENTO) {
762
+ self::loadMagento();
763
+
764
+ // Status
765
+ if (!isset($_REQUEST['status']) || empty($_REQUEST['status'])) {
766
+ throw new Exception('status parameter is required');
767
+ }
768
+ $status = $_REQUEST['status'];
769
+
770
+ // Enable or disable compiler
771
+ $compiler = Mage::getModel('compiler/process');
772
+ if ($status == 'enable') {
773
+ $compiler->registerIncludePath();
774
+ }
775
+ if ($status == 'disable') {
776
+ $compiler->registerIncludePath(false);
777
+ }
778
+ }
779
+
780
+ return $response;
781
+ }
782
+
783
+ public static function platformCompilerRunAction()
784
+ {
785
+ $response = self::newResponse();
786
+ $platform = self::getPlatform();
787
+ if ($platform == self::PLATFORM_MAGENTO) {
788
+ self::loadMagento();
789
+ $compiler = Mage::getModel('compiler/process');
790
+ $result = $compiler->validate();
791
+ if (!empty($result)) {
792
+ throw new Exception('Cannot run compliation process');
793
+ }
794
+ $compiler->run();
795
+ }
796
+
797
+ return $response;
798
+ }
799
+
800
+ public static function platformCompilerClearAction()
801
+ {
802
+ $response = self::newResponse();
803
+ $platform = self::getPlatform();
804
+ if ($platform == self::PLATFORM_MAGENTO) {
805
+ self::loadMagento();
806
+ $compiler = Mage::getModel('compiler/process');
807
+ $compiler->clear();
808
+ }
809
+
810
+ return $response;
811
+ }
812
+
813
  public static function platformConfigurationRefreshAction()
814
  {
815
  $response = self::newResponse();
1005
  }
1006
 
1007
  // Write file
1008
+ if (@file_put_contents($dest, $contents) === false) {
1009
  throw new Exception("Failed to write file: $dest");
1010
  }
1011
  @chmod($dest, 0664);
app/code/community/Webinterpret/Connector/etc/config.xml CHANGED
@@ -8,7 +8,7 @@
8
  <config>
9
  <modules>
10
  <Webinterpret_Connector>
11
- <version>1.2.7.4</version>
12
  </Webinterpret_Connector>
13
  </modules>
14
  <global>
8
  <config>
9
  <modules>
10
  <Webinterpret_Connector>
11
+ <version>1.2.7.5</version>
12
  </Webinterpret_Connector>
13
  </modules>
14
  <global>
package.xml CHANGED
@@ -1,19 +1,24 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Webinterpret_Connector</name>
4
- <version>1.2.7.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>Integrate Magento with Webinterpret.</summary>
10
  <description>Translate and market your products internationally with Webinterpret. This is the official Magento extension for integrating with Webinterpret.</description>
11
- <notes>- Fixed bug related to bridge&#xD;
12
- </notes>
 
 
 
 
 
13
  <authors><author><name>Webinterpret</name><user>webinterpret</user><email>info@webinterpret.com</email></author></authors>
14
- <date>2016-03-25</date>
15
- <time>10:42:00</time>
16
- <contents><target name="magecommunity"><dir name="Webinterpret"><dir name="Connector"><dir name="Block"><dir name="Adminhtml"><file name="Notifications.php" hash="5e1935e32f1b5d10f0b76fee427a23a6"/><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Status.php" hash="99b95c7991e91a4d4d98efdaf8007b88"/></dir></dir></dir></dir><file name="Analytics.php" hash="4a1d28d7b4c1bdd3910b00100df34334"/><file name="Footer.php" hash="ba32851bb2001e7c4bda98647f270d5a"/><file name="Head.php" hash="1261ad40df9f0dc708178d78d63158d8"/><dir name="Product"><file name="Redirect.php" hash="95125c9c86725f37d3eeb4a348197225"/></dir></dir><dir name="Helper"><file name="Data.php" hash="fe067ae2addaa1e208366ebd5146a25c"/></dir><dir name="Model"><file name="Notification.php" hash="c07217955b49cec14a78df14bedd919b"/><file name="Observer.php" hash="7d037662b540cdce42843b7e2b95b663"/></dir><dir name="bridge2cart"><file name="bridge.php" hash="e5a5f652b9b3a52a6a62d62a37c2e730"/><file name="config.php" hash="e5a5f652b9b3a52a6a62d62a37c2e730"/><file name="helper.php" hash="43317ad4a5ee22b10dc147781320d08f"/><file name="preloader.php" hash="8a8ada3537394687defdc28d4b6077e8"/></dir><dir name="controllers"><file name="ApiController.php" hash="8992304485021375a3af10f5e61da6e8"/><file name="HelperController.php" hash="c3d5347a39df19b8618cfba5f6b46356"/><file name="IndexController.php" hash="e9e0d304539657969bfce8c2b33451a6"/></dir><dir name="etc"><file name="adminhtml.xml" hash="07e287503c40ce7c588efe7863c05002"/><file name="config.xml" hash="a9dcf2ba5f8999f14d2395ccbf7166d7"/><file name="system.xml" hash="5ded04fa4ab1d12507a4aff2219fa54b"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Webinterpret_Connector.xml" hash="087c2742f6bcb89ed6a77921e6493feb"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="webinterpret"><file name="connector.xml" hash="9e07d874db123d6152aa0136d0c7e2c7"/></dir></dir><dir name="template"><dir name="webinterpret"><dir name="connector"><file name="analytics.phtml" hash="c46ca2f6c420c5f3c26889cd97debe99"/><file name="footer.phtml" hash="271951d77602462872c325108863b9ca"/><file name="head.phtml" hash="107312871a7b2730532db8d986de5726"/><file name="product_redirect.phtml" hash="9f397d8a4e0ba6fe0e17e5b3f0e68566"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="webinterpret"><dir name="system"><dir name="config"><file name="activate.phtml" hash="5ef389ad58cb1be9cc666fecd8379fbf"/><dir name="fieldset"><file name="banner.phtml" hash="921b677bd3e52d9c86172bdf26ab4a37"/><file name="status.phtml" hash="658ad2722ec5678a031b2141a45d32c0"/></dir></dir></dir></dir></dir><dir name="layout"><dir name="webinterpret"><file name="connector.xml" hash="867fafe49fa978668f6e5d7027c57aa6"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="webinterpret"><dir name="flags"><file name="flag-at.png" hash="4b25c35462292c96ed63cdec1bf2a620"/><file name="flag-au.png" hash="257d4975ff4116933fefa2203246bdac"/><file name="flag-be.png" hash="6019f3255488f9ad20a94297cb727cd1"/><file name="flag-de.png" hash="f9cd1fdeec5f4324293d1a2b78ec0d4a"/><file name="flag-es.png" hash="3093c6e1acb830ee36aacf6a05792f87"/><file name="flag-fr.png" hash="b7439e4d985f157e8918a4d185abb6b1"/><file name="flag-ie.png" hash="b3532a63fa08d0f1681f73a444482199"/><file name="flag-it.png" hash="53270fd8fd0f626c839f7f260b630d48"/><file name="flag-uk.png" hash="25348c2592f135d83ba48ac2d9fc47fe"/><file name="flag-us.png" hash="99e4ef1110c6aeb4407ddbedb6bba8e7"/></dir><file name="webinterpret.css" hash="c1d5c817a9ec0c085ce843258dd7ff62"/><file name="webinterpret.js" hash="07d50b3562c4f9f71fafbf1ec18e8ab2"/></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Webinterpret_Connector.csv" hash="832847bc730d22c330d17732d7c52915"/></dir><dir name="de_DE"><file name="Webinterpret_Connector.csv" hash="95709b4e8cb46d02bba504f7b69dd761"/></dir></target></contents>
17
  <compatible/>
18
- <dependencies><required><php><min>5.0.0</min><max>7.0.0</max></php></required></dependencies>
19
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Webinterpret_Connector</name>
4
+ <version>1.2.7.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>Integrate Magento with Webinterpret.</summary>
10
  <description>Translate and market your products internationally with Webinterpret. This is the official Magento extension for integrating with Webinterpret.</description>
11
+ <notes>- Fixed bug related to notifications&#xD;
12
+ - Fixed bug with country redirect popup&#xD;
13
+ - Fixed bug related to bridge&#xD;
14
+ - Added automatic update functionality&#xD;
15
+ - Added German translations&#xD;
16
+ - Added support for Magento 1.7&#xD;
17
+ - Added support for compiler</notes>
18
  <authors><author><name>Webinterpret</name><user>webinterpret</user><email>info@webinterpret.com</email></author></authors>
19
+ <date>2016-03-29</date>
20
+ <time>12:10:04</time>
21
+ <contents><target name="magecommunity"><dir name="Webinterpret"><dir name="Connector"><dir name="Block"><dir name="Adminhtml"><file name="Notifications.php" hash="5e1935e32f1b5d10f0b76fee427a23a6"/><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Status.php" hash="99b95c7991e91a4d4d98efdaf8007b88"/></dir></dir></dir></dir><file name="Analytics.php" hash="4a1d28d7b4c1bdd3910b00100df34334"/><file name="Footer.php" hash="ba32851bb2001e7c4bda98647f270d5a"/><file name="Head.php" hash="1261ad40df9f0dc708178d78d63158d8"/><dir name="Product"><file name="Redirect.php" hash="95125c9c86725f37d3eeb4a348197225"/></dir></dir><dir name="Helper"><file name="Data.php" hash="fe067ae2addaa1e208366ebd5146a25c"/></dir><dir name="Model"><file name="Notification.php" hash="a62c3b7ff11cd2d1082c0d959d8eb295"/><file name="Observer.php" hash="7d037662b540cdce42843b7e2b95b663"/></dir><dir name="bridge2cart"><file name="bridge.php" hash="e5a5f652b9b3a52a6a62d62a37c2e730"/><file name="config.php" hash="e5a5f652b9b3a52a6a62d62a37c2e730"/><file name="helper.php" hash="2c7721036303bbe94cc27af535b9cf17"/><file name="preloader.php" hash="8a8ada3537394687defdc28d4b6077e8"/></dir><dir name="controllers"><file name="ApiController.php" hash="8992304485021375a3af10f5e61da6e8"/><file name="HelperController.php" hash="c3d5347a39df19b8618cfba5f6b46356"/><file name="IndexController.php" hash="e9e0d304539657969bfce8c2b33451a6"/></dir><dir name="etc"><file name="adminhtml.xml" hash="07e287503c40ce7c588efe7863c05002"/><file name="config.xml" hash="0b6cef2dd48ee259e34ae293682a507c"/><file name="system.xml" hash="5ded04fa4ab1d12507a4aff2219fa54b"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Webinterpret_Connector.xml" hash="087c2742f6bcb89ed6a77921e6493feb"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="webinterpret"><file name="connector.xml" hash="9e07d874db123d6152aa0136d0c7e2c7"/></dir></dir><dir name="template"><dir name="webinterpret"><dir name="connector"><file name="analytics.phtml" hash="c46ca2f6c420c5f3c26889cd97debe99"/><file name="footer.phtml" hash="271951d77602462872c325108863b9ca"/><file name="head.phtml" hash="107312871a7b2730532db8d986de5726"/><file name="product_redirect.phtml" hash="9f397d8a4e0ba6fe0e17e5b3f0e68566"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="webinterpret"><dir name="system"><dir name="config"><file name="activate.phtml" hash="5ef389ad58cb1be9cc666fecd8379fbf"/><dir name="fieldset"><file name="banner.phtml" hash="921b677bd3e52d9c86172bdf26ab4a37"/><file name="status.phtml" hash="658ad2722ec5678a031b2141a45d32c0"/></dir></dir></dir></dir></dir><dir name="layout"><dir name="webinterpret"><file name="connector.xml" hash="867fafe49fa978668f6e5d7027c57aa6"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="webinterpret"><dir name="flags"><file name="flag-at.png" hash="4b25c35462292c96ed63cdec1bf2a620"/><file name="flag-au.png" hash="257d4975ff4116933fefa2203246bdac"/><file name="flag-be.png" hash="6019f3255488f9ad20a94297cb727cd1"/><file name="flag-de.png" hash="f9cd1fdeec5f4324293d1a2b78ec0d4a"/><file name="flag-es.png" hash="3093c6e1acb830ee36aacf6a05792f87"/><file name="flag-fr.png" hash="b7439e4d985f157e8918a4d185abb6b1"/><file name="flag-ie.png" hash="b3532a63fa08d0f1681f73a444482199"/><file name="flag-it.png" hash="53270fd8fd0f626c839f7f260b630d48"/><file name="flag-uk.png" hash="25348c2592f135d83ba48ac2d9fc47fe"/><file name="flag-us.png" hash="99e4ef1110c6aeb4407ddbedb6bba8e7"/></dir><file name="webinterpret.css" hash="c1d5c817a9ec0c085ce843258dd7ff62"/><file name="webinterpret.js" hash="07d50b3562c4f9f71fafbf1ec18e8ab2"/></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Webinterpret_Connector.csv" hash="832847bc730d22c330d17732d7c52915"/></dir><dir name="de_DE"><file name="Webinterpret_Connector.csv" hash="95709b4e8cb46d02bba504f7b69dd761"/></dir></target></contents>
22
  <compatible/>
23
+ <dependencies><required><php><min>5.3.0</min><max>7.0.0</max></php></required></dependencies>
24
  </package>