GSXInternationalCheckout - Version 1.1.8

Version Notes

This is Stable version

Download this release

Release Info

Developer Srikanth
Extension GSXInternationalCheckout
Version 1.1.8
Comparing to
See all releases


Code changes from version 1.1.7 to 1.1.8

app/code/community/GSX/InternationalCheckout/Block/International.php CHANGED
@@ -43,7 +43,7 @@ class GSX_InternationalCheckout_Block_International extends Mage_Core_Block_Temp
43
  function buttonImagePath() {
44
 
45
  $style = "";
46
- $style= "style=\"background-image:url('".Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA)."GSX/images/default/gc_button.gif"."'); background-repeat:no-repeat; width:182px; height:34px; outline:none; border:none; cursor:pointer;\"";
47
  return $style;
48
  }
49
 
43
  function buttonImagePath() {
44
 
45
  $style = "";
46
+ $style= "style=\"background-image:url('".Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA)."GSX/images/default/gc_button.gif"."'); background-repeat:no-repeat; background-color:transparent; height:35px; width:183px; outline:none; border:none; cursor:pointer;\"";
47
  return $style;
48
  }
49
 
app/design/frontend/base/default/template/internationalcheckout/international.phtml CHANGED
@@ -20,15 +20,15 @@
20
  foreach ($session->getQuote()->getAllVisibleItems() as $item) {
21
  $item_ID = $item->getProductId();
22
  $_Product = Mage::getModel('catalog/product')->load($item_ID);
23
- $output .= "<input type=\"hidden\" name=\"ProductDesc$i\" value=\"".$this->buildItemDescription($item)."\"/>\n";
24
  $output .= "<input type=\"hidden\" name=\"ProductSKU$i\" value=\"".$_Product->getSku()."\"/>\n";
25
  $output .= "<input type=\"hidden\" name=\"ProductLink$i\" value=\"".$this->getProductUrl($item)."\"/>\n";
26
  $output .= "<input type=\"hidden\" name=\"ProductQty$i\" value=\"".$item->getQty()."\"/>\n";
27
  $output .= "<input type=\"hidden\" name=\"ProductPrice$i\" value=\"".$item->getPrice()."\"/>\n";
28
  $output .= "<input type=\"hidden\" name=\"ProductBrand$i\" value=\"".$this->getBrand($item)."\"/>\n";
29
- $output .= "<input type=\"hidden\" name=\"ProductSize$i\" value=\"".$this->getSize($item)."\"/>\n";
30
- $output .= "<input type=\"hidden\" name=\"ProductColor$i\" value=\"".$this->getColor($item)."\"/>\n";
31
- $output .= "<input type=\"hidden\" name=\"ProductWeight$i\" value=\"".$_Product->getWeight() * $item->getQty()."\"/>\n";
32
  $output .= "<input type=\"hidden\" name=\"ProductCountry$i\" value=\"".$item->getCountry()."\"/>\n";
33
 
34
  // International Shipping Restriction Check
@@ -42,7 +42,7 @@
42
  foreach ($manufac as $man) {
43
  $intshiping[$man['value']] = $man['label'];
44
  }
45
- if($intshiping[$_Product->getData($GSX_shipping_restriction_attribute_code)] == 'No') $output .= "<input type=\"hidden\" name=\"Restricted$i\" value='1'/>\n";
46
  else $output .= "<input type=\"hidden\" name=\"Restricted$i\" value='0'/>\n";
47
 
48
  //
@@ -72,6 +72,8 @@
72
  $GSX_totals = $session->getQuote()->getData();
73
  $coupon_code = $GSX_totals['coupon_code'];
74
  $discount = $GSX_totals['subtotal'] - $GSX_totals['subtotal_with_discount'];
 
 
75
  ?>
76
  <input type="hidden" name="ODiscount" value="<?php echo $discount; ?>" />
77
  <input type="hidden" name="ODiscCode" value="<?php echo $coupon_code; ?>" />
@@ -82,5 +84,5 @@
82
  <input type="hidden" name="LocalShipping" value="<?php echo $gsx_ls; ?>" />
83
  <input type="hidden" name="PrefilledCart" value="<?php echo $this->helper('core/url')->getCurrentUrl();?>"/>
84
 
85
- <button title="<?php echo $this->__('Global Checkout') ?>" class="" <?php echo $this->buttonImagePath(); ?> style="background-color:none;height:42px;" type="submit"><span></span></button>
86
  </form>
20
  foreach ($session->getQuote()->getAllVisibleItems() as $item) {
21
  $item_ID = $item->getProductId();
22
  $_Product = Mage::getModel('catalog/product')->load($item_ID);
23
+ $output .= "<input type=\"hidden\" name=\"ProductDesc$i\" value=\"".$this->buildItemDescription($item)."\"/>\n";
24
  $output .= "<input type=\"hidden\" name=\"ProductSKU$i\" value=\"".$_Product->getSku()."\"/>\n";
25
  $output .= "<input type=\"hidden\" name=\"ProductLink$i\" value=\"".$this->getProductUrl($item)."\"/>\n";
26
  $output .= "<input type=\"hidden\" name=\"ProductQty$i\" value=\"".$item->getQty()."\"/>\n";
27
  $output .= "<input type=\"hidden\" name=\"ProductPrice$i\" value=\"".$item->getPrice()."\"/>\n";
28
  $output .= "<input type=\"hidden\" name=\"ProductBrand$i\" value=\"".$this->getBrand($item)."\"/>\n";
29
+ $output .= "<input type=\"hidden\" name=\"ProductSize$i\" value=\"\"/>\n";
30
+ $output .= "<input type=\"hidden\" name=\"ProductColor$i\" value=\"\"/>\n";
31
+ $output .= "<input type=\"hidden\" name=\"ProductWeight$i\" value=\"".$_Product->getWeight()."\"/>\n";
32
  $output .= "<input type=\"hidden\" name=\"ProductCountry$i\" value=\"".$item->getCountry()."\"/>\n";
33
 
34
  // International Shipping Restriction Check
42
  foreach ($manufac as $man) {
43
  $intshiping[$man['value']] = $man['label'];
44
  }
45
+ if($intshiping[$_Product->getData($GSX_shipping_restriction_attribute_code)] == 'No') $output .= "<input type=\"hidden\" name=\"Restricted$i\" value='0'/>\n";
46
  else $output .= "<input type=\"hidden\" name=\"Restricted$i\" value='0'/>\n";
47
 
48
  //
72
  $GSX_totals = $session->getQuote()->getData();
73
  $coupon_code = $GSX_totals['coupon_code'];
74
  $discount = $GSX_totals['subtotal'] - $GSX_totals['subtotal_with_discount'];
75
+ //$perc = ($discount * 100) / $GSX_totals['subtotal'];
76
+ //$perc = round($perc , 2);
77
  ?>
78
  <input type="hidden" name="ODiscount" value="<?php echo $discount; ?>" />
79
  <input type="hidden" name="ODiscCode" value="<?php echo $coupon_code; ?>" />
84
  <input type="hidden" name="LocalShipping" value="<?php echo $gsx_ls; ?>" />
85
  <input type="hidden" name="PrefilledCart" value="<?php echo $this->helper('core/url')->getCurrentUrl();?>"/>
86
 
87
+ <button title="<?php echo $this->__('Global Checkout') ?>" class="" <?php echo $this->buttonImagePath(); ?> type="submit"></button>
88
  </form>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>GSXInternationalCheckout</name>
4
- <version>1.1.7</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/gpl-license">GPL</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>Installs International Checkout Button in your cart</description>
11
  <notes>This is Stable version</notes>
12
  <authors><author><name>Srikanth</name><user>skyalekara</user><email>sky8973@gmail.com</email></author></authors>
13
- <date>2012-10-09</date>
14
- <time>12:56:58</time>
15
- <contents><target name="mageetc"><dir><dir name="modules"><file name="GSX_InternationalCheckout.xml" hash="87aba4b6648f7a0b22855cab679c48a1"/></dir></dir></target><target name="magecommunity"><dir><dir name="GSX"><dir><dir name="InternationalCheckout"><dir name="Block"><file name="International.php" hash="7a62ce1448b826477d89c43ad995e8e9"/></dir><dir name="Helper"><file name="Data.php" hash="d8a7158a95e55c8258d3f9ce50765417"/></dir><dir name="Model"><file name="International.php" hash="d14d71c1c7ca9b1cd0ead5d8dca339b6"/><file name="Servers.php" hash="2460f3985e80eddad55e08c6c15c947c"/><file name="Shippingmethods.php" hash="fa7dd994638cddb5c7c54abca859cbd3"/></dir><dir name="etc"><file name="config.xml" hash="2c58b53c8ef3027af45ce2f77d4bbc65"/><file name="system.xml" hash="f14f022b760ceaa541f7f499abbeab55"/></dir></dir></dir><dir name="InternationalCheckout"><dir name="Block"><file name="International.php" hash="7a62ce1448b826477d89c43ad995e8e9"/></dir></dir></dir></dir></target><target name="magedesign"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="internationalcheckout"><file name="international.phtml" hash="50ad767586e727efdc4b430336c174a0"/><file name="international.phtml" hash="50ad767586e727efdc4b430336c174a0"/></dir></dir><dir name="layout"><file name="internationalcheckout.xml" hash="53ddc41716851ef5b7b1dd4af937f1a4"/></dir></dir></dir></dir></dir></target><target name="magemedia"><dir><dir name="GSX"><dir name="images"><dir name="default"><file name="gc_button.gif" hash="5bf110e37bef7098754c13bb392894b5"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
- <dependencies><required><php><min>4.0.1</min><max>5.3.5</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>GSXInternationalCheckout</name>
4
+ <version>1.1.8</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/gpl-license">GPL</license>
7
  <channel>community</channel>
10
  <description>Installs International Checkout Button in your cart</description>
11
  <notes>This is Stable version</notes>
12
  <authors><author><name>Srikanth</name><user>skyalekara</user><email>sky8973@gmail.com</email></author></authors>
13
+ <date>2013-01-03</date>
14
+ <time>17:25:31</time>
15
+ <contents><target name="mageetc"><dir><dir name="modules"><file name="GSX_InternationalCheckout.xml" hash="87aba4b6648f7a0b22855cab679c48a1"/></dir></dir></target><target name="magecommunity"><dir><dir name="GSX"><dir><dir name="InternationalCheckout"><dir name="Block"><file name="International.php" hash="27bdf794d1032653bba0466b006d75c8"/></dir><dir name="Helper"><file name="Data.php" hash="d8a7158a95e55c8258d3f9ce50765417"/></dir><dir name="Model"><file name="International.php" hash="d14d71c1c7ca9b1cd0ead5d8dca339b6"/><file name="Servers.php" hash="2460f3985e80eddad55e08c6c15c947c"/><file name="Shippingmethods.php" hash="fa7dd994638cddb5c7c54abca859cbd3"/></dir><dir name="etc"><file name="config.xml" hash="2c58b53c8ef3027af45ce2f77d4bbc65"/><file name="system.xml" hash="f14f022b760ceaa541f7f499abbeab55"/></dir></dir></dir><dir name="InternationalCheckout"><dir name="Block"><file name="International.php" hash="27bdf794d1032653bba0466b006d75c8"/></dir></dir></dir></dir></target><target name="magedesign"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="internationalcheckout"><file name="international.phtml" hash="5395511594a5070e50941561c67c572c"/><file name="international.phtml" hash="5395511594a5070e50941561c67c572c"/></dir></dir><dir name="layout"><file name="internationalcheckout.xml" hash="53ddc41716851ef5b7b1dd4af937f1a4"/></dir></dir></dir></dir></dir></target><target name="magemedia"><dir><dir name="GSX"><dir name="images"><dir name="default"><file name="gc_button.gif" hash="5bf110e37bef7098754c13bb392894b5"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
+ <dependencies><required><php><min>4.0.1</min><max>5.3.19-1</max></php></required></dependencies>
18
  </package>