Beecoder_Beeshopy - Version 2.3.5

Version Notes

Adding Google analytics params

Download this release

Release Info

Developer Magento Core Team
Extension Beecoder_Beeshopy
Version 2.3.5
Comparing to
See all releases


Code changes from version 2.3.0 to 2.3.5

app/code/community/Beecoder/Beeshopy/Model/.Api.php.swp ADDED
Binary file
app/code/community/Beecoder/Beeshopy/Model/Api.php CHANGED
@@ -101,7 +101,7 @@ class Beecoder_Beeshopy_Model_Api extends Mage_Catalog_Model_Api_Resource
101
 
102
  /* Used to know if module is installed*/
103
  public function checkModule(){
104
- return array("api_version" => '2.3.0', "magento_version" => Mage::getVersion());
105
 
106
  }
107
  /*Auxiliar functions*/
101
 
102
  /* Used to know if module is installed*/
103
  public function checkModule(){
104
+ return array("api_version" => '2.3.5', "magento_version" => Mage::getVersion());
105
 
106
  }
107
  /*Auxiliar functions*/
app/code/community/Beecoder/Beeshopy/controllers/.AdminController.php.swp DELETED
Binary file
app/code/community/Beecoder/Beeshopy/controllers/IndexController.php CHANGED
@@ -34,10 +34,27 @@
34
  }
35
  $cart->save();
36
  Mage::getSingleton('checkout/session')->setCartWasUpdated(true);
37
- $this->_redirect('checkout/cart');
 
38
  }else{
39
  $this->_redirect('/');
40
  }
41
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  }
43
  ?>
34
  }
35
  $cart->save();
36
  Mage::getSingleton('checkout/session')->setCartWasUpdated(true);
37
+
38
+ $this->_redirect('checkout/cart', $this->gaParams());
39
  }else{
40
  $this->_redirect('/');
41
  }
42
  }
43
+
44
+ /* Add Google analytics parameters */
45
+ public function gaParams(){
46
+ $redirect_params = array();
47
+ foreach($this->getRequest()->getParams() as $k => $v){
48
+ if(preg_match('/^utm_/', $k)){
49
+ $redirect_params[$k] = $v;
50
+ }
51
+ }
52
+
53
+ if(count($redirect_params)){
54
+ $redirect_params = array('_query' => $redirect_params);
55
+ }
56
+
57
+ return $redirect_params;
58
+ }
59
  }
60
  ?>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Beecoder_Beeshopy</name>
4
- <version>2.3.0</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
@@ -11,11 +11,11 @@ Beeshopy extension for Magento, it allows you to integrates your magento store w
11
  <description>Custom Module that allows you to connect with beeshopy service and integrates your magento store with Facebook. &#xD;
12
  &#xD;
13
  It contains a custom API and cart processing.</description>
14
- <notes>Adding base elements</notes>
15
  <authors><author><name>Miguel &#xC1;ngel Mart&#xED;nez Trivi&#xF1;o</name><user>auto-converted</user><email>migmartri@gmail.com</email></author></authors>
16
- <date>2011-05-03</date>
17
- <time>03:30:47</time>
18
- <contents><target name="magecommunity"><dir name="Beecoder"><dir name="Beeshopy"><dir name="Block"><file name="Track.php" hash="60f6db76def102712af42e3026b082c7"/></dir><dir name="Helper"><file name="Data.php" hash="64594c0c2a597f047b972fe6f3b022a9"/></dir><dir name="Model"><file name="Api.php" hash="21fd514b811af2b87e303231dd6e011c"/></dir><dir name="controllers"><file name="AdminController.php" hash="7e4bbc530fca18f4fc46412f681f47a0"/><file name="IndexController.php" hash="76a2d269df704fd3e0d43701f60bf76a"/><file name=".AdminController.php.swp" hash="e5e05ba3ad3575da4d74afac9b9f2efe"/></dir><dir name="etc"><file name="api.xml" hash="507ae656ea724a77def33efd8429d674"/><file name="config.xml" hash="ba85f25c82445ce4a5c4c10b80741975"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Beecoder_Beeshopy.xml" hash="55666ef45f08dab44b138e49532ca3b8"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="beeshopy.xml" hash="d307958edf914638aa5cd57f8d449c46"/></dir><dir name="template"><dir name="beeshopy"><file name="track.phtml" hash="47c95001bb55042c5ae7d8ee4b03cccf"/></dir></dir></dir></dir><dir name="base"><dir name="default"><dir name="layout"><file name="beeshopy.xml" hash="d307958edf914638aa5cd57f8d449c46"/></dir><dir name="template"><dir name="beeshopy"><file name="track.phtml" hash="47c95001bb55042c5ae7d8ee4b03cccf"/></dir></dir></dir></dir></dir></target></contents>
19
  <compatible/>
20
  <dependencies/>
21
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Beecoder_Beeshopy</name>
4
+ <version>2.3.5</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
11
  <description>Custom Module that allows you to connect with beeshopy service and integrates your magento store with Facebook. &#xD;
12
  &#xD;
13
  It contains a custom API and cart processing.</description>
14
+ <notes>Adding Google analytics params</notes>
15
  <authors><author><name>Miguel &#xC1;ngel Mart&#xED;nez Trivi&#xF1;o</name><user>auto-converted</user><email>migmartri@gmail.com</email></author></authors>
16
+ <date>2011-05-05</date>
17
+ <time>18:46:01</time>
18
+ <contents><target name="magecommunity"><dir name="Beecoder"><dir name="Beeshopy"><dir name="Block"><file name="Track.php" hash="60f6db76def102712af42e3026b082c7"/></dir><dir name="Helper"><file name="Data.php" hash="64594c0c2a597f047b972fe6f3b022a9"/></dir><dir name="Model"><file name="Api.php" hash="68c61f8d399f983d632bb62fbd27cf68"/><file name=".Api.php.swp" hash="f07be97253b99dc31c4d9f1b4a43fe1e"/></dir><dir name="controllers"><file name="AdminController.php" hash="7e4bbc530fca18f4fc46412f681f47a0"/><file name="IndexController.php" hash="6d146fd78a9807d8120dbf56de84ab8e"/></dir><dir name="etc"><file name="api.xml" hash="507ae656ea724a77def33efd8429d674"/><file name="config.xml" hash="ba85f25c82445ce4a5c4c10b80741975"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Beecoder_Beeshopy.xml" hash="55666ef45f08dab44b138e49532ca3b8"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="beeshopy.xml" hash="d307958edf914638aa5cd57f8d449c46"/></dir><dir name="template"><dir name="beeshopy"><file name="track.phtml" hash="47c95001bb55042c5ae7d8ee4b03cccf"/></dir></dir></dir></dir><dir name="base"><dir name="default"><dir name="layout"><file name="beeshopy.xml" hash="d307958edf914638aa5cd57f8d449c46"/></dir><dir name="template"><dir name="beeshopy"><file name="track.phtml" hash="47c95001bb55042c5ae7d8ee4b03cccf"/></dir></dir></dir></dir></dir></target></contents>
19
  <compatible/>
20
  <dependencies/>
21
  </package>