SureGifts - Version 1.0.3

Version Notes

coupon code now applies to shipping amount

Download this release

Release Info

Developer Michael Adeyeri
Extension SureGifts
Version 1.0.3
Comparing to
See all releases


Code changes from version 1.0.1 to 1.0.3

app/code/community/SureGifts/GiftCardsIntegrator/Model/Observer.php CHANGED
@@ -57,6 +57,7 @@ class SureGifts_GiftCardsIntegrator_Model_Observer
57
  $coupon_value = 0;
58
  $username = Mage::getStoreConfig('sg_section/sg_group/sg_username',Mage::app()->getStore());
59
  $password = Mage::getStoreConfig('sg_section/sg_group/sg_password',Mage::app()->getStore());
 
60
  $mode = Mage::getStoreConfig('sg_section/sg_group/sg_mode',Mage::app()->getStore());
61
 
62
 
@@ -89,7 +90,7 @@ class SureGifts_GiftCardsIntegrator_Model_Observer
89
  "AmountToUse" => $res['AmountToUse'] ,
90
  //"AmountToUse" => 2000,
91
  "VoucherCode" => $the_coupon_code,
92
- "WebsiteHost" => ""
93
  );
94
 
95
  $data_string = json_encode($data);
@@ -162,7 +163,7 @@ class SureGifts_GiftCardsIntegrator_Model_Observer
162
  ->setDiscountQty(null)
163
  ->setDiscountStep(0)
164
  ->setSimpleFreeShipping('0')
165
- ->setApplyToShipping('0')
166
  ->setIsRss(0)
167
  ->setWebsiteIds(array(1));
168
 
57
  $coupon_value = 0;
58
  $username = Mage::getStoreConfig('sg_section/sg_group/sg_username',Mage::app()->getStore());
59
  $password = Mage::getStoreConfig('sg_section/sg_group/sg_password',Mage::app()->getStore());
60
+ $website_host = Mage::getStoreConfig('sg_section/sg_group/sg_websitehost',Mage::app()->getStore());
61
  $mode = Mage::getStoreConfig('sg_section/sg_group/sg_mode',Mage::app()->getStore());
62
 
63
 
90
  "AmountToUse" => $res['AmountToUse'] ,
91
  //"AmountToUse" => 2000,
92
  "VoucherCode" => $the_coupon_code,
93
+ "WebsiteHost" => $website_host
94
  );
95
 
96
  $data_string = json_encode($data);
163
  ->setDiscountQty(null)
164
  ->setDiscountStep(0)
165
  ->setSimpleFreeShipping('0')
166
+ ->setApplyToShipping('1')
167
  ->setIsRss(0)
168
  ->setWebsiteIds(array(1));
169
 
app/code/community/SureGifts/GiftCardsIntegrator/etc/system.xml CHANGED
@@ -41,11 +41,20 @@
41
  <show_in_website>1</show_in_website>
42
  <show_in_store>1</show_in_store>
43
  </sg_password>
 
 
 
 
 
 
 
 
 
44
  <sg_notice translate="label">
45
  <label>Message: </label>
46
  <comment>Enter the store notice</comment>
47
  <frontend_type>text</frontend_type>
48
- <sort_order>40</sort_order>
49
  <show_in_default>1</show_in_default>
50
  <show_in_website>1</show_in_website>
51
  <show_in_store>1</show_in_store>
@@ -55,7 +64,7 @@
55
  <label>Test Mode </label>
56
  <comment>selct 'No' to authenticate with live server</comment>
57
  <frontend_type>select</frontend_type>
58
- <sort_order>50</sort_order>
59
  <show_in_default>1</show_in_default>
60
  <show_in_website>1</show_in_website>
61
  <show_in_store>1</show_in_store>
41
  <show_in_website>1</show_in_website>
42
  <show_in_store>1</show_in_store>
43
  </sg_password>
