GSXInternationalCheckout - Version 1.1.4

Version Notes

This is Stable version

Download this release

Release Info

Developer Srikanth
Extension GSXInternationalCheckout
Version 1.1.4
Comparing to
See all releases


Code changes from version 1.1.3 to 1.1.4

app/code/community/GSX/InternationalCheckout/Block/International.php CHANGED
@@ -351,6 +351,12 @@ function getBrand($item){
351
  $product = $item->getProduct();
352
  $brand = $product->getAttribute('manufacturer');
353
  return $brand;
 
 
 
 
 
 
354
  }
355
  /**
356
  * Returns the Product Color.
@@ -403,6 +409,7 @@ function getSize($item){
403
  }
404
  return $output;
405
  }
 
406
 
407
 
408
  /**
351
  $product = $item->getProduct();
352
  $brand = $product->getAttribute('manufacturer');
353
  return $brand;
354
+ }
355
+ function getWeight($item){
356
+
357
+ $product = $item->getProduct();
358
+ $brand = $product->getAttribute('weight');
359
+ return $brand;
360
  }
361
  /**
362
  * Returns the Product Color.
409
  }
410
  return $output;
411
  }
412
+
413
 
414
 
415
  /**
app/code/community/GSX/InternationalCheckout/etc/config.xml CHANGED
@@ -31,8 +31,8 @@
31
  <default>
32
  <checkout>
33
  <internationalcheckout>
34
- <image_width>75</image_width>
35
- <image_height>75</image_height>
36
  </internationalcheckout>
37
  </checkout>
38
  </default>
31
  <default>
32
  <checkout>
33
  <internationalcheckout>
34
+ <image_width>0</image_width>
35
+ <image_height>0</image_height>
36
  </internationalcheckout>
37
  </checkout>
38
  </default>
app/code/community/GSX/InternationalCheckout/etc/system.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <config>
3
  <sections>
4
- <checkout>
5
  <groups>
6
  <internationalcheckout translate="label" module="checkout">
7
  <label>GSX International Checkout</label>
@@ -11,9 +11,51 @@
11
  <show_in_website>1</show_in_website>
12
  <show_in_store>1</show_in_store>
13
  <fields>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  </fields>
15
  </internationalcheckout>
16
  </groups>
17
- </checkout>
18
  </sections>
19
  </config>
1
  <?xml version="1.0"?>
2
  <config>
3
  <sections>
4
+ <shipping>
5
  <groups>
6
  <internationalcheckout translate="label" module="checkout">
7
  <label>GSX International Checkout</label>
11
  <show_in_website>1</show_in_website>
12
  <show_in_store>1</show_in_store>
13
  <fields>
14
+ <name_of_company translate="label">
15
+ <label>Merchant ID</label>
16
+ <frontend_type>text</frontend_type>
17
+ <sort_order>1</sort_order>
18
+ <show_in_default>1</show_in_default>
19
+ <show_in_website>1</show_in_website>
20
+ <show_in_store>1</show_in_store>
21
+ <validate>required-entry</validate>
22
+ <comment>
23
+ <![CDATA[
24
+ <span>Please click the link below to obtain the Merchant ID required for successful integration.<br/><a href="http://globalshopex.com/join_us.html" target="_newtab">http://globalshopex.com/join_us.html</a></span>
25
+ ]]>
26
+ </comment>
27
+ </name_of_company>
28
+ <image_width translate="label">
29
+ <label>Local Shipping</label>
30
+ <frontend_type>text</frontend_type>
31
+ <sort_order>2</sort_order>
32
+ <show_in_default>1</show_in_default>
33
+ <show_in_website>1</show_in_website>
34
+ <show_in_store>1</show_in_store>
35
+ <validate>validate-number</validate>
36
+ <comment>
37
+ <![CDATA[
38
+ <span>Example: 0</span>
39
+ ]]>
40
+ </comment>
41
+ </image_width>
42
+ <image_height translate="label">
43
+ <label>Local Shipping EXP</label>
44
+ <frontend_type>text</frontend_type>
45
+ <sort_order>3</sort_order>
46
+ <show_in_default>1</show_in_default>
47
+ <show_in_website>1</show_in_website>
48
+ <show_in_store>1</show_in_store>
49
+ <validate>validate-number</validate>
50
+ <comment>
51
+ <![CDATA[
52
+ <span>Example: 0</span>
53
+ ]]>
54
+ </comment>
55
+ </image_height>
56
  </fields>
57
  </internationalcheckout>
58
  </groups>
59
+ </shipping>
60
  </sections>
61
  </config>
app/code/community/GSX/InternationalCheckout/etc/system33.xml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <sections>
4
+ <checkout>
5
+ <groups>
6
+ <internationalcheckout translate="label" module="checkout">
7
+ <label>GSX International Checkout</label>
8
+ <frontend_type>text</frontend_type>
9
+ <sort_order>13</sort_order>
10
+ <show_in_default>1</show_in_default>
11
+ <show_in_website>1</show_in_website>
12
+ <show_in_store>1</show_in_store>
13
+ <fields>
14
+ </fields>
15
+ </internationalcheckout>
16
+ </groups>
17
+ </checkout>
18
+ </sections>
19
+ </config>
app/code/community/GSX/InternationalCheckout/etc/system_old.xml ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <sections>
4
+ <checkout>
5
+ <groups>
6
+ <internationalcheckout translate="label" module="checkout">
7
+ <label>GSX International Checkout</label>
8
+ <frontend_type>text</frontend_type>
9
+ <sort_order>13</sort_order>
10
+ <show_in_default>1</show_in_default>
11
+ <show_in_website>1</show_in_website>
12
+ <show_in_store>1</show_in_store>
13
+ <fields>
14
+ <name_of_company translate="label">
15
+ <label>Merchant ID</label>
16
+ <frontend_type>text</frontend_type>
17
+ <sort_order>1</sort_order>
18
+ <show_in_default>1</show_in_default>
19
+ <show_in_website>1</show_in_website>
20
+ <show_in_store>1</show_in_store>
21
+ <validate>required-entry</validate>
22
+ <comment>
23
+ <![CDATA[
24
+ <span>Please click the link below to obtain the Merchant ID required for successful integration.<br/><a href="http://globalshopex.com/join_us.html" target="_newtab">http://globalshopex.com/join_us.html</a></span>
25
+ ]]>
26
+ </comment>
27
+ </name_of_company>
28
+ <image_width translate="label">
29
+ <label>Local Shipping</label>
30
+ <frontend_type>text</frontend_type>
31
+ <sort_order>2</sort_order>
32
+ <show_in_default>1</show_in_default>
33
+ <show_in_website>1</show_in_website>
34
+ <show_in_store>1</show_in_store>
35
+ <validate>validate-number</validate>
36
+ <comment>
37
+ <![CDATA[
38
+ <span>Example: 0</span>
39
+ ]]>
40
+ </comment>
41
+ </image_width>
42
+ <image_height translate="label">
43
+ <label>Local Shipping EXP</label>
44
+ <frontend_type>text</frontend_type>
45
+ <sort_order>3</sort_order>
46
+ <show_in_default>1</show_in_default>
47
+ <show_in_website>1</show_in_website>
48
+ <show_in_store>1</show_in_store>
49
+ <validate>validate-number</validate>
50
+ <comment>
51
+ <![CDATA[
52
+ <span>Example: 0</span>
53
+ ]]>
54
+ </comment>
55
+ </image_height>
56
+ </fields>
57
+ </internationalcheckout>
58
+ </groups>
59
+ </checkout>
60
+ </sections>
61
+ </config>
app/design/frontend/base/default/template/internationalcheckout/international.phtml CHANGED
@@ -19,7 +19,8 @@
19
  $output = "";
20
  $i = 1;
21
  foreach ($session->getQuote()->getAllVisibleItems() as $item) {
22
-
 
23
  $output .= "<input type=\"hidden\" name=\"ProductDesc$i\" value=\"".$this->buildItemDescription($item)."\"/>\n";
24
  $output .= "<input type=\"hidden\" name=\"ProductSKU$i\" value=\"".$item->getSku()."\"/>\n";
25
  $output .= "<input type=\"hidden\" name=\"ProductLink$i\" value=\"".$this->getProductUrl($item)."\"/>\n";
@@ -28,7 +29,7 @@
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=\"".$item->getWeight()."\"/>\n";
32
  $output .= "<input type=\"hidden\" name=\"ProductVolWeight$i\" value=\"1\"/>\n";
33
  $output .= "<input type=\"hidden\" name=\"ProductCountry$i\" value=\"".$item->getCountry()."\"/>\n";
34
 
@@ -62,6 +63,6 @@
62
  <input type="hidden" name="LocalShipping" value="<?php echo $gsx_ls; ?>" />
63
  <input type="hidden" name="PrefilledCart" value="<?php echo $this->helper('core/url')->getCurrentUrl();?>"/>
64
 
65
- <button title="<?php echo $this->__('Global Checkout') ?>" class="" <?php echo $this->buttonImagePath(); ?> style="background-color:none;" type="submit"><span></span></button>
66
 
67
  </form>
19
  $output = "";
20
  $i = 1;
21
  foreach ($session->getQuote()->getAllVisibleItems() as $item) {
22
+ $item_ID = $item->getProductId();
23
+ $_Product = Mage::getModel('catalog/product')->load($item_ID);
24
  $output .= "<input type=\"hidden\" name=\"ProductDesc$i\" value=\"".$this->buildItemDescription($item)."\"/>\n";
25
  $output .= "<input type=\"hidden\" name=\"ProductSKU$i\" value=\"".$item->getSku()."\"/>\n";
26
  $output .= "<input type=\"hidden\" name=\"ProductLink$i\" value=\"".$this->getProductUrl($item)."\"/>\n";
29
  $output .= "<input type=\"hidden\" name=\"ProductBrand$i\" value=\"".$this->getBrand($item)."\"/>\n";
30
  $output .= "<input type=\"hidden\" name=\"ProductSize$i\" value=\"".$this->getSize($item)."\"/>\n";
31
  $output .= "<input type=\"hidden\" name=\"ProductColor$i\" value=\"".$this->getColor($item)."\"/>\n";
32
+ $output .= "<input type=\"hidden\" name=\"ProductWeight$i\" value=\"".$_Product->getWeight()."\"/>\n";
33
  $output .= "<input type=\"hidden\" name=\"ProductVolWeight$i\" value=\"1\"/>\n";
34
  $output .= "<input type=\"hidden\" name=\"ProductCountry$i\" value=\"".$item->getCountry()."\"/>\n";
35
 
63
  <input type="hidden" name="LocalShipping" value="<?php echo $gsx_ls; ?>" />
64
  <input type="hidden" name="PrefilledCart" value="<?php echo $this->helper('core/url')->getCurrentUrl();?>"/>
65
 
66
+ <button title="<?php echo $this->__('Global Checkout') ?>" class="" <?php echo $this->buttonImagePath(); ?> style="background-color:none;height:42px;" type="submit"><span></span></button>
67
 
68
  </form>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>GSXInternationalCheckout</name>
4
- <version>1.1.3</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-03-15</date>
14
- <time>16:12:38</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="4c64a3f48669606215bd9484b597c364"/></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="8ac1f8c270ae9b4647fbe9a45926955d"/><file name="system.xml" hash="151a38f9269475c6b654ddd687ab5903"/></dir></dir></dir><dir name="InternationalCheckout"><dir name="Block"><file name="International.php" hash="4c64a3f48669606215bd9484b597c364"/></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="0c2af0e125262f82a2a82680f07e2e01"/><file name="international.phtml" hash="0c2af0e125262f82a2a82680f07e2e01"/></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.8</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>GSXInternationalCheckout</name>
4
+ <version>1.1.4</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>2012-06-21</date>
14
+ <time>17:43:29</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="bb31806cbedc20473c1463ba1e512931"/></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="9fac17ac99a48d3d128e6f8c253097f8"/><file name="system.xml" hash="4c55194d4a058126ea288eadb4c5ae53"/><file name="system33.xml" hash="151a38f9269475c6b654ddd687ab5903"/><file name="system_old.xml" hash="975f7ddf4da2fc2f8c2df6497f5e5435"/></dir></dir></dir><dir name="InternationalCheckout"><dir name="Block"><file name="International.php" hash="bb31806cbedc20473c1463ba1e512931"/></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="59b1a59a4211f6ba8905cd2a5e97d84c"/><file name="international.phtml" hash="59b1a59a4211f6ba8905cd2a5e97d84c"/></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.15</max></php></required></dependencies>
18
  </package>