Bonusbox_Bonusbox1 - Version 1.1.3

Version Notes

Loyalty programme for success pages

Download this release

Release Info

Developer Magento Core Team
Extension Bonusbox_Bonusbox1
Version 1.1.3
Comparing to
See all releases


Code changes from version 1.1.2 to 1.1.3

app/code/community/Bonusbox/Bonusbox/Model/SalesRule/Validator.php CHANGED
@@ -62,10 +62,24 @@ class Bonusbox_Bonusbox_Model_SalesRule_Validator extends Mage_SalesRule_Model_V
62
  {
63
  if (in_array($rule->getId(), $appliedRuleIds) && $this->isBonusboxRule($rule))
64
  {
65
- $this->_getAddress($item)->setCouponCode($this->getBonusboxCode());
66
  break;
67
  }
68
  }
69
  return $this;
70
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  }
62
  {
63
  if (in_array($rule->getId(), $appliedRuleIds) && $this->isBonusboxRule($rule))
64
  {
65
+ $this->_setCouponDataToAddress($item, $rule);
66
  break;
67
  }
68
  }
69
  return $this;
70
  }
71
+
72
+ /**
73
+ * Set coupon code and description to address
74
+ * @param Mage_Sales_Model_Quote_Item_Abstract $item
75
+ * @param Mage_SalesRule_Model_Rule $rule
76
+ */
77
+ protected function _setCouponDataToAddress($item, $rule)
78
+ {
79
+ $address = $this->_getAddress($item);
80
+ $address->setCouponCode($this->getBonusboxCode());
81
+ $rule->setCouponCode($this->getBonusboxCode()); // used in _addDiscountDescription
82
+ $this->_addDiscountDescription($address, $rule);
83
+ $rule->setCouponCode(null);
84
+ }
85
  }
app/code/community/Bonusbox/Bonusbox/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <bonusbox_bonusbox>
5
- <version>1.1.2</version>
6
  </bonusbox_bonusbox>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <bonusbox_bonusbox>
5
+ <version>1.1.3</version>
6
  </bonusbox_bonusbox>
7
  </modules>
8
  <global>
package.xml CHANGED
@@ -1,7 +1,7 @@
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>
@@ -13,8 +13,8 @@ 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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Bonusbox_Bonusbox1</name>
4
+ <version>1.1.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/MIT">MIT License</license>
7
  <channel>community</channel>
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>20:38:51</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="0312069c43da0b61b1d5a6e7b68365d3"/><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="181f2878f56066185289ff22b4360661"/></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>