44
+ <sg_websitehost translate="label">
45
+ <label>Website Host: </label>
46
+ <comment>Enter website host for authentication</comment>
47
+ <frontend_type>text</frontend_type>
48
+ <sort_order>40</sort_order>
49
+ <show_in_default>1</show_in_default>
50
+ <show_in_website>1</show_in_website>
51
+ <show_in_store>1</show_in_store>
52
+ </sg_websitehost>
53
  <sg_notice translate="label">
54
  <label>Message: </label>
55
  <comment>Enter the store notice</comment>
56
  <frontend_type>text</frontend_type>
57
+ <sort_order>50</sort_order>
58
  <show_in_default>1</show_in_default>
59
  <show_in_website>1</show_in_website>
60
  <show_in_store>1</show_in_store>
64
  <label>Test Mode </label>
65
  <comment>selct 'No' to authenticate with live server</comment>
66
  <frontend_type>select</frontend_type>
67
+ <sort_order>60</sort_order>
68
  <show_in_default>1</show_in_default>
69
  <show_in_website>1</show_in_website>
70
  <show_in_store>1</show_in_store>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>SureGifts</name>
4
- <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License v. 3.0 (OSL-3.0)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Integrates SureGifts gift card codes with your store&#x2019;s coupon/discount field on cart/checkout page</summary>
10
  <description>Integrates SureGifts gift card codes with your store&#x2019;s coupon/discount field on cart/checkout page</description>
11
- <notes>Initial Release</notes>
12
  <authors><author><name>Michael Adeyeri</name><user>michael_adeyeri</user><email>adeyerimichael@gmail.com</email></author></authors>
13
- <date>2014-07-30</date>
14
- <time>21:14:03</time>
15
- <contents><target name="magecommunity"><dir name="SureGifts"><dir name="GiftCardsIntegrator"><dir name="Helper"><file name="Data.php" hash="7e85a45db5bd44ef823f61c3fe9bca90"/></dir><dir name="Model"><file name="Observer.php" hash="3f34232e5830ed07dacfe6d70aa60b50"/></dir><dir name="etc"><file name="adminhtml.xml" hash="bbed614a560feaffdcfad1046a5ca6ec"/><file name="config.xml" hash="273cd3238c38a32478e0e1199917d565"/><file name="system.xml" hash="1ca69683b257bcd2c598d26c8e6a0ed2"/></dir></dir><file name="desktop.ini" hash="15478b340a8362bb79fd2a6ea0dde1a0"/></dir></target><target name="mageetc"><dir name="modules"><file name="SureGifts_GiftCardsIntegrator.xml" hash="fb003392d5b16d17798ef75cefcc0019"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>SureGifts</name>
4
+ <version>1.0.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License v. 3.0 (OSL-3.0)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Integrates SureGifts gift card codes with your store&#x2019;s coupon/discount field on cart/checkout page</summary>
10
  <description>Integrates SureGifts gift card codes with your store&#x2019;s coupon/discount field on cart/checkout page</description>
11
+ <notes>coupon code now applies to shipping amount</notes>
12
  <authors><author><name>Michael Adeyeri</name><user>michael_adeyeri</user><email>adeyerimichael@gmail.com</email></author></authors>
13
+ <date>2014-09-16</date>
14
+ <time>18:35:02</time>
15
+ <contents><target name="magecommunity"><dir name="SureGifts"><dir name="GiftCardsIntegrator"><dir name="Helper"><file name="Data.php" hash="7e85a45db5bd44ef823f61c3fe9bca90"/></dir><dir name="Model"><file name="Observer.php" hash="70900f82f4298e3a70c3f7695374d597"/></dir><dir name="etc"><file name="adminhtml.xml" hash="bbed614a560feaffdcfad1046a5ca6ec"/><file name="config.xml" hash="273cd3238c38a32478e0e1199917d565"/><file name="system.xml" hash="2f647b5c82df9a939253fda2bd8e8b3f"/></dir></dir><file name="desktop.ini" hash="15478b340a8362bb79fd2a6ea0dde1a0"/></dir></target><target name="mageetc"><dir name="modules"><file name="SureGifts_GiftCardsIntegrator.xml" hash="fb003392d5b16d17798ef75cefcc0019"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>