Version Notes
Ths is Stable version
Download this release
Release Info
Developer | Globalshopex |
Extension | GSXInternationalCheckoutWithIframe |
Version | 2.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.2.4 to 2.0.3
- app/code/community/GSX/InternationalCheckout/Helper/Data.php +0 -4
- app/code/community/GSX/InternationalCheckout/Model/International.php +0 -8
- app/code/community/GSX/InternationalCheckout/Model/Shippingmethods.php +0 -29
- app/code/community/GSX/InternationalCheckout/controllers/InvoiceController.php +0 -37
- app/code/community/GSX/InternationalCheckout/etc/config.xml +0 -50
- app/code/community/GSX/InternationalCheckout/etc/system.xml +0 -112
- app/code/community/{GSX/InternationalCheckout/Block/International.php → Gsx/Globalshopex/Block/Internationallogic.php} +116 -203
- app/code/community/Gsx/Globalshopex/Model/IframeCarttoCart.php +15 -0
- app/code/community/{GSX/InternationalCheckout → Gsx/Globalshopex}/Model/Servers.php +3 -3
- app/code/community/{GSX/InternationalCheckout/controllers/CheckoutController.php → Gsx/Globalshopex/controllers/GSXController.php} +4 -4
- app/code/community/Gsx/Globalshopex/controllers/InvoiceController.php +22 -0
- app/code/community/{GSX/InternationalCheckout → Gsx/Globalshopex}/controllers/TrackingController.php +2 -2
- app/code/community/Gsx/Globalshopex/etc/config.xml +48 -0
- app/code/community/Gsx/Globalshopex/etc/system.xml +183 -0
- app/design/frontend/base/default/layout/GSXinternationalcheckout.xml +0 -17
- app/design/frontend/base/default/layout/globalshopex.xml +21 -0
- app/design/frontend/base/default/template/GSXInternationalcheckout/Login.phtml +0 -17
- app/design/frontend/base/default/template/GSXInternationalcheckout/contentCheckout.phtml +0 -103
- app/design/frontend/base/default/template/GSXInternationalcheckout/international.phtml +0 -117
- app/design/frontend/base/default/template/globalshopex/Login.phtml +21 -0
- app/design/frontend/base/default/template/globalshopex/buttoniframe.phtml +32 -0
- app/design/frontend/base/default/template/{GSXInternationalcheckout → globalshopex}/contentInvoice.phtml +1 -1
- app/design/frontend/base/default/template/{GSXInternationalcheckout → globalshopex}/contentTracking.phtml +0 -3
- app/design/frontend/base/default/template/globalshopex/formcarttocart.phtml +113 -0
- app/design/frontend/base/default/template/globalshopex/formiframe.phtml +108 -0
- app/design/frontend/base/default/template/globalshopex/switchtypecart.phtml +13 -0
- app/design/frontend/default/default/layout/globalshopex.xml +21 -0
- app/design/frontend/default/default/template/globalshopex/Login.phtml +21 -0
- app/design/frontend/default/default/template/globalshopex/buttoniframe.phtml +32 -0
- app/design/frontend/default/default/template/globalshopex/contentInvoice.phtml +17 -0
- app/design/frontend/default/default/template/globalshopex/contentTracking.phtml +19 -0
- app/design/frontend/default/default/template/globalshopex/formcarttocart.phtml +109 -0
- app/design/frontend/default/default/template/globalshopex/formiframe.phtml +106 -0
- app/design/frontend/default/default/template/globalshopex/switchtypecart.phtml +13 -0
- app/etc/modules/{GSX_InternationalCheckout.xml → Gsx_Globalshopex.xml} +2 -2
- media/GSX/images/default/Thumbs.db +0 -0
- media/{GSX → Gsx}/images/default/gc_button.gif +0 -0
- media/Gsx/images/default/gsx_button.gif +0 -0
- package.xml +6 -6
app/code/community/GSX/InternationalCheckout/Helper/Data.php
DELETED
@@ -1,4 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class GSX_InternationalCheckout_Helper_Data extends Mage_Core_Helper_Abstract
|
3 |
-
{
|
4 |
-
}
|
|
|
|
|
|
|
|
app/code/community/GSX/InternationalCheckout/Model/International.php
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class GSX_InternationalCheckout_Model_International extends Varien_Object {
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/GSX/InternationalCheckout/Model/Shippingmethods.php
DELETED
@@ -1,29 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class GSX_InternationalCheckout_Model_Shippingmethods extends Mage_Adminhtml_Model_System_Config_Source_Shipping_Allmethods
|
3 |
-
{
|
4 |
-
/**
|
5 |
-
* Return array of active carriers.
|
6 |
-
* @param bool $isActiveOnlyFlag
|
7 |
-
* @return array
|
8 |
-
*/
|
9 |
-
public function toOptionArray($isActiveOnlyFlag=true)
|
10 |
-
{
|
11 |
-
$carrierCode = 'freedomesticshippingtogsx';
|
12 |
-
$carrierTitle = 'Free domestic shipping to GSX';
|
13 |
-
|
14 |
-
$methods[$carrierCode] = array(
|
15 |
-
'label' => $carrierTitle,
|
16 |
-
'value' => array(),
|
17 |
-
);
|
18 |
-
|
19 |
-
$methodCode = 'freedomesticshippingtogsx';
|
20 |
-
$methodTitle = 'Free';
|
21 |
-
$methods[$carrierCode]['value'][] = array(
|
22 |
-
'value' => $carrierCode.'_'.$methodCode,
|
23 |
-
'label' => '['.$carrierCode.'] '.$methodTitle,
|
24 |
-
);
|
25 |
-
|
26 |
-
return array_merge(parent::toOptionArray(true), $methods);
|
27 |
-
}
|
28 |
-
|
29 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/GSX/InternationalCheckout/controllers/InvoiceController.php
DELETED
@@ -1,37 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class GSX_InternationalCheckout_InvoiceController extends Mage_Core_Controller_Front_Action
|
3 |
-
{
|
4 |
-
public function ProcessAction()
|
5 |
-
{
|
6 |
-
$this->loadLayout();
|
7 |
-
$templateFile='GSXInternationalcheckout/contentInvoice.phtml';
|
8 |
-
|
9 |
-
$block = $this->getLayout()->createBlock(
|
10 |
-
'internationalcheckout/international',
|
11 |
-
'internationalcheckout.international',
|
12 |
-
array('template' => $templateFile)
|
13 |
-
);
|
14 |
-
$this->getLayout()->getBlock('root')->setTemplate('page/1column.phtml');
|
15 |
-
$this->getLayout()->getBlock('content')->append($block);
|
16 |
-
$this->_initLayoutMessages('core/session');
|
17 |
-
return $this->renderLayout();
|
18 |
-
}
|
19 |
-
|
20 |
-
public function indexAction()
|
21 |
-
{
|
22 |
-
$this->loadLayout();
|
23 |
-
$templateFile='GSXInternationalcheckout/contentInvoice.phtml';
|
24 |
-
|
25 |
-
$block = $this->getLayout()->createBlock(
|
26 |
-
'internationalcheckout/international',
|
27 |
-
'internationalcheckout.international',
|
28 |
-
array('template' => $templateFile)
|
29 |
-
);
|
30 |
-
$this->getLayout()->getBlock('root')->setTemplate('page/1column.phtml');
|
31 |
-
$this->getLayout()->getBlock('content')->append($block);
|
32 |
-
$this->_initLayoutMessages('core/session');
|
33 |
-
return $this->renderLayout();
|
34 |
-
}
|
35 |
-
|
36 |
-
}
|
37 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/GSX/InternationalCheckout/etc/config.xml
DELETED
@@ -1,50 +0,0 @@
|
|
1 |
-
<config>
|
2 |
-
<modules>
|
3 |
-
<GSX_InternationalCheckout>
|
4 |
-
<version>1.1.3</version>
|
5 |
-
</GSX_InternationalCheckout>
|
6 |
-
</modules>
|
7 |
-
|
8 |
-
<global>
|
9 |
-
<blocks>
|
10 |
-
<internationalcheckout>
|
11 |
-
<class>GSX_InternationalCheckout_Block</class>
|
12 |
-
</internationalcheckout>
|
13 |
-
</blocks>
|
14 |
-
<helpers>
|
15 |
-
<internationalcheckout>
|
16 |
-
<class>GSX_InternationalCheckout_Helper</class>
|
17 |
-
</internationalcheckout>
|
18 |
-
</helpers>
|
19 |
-
</global>
|
20 |
-
|
21 |
-
<frontend>
|
22 |
-
<routers>
|
23 |
-
<GSX_InternationalCheckout>
|
24 |
-
<use>standard</use>
|
25 |
-
<args>
|
26 |
-
<module>GSX_InternationalCheckout</module>
|
27 |
-
<frontName>GSXInternationalCheckout</frontName>
|
28 |
-
</args>
|
29 |
-
</GSX_InternationalCheckout>
|
30 |
-
</routers>
|
31 |
-
<layout>
|
32 |
-
<updates>
|
33 |
-
<internationalcheckout>
|
34 |
-
<file>GSXinternationalcheckout.xml</file>
|
35 |
-
</internationalcheckout>
|
36 |
-
</updates>
|
37 |
-
</layout>
|
38 |
-
</frontend>
|
39 |
-
|
40 |
-
<default>
|
41 |
-
<checkout>
|
42 |
-
<internationalcheckout>
|
43 |
-
<image_width>0</image_width>
|
44 |
-
<image_height>0</image_height>
|
45 |
-
<attrib_code>international_shipping</attrib_code>
|
46 |
-
</internationalcheckout>
|
47 |
-
</checkout>
|
48 |
-
</default>
|
49 |
-
|
50 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/GSX/InternationalCheckout/etc/system.xml
DELETED
@@ -1,112 +0,0 @@
|
|
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>
|
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 |
-
<local_shipping 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 |
-
</local_shipping>
|
42 |
-
<local_shippingexp 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 |
-
</local_shippingexp>
|
56 |
-
<restriction_item translate="label">
|
57 |
-
<label>International Shipping Restriction Attribute Code</label>
|
58 |
-
<frontend_type>text</frontend_type>
|
59 |
-
<sort_order>4</sort_order>
|
60 |
-
<show_in_default>1</show_in_default>
|
61 |
-
<show_in_website>1</show_in_website>
|
62 |
-
<show_in_store>1</show_in_store>
|
63 |
-
<validate></validate>
|
64 |
-
<comment>
|
65 |
-
<![CDATA[
|
66 |
-
<span> * Value Required for Restricting International Shipping</span>
|
67 |
-
]]>
|
68 |
-
</comment>
|
69 |
-
</restriction_item>
|
70 |
-
<iframe_active translate="label">
|
71 |
-
<label>Iframe Active</label>
|
72 |
-
<frontend_type>text</frontend_type>
|
73 |
-
<sort_order>5</sort_order>
|
74 |
-
<show_in_default>1</show_in_default>
|
75 |
-
<show_in_website>1</show_in_website>
|
76 |
-
<show_in_store>1</show_in_store>
|
77 |
-
<comment>
|
78 |
-
<![CDATA[
|
79 |
-
<span> For show GlobalShopex Cart over iframe true</span>
|
80 |
-
]]>
|
81 |
-
</comment>
|
82 |
-
</iframe_active>
|
83 |
-
<developer_site translate="label">
|
84 |
-
<label>Developer Site</label>
|
85 |
-
<frontend_type>text</frontend_type>
|
86 |
-
<sort_order>6</sort_order>
|
87 |
-
<show_in_default>1</show_in_default>
|
88 |
-
<show_in_website>1</show_in_website>
|
89 |
-
<show_in_store>1</show_in_store>
|
90 |
-
<comment>
|
91 |
-
<![CDATA[
|
92 |
-
<span> Testing Site</span>
|
93 |
-
]]>
|
94 |
-
</comment>
|
95 |
-
</developer_site>
|
96 |
-
</fields>
|
97 |
-
</internationalcheckout>
|
98 |
-
</groups>
|
99 |
-
</shipping>
|
100 |
-
</sections>
|
101 |
-
<default>
|
102 |
-
<shipping>
|
103 |
-
<internationalcheckout>
|
104 |
-
<internationalcheckout>
|
105 |
-
<iframe_active>true</iframe_active>
|
106 |
-
<developer_site>false</developer_site>
|
107 |
-
</internationalcheckout>
|
108 |
-
</internationalcheckout>
|
109 |
-
</shipping>
|
110 |
-
</default>
|
111 |
-
|
112 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/{GSX/InternationalCheckout/Block/International.php → Gsx/Globalshopex/Block/Internationallogic.php}
RENAMED
@@ -1,68 +1,137 @@
|
|
1 |
<?php
|
2 |
-
class
|
3 |
-
|
4 |
-
public $
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
-
function
|
14 |
-
|
15 |
-
$
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
}
|
24 |
}
|
25 |
-
return $
|
26 |
}
|
27 |
-
|
28 |
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
function formatCompany($cName) {
|
35 |
-
$cName = str_replace(" ","",$cName);
|
36 |
-
$cName = strtolower($cName);
|
37 |
-
return $cName;
|
38 |
}
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
|
|
|
|
46 |
|
47 |
$style = "";
|
48 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
return $style;
|
50 |
}
|
51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
|
53 |
-
|
54 |
-
* Returns text for GSX button.
|
55 |
-
*
|
56 |
-
*/
|
57 |
-
|
58 |
-
function buttonText() {
|
59 |
|
60 |
-
if (trim(Mage::getStoreConfig("checkout/
|
61 |
return "";
|
62 |
}
|
63 |
else {
|
64 |
|
65 |
-
return $this->__('
|
66 |
}
|
67 |
}
|
68 |
|
@@ -318,17 +387,10 @@ class GSX_InternationalCheckout_Block_International extends Mage_Core_Block_Temp
|
|
318 |
$output .= " ] ";
|
319 |
$output .= $crlf;
|
320 |
}
|
321 |
-
|
322 |
-
|
323 |
return $output;
|
324 |
}
|
325 |
|
326 |
-
|
327 |
-
* Returns the Product URL.
|
328 |
-
*
|
329 |
-
*/
|
330 |
-
|
331 |
-
function getProductUrl($item){
|
332 |
|
333 |
if ($item->getRedirectUrl()) {
|
334 |
return $item->getRedirectUrl();
|
@@ -342,153 +404,4 @@ function getProductUrl($item){
|
|
342 |
return $product->getUrlModel()->getUrl($product);
|
343 |
|
344 |
}
|
345 |
-
|
346 |
-
/**
|
347 |
-
* Returns the Product Brand name.
|
348 |
-
*
|
349 |
-
*/
|
350 |
-
|
351 |
-
function getBrand($item){
|
352 |
-
|
353 |
-
$product = $item->getProduct();
|
354 |
-
$brand = $product->getAttribute('manufacturer');
|
355 |
-
return $brand;
|
356 |
-
}
|
357 |
-
function getWeight($item){
|
358 |
-
|
359 |
-
$product = $item->getProduct();
|
360 |
-
$brand = $product->getAttribute('weight');
|
361 |
-
return $brand;
|
362 |
-
}
|
363 |
-
/**
|
364 |
-
* Returns the Product Color.
|
365 |
-
*
|
366 |
-
*/
|
367 |
-
|
368 |
-
function getColor($item){
|
369 |
-
|
370 |
-
$output = "";
|
371 |
-
$valueSeperator = " - ";
|
372 |
-
|
373 |
-
$options = $this->getProductOptions($item);
|
374 |
-
|
375 |
-
if (count($options)) {
|
376 |
-
if (is_array($options[1]["value"])){
|
377 |
-
if ($options[1]["label"]="Color"){
|
378 |
-
$output = strip_tags(implode($valueSeperator,$options[1]["value"]));
|
379 |
-
}
|
380 |
-
}else{
|
381 |
-
if ($options[1]["label"]="Color"){
|
382 |
-
$output = $options[1]["value"];
|
383 |
-
}
|
384 |
-
}
|
385 |
-
}
|
386 |
-
return $output;
|
387 |
-
}
|
388 |
-
|
389 |
-
/**
|
390 |
-
* Returns the Product Size.
|
391 |
-
*
|
392 |
-
*/
|
393 |
-
|
394 |
-
function getSize($item){
|
395 |
-
|
396 |
-
$output = "";
|
397 |
-
$valueSeperator = " - ";
|
398 |
-
|
399 |
-
$options = $this->getProductOptions($item);
|
400 |
-
|
401 |
-
if (count($options)) {
|
402 |
-
if (is_array($options[0]["value"])) {
|
403 |
-
if ($options[0]["label"]="Size"){
|
404 |
-
$output = strip_tags(implode($valueSeperator,$options[0]["value"]));
|
405 |
-
}
|
406 |
-
}else{
|
407 |
-
if ($options[0]["label"]="Size"){
|
408 |
-
$output = $options[0]["value"];
|
409 |
-
}
|
410 |
-
}
|
411 |
-
}
|
412 |
-
return $output;
|
413 |
-
}
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
/**
|
418 |
-
* Calculates and returns the domestic shipping price.
|
419 |
-
*
|
420 |
-
*/
|
421 |
-
|
422 |
-
function shippingPrice () {
|
423 |
-
|
424 |
-
$session = Mage::getSingleton('checkout/session');
|
425 |
-
$address = $session->getQuote()->getShippingAddress();
|
426 |
-
|
427 |
-
$bkCountryId = $address->getCountryId();
|
428 |
-
$bkCity = $address->getCity();
|
429 |
-
$bkPostcode = $address->getPostcode();
|
430 |
-
$bkRegionId = $address->getRegionId();
|
431 |
-
$bkRegion = $address->getRegion();
|
432 |
-
|
433 |
-
$address->setCountryId("US")
|
434 |
-
->setCity("California")
|
435 |
-
->setPostcode("91406")
|
436 |
-
->setRegionId("")
|
437 |
-
->setRegion("")
|
438 |
-
->setCollectShippingRates(true)->collectShippingRates();
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
$shippingCarrierMethodArr = explode("_",Mage::getStoreConfig('checkout/internationalcheckout/shipping_method'));
|
443 |
-
$shippingCarrier = $shippingCarrierMethodArr[0];
|
444 |
-
$shippingMethod = $shippingCarrierMethodArr[1];
|
445 |
-
$carriers[$shippingCarrier] = '';
|
446 |
-
$price = 0;
|
447 |
-
|
448 |
-
if ($shippingCarrier == "freedomesticshippingtogsx" && $shippingMethod == "freedomesticshippingtogsx") {
|
449 |
-
return $price;
|
450 |
-
}
|
451 |
-
|
452 |
-
$result = Mage::getModel('shipping/shipping')
|
453 |
-
->collectRatesByAddress($address, array_keys($carriers))
|
454 |
-
->getResult();
|
455 |
-
|
456 |
-
foreach ($result->getAllRates() as $rate) {
|
457 |
-
if ($rate instanceof Mage_Shipping_Model_Rate_Result_Error) {
|
458 |
-
$errors[$rate->getCarrierTitle()] = 1;
|
459 |
-
$price = -1; // error flag
|
460 |
-
} else {
|
461 |
-
|
462 |
-
if ($address->getFreeShipping()) {
|
463 |
-
$price = 0;
|
464 |
-
} else {
|
465 |
-
if ($shippingMethod == $rate->getMethod()) {
|
466 |
-
$price = $rate->getPrice();
|
467 |
-
}
|
468 |
-
}
|
469 |
-
|
470 |
-
if ($price) {
|
471 |
-
$price = Mage::helper('tax')->getShippingPrice($price, false, $address);
|
472 |
-
}
|
473 |
-
|
474 |
-
//unset($errors[$rate->getCarrierTitle()]);
|
475 |
-
|
476 |
-
}
|
477 |
-
}
|
478 |
-
|
479 |
-
|
480 |
-
$address->setCountryId($bkCountryId)
|
481 |
-
->setCity($bkCity)
|
482 |
-
->setPostcode($bkPostcode)
|
483 |
-
->setRegionId($bkRegionId)
|
484 |
-
->setRegion($bkRegion)
|
485 |
-
->setCollectShippingRates(true)->collectShippingRates();
|
486 |
-
|
487 |
-
|
488 |
-
return $price;
|
489 |
-
|
490 |
-
}
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
}
|
1 |
<?php
|
2 |
+
class Gsx_Globalshopex_Block_Internationallogic extends Mage_Core_Block_Template {
|
3 |
+
|
4 |
+
public $GSX_URL = "https://globalshopex.com/shoppingcart.asp";
|
5 |
+
|
6 |
+
function getMerchantID(){
|
7 |
+
$merchantid = Mage::getStoreConfig("checkout/globalshopex/gsxmerchatid");
|
8 |
+
return $merchantid;
|
9 |
+
}
|
10 |
+
|
11 |
+
|
12 |
+
function getNameRestrictedItem(){
|
13 |
+
$gsx_name_field_restricted = Mage::getStoreConfig("checkout/globalshopex/gsx_name_field_restricted");
|
14 |
+
return $gsx_name_field_restricted;
|
15 |
+
}
|
16 |
+
|
17 |
+
|
18 |
+
|
19 |
+
//return 1 Iframe Integration
|
20 |
+
//return 0 Cart To Cart
|
21 |
|
22 |
+
function getTypeIntegration(){
|
23 |
+
|
24 |
+
//$typeintegration = Mage::getStoreConfig("checkout/globalshopex/typeintegration");
|
25 |
+
$typeintegration="1";
|
26 |
+
return $typeintegration;
|
27 |
+
}
|
28 |
+
|
29 |
+
function getLocalshipping_EXP(){
|
30 |
+
$GSX_Localshipping_EXP = Mage::getStoreConfig("checkout/globalshopex/gsx_local_shippingexp");
|
31 |
+
if ($GSX_Localshipping_EXP=="") {
|
32 |
+
$GSX_Localshipping_EXP="0";
|
33 |
+
}
|
34 |
+
$GSX_Localshipping_EXP = '<input type="hidden" name="LocalShippingEXP" value="'.$GSX_Localshipping_EXP.'" />';
|
35 |
+
return $GSX_Localshipping_EXP;
|
36 |
+
}
|
37 |
+
|
38 |
+
function getLocalshipping(){
|
39 |
+
$GSX_Localshipping = Mage::getStoreConfig('checkout/globalshopex/gsx_local_shipping');
|
40 |
+
if ($GSX_Localshipping=="") {
|
41 |
+
$GSX_Localshipping="0";
|
42 |
+
}
|
43 |
+
$GSX_Localshipping = '<input type="hidden" name="LocalShipping" value="'.$GSX_Localshipping.'" />';
|
44 |
+
return $GSX_Localshipping;
|
45 |
+
}
|
46 |
+
|
47 |
+
|
48 |
+
function isiframeActive() {
|
49 |
+
$active = Mage::getStoreConfig("checkout/globalshopex/gsx_iframeactive");
|
50 |
+
return $active;
|
51 |
+
}
|
52 |
+
|
53 |
+
function isEnabledComponent() {
|
54 |
+
$active = Mage::getStoreConfig("checkout/globalshopex/gsx_active");
|
55 |
+
return $active;
|
56 |
+
}
|
57 |
+
|
58 |
|
59 |
+
function isLiveComponent() {
|
60 |
+
$live = false;
|
61 |
+
$is_live = Mage::getStoreConfig("checkout/globalshopex/gsx_is_live");
|
62 |
+
if ($is_live=="0") {
|
63 |
+
$live=true;
|
64 |
+
}
|
65 |
+
|
66 |
+
return $live;
|
67 |
+
}
|
68 |
+
|
69 |
+
function getNamebuttonCssClassName() {
|
70 |
+
$cssClassNameDefault = "";
|
71 |
+
$gsx_image = trim(Mage::getStoreConfig("checkout/globalshopex/gsx_pathimage"));
|
72 |
+
$cssclassbutton = Mage::getStoreConfig("checkout/globalshopex/gsx_cssclassbutton");
|
73 |
+
if ($gsx_image == "") {
|
74 |
+
$version = Mage::getVersion();
|
75 |
+
if ($cssclassbutton != "") {
|
76 |
+
$cssClassNameDefault = $cssclassbutton;
|
77 |
+
|
78 |
+
}elseif ($version >= "1.4") {
|
79 |
+
$cssClassNameDefault = "button btn-checkout";
|
80 |
+
}
|
81 |
+
else {
|
82 |
+
$cssClassNameDefault = "form-button-alt";
|
83 |
}
|
84 |
}
|
85 |
+
return $cssClassNameDefault;
|
86 |
}
|
|
|
87 |
|
88 |
+
function getStyleExtend() {
|
89 |
+
|
90 |
+
$gsx_style = "";
|
91 |
+
$gsx_style = trim(Mage::getStoreConfig("checkout/globalshopex/gsx_styletag"));
|
92 |
+
return $gsx_style;
|
|
|
|
|
|
|
|
|
93 |
}
|
94 |
+
|
95 |
+
function getPathToImageButton() {
|
96 |
+
|
97 |
+
$gsx_image = "";
|
98 |
+
$gsx_image = trim(Mage::getStoreConfig("checkout/globalshopex/gsx_pathimage"));
|
99 |
+
return $gsx_image;
|
100 |
+
}
|
101 |
+
|
102 |
+
function getCssForButtonImage() {
|
103 |
|
104 |
$style = "";
|
105 |
+
$gsx_image = trim(Mage::getStoreConfig("checkout/globalshopex/gsx_pathimage"));
|
106 |
+
|
107 |
+
if ($gsx_image != "") {
|
108 |
+
|
109 |
+
$style= "style=\"background-repeat:no-repeat;";
|
110 |
+
$style= $style ."px; outline:none; border:none; cursor:pointer;\"";
|
111 |
+
}
|
112 |
+
|
113 |
return $style;
|
114 |
}
|
115 |
|
116 |
+
|
117 |
+
function urlToIframePage() {
|
118 |
+
$gsx_enablehttps = trim(Mage::getStoreConfig("checkout/globalshopex/gsx_enablehttps"));
|
119 |
+
$urlIFrame=Mage::getBaseUrl();
|
120 |
+
if($gsx_enablehttps){
|
121 |
+
$urlIFrame=str_replace('http:','https:',Mage::getBaseUrl());
|
122 |
+
}
|
123 |
+
$urlIFrame = $urlIFrame."GSXInternationalCheckout/GSX";
|
124 |
+
return $urlIFrame;
|
125 |
+
}
|
126 |
|
127 |
+
function buttonTextInternationalCustomer() {
|
|
|
|
|
|
|
|
|
|
|
128 |
|
129 |
+
if (trim(Mage::getStoreConfig("checkout/globalshopex/gsx_pathimage")) != "") {
|
130 |
return "";
|
131 |
}
|
132 |
else {
|
133 |
|
134 |
+
return $this->__('International Checkout');
|
135 |
}
|
136 |
}
|
137 |
|
387 |
$output .= " ] ";
|
388 |
$output .= $crlf;
|
389 |
}
|
|
|
|
|
390 |
return $output;
|
391 |
}
|
392 |
|
393 |
+
function getProductUrl($item){
|
|
|
|
|
|
|
|
|
|
|
394 |
|
395 |
if ($item->getRedirectUrl()) {
|
396 |
return $item->getRedirectUrl();
|
404 |
return $product->getUrlModel()->getUrl($product);
|
405 |
|
406 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
407 |
}
|
app/code/community/Gsx/Globalshopex/Model/IframeCarttoCart.php
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Gsx_Globalshopex_Model_IframeCarttoCart {
|
3 |
+
/**
|
4 |
+
* Options getter
|
5 |
+
*
|
6 |
+
* @return array
|
7 |
+
*/
|
8 |
+
public function toOptionArray()
|
9 |
+
{
|
10 |
+
return array(
|
11 |
+
array('value' => 1, 'label'=>Mage::helper('adminhtml')->__('Iframe Integration')),
|
12 |
+
array('value' => 0, 'label'=>Mage::helper('adminhtml')->__('Cart To Cart Integration')),
|
13 |
+
);
|
14 |
+
}
|
15 |
+
}
|
app/code/community/{GSX/InternationalCheckout → Gsx/Globalshopex}/Model/Servers.php
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class
|
3 |
/**
|
4 |
* Options getter
|
5 |
*
|
@@ -8,8 +8,8 @@ class GSX_InternationalCheckout_Model_Servers {
|
|
8 |
public function toOptionArray()
|
9 |
{
|
10 |
return array(
|
11 |
-
array('value' => 1, 'label'=>Mage::helper('adminhtml')->__('
|
12 |
-
array('value' => 0, 'label'=>Mage::helper('adminhtml')->__('
|
13 |
);
|
14 |
}
|
15 |
}
|
1 |
<?php
|
2 |
+
class Gsx_Globalshopex_Model_Servers {
|
3 |
/**
|
4 |
* Options getter
|
5 |
*
|
8 |
public function toOptionArray()
|
9 |
{
|
10 |
return array(
|
11 |
+
array('value' => 1, 'label'=>Mage::helper('adminhtml')->__('Review')),
|
12 |
+
array('value' => 0, 'label'=>Mage::helper('adminhtml')->__('Enable')),
|
13 |
);
|
14 |
}
|
15 |
}
|
app/code/community/{GSX/InternationalCheckout/controllers/CheckoutController.php → Gsx/Globalshopex/controllers/GSXController.php}
RENAMED
@@ -1,14 +1,14 @@
|
|
1 |
<?php
|
2 |
-
class
|
3 |
{
|
4 |
public function indexAction()
|
5 |
{
|
6 |
$this->loadLayout();
|
7 |
-
$templateFile='
|
8 |
|
9 |
$block = $this->getLayout()->createBlock(
|
10 |
-
'
|
11 |
-
'
|
12 |
array('template' => $templateFile)
|
13 |
);
|
14 |
$this->getLayout()->getBlock('root')->setTemplate('page/1column.phtml');
|
1 |
<?php
|
2 |
+
class Gsx_Globalshopex_GSXController extends Mage_Core_Controller_Front_Action
|
3 |
{
|
4 |
public function indexAction()
|
5 |
{
|
6 |
$this->loadLayout();
|
7 |
+
$templateFile='globalshopex/formiframe.phtml';
|
8 |
|
9 |
$block = $this->getLayout()->createBlock(
|
10 |
+
'globalshopex/internationallogic',
|
11 |
+
'globalshopex.internationallogic',
|
12 |
array('template' => $templateFile)
|
13 |
);
|
14 |
$this->getLayout()->getBlock('root')->setTemplate('page/1column.phtml');
|
app/code/community/Gsx/Globalshopex/controllers/InvoiceController.php
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Gsx_Globalshopex_InvoiceController extends Mage_Core_Controller_Front_Action
|
3 |
+
{
|
4 |
+
public function indexAction()
|
5 |
+
{
|
6 |
+
$this->loadLayout();
|
7 |
+
$templateFile='globalshopex/contentInvoice.phtml';
|
8 |
+
|
9 |
+
|
10 |
+
$block = $this->getLayout()->createBlock(
|
11 |
+
'globalshopex/internationallogic',
|
12 |
+
'globalshopex.internationallogic',
|
13 |
+
array('template' => $templateFile)
|
14 |
+
);
|
15 |
+
$this->getLayout()->getBlock('root')->setTemplate('page/1column.phtml');
|
16 |
+
$this->getLayout()->getBlock('content')->append($block);
|
17 |
+
$this->_initLayoutMessages('core/session');
|
18 |
+
$this->renderLayout();
|
19 |
+
|
20 |
+
}
|
21 |
+
}
|
22 |
+
?>
|
app/code/community/{GSX/InternationalCheckout → Gsx/Globalshopex}/controllers/TrackingController.php
RENAMED
@@ -1,10 +1,10 @@
|
|
1 |
<?php
|
2 |
-
class
|
3 |
{
|
4 |
public function indexAction()
|
5 |
{
|
6 |
$this->loadLayout();
|
7 |
-
$templateFile='
|
8 |
|
9 |
$block = $this->getLayout()->createBlock(
|
10 |
'internationalcheckout/international',
|
1 |
<?php
|
2 |
+
class Gsx_Globalshopex_TrackingController extends Mage_Core_Controller_Front_Action
|
3 |
{
|
4 |
public function indexAction()
|
5 |
{
|
6 |
$this->loadLayout();
|
7 |
+
$templateFile='globalshopex/contentTracking.phtml';
|
8 |
|
9 |
$block = $this->getLayout()->createBlock(
|
10 |
'internationalcheckout/international',
|
app/code/community/Gsx/Globalshopex/etc/config.xml
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<config>
|
2 |
+
<modules>
|
3 |
+
<Gsx_Globalshopex>
|
4 |
+
<version>1.0.4</version>
|
5 |
+
</Gsx_Globalshopex>
|
6 |
+
</modules>
|
7 |
+
|
8 |
+
<global>
|
9 |
+
<blocks>
|
10 |
+
<globalshopex>
|
11 |
+
<class>Gsx_Globalshopex_Block</class>
|
12 |
+
</globalshopex>
|
13 |
+
</blocks>
|
14 |
+
</global>
|
15 |
+
|
16 |
+
<frontend>
|
17 |
+
<routers>
|
18 |
+
<GSX_InternationalCheckout>
|
19 |
+
<use>standard</use>
|
20 |
+
<args>
|
21 |
+
<module>Gsx_Globalshopex</module>
|
22 |
+
<frontName>GSXInternationalCheckout</frontName>
|
23 |
+
</args>
|
24 |
+
</GSX_InternationalCheckout>
|
25 |
+
</routers>
|
26 |
+
<layout>
|
27 |
+
<updates>
|
28 |
+
<globalshopex>
|
29 |
+
<file>globalshopex.xml</file>
|
30 |
+
</globalshopex>
|
31 |
+
</updates>
|
32 |
+
</layout>
|
33 |
+
</frontend>
|
34 |
+
|
35 |
+
<default>
|
36 |
+
<checkout>
|
37 |
+
<globalshopex>
|
38 |
+
<gsx_active>0</gsx_active>
|
39 |
+
<typeintegration>0</typeintegration>
|
40 |
+
<gsx_is_live>0</gsx_is_live>
|
41 |
+
<gsx_enablehttps>0</gsx_enablehttps>
|
42 |
+
<gsx_local_shipping>0</gsx_local_shipping>
|
43 |
+
<gsx_local_shippingexp>0</gsx_local_shippingexp>
|
44 |
+
<typeintegration>1</typeintegration>
|
45 |
+
</globalshopex>
|
46 |
+
</checkout>
|
47 |
+
</default>
|
48 |
+
</config>
|
app/code/community/Gsx/Globalshopex/etc/system.xml
ADDED
@@ -0,0 +1,183 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<sections>
|
4 |
+
<checkout>
|
5 |
+
<groups>
|
6 |
+
<globalshopex translate="label" module="checkout">
|
7 |
+
<label>Globalshopex International Checkout</label>
|
8 |
+
<frontend_type>text</frontend_type>
|
9 |
+
<sort_order>14</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 |
+
<gsx_active translate="label">
|
15 |
+
<label>Activate Plug-in</label>
|
16 |
+
<frontend_type>select</frontend_type>
|
17 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
18 |
+
<sort_order>1</sort_order>
|
19 |
+
<show_in_default>1</show_in_default>
|
20 |
+
<show_in_website>1</show_in_website>
|
21 |
+
<show_in_store>1</show_in_store>
|
22 |
+
<comment>
|
23 |
+
<![CDATA[
|
24 |
+
<ul>
|
25 |
+
<li>Yes: Add GlobalShopex Plug-in code to website</li>
|
26 |
+
<li>No: Remove GlobalShopex Plug-in code from website</li>
|
27 |
+
</ul>
|
28 |
+
]]>
|
29 |
+
</comment>
|
30 |
+
</gsx_active>
|
31 |
+
<typeintegration translate="label">
|
32 |
+
<label>Enable Iframe or Cart To Cart:</label>
|
33 |
+
<frontend_type>select</frontend_type>
|
34 |
+
<source_model>Gsx_Globalshopex_Model_IframeCarttoCart</source_model>
|
35 |
+
<sort_order>2</sort_order>
|
36 |
+
<show_in_default>0</show_in_default>
|
37 |
+
<show_in_website>0</show_in_website>
|
38 |
+
<show_in_store>0</show_in_store>
|
39 |
+
<comment>
|
40 |
+
<![CDATA[
|
41 |
+
<ul>
|
42 |
+
<li>If you select Iframe.</li>
|
43 |
+
<li>If you Select Cart To Cart</li>
|
44 |
+
</ul>
|
45 |
+
]]>
|
46 |
+
</comment>
|
47 |
+
</typeintegration>
|
48 |
+
<gsx_is_live translate="label">
|
49 |
+
<label>Enable International Shipping Live/Review International Shipping:</label>
|
50 |
+
<frontend_type>select</frontend_type>
|
51 |
+
<source_model>Gsx_Globalshopex_Model_Servers</source_model>
|
52 |
+
<sort_order>3</sort_order>
|
53 |
+
<show_in_default>1</show_in_default>
|
54 |
+
<show_in_website>1</show_in_website>
|
55 |
+
<show_in_store>1</show_in_store>
|
56 |
+
<comment>
|
57 |
+
<![CDATA[
|
58 |
+
<ul>
|
59 |
+
<li>If you select Enable International Shipping the international checkout will be live on your site.</li>
|
60 |
+
<li>If you select review international shipping you can add “?gsx” to the end of the link in your cart page and you will be able to test the international checkout process. </li>
|
61 |
+
</ul>
|
62 |
+
]]>
|
63 |
+
</comment>
|
64 |
+
</gsx_is_live>
|
65 |
+
<gsxmerchatid translate="label">
|
66 |
+
<label>Merchant ID</label>
|
67 |
+
<frontend_type>text</frontend_type>
|
68 |
+
<sort_order>4</sort_order>
|
69 |
+
<show_in_default>1</show_in_default>
|
70 |
+
<show_in_website>1</show_in_website>
|
71 |
+
<show_in_store>1</show_in_store>
|
72 |
+
<validate>required-entry</validate>
|
73 |
+
<comment>
|
74 |
+
<![CDATA[
|
75 |
+
<span>Please provide the 7 digit MerchantID created by GlobalShopex.<br/>Click here to obtain your merchant id <a href="http://www.globalshopex.com/magento" target="_newtab">http://www.globalshopex.com/magento</a></span>
|
76 |
+
]]>
|
77 |
+
</comment>
|
78 |
+
</gsxmerchatid>
|
79 |
+
<gsx_enablehttps translate="label">
|
80 |
+
<label>HTTPS enable</label>
|
81 |
+
<frontend_type>select</frontend_type>
|
82 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
83 |
+
<sort_order>5</sort_order>
|
84 |
+
<show_in_default>1</show_in_default>
|
85 |
+
<show_in_website>1</show_in_website>
|
86 |
+
<show_in_store>1</show_in_store>
|
87 |
+
<comment>
|
88 |
+
<![CDATA[
|
89 |
+
<ul>
|
90 |
+
<li>Yes: Your site https in the cart page</li>
|
91 |
+
<li>No: your site Don't have https (redirect https to http) </li>
|
92 |
+
</ul>
|
93 |
+
]]>
|
94 |
+
</comment>
|
95 |
+
</gsx_enablehttps>
|
96 |
+
<gsx_cssclassbutton translate="label">
|
97 |
+
<label>CSS Class Name for button</label>
|
98 |
+
<frontend_type>text</frontend_type>
|
99 |
+
<sort_order>6</sort_order>
|
100 |
+
<show_in_default>1</show_in_default>
|
101 |
+
<show_in_website>1</show_in_website>
|
102 |
+
<show_in_store>1</show_in_store>
|
103 |
+
<comment>
|
104 |
+
<![CDATA[
|
105 |
+
<span>You may edit the name Css Class of the international checkout button here. </span>
|
106 |
+
]]>
|
107 |
+
</comment>
|
108 |
+
</gsx_cssclassbutton>
|
109 |
+
<gsx_styletag translate="label">
|
110 |
+
<label>Content for Style tag</label>
|
111 |
+
<frontend_type>text</frontend_type>
|
112 |
+
<sort_order>7</sort_order>
|
113 |
+
<show_in_default>1</show_in_default>
|
114 |
+
<show_in_website>1</show_in_website>
|
115 |
+
<show_in_store>1</show_in_store>
|
116 |
+
<comment>
|
117 |
+
<![CDATA[
|
118 |
+
<span>You may enter content for "style" tag to design the text of international checkout button if you prefer to use text instead of upload a button. </span>
|
119 |
+
]]>
|
120 |
+
</comment>
|
121 |
+
</gsx_styletag>
|
122 |
+
<gsx_pathimage>
|
123 |
+
<label>Globalshopex Button Image</label>
|
124 |
+
<frontend_type>text</frontend_type>
|
125 |
+
<sort_order>8</sort_order>
|
126 |
+
<show_in_default>1</show_in_default>
|
127 |
+
<show_in_website>1</show_in_website>
|
128 |
+
<show_in_store>1</show_in_store>
|
129 |
+
<comment>
|
130 |
+
<![CDATA[
|
131 |
+
The international shipping button provided by GlobalShopex is a default international checkout button. You may upload your own graphic here to display in the cart or use the one provided. <span>Sample /media/Gsx/images/default/gsx_button.gif </span>
|
132 |
+
]]>
|
133 |
+
</comment>
|
134 |
+
</gsx_pathimage>
|
135 |
+
<gsx_local_shipping translate="label">
|
136 |
+
<label>Local Shipping</label>
|
137 |
+
<frontend_type>text</frontend_type>
|
138 |
+
<sort_order>9</sort_order>
|
139 |
+
<show_in_default>1</show_in_default>
|
140 |
+
<show_in_website>1</show_in_website>
|
141 |
+
<show_in_store>1</show_in_store>
|
142 |
+
<validate>validate-number</validate>
|
143 |
+
<comment>
|
144 |
+
<![CDATA[
|
145 |
+
Enter the standard flat rate or standard domestic shipping program for any shipping costs to arrive from your store to GlobalShopex fulfillment center. If free domestic shipping to GlobalShopex enter 0.
|
146 |
+
]]>
|
147 |
+
</comment>
|
148 |
+
</gsx_local_shipping>
|
149 |
+
<gsx_local_shippingexp translate="label">
|
150 |
+
<label>Local Shipping EXP</label>
|
151 |
+
<frontend_type>text</frontend_type>
|
152 |
+
<sort_order>10</sort_order>
|
153 |
+
<show_in_default>1</show_in_default>
|
154 |
+
<show_in_website>1</show_in_website>
|
155 |
+
<show_in_store>1</show_in_store>
|
156 |
+
<validate>validate-number</validate>
|
157 |
+
<comment>
|
158 |
+
<![CDATA[
|
159 |
+
Enter the priority flat rate or standard priority shipping program for any shipping costs to arrive from your store to GlobalShopex fulfillment center. If no priority shipping service offered or no cost for shipping priority to GlobalShopex enter 0.
|
160 |
+
]]>
|
161 |
+
</comment>
|
162 |
+
</gsx_local_shippingexp>
|
163 |
+
|
164 |
+
<gsx_name_field_restricted translate="label">
|
165 |
+
<label>Name Attribute Restricted</label>
|
166 |
+
<frontend_type>text</frontend_type>
|
167 |
+
<sort_order>11</sort_order>
|
168 |
+
<show_in_default>1</show_in_default>
|
169 |
+
<show_in_website>1</show_in_website>
|
170 |
+
<show_in_store>1</show_in_store>
|
171 |
+
<comment>
|
172 |
+
<![CDATA[
|
173 |
+
Enter the name of field for restricted items.
|
174 |
+
]]>
|
175 |
+
</comment>
|
176 |
+
</gsx_name_field_restricted>
|
177 |
+
|
178 |
+
</fields>
|
179 |
+
</globalshopex>
|
180 |
+
</groups>
|
181 |
+
</checkout>
|
182 |
+
</sections>
|
183 |
+
</config>
|
app/design/frontend/base/default/layout/GSXinternationalcheckout.xml
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<layout version="0.0.1">
|
3 |
-
<checkout_cart_index>
|
4 |
-
<reference name="content">
|
5 |
-
<reference name="checkout.cart">
|
6 |
-
<reference name="checkout.cart.methods">
|
7 |
-
<block type="internationalcheckout/international" name="internationalcheckout.international" template="GSXInternationalcheckout/international.phtml"/>
|
8 |
-
</reference>
|
9 |
-
</reference>
|
10 |
-
</reference>
|
11 |
-
</checkout_cart_index>
|
12 |
-
<customer_account_login translate="label">
|
13 |
-
<reference name="content">
|
14 |
-
<block type="customer/account_forgotpassword" name="forgotPassword" template="GSXInternationalcheckout/login.phtml" />
|
15 |
-
</reference>
|
16 |
-
</customer_account_login>
|
17 |
-
</layout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/layout/globalshopex.xml
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.0.1">
|
3 |
+
<checkout_cart_index>
|
4 |
+
<reference name="content">
|
5 |
+
<reference name="checkout.cart">
|
6 |
+
<reference name="checkout.cart.methods">
|
7 |
+
<block type="globalshopex/internationallogic" name="globalshopex.internationallogic" template="globalshopex/switchtypecart.phtml">
|
8 |
+
<block type="globalshopex/internationallogic" name="formiframe" template="globalshopex/formiframe.phtml" />
|
9 |
+
<block type="globalshopex/internationallogic" name="buttoniframe" template="globalshopex/buttoniframe.phtml" />
|
10 |
+
<block type="globalshopex/internationallogic" name="formcartocart" template="globalshopex/formcarttocart.phtml" />
|
11 |
+
</block>
|
12 |
+
</reference>
|
13 |
+
</reference>
|
14 |
+
</reference>
|
15 |
+
</checkout_cart_index>
|
16 |
+
<customer_account_login translate="label">
|
17 |
+
<reference name="content">
|
18 |
+
<block type="customer/account_forgotpassword" name="forgotPassword" template="globalshopex/login.phtml" />
|
19 |
+
</reference>
|
20 |
+
</customer_account_login>
|
21 |
+
</layout>
|
app/design/frontend/base/default/template/GSXInternationalcheckout/Login.phtml
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
|
2 |
-
<br>
|
3 |
-
<div class="account-login" >
|
4 |
-
<div class="col2-set">
|
5 |
-
<div class="col-1 new-users">
|
6 |
-
<div class="content" style="min-height: 45px">
|
7 |
-
<h2>International Checkout</h2>
|
8 |
-
<p>Tracking Globalshopex.com click</p>
|
9 |
-
</div>
|
10 |
-
<div class="buttons-set">
|
11 |
-
<form action="<?php echo Mage::getBaseUrl() ?>GSXInternationalCheckout/Tracking" method="post" id="GSXLogin-form">
|
12 |
-
<button type="submit" type="button" title="Tracking Globalshopex.com click here" class="button"><span><span>here</span></span></button>
|
13 |
-
</form>
|
14 |
-
</div>
|
15 |
-
</div>
|
16 |
-
</div>
|
17 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/GSXInternationalcheckout/contentCheckout.phtml
DELETED
@@ -1,103 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$IsiframeActive = trim(Mage::getStoreConfig('shipping/internationalcheckout/iframe_active'));
|
3 |
-
$merchant_id = trim(Mage::getStoreConfig('shipping/internationalcheckout/name_of_company'));
|
4 |
-
$GSX_Localshipping_EXP = trim(Mage::getStoreConfig('shipping/internationalcheckout/local_shippingexp'));
|
5 |
-
$GSX_Localshipping = trim(Mage::getStoreConfig('shipping/internationalcheckout/local_shipping'));
|
6 |
-
$GSX_restriction_attribute = trim(Mage::getStoreConfig('shipping/internationalcheckout/restriction_item'));
|
7 |
-
$sslActive = trim(Mage::getStoreConfig('shipping/internationalcheckout/developer_site'));
|
8 |
-
|
9 |
-
|
10 |
-
if($merchant_id != ""){
|
11 |
-
$gc_url = $this->GC_URL;
|
12 |
-
}else{
|
13 |
-
$gc_url = "http://globalshopex.com/join_us.html";
|
14 |
-
}
|
15 |
-
|
16 |
-
?>
|
17 |
-
|
18 |
-
<div class="col-main">
|
19 |
-
<div class="page-title">
|
20 |
-
<h1>International Checkout</h1>
|
21 |
-
</div>
|
22 |
-
<table id="shopping-cart-table" class="data-table cart-table" style="width: 710px">
|
23 |
-
<tr>
|
24 |
-
<td>
|
25 |
-
<iframe id="Gsframe" name="Gsframe" style="" frameborder="0" scrolling="auto" height="1600px" width="710px" allowtransparency="true" >
|
26 |
-
</iframe>
|
27 |
-
<form name="frmPP" id="frmPP" method="post" action="https://globalshopex.com/iframe/InternationalCheckout.aspx" target="Gsframe" >
|
28 |
-
<?php
|
29 |
-
$session = Mage::getSingleton('checkout/session');
|
30 |
-
$output = "";
|
31 |
-
$i = 1;
|
32 |
-
foreach ($session->getQuote()->getAllVisibleItems() as $item) {
|
33 |
-
$item_ID = $item->getProductId();
|
34 |
-
$_Product = Mage::getModel('catalog/product')->load($item_ID);
|
35 |
-
$ProductPrice=$item->getPrice();
|
36 |
-
$ProductPrice = substr ( $ProductPrice , 0,strrpos($ProductPrice, ".") +3 ) ;
|
37 |
-
$ProductWeight=$_Product->getWeight();
|
38 |
-
$ProductWeight = substr ( $ProductWeight , 0,strrpos($ProductWeight, ".") +3 ) ;
|
39 |
-
if($ProductWeight=="") $ProductWeight="0";
|
40 |
-
|
41 |
-
|
42 |
-
$output .= "<input type=\"hidden\" name=\"ProductSKU$i\" value=\"".$_Product->getSku()."\"/>\n";
|
43 |
-
$output .= "<input type=\"hidden\" name=\"ProductDesc$i\" value=\"".$this->buildItemDescription($item)."\"/>\n";
|
44 |
-
$output .= "<input type=\"hidden\" name=\"ProductLink$i\" value=\"".$this->getProductUrl($item)."\"/>\n";
|
45 |
-
$output .= "<input type=\"hidden\" name=\"ProductQty$i\" value=\"".$item->getQty()."\"/>\n";
|
46 |
-
$output .= "<input type=\"hidden\" name=\"ProductPrice$i\" value=\"".$ProductPrice ."\"/>\n";
|
47 |
-
$output .= "<input type=\"hidden\" name=\"ProductSize$i\" value=\"".$this->getSize($item)."\"/>\n";
|
48 |
-
$output .= "<input type=\"hidden\" name=\"ProductColor$i\" value=\"".$this->getColor($item)."\"/>\n";
|
49 |
-
$output .= "<input type=\"hidden\" name=\"ProductWeight$i\" value=\"".$ProductWeight."\"/>\n";
|
50 |
-
if($item->getCountry()!="")
|
51 |
-
$output .= "<input type=\"hidden\" name=\"ProducCountry$i\" value=\"".$item->getCountry()."\"/>\n";
|
52 |
-
if($this->getBrand($item)!="")
|
53 |
-
$output .= "<input type=\"hidden\" name=\"ProductBrand$i\" value=\"".$this->getBrand($item)."\"/>\n";
|
54 |
-
|
55 |
-
$attributes = Mage::getResourceModel('eav/entity_attribute_collection')
|
56 |
-
->setEntityTypeFilter($_Product->getResource()->getTypeId())
|
57 |
-
->addFieldToFilter('attribute_code', $GSX_restriction_attribute)
|
58 |
-
->load(false);
|
59 |
-
|
60 |
-
$attribute = $attributes->getFirstItem()->setEntity($_Product->getResource());
|
61 |
-
$manufac = $attribute->getSource()->getAllOptions(false);
|
62 |
-
foreach ($manufac as $man) {
|
63 |
-
$intshiping[$man['value']] = $man['label'];
|
64 |
-
}
|
65 |
-
|
66 |
-
|
67 |
-
if($_Product->getData($GSX_restriction_attribute) == '1')
|
68 |
-
$output .= "<input type=\"hidden\" name=\"Restricted$i\" value='1'/>\n";
|
69 |
-
$imgWidth = "";
|
70 |
-
$imgHeight = "";
|
71 |
-
|
72 |
-
if ($imgWidth == "" || $imgWidth <=0) {
|
73 |
-
$imgWidth = 75;
|
74 |
-
}
|
75 |
-
$output .= "<input type=\"hidden\" name=\"ProductImage$i\" value=\"".$this->getProductThumbnail($item)->resize($imgWidth)."\"/>\n";
|
76 |
-
$i++;
|
77 |
-
}
|
78 |
-
|
79 |
-
echo $output;
|
80 |
-
|
81 |
-
if($GSX_Localshipping_EXP!="") $gsx_ls_exp = $GSX_Localshipping_EXP; else $gsx_ls_exp = "0";
|
82 |
-
if($GSX_Localshipping!="") $gsx_ls = $GSX_Localshipping; else $gsx_ls = "0";
|
83 |
-
|
84 |
-
$GSX_totals = $session->getQuote()->getData();
|
85 |
-
$coupon_code = $GSX_totals['coupon_code'];
|
86 |
-
$discount = $GSX_totals['subtotal'] - $GSX_totals['subtotal_with_discount'];
|
87 |
-
$perc = ($discount * 100) / $GSX_totals['subtotal'];
|
88 |
-
$perc = round($perc , 2);
|
89 |
-
?>
|
90 |
-
|
91 |
-
<input type="hidden" name="MerchantID" value="<?php echo $merchant_id; ?>" />
|
92 |
-
<input type="hidden" name="LocalShippingEXP" value="<?php echo $gsx_ls_exp; ?>" />
|
93 |
-
<input type="hidden" name="LocalShipping" value="<?php echo $gsx_ls; ?>" />
|
94 |
-
|
95 |
-
|
96 |
-
</form>
|
97 |
-
</td>
|
98 |
-
</tr>
|
99 |
-
</table>
|
100 |
-
</div>
|
101 |
-
<script language="javascript" type="text/javascript">
|
102 |
-
document.getElementById('frmPP').submit();
|
103 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/GSXInternationalcheckout/international.phtml
DELETED
@@ -1,117 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
$IsiframeActive = trim(Mage::getStoreConfig('shipping/internationalcheckout/iframe_active'));
|
4 |
-
$merchant_id = trim(Mage::getStoreConfig('shipping/internationalcheckout/name_of_company'));
|
5 |
-
$GSX_Localshipping_EXP = trim(Mage::getStoreConfig('shipping/internationalcheckout/local_shippingexp'));
|
6 |
-
$GSX_Localshipping = trim(Mage::getStoreConfig('shipping/internationalcheckout/local_shipping'));
|
7 |
-
$GSX_restriction_attribute = trim(Mage::getStoreConfig('shipping/internationalcheckout/restriction_item'));
|
8 |
-
$developer_site = trim(Mage::getStoreConfig('shipping/internationalcheckout/developer_site'));
|
9 |
-
|
10 |
-
$gc_url = "http://globalshopex.com/join_us.html";
|
11 |
-
$showCartToCart=false;
|
12 |
-
|
13 |
-
if($merchant_id != ""){
|
14 |
-
$gc_url = $this->GC_URL;
|
15 |
-
if ($IsiframeActive=='true' || $IsiframeActive==''){
|
16 |
-
$urlIFrame=Mage::getBaseUrl();
|
17 |
-
if($developer_site!='true' ){
|
18 |
-
$urlIFrame=str_replace('http:','https:',Mage::getBaseUrl());
|
19 |
-
}
|
20 |
-
$urlIFrame= $urlIFrame."GSXInternationalCheckout/Checkout";
|
21 |
-
}else{
|
22 |
-
$urlIFrame=$gc_url;
|
23 |
-
$showCartToCart=true;
|
24 |
-
}
|
25 |
-
}else{
|
26 |
-
$showCartToCart=true;
|
27 |
-
}
|
28 |
-
?>
|
29 |
-
|
30 |
-
<?php
|
31 |
-
if($showCartToCart){
|
32 |
-
?>
|
33 |
-
<form name="gcForm" id="gcForm" method="post" action="<?php echo $gc_url;?>">
|
34 |
-
|
35 |
-
<?php
|
36 |
-
|
37 |
-
$session = Mage::getSingleton('checkout/session');
|
38 |
-
$output = "";
|
39 |
-
$i = 1;
|
40 |
-
$imgWidth = 75;
|
41 |
-
$imgHeight = 75;
|
42 |
-
|
43 |
-
foreach ($session->getQuote()->getAllVisibleItems() as $item) {
|
44 |
-
$item_ID = $item->getProductId();
|
45 |
-
$_Product = Mage::getModel('catalog/product')->load($item_ID);
|
46 |
-
$ProductPrice=$item->getPrice();
|
47 |
-
$ProductPrice = substr ( $ProductPrice , 0,strrpos($ProductPrice, ".") +3 ) ;
|
48 |
-
$ProductWeight=$_Product->getWeight();
|
49 |
-
$ProductWeight = substr ( $ProductWeight , 0,strrpos($ProductWeight, ".") +3 ) ;
|
50 |
-
|
51 |
-
if($ProductWeight=="") $ProductWeight="0";
|
52 |
-
|
53 |
-
$output .= "<input type=\"hidden\" name=\"ProductSKU$i\" value=\"".$_Product->getSku()."\"/>\n";
|
54 |
-
$output .= "<input type=\"hidden\" id=\"ProductDesc$i\" name=\"ProductDesc$i\" value=\"".$this->buildItemDescription($item)."\"/>\n";
|
55 |
-
$output .= "<input type=\"hidden\" name=\"ProductLink$i\" value=\"".$this->getProductUrl($item)."\"/>\n";
|
56 |
-
$output .= "<input type=\"hidden\" name=\"ProductQty$i\" value=\"".$item->getQty()."\"/>\n";
|
57 |
-
$output .= "<input type=\"hidden\" name=\"ProductPrice$i\" value=\"".$ProductPrice ."\"/>\n";
|
58 |
-
$output .= "<input type=\"hidden\" name=\"ProductSize$i\" value=\"".$this->getSize($item)."\"/>\n";
|
59 |
-
$output .= "<input type=\"hidden\" name=\"ProductColor$i\" value=\"".$this->getColor($item)."\"/>\n";
|
60 |
-
$output .= "<input type=\"hidden\" name=\"ProductWeight$i\" value=\"".$ProductWeight."\"/>\n";
|
61 |
-
|
62 |
-
if($item->getCountry()!="")
|
63 |
-
$output .= "<input type=\"hidden\" name=\"ProductCountry$i\" value=\"".$item->getCountry()."\"/>\n";
|
64 |
-
if($item->getBrand($item)!="")
|
65 |
-
$output .= "<input type=\"hidden\" name=\"ProductBrand$i\" value=\"".$this->getBrand($item)."\"/>\n";
|
66 |
-
|
67 |
-
$attributes = Mage::getResourceModel('eav/entity_attribute_collection')
|
68 |
-
->setEntityTypeFilter($_Product->getResource()->getTypeId())
|
69 |
-
->addFieldToFilter('attribute_code', $GSX_restriction_attribute)
|
70 |
-
->load(false);
|
71 |
-
|
72 |
-
$attribute = $attributes->getFirstItem()->setEntity($_Product->getResource());
|
73 |
-
$manufac = $attribute->getSource()->getAllOptions(false);
|
74 |
-
foreach ($manufac as $man) {
|
75 |
-
$intshiping[$man['value']] = $man['label'];
|
76 |
-
}
|
77 |
-
|
78 |
-
|
79 |
-
if($_Product->getData($GSX_restriction_attribute) == '1')
|
80 |
-
$output .= "<input type=\"hidden\" name=\"Restricted$i\" value='1'/>\n";
|
81 |
-
|
82 |
-
$output .= "<input type=\"hidden\" name=\"ProductImage$i\" value=\"".$this->getProductThumbnail($item)->resize($imgWidth)."\"/>\n";
|
83 |
-
$i++;
|
84 |
-
}
|
85 |
-
|
86 |
-
echo $output;
|
87 |
-
|
88 |
-
if(isset($GSX_Localshipping_EXP)) $gsx_ls_exp = $GSX_Localshipping_EXP; else $gsx_ls_exp = "0";
|
89 |
-
if(isset($GSX_Localshipping)) $gsx_ls = $GSX_Localshipping; else $gsx_ls = "0";
|
90 |
-
|
91 |
-
$GSX_totals = $session->getQuote()->getData();
|
92 |
-
$coupon_code = $GSX_totals['coupon_code'];
|
93 |
-
$discount = $GSX_totals['subtotal'] - $GSX_totals['subtotal_with_discount'];
|
94 |
-
$perc = ($discount * 100) / $GSX_totals['subtotal'];
|
95 |
-
$perc = round($perc , 2);
|
96 |
-
?>
|
97 |
-
|
98 |
-
<input type="hidden" name="ODiscount" value="<?php echo $perc; ?>" />
|
99 |
-
<input type="hidden" name="ODiscCode" value="<?php echo $coupon_code; ?>" />
|
100 |
-
<input type="hidden" name="ODiscPerc" value="1" />
|
101 |
-
<input type="hidden" name="MerchantID" value="<?php echo $merchant_id; ?>" />
|
102 |
-
<input type="hidden" name="LocalShippingEXP" value="<?php echo $gsx_ls_exp; ?>" />
|
103 |
-
<input type="hidden" name="LocalShipping" value="<?php echo $gsx_ls; ?>" />
|
104 |
-
<input type="hidden" name="PrefilledCart" value="<?php echo $this->helper('core/url')->getCurrentUrl();?>"/>
|
105 |
-
|
106 |
-
<button title="<?php echo $this->__('Global Checkout') ?>" class="" <?php echo $this->buttonImagePath(); ?> type="submit"></button>
|
107 |
-
</form>
|
108 |
-
<?php
|
109 |
-
}else{
|
110 |
-
?>
|
111 |
-
<a href="<?php echo $urlIFrame ?>" title="<?php echo $this->__('Global Checkout') ?>" >
|
112 |
-
<div <?php echo $this->buttonImagePath(); ?>> </div>
|
113 |
-
</a>
|
114 |
-
<?php
|
115 |
-
}
|
116 |
-
?>
|
117 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/globalshopex/Login.phtml
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
<br>
|
3 |
+
<div class="account-login" >
|
4 |
+
<div class="col2-set">
|
5 |
+
<div class="col-1 new-users">
|
6 |
+
<div class="content" style="min-height: 45px">
|
7 |
+
<h2>International Checkout</h2>
|
8 |
+
<p>Tracking Globalshopex.com</p>
|
9 |
+
</div>
|
10 |
+
<div class="buttons-set">
|
11 |
+
<form action="<?php echo Mage::getBaseUrl() ?>GSXInternationalCheckout/Tracking" method="post" id="GSXLogin-form">
|
12 |
+
<button type="submit" type="button" title="Tracking Globalshopex.com click here" class="button">
|
13 |
+
<span>
|
14 |
+
<span>Click here</span>
|
15 |
+
</span>
|
16 |
+
</button>
|
17 |
+
</form>
|
18 |
+
</div>
|
19 |
+
</div>
|
20 |
+
</div>
|
21 |
+
</div>
|
app/design/frontend/base/default/template/globalshopex/buttoniframe.phtml
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$checkParamExist = strrpos(strtolower($_SERVER['QUERY_STRING']),'gsx') ;
|
3 |
+
if ($checkParamExist===false) {
|
4 |
+
$checkParamExist=false;
|
5 |
+
}else{
|
6 |
+
$checkParamExist=true;
|
7 |
+
}
|
8 |
+
if( $checkParamExist || $this->isLiveComponent()){
|
9 |
+
?>
|
10 |
+
<form name="gcForm" id="gcForm" method="post" action="<?php echo $this->urlToIframePage();?>">
|
11 |
+
<?php
|
12 |
+
if ($this->getPathToImageButton()=="") {
|
13 |
+
?>
|
14 |
+
<button title="<?php echo $this->__('International Checkout') ?>" class="<?php echo $this->getNamebuttonCssClassName(); ?>" type="submit" style="<?php echo $this->getStyleExtend(); ?>">
|
15 |
+
<span>
|
16 |
+
<span><?php echo $this->buttonTextInternationalCustomer(); ?></span>
|
17 |
+
</span>
|
18 |
+
</button>
|
19 |
+
|
20 |
+
<?php
|
21 |
+
}else{
|
22 |
+
?>
|
23 |
+
<button title="<?php echo $this->__('International Checkout') ?>" <?php echo $this->getCssForButtonImage(); ?> type="submit" style="<?php echo $this->getStyleExtend(); ?>">
|
24 |
+
<img src="<?php echo $this->getPathToImageButton(); ?>">
|
25 |
+
</button>
|
26 |
+
<?php
|
27 |
+
}
|
28 |
+
?>
|
29 |
+
</form>
|
30 |
+
<?php
|
31 |
+
}
|
32 |
+
?>
|
app/design/frontend/base/default/template/{GSXInternationalcheckout → globalshopex}/contentInvoice.phtml
RENAMED
@@ -9,7 +9,7 @@
|
|
9 |
<table id="shopping-cart-table" class="data-table cart-table" style="width: 710px">
|
10 |
<tr>
|
11 |
<td>
|
12 |
-
<iframe id="Gsframe" name="Gsframe" frameborder="0" scrolling="auto"
|
13 |
</iframe>
|
14 |
</td>
|
15 |
</tr>
|
9 |
<table id="shopping-cart-table" class="data-table cart-table" style="width: 710px">
|
10 |
<tr>
|
11 |
<td>
|
12 |
+
<iframe id="Gsframe" name="Gsframe" frameborder="0" scrolling="auto" style="width: 100%;height: 1600px;min-width: 710px;" allowtransparency="true" src="https://globalshopex.com/iframe/InternationalCheckout.aspx?Order=<?php echo $_GET['Order']?>">
|
13 |
</iframe>
|
14 |
</td>
|
15 |
</tr>
|
app/design/frontend/base/default/template/{GSXInternationalcheckout → globalshopex}/contentTracking.phtml
RENAMED
@@ -3,9 +3,6 @@
|
|
3 |
?>
|
4 |
|
5 |
<div class="col-main">
|
6 |
-
<div class="page-title">
|
7 |
-
<h1>International Checkout</h1>
|
8 |
-
</div>
|
9 |
<table id="shopping-cart-table" class="data-table cart-table" style="width: 710px">
|
10 |
<tr>
|
11 |
<td>
|
3 |
?>
|
4 |
|
5 |
<div class="col-main">
|
|
|
|
|
|
|
6 |
<table id="shopping-cart-table" class="data-table cart-table" style="width: 710px">
|
7 |
<tr>
|
8 |
<td>
|
app/design/frontend/base/default/template/globalshopex/formcarttocart.phtml
ADDED
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<form name="gcForm" id="gcForm" method="post" action="<?php echo $this->GSX_URL;?>">
|
2 |
+
<input type="hidden" name="MerchantID" value="<?php echo $this->getMerchantID(); ?>" />
|
3 |
+
<?php
|
4 |
+
$imgWidth = 75;
|
5 |
+
$imgHeight = 75;
|
6 |
+
|
7 |
+
|
8 |
+
$GSX_restriction_attribute = $this->getNameRestrictedItem();
|
9 |
+
|
10 |
+
$session = Mage::getSingleton('checkout/session');
|
11 |
+
$inputsGsxCart = "";
|
12 |
+
$i = 1;
|
13 |
+
foreach ($session->getQuote()->getAllVisibleItems() as $item) {
|
14 |
+
$item_ID = $item->getProductId();
|
15 |
+
$_Product = Mage::getModel('catalog/product')->load($item_ID);
|
16 |
+
$ProductPrice = $item->getPrice();
|
17 |
+
$ProductPrice = substr ( $ProductPrice , 0,strrpos($ProductPrice, ".") +3 ) ;
|
18 |
+
$ProductWeight = $_Product->getWeight();
|
19 |
+
$ProductWeight = substr ( $ProductWeight , 0,strrpos($ProductWeight, ".") +3 ) ;
|
20 |
+
|
21 |
+
if($ProductWeight=="") $ProductWeight="0";
|
22 |
+
|
23 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductSKU$i\" value=\"".$_Product->getSku()."\"/>\n";
|
24 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductDesc$i\" value=\"".$this->buildItemDescription($item)."\"/>\n";
|
25 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductLink$i\" value=\"".$this->getProductUrl($item)."\"/>\n";
|
26 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductQty$i\" value=\"".$item->getQty()."\"/>\n";
|
27 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductPrice$i\" value=\"".$ProductPrice ."\"/>\n";
|
28 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductSize$i\" value=\"".$this->getSize($item)."\"/>\n";
|
29 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductColor$i\" value=\"".$this->getColor($item)."\"/>\n";
|
30 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductWeight$i\" value=\"".$ProductWeight."\"/>\n";
|
31 |
+
|
32 |
+
if($item->getCountry()!="")
|
33 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductCountry$i\" value=\"".$item->getCountry()."\"/>\n";
|
34 |
+
if($item->getBrand($item)!="")
|
35 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductBrand$i\" value=\"".$this->getBrand($item)."\"/>\n";
|
36 |
+
|
37 |
+
if ($GSX_restriction_attribute!="") {
|
38 |
+
$attributes = Mage::getResourceModel('eav/entity_attribute_collection')
|
39 |
+
->setEntityTypeFilter($_Product->getResource()->getTypeId())
|
40 |
+
->addFieldToFilter('attribute_code', $GSX_restriction_attribute)
|
41 |
+
->load(false);
|
42 |
+
|
43 |
+
$attribute = $attributes->getFirstItem()->setEntity($_Product->getResource());
|
44 |
+
$manufac = $attribute->getSource()->getAllOptions(false);
|
45 |
+
foreach ($manufac as $man) {
|
46 |
+
$intshiping[$man['value']] = $man['label'];
|
47 |
+
}
|
48 |
+
if($_Product->getData($GSX_restriction_attribute) == '1')
|
49 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"Restricted$i\" value='1'/>\n";
|
50 |
+
}
|
51 |
+
|
52 |
+
|
53 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductImage$i\" value=\"".$this->getProductThumbnail($item)->resize($imgWidth)."\"/>\n";
|
54 |
+
$i++;
|
55 |
+
}
|
56 |
+
|
57 |
+
echo $inputsGsxCart;
|
58 |
+
|
59 |
+
$GSX_totals = $session->getQuote()->getData();
|
60 |
+
$coupon_code = $GSX_totals['coupon_code'];
|
61 |
+
$discount = $GSX_totals['subtotal'] - $GSX_totals['subtotal_with_discount'];
|
62 |
+
$perc = ($discount * 100) / $GSX_totals['subtotal'];
|
63 |
+
$perc = round($perc , 2);
|
64 |
+
?>
|
65 |
+
|
66 |
+
<?php
|
67 |
+
if($coupon_code!=""){
|
68 |
+
?>
|
69 |
+
<input type="hidden" name="ODiscount" value="<?php echo $perc; ?>" />
|
70 |
+
<input type="hidden" name="ODiscCode" value="<?php echo $coupon_code; ?>" />
|
71 |
+
<input type="hidden" name="ODiscPerc" value="1" />
|
72 |
+
<?php
|
73 |
+
}
|
74 |
+
?>
|
75 |
+
<?php
|
76 |
+
echo $this->getLocalshipping_EXP();
|
77 |
+
echo $this->getLocalshipping();
|
78 |
+
?>
|
79 |
+
|
80 |
+
<?php
|
81 |
+
$checkParamExist = strrpos(strtolower($_SERVER['QUERY_STRING']),'gsx') ;
|
82 |
+
if ($checkParamExist===false) {
|
83 |
+
$checkParamExist=false;
|
84 |
+
}else{
|
85 |
+
$checkParamExist=true;
|
86 |
+
}
|
87 |
+
|
88 |
+
if( $checkParamExist || $this->isLiveComponent()){
|
89 |
+
?>
|
90 |
+
<?php
|
91 |
+
if ($this->getPathToImageButton()=="") {
|
92 |
+
?>
|
93 |
+
<button title="<?php echo $this->__('International Checkout') ?>" class="<?php echo $this->getNamebuttonCssClassName(); ?>" type="submit" style="<?php echo $this->getStyleExtend(); ?>">
|
94 |
+
<span>
|
95 |
+
<span><?php echo $this->buttonTextInternationalCustomer(); ?></span>
|
96 |
+
</span>
|
97 |
+
</button>
|
98 |
+
|
99 |
+
<?php
|
100 |
+
}else{
|
101 |
+
?>
|
102 |
+
<br>
|
103 |
+
<button title="<?php echo $this->__('International Checkout') ?>" <?php echo $this->getCssForButtonImage(); ?> type="submit" style="<?php echo $this->getStyleExtend(); ?>">
|
104 |
+
<img src="<?php echo $this->getPathToImageButton(); ?>">
|
105 |
+
</button>
|
106 |
+
|
107 |
+
<?php
|
108 |
+
}
|
109 |
+
?>
|
110 |
+
<?php
|
111 |
+
}
|
112 |
+
?>
|
113 |
+
</form>
|
app/design/frontend/base/default/template/globalshopex/formiframe.phtml
ADDED
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<style>
|
2 |
+
#Gsframe {
|
3 |
+
height: 2600px;
|
4 |
+
}
|
5 |
+
@media only screen and (min-width: 630px) and (max-width:1026px) {
|
6 |
+
#Gsframe {
|
7 |
+
height: 2900px;
|
8 |
+
}
|
9 |
+
}
|
10 |
+
@media only screen and (min-width: 600px) and (max-width: 797px) {
|
11 |
+
#Gsframe {
|
12 |
+
height: 3250px;
|
13 |
+
}
|
14 |
+
}
|
15 |
+
@media only screen and (min-width: 510px) and (max-width: 629px) {
|
16 |
+
#Gsframe {
|
17 |
+
height: 3250px;
|
18 |
+
}
|
19 |
+
|
20 |
+
}
|
21 |
+
@media only screen and (max-width: 509px){
|
22 |
+
#Gsframe {
|
23 |
+
height: 3450px;
|
24 |
+
}
|
25 |
+
|
26 |
+
}
|
27 |
+
</style>
|
28 |
+
<iframe id="Gsframe" name="Gsframe" style="width: 100%; min-width: 310px;" frameborder="0" scrolling="auto" allowtransparency="true">
|
29 |
+
</iframe>
|
30 |
+
<form name="frmPP" id="frmPP" method="post" action="https://globalshopex.com/iframe/InternationalCheckout.aspx" target="Gsframe" >
|
31 |
+
<input type="hidden" name="MerchantID" value="<?php echo $this->getMerchantID(); ?>" />
|
32 |
+
<?php
|
33 |
+
$imgWidth = 75;
|
34 |
+
$imgHeight = 75;
|
35 |
+
|
36 |
+
$GSX_restriction_attribute = $this->getNameRestrictedItem();
|
37 |
+
|
38 |
+
$session = Mage::getSingleton('checkout/session');
|
39 |
+
$inputsGsxCart = "";
|
40 |
+
$i = 1;
|
41 |
+
foreach ($session->getQuote()->getAllVisibleItems() as $item) {
|
42 |
+
$item_ID = $item->getProductId();
|
43 |
+
$_Product = Mage::getModel('catalog/product')->load($item_ID);
|
44 |
+
$ProductPrice = $item->getPrice();
|
45 |
+
$ProductPrice = substr ( $ProductPrice , 0,strrpos($ProductPrice, ".") +3 ) ;
|
46 |
+
$ProductWeight = $_Product->getWeight();
|
47 |
+
$ProductWeight = substr ( $ProductWeight , 0,strrpos($ProductWeight, ".") +3 ) ;
|
48 |
+
|
49 |
+
if($ProductWeight=="") $ProductWeight="0";
|
50 |
+
|
51 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductSKU$i\" value=\"".$_Product->getSku()."\"/>\n";
|
52 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductDesc$i\" value=\"".$this->buildItemDescription($item)."\"/>\n";
|
53 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductLink$i\" value=\"".$this->getProductUrl($item)."\"/>\n";
|
54 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductQty$i\" value=\"".$item->getQty()."\"/>\n";
|
55 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductPrice$i\" value=\"".$ProductPrice ."\"/>\n";
|
56 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductSize$i\" value=\"".$this->getSize($item)."\"/>\n";
|
57 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductColor$i\" value=\"".$this->getColor($item)."\"/>\n";
|
58 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductWeight$i\" value=\"".$ProductWeight."\"/>\n";
|
59 |
+
|
60 |
+
if($item->getCountry()!="")
|
61 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductCountry$i\" value=\"".$item->getCountry()."\"/>\n";
|
62 |
+
if($item->getBrand($item)!="")
|
63 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductBrand$i\" value=\"".$this->getBrand($item)."\"/>\n";
|
64 |
+
|
65 |
+
if ($GSX_restriction_attribute!="") {
|
66 |
+
$attributes = Mage::getResourceModel('eav/entity_attribute_collection')
|
67 |
+
->setEntityTypeFilter($_Product->getResource()->getTypeId())
|
68 |
+
->addFieldToFilter('attribute_code', $GSX_restriction_attribute)
|
69 |
+
->load(false);
|
70 |
+
|
71 |
+
$attribute = $attributes->getFirstItem()->setEntity($_Product->getResource());
|
72 |
+
$manufac = $attribute->getSource()->getAllOptions(false);
|
73 |
+
foreach ($manufac as $man) {
|
74 |
+
$intshiping[$man['value']] = $man['label'];
|
75 |
+
}
|
76 |
+
if($_Product->getData($GSX_restriction_attribute) == '1')
|
77 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"Restricted$i\" value='1'/>\n";
|
78 |
+
}
|
79 |
+
|
80 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductImage$i\" value=\"".$this->getProductThumbnail($item)->resize($imgWidth)."\"/>\n";
|
81 |
+
$i++;
|
82 |
+
}
|
83 |
+
echo $inputsGsxCart;
|
84 |
+
$GSX_totals = $session->getQuote()->getData();
|
85 |
+
$coupon_code = $GSX_totals['coupon_code'];
|
86 |
+
$discount = $GSX_totals['subtotal'] - $GSX_totals['subtotal_with_discount'];
|
87 |
+
$perc = ($discount * 100) / $GSX_totals['subtotal'];
|
88 |
+
$perc = round($perc , 2);
|
89 |
+
?>
|
90 |
+
|
91 |
+
<?php
|
92 |
+
if($coupon_code!=""){
|
93 |
+
?>
|
94 |
+
<input type="hidden" name="ODiscount" value="<?php echo $perc; ?>" />
|
95 |
+
<input type="hidden" name="ODiscCode" value="<?php echo $coupon_code; ?>" />
|
96 |
+
<input type="hidden" name="ODiscPerc" value="1" />
|
97 |
+
<?php
|
98 |
+
}
|
99 |
+
?>
|
100 |
+
<?php
|
101 |
+
echo $this->getLocalshipping_EXP();
|
102 |
+
echo $this->getLocalshipping();
|
103 |
+
?>
|
104 |
+
</form>
|
105 |
+
|
106 |
+
<script language="javascript" type="text/javascript">
|
107 |
+
document.getElementById('frmPP').submit();
|
108 |
+
</script>
|
app/design/frontend/base/default/template/globalshopex/switchtypecart.phtml
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ($this->isEnabledComponent()) {
|
3 |
+
if ($this->getTypeIntegration()=="0") {
|
4 |
+
echo $this->getChildHtml('formcartocart');
|
5 |
+
}else{
|
6 |
+
echo $this->getChildHtml('buttoniframe');
|
7 |
+
}
|
8 |
+
}
|
9 |
+
?>
|
10 |
+
|
11 |
+
|
12 |
+
|
13 |
+
|
app/design/frontend/default/default/layout/globalshopex.xml
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.0.1">
|
3 |
+
<checkout_cart_index>
|
4 |
+
<reference name="content">
|
5 |
+
<reference name="checkout.cart">
|
6 |
+
<reference name="checkout.cart.methods">
|
7 |
+
<block type="globalshopex/internationallogic" name="globalshopex.internationallogic" template="globalshopex/switchtypecart.phtml">
|
8 |
+
<block type="globalshopex/internationallogic" name="formiframe" template="globalshopex/formiframe.phtml" />
|
9 |
+
<block type="globalshopex/internationallogic" name="buttoniframe" template="globalshopex/buttoniframe.phtml" />
|
10 |
+
<block type="globalshopex/internationallogic" name="formcartocart" template="globalshopex/formcarttocart.phtml" />
|
11 |
+
</block>
|
12 |
+
</reference>
|
13 |
+
</reference>
|
14 |
+
</reference>
|
15 |
+
</checkout_cart_index>
|
16 |
+
<customer_account_login translate="label">
|
17 |
+
<reference name="content">
|
18 |
+
<block type="customer/account_forgotpassword" name="forgotPassword" template="globalshopex/login.phtml" />
|
19 |
+
</reference>
|
20 |
+
</customer_account_login>
|
21 |
+
</layout>
|
app/design/frontend/default/default/template/globalshopex/Login.phtml
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
<br>
|
3 |
+
<div class="account-login" >
|
4 |
+
<div class="col2-set">
|
5 |
+
<div class="col-1 new-users">
|
6 |
+
<div class="content" style="min-height: 45px">
|
7 |
+
<h2>International Checkout</h2>
|
8 |
+
<p>Tracking Globalshopex.com</p>
|
9 |
+
</div>
|
10 |
+
<div class="buttons-set">
|
11 |
+
<form action="<?php echo Mage::getBaseUrl() ?>GSXInternationalCheckout/Tracking" method="post" id="GSXLogin-form">
|
12 |
+
<button type="submit" type="button" title="Tracking Globalshopex.com click here" class="button">
|
13 |
+
<span>
|
14 |
+
<span>Click here</span>
|
15 |
+
</span>
|
16 |
+
</button>
|
17 |
+
</form>
|
18 |
+
</div>
|
19 |
+
</div>
|
20 |
+
</div>
|
21 |
+
</div>
|
app/design/frontend/default/default/template/globalshopex/buttoniframe.phtml
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$checkParamExist = strrpos(strtolower($_SERVER['QUERY_STRING']),'gsx') ;
|
3 |
+
if ($checkParamExist===false) {
|
4 |
+
$checkParamExist=false;
|
5 |
+
}else{
|
6 |
+
$checkParamExist=true;
|
7 |
+
}
|
8 |
+
if( $checkParamExist || $this->isLiveComponent()){
|
9 |
+
?>
|
10 |
+
<form name="gcForm" id="gcForm" method="post" action="<?php echo $this->urlToIframePage();?>">
|
11 |
+
<?php
|
12 |
+
if ($this->getPathToImageButton()=="") {
|
13 |
+
?>
|
14 |
+
<button title="<?php echo $this->__('International Checkout') ?>" class="<?php echo $this->getNamebuttonCssClassName(); ?>" type="submit" style="<?php echo $this->getStyleExtend(); ?>">
|
15 |
+
<span>
|
16 |
+
<span><?php echo $this->buttonTextInternationalCustomer(); ?></span>
|
17 |
+
</span>
|
18 |
+
</button>
|
19 |
+
|
20 |
+
<?php
|
21 |
+
}else{
|
22 |
+
?>
|
23 |
+
<button title="<?php echo $this->__('International Checkout') ?>" <?php echo $this->getCssForButtonImage(); ?> type="submit" style="<?php echo $this->getStyleExtend(); ?>">
|
24 |
+
<img src="<?php echo $this->getPathToImageButton(); ?>">
|
25 |
+
</button>
|
26 |
+
<?php
|
27 |
+
}
|
28 |
+
?>
|
29 |
+
</form>
|
30 |
+
<?php
|
31 |
+
}
|
32 |
+
?>
|
app/design/frontend/default/default/template/globalshopex/contentInvoice.phtml
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
Mage::getSingleton('checkout/session')->clear();
|
3 |
+
?>
|
4 |
+
|
5 |
+
<div class="col-main">
|
6 |
+
<div class="page-title">
|
7 |
+
<h1>International Checkout</h1>
|
8 |
+
</div>
|
9 |
+
<table id="shopping-cart-table" class="data-table cart-table" style="width: 710px">
|
10 |
+
<tr>
|
11 |
+
<td>
|
12 |
+
<iframe id="Gsframe" name="Gsframe" frameborder="0" scrolling="auto" style="width: 100%;height: 1600px;min-width: 710px;" allowtransparency="true" src="https://globalshopex.com/iframe/InternationalCheckout.aspx?Order=<?php echo $_GET['Order']?>">
|
13 |
+
</iframe>
|
14 |
+
</td>
|
15 |
+
</tr>
|
16 |
+
</table>
|
17 |
+
</div>
|
app/design/frontend/default/default/template/globalshopex/contentTracking.phtml
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$merchant_id = trim(Mage::getStoreConfig('shipping/internationalcheckout/name_of_company'));
|
3 |
+
?>
|
4 |
+
|
5 |
+
<div class="col-main">
|
6 |
+
<table id="shopping-cart-table" class="data-table cart-table" style="width: 710px">
|
7 |
+
<tr>
|
8 |
+
<td>
|
9 |
+
|
10 |
+
<iframe id="Gsframe" name="Gsframe" frameborder="0" scrolling="auto" height="800px" width="100%" allowtransparency="true" onload="hideProgress()">GlobalShopex International checkout Order Tracking</iframe>
|
11 |
+
<form name="frmPP" id="frmPP" method="post" action="https://globalshopex.com/iframe/OrderTracking.aspx" target="Gsframe">
|
12 |
+
<div runat="server" id="itemInfo">
|
13 |
+
<input type="hidden" name="MerchantID" value="<?php echo $merchant_id; ?>" />
|
14 |
+
</form>
|
15 |
+
<script type="text/javascript">document.getElementById('frmPP').submit();</script>
|
16 |
+
</td>
|
17 |
+
</tr>
|
18 |
+
</table>
|
19 |
+
</div>
|
app/design/frontend/default/default/template/globalshopex/formcarttocart.phtml
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<form name="gcForm" id="gcForm" method="post" action="<?php echo $this->GSX_URL;?>">
|
2 |
+
<input type="hidden" name="MerchantID" value="<?php echo $this->getMerchantID(); ?>" />
|
3 |
+
<?php
|
4 |
+
$imgWidth = 75;
|
5 |
+
$imgHeight = 75;
|
6 |
+
|
7 |
+
$session = Mage::getSingleton('checkout/session');
|
8 |
+
$inputsGsxCart = "";
|
9 |
+
$i = 1;
|
10 |
+
foreach ($session->getQuote()->getAllVisibleItems() as $item) {
|
11 |
+
$item_ID = $item->getProductId();
|
12 |
+
$_Product = Mage::getModel('catalog/product')->load($item_ID);
|
13 |
+
$ProductPrice=$item->getPrice();
|
14 |
+
$ProductPrice = substr ( $ProductPrice , 0,strrpos($ProductPrice, ".") +3 ) ;
|
15 |
+
$ProductWeight=$_Product->getWeight();
|
16 |
+
$ProductWeight = substr ( $ProductWeight , 0,strrpos($ProductWeight, ".") +3 ) ;
|
17 |
+
|
18 |
+
if($ProductWeight=="") $ProductWeight="0";
|
19 |
+
|
20 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductSKU$i\" value=\"".$_Product->getSku()."\"/>\n";
|
21 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductDesc$i\" value=\"".$this->buildItemDescription($item)."\"/>\n";
|
22 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductLink$i\" value=\"".$this->getProductUrl($item)."\"/>\n";
|
23 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductQty$i\" value=\"".$item->getQty()."\"/>\n";
|
24 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductPrice$i\" value=\"".$ProductPrice ."\"/>\n";
|
25 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductSize$i\" value=\"".$this->getSize($item)."\"/>\n";
|
26 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductColor$i\" value=\"".$this->getColor($item)."\"/>\n";
|
27 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductWeight$i\" value=\"".$ProductWeight."\"/>\n";
|
28 |
+
|
29 |
+
if($item->getCountry()!="")
|
30 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductCountry$i\" value=\"".$item->getCountry()."\"/>\n";
|
31 |
+
if($item->getBrand($item)!="")
|
32 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductBrand$i\" value=\"".$this->getBrand($item)."\"/>\n";
|
33 |
+
|
34 |
+
$attributes = Mage::getResourceModel('eav/entity_attribute_collection')
|
35 |
+
->setEntityTypeFilter($_Product->getResource()->getTypeId())
|
36 |
+
->addFieldToFilter('attribute_code', $GSX_restriction_attribute)
|
37 |
+
->load(false);
|
38 |
+
|
39 |
+
$attribute = $attributes->getFirstItem()->setEntity($_Product->getResource());
|
40 |
+
$manufac = $attribute->getSource()->getAllOptions(false);
|
41 |
+
foreach ($manufac as $man) {
|
42 |
+
$intshiping[$man['value']] = $man['label'];
|
43 |
+
}
|
44 |
+
|
45 |
+
|
46 |
+
if($_Product->getData($GSX_restriction_attribute) == '1')
|
47 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"Restricted$i\" value='1'/>\n";
|
48 |
+
|
49 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductImage$i\" value=\"".$this->getProductThumbnail($item)->resize($imgWidth)."\"/>\n";
|
50 |
+
$i++;
|
51 |
+
}
|
52 |
+
|
53 |
+
echo $inputsGsxCart;
|
54 |
+
|
55 |
+
$GSX_totals = $session->getQuote()->getData();
|
56 |
+
$coupon_code = $GSX_totals['coupon_code'];
|
57 |
+
$discount = $GSX_totals['subtotal'] - $GSX_totals['subtotal_with_discount'];
|
58 |
+
$perc = ($discount * 100) / $GSX_totals['subtotal'];
|
59 |
+
$perc = round($perc , 2);
|
60 |
+
?>
|
61 |
+
|
62 |
+
<?php
|
63 |
+
if($coupon_code!=""){
|
64 |
+
?>
|
65 |
+
<input type="hidden" name="ODiscount" value="<?php echo $perc; ?>" />
|
66 |
+
<input type="hidden" name="ODiscCode" value="<?php echo $coupon_code; ?>" />
|
67 |
+
<input type="hidden" name="ODiscPerc" value="1" />
|
68 |
+
<?php
|
69 |
+
}
|
70 |
+
?>
|
71 |
+
<?php
|
72 |
+
echo $this->getLocalshipping_EXP();
|
73 |
+
echo $this->getLocalshipping();
|
74 |
+
?>
|
75 |
+
|
76 |
+
<?php
|
77 |
+
$checkParamExist = strrpos(strtolower($_SERVER['QUERY_STRING']),'gsx') ;
|
78 |
+
if ($checkParamExist===false) {
|
79 |
+
$checkParamExist=false;
|
80 |
+
}else{
|
81 |
+
$checkParamExist=true;
|
82 |
+
}
|
83 |
+
|
84 |
+
if( $checkParamExist || $this->isLiveComponent()){
|
85 |
+
?>
|
86 |
+
<?php
|
87 |
+
if ($this->getPathToImageButton()=="") {
|
88 |
+
?>
|
89 |
+
<button title="<?php echo $this->__('International Checkout') ?>" class="<?php echo $this->getNamebuttonCssClassName(); ?>" type="submit" style="<?php echo $this->getStyleExtend(); ?>">
|
90 |
+
<span>
|
91 |
+
<span><?php echo $this->buttonTextInternationalCustomer(); ?></span>
|
92 |
+
</span>
|
93 |
+
</button>
|
94 |
+
|
95 |
+
<?php
|
96 |
+
}else{
|
97 |
+
?>
|
98 |
+
<br>
|
99 |
+
<button title="<?php echo $this->__('International Checkout') ?>" <?php echo $this->getCssForButtonImage(); ?> type="submit" style="<?php echo $this->getStyleExtend(); ?>">
|
100 |
+
<img src="<?php echo $this->getPathToImageButton(); ?>">
|
101 |
+
</button>
|
102 |
+
|
103 |
+
<?php
|
104 |
+
}
|
105 |
+
?>
|
106 |
+
<?php
|
107 |
+
}
|
108 |
+
?>
|
109 |
+
</form>
|
app/design/frontend/default/default/template/globalshopex/formiframe.phtml
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<style>
|
2 |
+
#Gsframe {
|
3 |
+
height: 2600px;
|
4 |
+
}
|
5 |
+
@media only screen and (min-width: 630px) and (max-width:1026px) {
|
6 |
+
#Gsframe {
|
7 |
+
height: 2900px;
|
8 |
+
}
|
9 |
+
}
|
10 |
+
@media only screen and (min-width: 600px) and (max-width: 797px) {
|
11 |
+
#Gsframe {
|
12 |
+
height: 3250px;
|
13 |
+
}
|
14 |
+
}
|
15 |
+
@media only screen and (min-width: 510px) and (max-width: 629px) {
|
16 |
+
#Gsframe {
|
17 |
+
height: 3250px;
|
18 |
+
}
|
19 |
+
|
20 |
+
}
|
21 |
+
@media only screen and (max-width: 509px){
|
22 |
+
#Gsframe {
|
23 |
+
height: 3450px;
|
24 |
+
}
|
25 |
+
|
26 |
+
}
|
27 |
+
</style>
|
28 |
+
<iframe id="Gsframe" name="Gsframe" style="width: 100%; min-width: 310px;" frameborder="0" scrolling="auto" allowtransparency="true">
|
29 |
+
</iframe>
|
30 |
+
<form name="frmPP" id="frmPP" method="post" action="https://globalshopex.com/iframe/InternationalCheckout.aspx" target="Gsframe" >
|
31 |
+
<input type="hidden" name="MerchantID" value="<?php echo $this->getMerchantID(); ?>" />
|
32 |
+
<?php
|
33 |
+
$imgWidth = 75;
|
34 |
+
$imgHeight = 75;
|
35 |
+
|
36 |
+
$session = Mage::getSingleton('checkout/session');
|
37 |
+
$inputsGsxCart = "";
|
38 |
+
$i = 1;
|
39 |
+
foreach ($session->getQuote()->getAllVisibleItems() as $item) {
|
40 |
+
$item_ID = $item->getProductId();
|
41 |
+
$_Product = Mage::getModel('catalog/product')->load($item_ID);
|
42 |
+
$ProductPrice=$item->getPrice();
|
43 |
+
$ProductPrice = substr ( $ProductPrice , 0,strrpos($ProductPrice, ".") +3 ) ;
|
44 |
+
$ProductWeight=$_Product->getWeight();
|
45 |
+
$ProductWeight = substr ( $ProductWeight , 0,strrpos($ProductWeight, ".") +3 ) ;
|
46 |
+
|
47 |
+
if($ProductWeight=="") $ProductWeight="0";
|
48 |
+
|
49 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductSKU$i\" value=\"".$_Product->getSku()."\"/>\n";
|
50 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductDesc$i\" value=\"".$this->buildItemDescription($item)."\"/>\n";
|
51 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductLink$i\" value=\"".$this->getProductUrl($item)."\"/>\n";
|
52 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductQty$i\" value=\"".$item->getQty()."\"/>\n";
|
53 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductPrice$i\" value=\"".$ProductPrice ."\"/>\n";
|
54 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductSize$i\" value=\"".$this->getSize($item)."\"/>\n";
|
55 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductColor$i\" value=\"".$this->getColor($item)."\"/>\n";
|
56 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductWeight$i\" value=\"".$ProductWeight."\"/>\n";
|
57 |
+
|
58 |
+
if($item->getCountry()!="")
|
59 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductCountry$i\" value=\"".$item->getCountry()."\"/>\n";
|
60 |
+
if($item->getBrand($item)!="")
|
61 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductBrand$i\" value=\"".$this->getBrand($item)."\"/>\n";
|
62 |
+
|
63 |
+
$attributes = Mage::getResourceModel('eav/entity_attribute_collection')
|
64 |
+
->setEntityTypeFilter($_Product->getResource()->getTypeId())
|
65 |
+
->addFieldToFilter('attribute_code', $GSX_restriction_attribute)
|
66 |
+
->load(false);
|
67 |
+
|
68 |
+
$attribute = $attributes->getFirstItem()->setEntity($_Product->getResource());
|
69 |
+
$manufac = $attribute->getSource()->getAllOptions(false);
|
70 |
+
foreach ($manufac as $man) {
|
71 |
+
$intshiping[$man['value']] = $man['label'];
|
72 |
+
}
|
73 |
+
|
74 |
+
|
75 |
+
if($_Product->getData($GSX_restriction_attribute) == '1')
|
76 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"Restricted$i\" value='1'/>\n";
|
77 |
+
|
78 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductImage$i\" value=\"".$this->getProductThumbnail($item)->resize($imgWidth)."\"/>\n";
|
79 |
+
$i++;
|
80 |
+
}
|
81 |
+
echo $inputsGsxCart;
|
82 |
+
$GSX_totals = $session->getQuote()->getData();
|
83 |
+
$coupon_code = $GSX_totals['coupon_code'];
|
84 |
+
$discount = $GSX_totals['subtotal'] - $GSX_totals['subtotal_with_discount'];
|
85 |
+
$perc = ($discount * 100) / $GSX_totals['subtotal'];
|
86 |
+
$perc = round($perc , 2);
|
87 |
+
?>
|
88 |
+
|
89 |
+
<?php
|
90 |
+
if($coupon_code!=""){
|
91 |
+
?>
|
92 |
+
<input type="hidden" name="ODiscount" value="<?php echo $perc; ?>" />
|
93 |
+
<input type="hidden" name="ODiscCode" value="<?php echo $coupon_code; ?>" />
|
94 |
+
<input type="hidden" name="ODiscPerc" value="1" />
|
95 |
+
<?php
|
96 |
+
}
|
97 |
+
?>
|
98 |
+
<?php
|
99 |
+
echo $this->getLocalshipping_EXP();
|
100 |
+
echo $this->getLocalshipping();
|
101 |
+
?>
|
102 |
+
</form>
|
103 |
+
|
104 |
+
<script language="javascript" type="text/javascript">
|
105 |
+
document.getElementById('frmPP').submit();
|
106 |
+
</script>
|
app/design/frontend/default/default/template/globalshopex/switchtypecart.phtml
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ($this->isEnabledComponent()) {
|
3 |
+
if ($this->getTypeIntegration()=="0") {
|
4 |
+
echo $this->getChildHtml('formcartocart');
|
5 |
+
}else{
|
6 |
+
echo $this->getChildHtml('buttoniframe');
|
7 |
+
}
|
8 |
+
}
|
9 |
+
?>
|
10 |
+
|
11 |
+
|
12 |
+
|
13 |
+
|
app/etc/modules/{GSX_InternationalCheckout.xml → Gsx_Globalshopex.xml}
RENAMED
@@ -1,10 +1,10 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
<modules>
|
4 |
-
<
|
5 |
<active>true</active>
|
6 |
<codePool>community</codePool>
|
7 |
-
</
|
8 |
<depends>
|
9 |
<Mage_Checkout />
|
10 |
</depends>
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
<modules>
|
4 |
+
<Gsx_Globalshopex>
|
5 |
<active>true</active>
|
6 |
<codePool>community</codePool>
|
7 |
+
</Gsx_Globalshopex>
|
8 |
<depends>
|
9 |
<Mage_Checkout />
|
10 |
</depends>
|
media/GSX/images/default/Thumbs.db
DELETED
Binary file
|
media/{GSX → Gsx}/images/default/gc_button.gif
RENAMED
File without changes
|
media/Gsx/images/default/gsx_button.gif
ADDED
Binary file
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>GSXInternationalCheckoutWithIframe</name>
|
4 |
-
<version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/gpl-license">GPL</license>
|
7 |
<channel>community</channel>
|
@@ -9,10 +9,10 @@
|
|
9 |
<summary>Installs International Checkout Button in your cart</summary>
|
10 |
<description>Installs International Checkout Button in your cart</description>
|
11 |
<notes>Ths is Stable version</notes>
|
12 |
-
<authors><author><name>Globalshopex</name><user>Globalshopex</user><email>
|
13 |
-
<date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="
|
16 |
<compatible/>
|
17 |
-
<dependencies><required><php><min>4.0.1</min><max>5.5.
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>GSXInternationalCheckoutWithIframe</name>
|
4 |
+
<version>2.0.3</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/gpl-license">GPL</license>
|
7 |
<channel>community</channel>
|
9 |
<summary>Installs International Checkout Button in your cart</summary>
|
10 |
<description>Installs International Checkout Button in your cart</description>
|
11 |
<notes>Ths is Stable version</notes>
|
12 |
+
<authors><author><name>Globalshopex</name><user>Globalshopex</user><email>technical_support@globalshopex.com</email></author></authors>
|
13 |
+
<date>2015-07-22</date>
|
14 |
+
<time>22:30:57</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Gsx"><dir name="Globalshopex"><dir name="Block"><file name="Internationallogic.php" hash="a06c50e7c4ee4ed96ac1e57ba5ce3f99"/></dir><dir name="Model"><file name="IframeCarttoCart.php" hash="f687b8fe003cbc7c5ee192fc5c53dcab"/><file name="Servers.php" hash="43bf27049c55b729aeb4af248188076d"/></dir><dir name="controllers"><file name="GSXController.php" hash="93d3737e92fd44dcefb08f46accb7694"/><file name="InvoiceController.php" hash="83684c21d0afc2b70a16f3df12493ce1"/><file name="TrackingController.php" hash="ce16752f91a636d782908229a8e7097b"/></dir><dir name="etc"><file name="config.xml" hash="50d275964d4df70d6ff329745c926314"/><file name="system.xml" hash="813773a83582d2c2fe13eb923583bad9"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="globalshopex"><file name="Login.phtml" hash="0c440e4b04f9ed8842fa826ee9ab4a8b"/><file name="buttoniframe.phtml" hash="552e34556ce44f1cdc746020d12c0e5e"/><file name="contentInvoice.phtml" hash="2fb0bc3fbcfb69dae8327a2242165ad4"/><file name="contentTracking.phtml" hash="5e9c634a51f764bade47a46a5f541c34"/><file name="formcarttocart.phtml" hash="a7a9a67cb950806e07a04cba5dcc536d"/><file name="formiframe.phtml" hash="7fe486823caa56c37f9c05c17106eec8"/><file name="switchtypecart.phtml" hash="10c03f0fd5ada46ffb9c5f23dc782054"/></dir></dir><dir name="layout"><file name="globalshopex.xml" hash="f2003a80d0df65130e3247e66c33f076"/></dir></dir></dir><dir name="base"><dir name="default"><dir name="layout"><file name="globalshopex.xml" hash="f2003a80d0df65130e3247e66c33f076"/></dir><dir name="template"><dir name="globalshopex"><file name="Login.phtml" hash="0c440e4b04f9ed8842fa826ee9ab4a8b"/><file name="buttoniframe.phtml" hash="552e34556ce44f1cdc746020d12c0e5e"/><file name="contentInvoice.phtml" hash="2fb0bc3fbcfb69dae8327a2242165ad4"/><file name="contentTracking.phtml" hash="5e9c634a51f764bade47a46a5f541c34"/><file name="formcarttocart.phtml" hash="fbb3ace6394cd1769c37a7c1c02fc9f9"/><file name="formiframe.phtml" hash="e793d1bbddc5e462e62d328d05c7c3c6"/><file name="switchtypecart.phtml" hash="10c03f0fd5ada46ffb9c5f23dc782054"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Gsx_Globalshopex.xml" hash="0ff28058fbd227e503c9c7c90e003888"/></dir></target><target name="magemedia"><dir name="Gsx"><dir name="images"><dir name="default"><file name="gc_button.gif" hash="4d53b9fb727fd399486e4c1d7b35170c"/><file name="gsx_button.gif" hash="4d53b9fb727fd399486e4c1d7b35170c"/></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
+
<dependencies><required><php><min>4.0.1</min><max>5.5.17</max></php></required></dependencies>
|
18 |
</package>
|