Version Notes
Adding tracking options
Download this release
Release Info
Developer | Magento Core Team |
Extension | Beecoder_Beeshopy |
Version | 2.4.5 |
Comparing to | |
See all releases |
Code changes from version 2.4.2 to 2.4.5
- app/code/community/Beecoder/Beeshopy/{Model/.Api.php.swp → Block/.Track.php.swp} +0 -0
- app/code/community/Beecoder/Beeshopy/Block/Track.php +5 -6
- app/code/community/Beecoder/Beeshopy/Model/.Api.php.swo +0 -0
- app/code/community/Beecoder/Beeshopy/Model/Api.php +1 -1
- app/code/community/Beecoder/Beeshopy/controllers/IndexController.php +2 -4
- package.xml +5 -5
app/code/community/Beecoder/Beeshopy/{Model/.Api.php.swp → Block/.Track.php.swp}
RENAMED
Binary file
|
app/code/community/Beecoder/Beeshopy/Block/Track.php
CHANGED
@@ -16,8 +16,8 @@ class Beecoder_Beeshopy_Block_Track extends Mage_Core_Block_Template {
|
|
16 |
}
|
17 |
|
18 |
public function trackingCode(){
|
19 |
-
$
|
20 |
-
$
|
21 |
|
22 |
if($order = $this->getOrder()){
|
23 |
$res = '<script type="text/javascript" src=\'//www.beetailer.com/s.js'.
|
@@ -25,13 +25,12 @@ class Beecoder_Beeshopy_Block_Track extends Mage_Core_Block_Template {
|
|
25 |
'&p[amount]='.urlencode(sprintf("%.2f", $order->getSubtotal())).
|
26 |
'&p[order_date]='.urlencode($order->getCreatedAt()).
|
27 |
'&p[email]='.urlencode($order->getCustomerEmail()).
|
28 |
-
'&p[
|
29 |
-
'&p[
|
30 |
'&p[shop_domain]='.urlencode(Mage::getBaseURL()).
|
31 |
'\'></script>';
|
32 |
|
33 |
-
|
34 |
-
Mage::getModel('core/cookie')->delete("beetailer_checkout");
|
35 |
}
|
36 |
return $res;
|
37 |
}
|
16 |
}
|
17 |
|
18 |
public function trackingCode(){
|
19 |
+
$beetailer_ref = Mage::getModel('core/cookie')->get("beetailer_ref");
|
20 |
+
$beetailer_ref_date = Mage::getModel('core/cookie')->get("beetailer_ref_date");
|
21 |
|
22 |
if($order = $this->getOrder()){
|
23 |
$res = '<script type="text/javascript" src=\'//www.beetailer.com/s.js'.
|
25 |
'&p[amount]='.urlencode(sprintf("%.2f", $order->getSubtotal())).
|
26 |
'&p[order_date]='.urlencode($order->getCreatedAt()).
|
27 |
'&p[email]='.urlencode($order->getCustomerEmail()).
|
28 |
+
'&p[beetailer_ref]='.urlencode($beetailer_ref).
|
29 |
+
'&p[beetailer_ref_date]='.urlencode($beetailer_ref_date).
|
30 |
'&p[shop_domain]='.urlencode(Mage::getBaseURL()).
|
31 |
'\'></script>';
|
32 |
|
33 |
+
Mage::getModel('core/cookie')->delete("beetailer_ref");
|
|
|
34 |
}
|
35 |
return $res;
|
36 |
}
|
app/code/community/Beecoder/Beeshopy/Model/.Api.php.swo
DELETED
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.4.
|
105 |
|
106 |
}
|
107 |
/*Auxiliar functions*/
|
101 |
|
102 |
/* Used to know if module is installed*/
|
103 |
public function checkModule(){
|
104 |
+
return array("api_version" => '2.4.5', "magento_version" => Mage::getVersion());
|
105 |
|
106 |
}
|
107 |
/*Auxiliar functions*/
|
app/code/community/Beecoder/Beeshopy/controllers/IndexController.php
CHANGED
@@ -4,10 +4,8 @@
|
|
4 |
public function indexAction()
|
5 |
{
|
6 |
if($this->getRequest()->getParams()){
|
7 |
-
|
8 |
-
|
9 |
-
Mage::getModel('core/cookie')->set("beetailer_shop", $shop_token[1]);
|
10 |
-
Mage::getModel('core/cookie')->set("beetailer_checkout", $this->getRequest()->getParam('checkout_token'));
|
11 |
|
12 |
/* Fill shopping cart */
|
13 |
$cart = Mage::getSingleton('checkout/cart');
|
4 |
public function indexAction()
|
5 |
{
|
6 |
if($this->getRequest()->getParams()){
|
7 |
+
Mage::getModel('core/cookie')->set("beetailer_ref", $this->getRequest()->getParam('fb_ref'));
|
8 |
+
Mage::getModel('core/cookie')->set("beetailer_ref_date", time());
|
|
|
|
|
9 |
|
10 |
/* Fill shopping cart */
|
11 |
$cart = Mage::getSingleton('checkout/cart');
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Beecoder_Beeshopy</name>
|
4 |
-
<version>2.4.
|
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. 
|
12 |

|
13 |
It contains a custom API and cart processing.</description>
|
14 |
-
<notes>
|
15 |
<authors><author><name>Miguel Ángel Martínez Triviño</name><user>auto-converted</user><email>migmartri@gmail.com</email></author></authors>
|
16 |
-
<date>2011-05-
|
17 |
-
<time>
|
18 |
-
<contents><target name="magecommunity"><dir name="Beecoder"><dir name="Beeshopy"><dir name="Block"><file name="Track.php" hash="
|
19 |
<compatible/>
|
20 |
<dependencies/>
|
21 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Beecoder_Beeshopy</name>
|
4 |
+
<version>2.4.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. 
|
12 |

|
13 |
It contains a custom API and cart processing.</description>
|
14 |
+
<notes>Adding tracking options</notes>
|
15 |
<authors><author><name>Miguel Ángel Martínez Triviño</name><user>auto-converted</user><email>migmartri@gmail.com</email></author></authors>
|
16 |
+
<date>2011-05-19</date>
|
17 |
+
<time>21:43:09</time>
|
18 |
+
<contents><target name="magecommunity"><dir name="Beecoder"><dir name="Beeshopy"><dir name="Block"><file name="Track.php" hash="3be941b7a22954c26d6f6adbe0ac2ae5"/><file name=".Track.php.swp" hash="3efed8462b073c5e31524ba995754179"/></dir><dir name="Helper"><file name="Data.php" hash="64594c0c2a597f047b972fe6f3b022a9"/></dir><dir name="Model"><file name="Api.php" hash="56ab34d8bd950902e0464b2971164961"/></dir><dir name="controllers"><file name="AdminController.php" hash="7e4bbc530fca18f4fc46412f681f47a0"/><file name="IndexController.php" hash="86932d24dc1e150480b54f0f61e7824e"/></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>
|