Version Notes
Loyalty programme for success pages
Download this release
Release Info
Developer | Magento Core Team |
Extension | Bonusbox_Bonusbox1 |
Version | 1.1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1.1 to 1.1.2
- app/code/community/Bonusbox/Bonusbox/Block/Checkout/Success.php +1 -2
- app/code/community/Bonusbox/Bonusbox/Helper/Data.php +1 -1
- app/code/community/Bonusbox/Bonusbox/Model/Session.php +1 -1
- app/code/community/Bonusbox/Bonusbox/etc/config.xml +1 -1
- app/design/frontend/default/default/layout/bonusbox.xml +12 -6
- package.xml +4 -4
app/code/community/Bonusbox/Bonusbox/Block/Checkout/Success.php
CHANGED
@@ -23,7 +23,6 @@ class Bonusbox_Bonusbox_Block_Checkout_Success extends Mage_Core_Block_Template
|
|
23 |
public function getSuccessPageUrl()
|
24 |
{
|
25 |
$successPage = Mage::helper('bonusbox')->getSession()->getSuccessPage();
|
26 |
-
return $successPage['url'];
|
27 |
}
|
28 |
-
|
29 |
}
|
23 |
public function getSuccessPageUrl()
|
24 |
{
|
25 |
$successPage = Mage::helper('bonusbox')->getSession()->getSuccessPage();
|
26 |
+
return isset($successPage['url']) ? $successPage['url'] : null;
|
27 |
}
|
|
|
28 |
}
|
app/code/community/Bonusbox/Bonusbox/Helper/Data.php
CHANGED
@@ -154,7 +154,7 @@ class Bonusbox_Bonusbox_Helper_Data extends Mage_Core_Helper_Data
|
|
154 |
if (!$session->getCustomerBadgeByCoupon($couponCode))
|
155 |
{
|
156 |
$response = Mage::getModel('bonusbox/client_coupons')->get($couponCode);
|
157 |
-
|
158 |
}
|
159 |
return $session->getCustomerBadgeByCoupon($couponCode);
|
160 |
}
|
154 |
if (!$session->getCustomerBadgeByCoupon($couponCode))
|
155 |
{
|
156 |
$response = Mage::getModel('bonusbox/client_coupons')->get($couponCode);
|
157 |
+
$session->setCustomerBadgeByCoupon($couponCode, isset($response['coupon']['user']['badge']['id']) ? $response['coupon']['user']['badge']['id'] : null);
|
158 |
}
|
159 |
return $session->getCustomerBadgeByCoupon($couponCode);
|
160 |
}
|
app/code/community/Bonusbox/Bonusbox/Model/Session.php
CHANGED
@@ -10,7 +10,7 @@ class Bonusbox_Bonusbox_Model_Session extends Mage_Core_Model_Session_Abstract
|
|
10 |
public function getCustomerBadgeByCoupon($couponCode)
|
11 |
{
|
12 |
$badges = $this->getCustomerBadgesByCoupon();
|
13 |
-
return $badges[$couponCode];
|
14 |
}
|
15 |
|
16 |
|
10 |
public function getCustomerBadgeByCoupon($couponCode)
|
11 |
{
|
12 |
$badges = $this->getCustomerBadgesByCoupon();
|
13 |
+
return isset($badges[$couponCode]) ? $badges[$couponCode] : null;
|
14 |
}
|
15 |
|
16 |
|
app/code/community/Bonusbox/Bonusbox/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<bonusbox_bonusbox>
|
5 |
-
<version>1.1.
|
6 |
</bonusbox_bonusbox>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<bonusbox_bonusbox>
|
5 |
+
<version>1.1.2</version>
|
6 |
</bonusbox_bonusbox>
|
7 |
</modules>
|
8 |
<global>
|
app/design/frontend/default/default/layout/bonusbox.xml
CHANGED
@@ -1,8 +1,14 @@
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<layout version="0.1.0">
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<layout version="0.1.0">
|
3 |
+
<checkout_onepage_success>
|
4 |
+
<reference name="content">
|
5 |
+
<block type="bonusbox/checkout_success" name="bonusbox.checkout_success" />
|
6 |
+
</reference>
|
7 |
+
</checkout_onepage_success>
|
8 |
+
|
9 |
+
<firecheckout_index_success>
|
10 |
+
<reference name="content">
|
11 |
+
<block type="bonusbox/checkout_success" name="bonusbox.checkout_success" />
|
12 |
+
</reference>
|
13 |
+
</firecheckout_index_success>
|
14 |
+
</layout>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Bonusbox_Bonusbox1</name>
|
4 |
-
<version>1.1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/MIT">MIT License</license>
|
7 |
<channel>community</channel>
|
@@ -12,9 +12,9 @@
|
|
12 |
For further information, check out our homepage www.bonusbox.me.</description>
|
13 |
<notes>Loyalty programme for success pages</notes>
|
14 |
<authors><author><name>Jan Riethmayer</name><user>auto-converted</user><email>jan@bonusbox.me</email></author></authors>
|
15 |
-
<date>2012-
|
16 |
-
<time>
|
17 |
-
<contents><target name="magecommunity"><dir name="Bonusbox"><dir name="Bonusbox"><dir name="Block"><dir name="Checkout"><file name="Success.php" hash="
|
18 |
<compatible/>
|
19 |
<dependencies/>
|
20 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Bonusbox_Bonusbox1</name>
|
4 |
+
<version>1.1.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/MIT">MIT License</license>
|
7 |
<channel>community</channel>
|
12 |
For further information, check out our homepage www.bonusbox.me.</description>
|
13 |
<notes>Loyalty programme for success pages</notes>
|
14 |
<authors><author><name>Jan Riethmayer</name><user>auto-converted</user><email>jan@bonusbox.me</email></author></authors>
|
15 |
+
<date>2012-02-27</date>
|
16 |
+
<time>16:36:05</time>
|
17 |
+
<contents><target name="magecommunity"><dir name="Bonusbox"><dir name="Bonusbox"><dir name="Block"><dir name="Checkout"><file name="Success.php" hash="d54f41cb4ef4e7fa3586cbd5525bf697"/></dir></dir><dir name="controllers"><file name="TestController.php" hash="c0b4a8bc94e61ad974cb2639a9f31d2e"/></dir><dir name="etc"><file name="config.xml" hash="7d06fd3d5552f86d9bea4d971fea9238"/><file name="system.xml" hash="34c55484b3db6b7df74078ff9259831a"/></dir><dir name="Helper"><file name="Data.php" hash="b3a853ecd1ca0a7001e87c7a9fef197a"/><file name="Successpage.php" hash="bc389365d75932a6054df02f3359597d"/></dir><dir name="Model"><dir name="Client"><file name="Badges.php" hash="ef1b25b841ab24db961a9007de26d3a2"/><file name="Coupons.php" hash="d194a60a18c8ef5d50885de48edd5f58"/><file name="Successpages.php" hash="f90e95b81a385aa6e11ca7ece3ade63b"/></dir><dir name="Sales"><file name="Observer.php" hash="ca70bb57f270691743c9683438cda6c0"/></dir><dir name="SalesRule"><dir name="Condition"><file name="Bonusbox.php" hash="2c3ba430975270fdf7168f970d608632"/></dir><file name="Validator.php" hash="361099ff2b3bd934cbdeef84dd631010"/></dir><file name="Client.php" hash="e6d07ee4bad0b5fd0023f1b407d9cf1f"/><file name="Session.php" hash="afd1b944ef8a37533fbe725c750b5c10"/></dir><file name="Exception.php" hash="3816ef60762bc800941bfb975525d581"/></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="bonusbox.xml" hash="8a0f839c7be99208bd860cd788fb37fe"/></dir><dir name="template"><dir name="bonusbox"><dir name="checkout"><file name="success.phtml" hash="2db7c3f9ba5bc1ba70332550c9def603"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Bonusbox_Bonusbox.xml" hash="924b6d17825c821f6d4e5846eba164c5"/></dir></target></contents>
|
18 |
<compatible/>
|
19 |
<dependencies/>
|
20 |
</package>
|