Lexity_GoogleShopping - Version 1.3.3

Version Notes

get api key refactor

Download this release

Release Info

Developer Lexity
Extension Lexity_GoogleShopping
Version 1.3.3
Comparing to
See all releases


Code changes from version 1.3.1 to 1.3.3

app/code/local/LexityGoogleShopping/Block/Embed.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- class LexityLive_Block_Embed extends Mage_Adminhtml_Block_Template
3
  {
4
  public function _construct()
5
  {
1
  <?php
2
+ class LexityGoogleShopping_Block_Embed extends Mage_Adminhtml_Block_Template
3
  {
4
  public function _construct()
5
  {
app/code/local/LexityGoogleShopping/Model/Core.php CHANGED
@@ -14,22 +14,10 @@ class LexityGoogleShopping_Model_Core extends Mage_Core_Model_Config {
14
  die($message);
15
  }
16
 
17
- public function has_lexity_user() {
18
- $resource = Mage::getSingleton('core/resource');
19
- $readConnection = $resource->getConnection('core_read');
20
- $tableName = $resource->getTableName('api/user');
21
- $results = $readConnection->fetchALL("SELECT * FROM api_user where username = 'lexity_google_shopping' LIMIT 1");
22
- return isset($results[0]);
23
- }
24
-
25
  public function get_api_key() {
26
- if ($this->has_lexity_user()) {
27
- $user = Mage::getModel('api/user');
28
- $user->loadByUsername('lexity_google_shopping');
29
- return $user->getApiKey();
30
- } else {
31
- return null;
32
- }
33
  }
34
 
35
  public function check_credentials() {
14
  die($message);
15
  }
16
 
 
 
 
 
 
 
 
 
17
  public function get_api_key() {
18
+ $user = Mage::getModel('api/user');
19
+ $user->loadByUsername('lexity_google_shopping');
20
+ return $user->getApiKey();
 
 
 
 
21
  }
22
 
23
  public function check_credentials() {
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Lexity_GoogleShopping</name>
4
- <version>1.3.1</version>
5
  <stability>stable</stability>
6
  <license>BSD License</license>
7
  <channel>community</channel>
@@ -12,11 +12,11 @@ Google is moving from a free model to a paid model, with its transition from the
12
  <description>Automatically synchronize listings with store inventory&#xD;
13
  &#xD;
14
  Item out of stock? No problem! We&#x2019;ll update your listings without your needing to lift a finger. Lexity automatically synchronizes with your store and automatically updates your feeds with current information on your inventory and catalog, including stock, pricing, and product images.</description>
15
- <notes>Stable</notes>
16
  <authors><author><name>Lexity</name><user>lexity</user><email>support@lexity.com</email></author></authors>
17
- <date>2013-03-05</date>
18
- <time>20:51:47</time>
19
- <contents><target name="magelocal"><dir name="LexityGoogleShopping"><dir name="Block"><dir name="Credentials"><dir name="Form"><dir name="Edit"><file name="Form.php" hash="1f7d4bdc6be0a59fd4afad6e5ee9038c"/><dir name="Tab"><file name="Form.php" hash="5bcf53277215e2510a1023c32f2ced0c"/></dir><file name="Tabs.php" hash="aad45913633dbf00e332d38a0ea81e58"/></dir><file name="Edit.php" hash="0fbb803e4ba772263f3c75c4de3ded32"/></dir></dir><file name="Embed.php" hash="abac60fc5e4aba01cadf7446d2cd301a"/></dir><dir name="Helper"><file name="Data.php" hash="9e4c8fe0f1c2c6c58779d6eab5abc155"/></dir><dir name="Model"><dir name="Core"><file name="Api.php" hash="7cb5721dc220cff5c90e7f0012b481f6"/></dir><file name="Core.php" hash="7658d32905a179a866b57e034f22383c"/><dir name="Order"><file name="Api.php" hash="1cc4747b57196c793e73a3e130e0c9b2"/></dir></dir><dir name="controllers"><file name="MarketingController.php" hash="a03f5ed92c2d0ac65ade8d56675f3682"/></dir><dir name="etc"><file name="api.xml" hash="125d3011e9255bb0b3b915645f14cd89"/><file name="config.xml" hash="50ef4e69ccd4f10d20a9fcebcf7a7a54"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="LexityGoogleShopping.xml" hash="9deb73045bba529c3ebbd8374eb14d3c"/></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
22
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Lexity_GoogleShopping</name>
4
+ <version>1.3.3</version>
5
  <stability>stable</stability>
6
  <license>BSD License</license>
7
  <channel>community</channel>
12
  <description>Automatically synchronize listings with store inventory&#xD;
13
  &#xD;
14
  Item out of stock? No problem! We&#x2019;ll update your listings without your needing to lift a finger. Lexity automatically synchronizes with your store and automatically updates your feeds with current information on your inventory and catalog, including stock, pricing, and product images.</description>
15
+ <notes>get api key refactor</notes>
16
  <authors><author><name>Lexity</name><user>lexity</user><email>support@lexity.com</email></author></authors>
17
+ <date>2013-07-03</date>
18
+ <time>23:44:47</time>
19
+ <contents><target name="magelocal"><dir name="LexityGoogleShopping"><dir name="Block"><dir name="Credentials"><dir name="Form"><dir name="Edit"><file name="Form.php" hash="1f7d4bdc6be0a59fd4afad6e5ee9038c"/><dir name="Tab"><file name="Form.php" hash="5bcf53277215e2510a1023c32f2ced0c"/></dir><file name="Tabs.php" hash="aad45913633dbf00e332d38a0ea81e58"/></dir><file name="Edit.php" hash="0fbb803e4ba772263f3c75c4de3ded32"/></dir></dir><file name="Embed.php" hash="93a4021572068305319332453dae1bf3"/></dir><dir name="Helper"><file name="Data.php" hash="9e4c8fe0f1c2c6c58779d6eab5abc155"/></dir><dir name="Model"><dir name="Core"><file name="Api.php" hash="7cb5721dc220cff5c90e7f0012b481f6"/></dir><file name="Core.php" hash="0b92a3f7b7e93659e5dd9fb70dfb4c2f"/><dir name="Order"><file name="Api.php" hash="1cc4747b57196c793e73a3e130e0c9b2"/></dir></dir><dir name="controllers"><file name="MarketingController.php" hash="a03f5ed92c2d0ac65ade8d56675f3682"/></dir><dir name="etc"><file name="api.xml" hash="125d3011e9255bb0b3b915645f14cd89"/><file name="config.xml" hash="50ef4e69ccd4f10d20a9fcebcf7a7a54"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="LexityGoogleShopping.xml" hash="9deb73045bba529c3ebbd8374eb14d3c"/></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
22
  </package>