Version Notes
Ths is Stable version
Download this release
Release Info
Developer | Globalshopex |
Extension | GSXInternationalCheckoutWithIframe |
Version | 2.5.0 |
Comparing to | |
See all releases |
Code changes from version 2.0.3 to 2.5.0
- app/code/community/Gsx/Globalshopex/Block/Internationallogic.php +1 -1
- app/code/community/Gsx/Globalshopex/Helper/Data.php +9 -0
- app/code/community/Gsx/Globalshopex/controllers/{GSXController.php → GsxController.php} +1 -1
- app/code/community/Gsx/Globalshopex/controllers/GsxemptycartController.php +13 -0
- app/code/community/Gsx/Globalshopex/controllers/TrackingController.php +5 -16
- app/code/community/Gsx/Globalshopex/etc/config.xml +42 -37
- app/code/community/Gsx/Globalshopex/etc/system.xml +150 -134
- app/design/frontend/base/default/layout/globalshopex.xml +26 -15
- app/design/frontend/base/default/template/globalshopex/contentTracking.phtml +15 -16
- app/design/frontend/base/default/template/globalshopex/formiframe.phtml +106 -96
- app/design/frontend/base/default/template/globalshopex/{Login.phtml → login.phtml} +1 -1
- app/design/frontend/default/default/layout/globalshopex.xml +15 -15
- app/design/frontend/default/default/template/globalshopex/formiframe.phtml +103 -93
- app/design/frontend/default/default/template/globalshopex/{Login.phtml → login.phtml} +1 -1
- app/etc/modules/Gsx_Globalshopex.xml +3 -3
- package.xml +5 -5
app/code/community/Gsx/Globalshopex/Block/Internationallogic.php
CHANGED
@@ -120,7 +120,7 @@ class Gsx_Globalshopex_Block_Internationallogic extends Mage_Core_Block_Template
|
|
120 |
if($gsx_enablehttps){
|
121 |
$urlIFrame=str_replace('http:','https:',Mage::getBaseUrl());
|
122 |
}
|
123 |
-
$urlIFrame = $urlIFrame."
|
124 |
return $urlIFrame;
|
125 |
}
|
126 |
|
120 |
if($gsx_enablehttps){
|
121 |
$urlIFrame=str_replace('http:','https:',Mage::getBaseUrl());
|
122 |
}
|
123 |
+
$urlIFrame = $urlIFrame."gsxinternationalcheckout/gsx";
|
124 |
return $urlIFrame;
|
125 |
}
|
126 |
|
app/code/community/Gsx/Globalshopex/Helper/Data.php
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Gsx_Globalshopex_Helper_Data extends Mage_Core_Helper_Abstract {
|
4 |
+
|
5 |
+
public function isClearCartEnable() {
|
6 |
+
return Mage::getStoreConfig("checkout/globalshopex/gsx_enableclearcart");
|
7 |
+
}
|
8 |
+
|
9 |
+
}
|
app/code/community/Gsx/Globalshopex/controllers/{GSXController.php → GsxController.php}
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class
|
3 |
{
|
4 |
public function indexAction()
|
5 |
{
|
1 |
<?php
|
2 |
+
class Gsx_Globalshopex_GsxController extends Mage_Core_Controller_Front_Action
|
3 |
{
|
4 |
public function indexAction()
|
5 |
{
|
app/code/community/Gsx/Globalshopex/controllers/GsxemptycartController.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Gsx_Globalshopex_GsxemptycartController extends Mage_Core_Controller_Front_Action {
|
4 |
+
|
5 |
+
public function indexAction() {
|
6 |
+
$quoteId = $this->getRequest()->getParam('quoteid');
|
7 |
+
|
8 |
+
$cart = Mage::getModel('sales/quote')->load($quoteId);
|
9 |
+
|
10 |
+
$cart->delete();
|
11 |
+
}
|
12 |
+
|
13 |
+
}
|
app/code/community/Gsx/Globalshopex/controllers/TrackingController.php
CHANGED
@@ -1,21 +1,10 @@
|
|
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 |
-
|
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 |
-
$this->renderLayout();
|
18 |
|
|
|
|
|
|
|
19 |
}
|
|
|
20 |
}
|
21 |
-
?>
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
+
class Gsx_Globalshopex_TrackingController extends Mage_Core_Controller_Front_Action {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
+
public function indexAction() {
|
6 |
+
$this->loadLayout();
|
7 |
+
$this->renderLayout();
|
8 |
}
|
9 |
+
|
10 |
}
|
|
app/code/community/Gsx/Globalshopex/etc/config.xml
CHANGED
@@ -1,48 +1,53 @@
|
|
1 |
<config>
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
|
8 |
-
|
9 |
<blocks>
|
10 |
<globalshopex>
|
11 |
<class>Gsx_Globalshopex_Block</class>
|
12 |
</globalshopex>
|
13 |
</blocks>
|
|
|
|
|
|
|
|
|
|
|
14 |
</global>
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
</config>
|
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 |
+
<helpers>
|
15 |
+
<gsx_globalshopex>
|
16 |
+
<class>Gsx_Globalshopex_Helper</class>
|
17 |
+
</gsx_globalshopex>
|
18 |
+
</helpers>
|
19 |
</global>
|
20 |
|
21 |
+
<frontend>
|
22 |
+
<routers>
|
23 |
+
<gsxinternationalcheckout>
|
24 |
+
<use>standard</use>
|
25 |
+
<args>
|
26 |
+
<module>Gsx_Globalshopex</module>
|
27 |
+
<frontName>gsxinternationalcheckout</frontName>
|
28 |
+
</args>
|
29 |
+
</gsxinternationalcheckout>
|
30 |
+
</routers>
|
31 |
+
<layout>
|
32 |
+
<updates>
|
33 |
+
<globalshopex>
|
34 |
+
<file>globalshopex.xml</file>
|
35 |
+
</globalshopex>
|
36 |
+
</updates>
|
37 |
+
</layout>
|
38 |
+
</frontend>
|
39 |
|
40 |
+
<default>
|
41 |
+
<checkout>
|
42 |
+
<globalshopex>
|
43 |
+
<gsx_active>0</gsx_active>
|
44 |
+
<typeintegration>0</typeintegration>
|
45 |
+
<gsx_is_live>0</gsx_is_live>
|
46 |
+
<gsx_enablehttps>0</gsx_enablehttps>
|
47 |
+
<gsx_local_shipping>0</gsx_local_shipping>
|
48 |
+
<gsx_local_shippingexp>0</gsx_local_shippingexp>
|
49 |
+
<typeintegration>1</typeintegration>
|
50 |
+
</globalshopex>
|
51 |
+
</checkout>
|
52 |
+
</default>
|
53 |
</config>
|
app/code/community/Gsx/Globalshopex/etc/system.xml
CHANGED
@@ -1,183 +1,199 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
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 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
<![CDATA[
|
41 |
<ul>
|
42 |
<li>If you select Iframe.</li>
|
43 |
<li>If you Select Cart To Cart</li>
|
44 |
</ul>
|
45 |
]]>
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
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 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
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 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
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 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
<![CDATA[
|
105 |
<span>You may edit the name Css Class of the international checkout button here. </span>
|
106 |
]]>
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
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 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
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 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
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 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
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 |
-
|
162 |
-
|
163 |
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
<![CDATA[
|
173 |
Enter the name of field for restricted items.
|
174 |
]]>
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
</config>
|
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 |
+
<gsx_enableclearcart translate="label">
|
178 |
+
<label>Clear Cart</label>
|
179 |
+
<frontend_type>select</frontend_type>
|
180 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
181 |
+
<sort_order>15</sort_order>
|
182 |
+
<show_in_default>1</show_in_default>
|
183 |
+
<show_in_website>1</show_in_website>
|
184 |
+
<show_in_store>1</show_in_store>
|
185 |
+
<comment>
|
186 |
+
<![CDATA[
|
187 |
+
<ul>
|
188 |
+
<li>Yes: Clear customer cart after the checkout in Globalshopex.</li>
|
189 |
+
<li>No: The cart remains after the checkout in Globalshopex.</li>
|
190 |
+
</ul>
|
191 |
+
]]>
|
192 |
+
</comment>
|
193 |
+
</gsx_enableclearcart>
|
194 |
+
</fields>
|
195 |
+
</globalshopex>
|
196 |
+
</groups>
|
197 |
+
</checkout>
|
198 |
+
</sections>
|
199 |
</config>
|
app/design/frontend/base/default/layout/globalshopex.xml
CHANGED
@@ -1,21 +1,32 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<layout version="0.0.1">
|
3 |
-
|
4 |
-
|
5 |
<reference name="checkout.cart">
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
</reference>
|
14 |
</reference>
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
</layout>
|
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 |
+
<gsxinternationalcheckout_tracking_index>
|
22 |
+
<reference name="root">
|
23 |
+
<action method="setTemplate">
|
24 |
+
<template>page/1column.phtml</template>
|
25 |
+
</action>
|
26 |
+
<reference name="content">
|
27 |
+
<block type="page/html" name="mmv.cotizador.automatico" output="toHtml" template="globalshopex/contentTracking.phtml">
|
28 |
+
</block>
|
29 |
+
</reference>
|
30 |
+
</reference>
|
31 |
+
</gsxinternationalcheckout_tracking_index>
|
32 |
</layout>
|
app/design/frontend/base/default/template/globalshopex/contentTracking.phtml
CHANGED
@@ -1,19 +1,18 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
?>
|
4 |
-
|
5 |
<div class="col-main">
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
</div>
|
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 |
+
<iframe id="Gsframe" name="Gsframe" frameborder="0" scrolling="auto" height="800px" width="100%" allowtransparency="true" onload="hideProgress()">GlobalShopex International checkout Order Tracking</iframe>
|
10 |
+
<form name="frmPP" id="frmPP" method="post" action="https://globalshopex.com/iframe/OrderTracking.aspx" target="Gsframe">
|
11 |
+
<div runat="server" id="itemInfo">
|
12 |
+
<input type="hidden" name="MerchantID" value="<?php echo $merchant_id; ?>" />
|
13 |
+
</form>
|
14 |
+
<script type="text/javascript">document.getElementById('frmPP').submit();</script>
|
15 |
+
</td>
|
16 |
+
</tr>
|
17 |
+
</table>
|
18 |
+
</div>
|
|
app/design/frontend/base/default/template/globalshopex/formiframe.phtml
CHANGED
@@ -1,108 +1,118 @@
|
|
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%;
|
29 |
</iframe>
|
30 |
<form name="frmPP" id="frmPP" method="post" action="https://globalshopex.com/iframe/InternationalCheckout.aspx" target="Gsframe" >
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
-
|
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 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
</form>
|
105 |
|
106 |
<script language="javascript" type="text/javascript">
|
107 |
-
|
108 |
</script>
|
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%;" 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 |
+
if (Mage::helper('core')->isModuleEnabled('Gsx_Localization')) {
|
34 |
+
echo '<input type="hidden" name="Destination" value="' . $currentCountry = Mage::helper('gsx_localization')->getCurrentCountry() . '">';
|
35 |
+
echo '<input type="hidden" name="Currency" value="' . $currentCountry = Mage::helper('gsx_localization')->getCurrentCurrencyCode() . '">';
|
36 |
+
}
|
37 |
+
?>
|
38 |
+
<?php if (Mage::helper('gsx_globalshopex')->isClearCartEnable()) { ?>
|
39 |
+
<input type="hidden" name="URLCart" value="<?php echo $this->urlToIframePage() . "emptycart?quoteid=" . Mage::getSingleton('checkout/session')->getQuote()->getId(); ?>" />
|
40 |
+
<?php
|
41 |
+
}
|
42 |
+
$imgWidth = 75;
|
43 |
+
$imgHeight = 75;
|
44 |
|
45 |
+
$GSX_restriction_attribute = $this->getNameRestrictedItem();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
+
$session = Mage::getSingleton('checkout/session');
|
48 |
+
$inputsGsxCart = "";
|
49 |
+
$i = 1;
|
50 |
+
foreach ($session->getQuote()->getAllVisibleItems() as $item) {
|
51 |
+
$item_ID = $item->getProductId();
|
52 |
+
$_Product = Mage::getModel('catalog/product')->load($item_ID);
|
53 |
+
$ProductPrice = $item->getPrice();
|
54 |
+
$ProductPrice = substr($ProductPrice, 0, strrpos($ProductPrice, ".") + 3);
|
55 |
+
$ProductWeight = $_Product->getWeight();
|
56 |
+
$ProductWeight = substr($ProductWeight, 0, strrpos($ProductWeight, ".") + 3);
|
57 |
+
|
58 |
+
if ($ProductWeight == "")
|
59 |
+
$ProductWeight = "0";
|
60 |
+
|
61 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductSKU$i\" value=\"" . $_Product->getSku() . "\"/>\n";
|
62 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductDesc$i\" value=\"" . $this->buildItemDescription($item) . "\"/>\n";
|
63 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductLink$i\" value=\"" . $this->getProductUrl($item) . "\"/>\n";
|
64 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductQty$i\" value=\"" . $item->getQty() . "\"/>\n";
|
65 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductPrice$i\" value=\"" . $ProductPrice . "\"/>\n";
|
66 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductSize$i\" value=\"" . $this->getSize($item) . "\"/>\n";
|
67 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductColor$i\" value=\"" . $this->getColor($item) . "\"/>\n";
|
68 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductWeight$i\" value=\"" . $ProductWeight . "\"/>\n";
|
69 |
+
|
70 |
+
if ($item->getCountry() != "")
|
71 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductCountry$i\" value=\"" . $item->getCountry() . "\"/>\n";
|
72 |
+
if ($item->getBrand($item) != "")
|
73 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductBrand$i\" value=\"" . $this->getBrand($item) . "\"/>\n";
|
74 |
+
|
75 |
+
if ($GSX_restriction_attribute != "") {
|
76 |
+
$attributes = Mage::getResourceModel('eav/entity_attribute_collection')
|
77 |
+
->setEntityTypeFilter($_Product->getResource()->getTypeId())
|
78 |
+
->addFieldToFilter('attribute_code', $GSX_restriction_attribute)
|
79 |
+
->load(false);
|
80 |
+
|
81 |
+
$attribute = $attributes->getFirstItem()->setEntity($_Product->getResource());
|
82 |
+
$manufac = $attribute->getSource()->getAllOptions(false);
|
83 |
+
foreach ($manufac as $man) {
|
84 |
+
$intshiping[$man['value']] = $man['label'];
|
85 |
+
}
|
86 |
+
if ($_Product->getData($GSX_restriction_attribute) == '1')
|
87 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"Restricted$i\" value='1'/>\n";
|
88 |
+
}
|
89 |
+
|
90 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductImage$i\" value=\"" . $this->getProductThumbnail($item)->resize($imgWidth) . "\"/>\n";
|
91 |
+
$i++;
|
92 |
+
}
|
93 |
+
echo $inputsGsxCart;
|
94 |
+
$GSX_totals = $session->getQuote()->getData();
|
95 |
+
$coupon_code = $GSX_totals['coupon_code'];
|
96 |
+
$discount = $GSX_totals['subtotal'] - $GSX_totals['subtotal_with_discount'];
|
97 |
+
$perc = ($discount * 100) / $GSX_totals['subtotal'];
|
98 |
+
$perc = round($perc, 2);
|
99 |
+
?>
|
100 |
+
|
101 |
+
<?php
|
102 |
+
if ($coupon_code != "") {
|
103 |
+
?>
|
104 |
+
<input type="hidden" name="ODiscount" value="<?php echo $perc; ?>" />
|
105 |
+
<input type="hidden" name="ODiscCode" value="<?php echo $coupon_code; ?>" />
|
106 |
+
<input type="hidden" name="ODiscPerc" value="1" />
|
107 |
+
<?php
|
108 |
+
}
|
109 |
+
?>
|
110 |
+
<?php
|
111 |
+
echo $this->getLocalshipping_EXP();
|
112 |
+
echo $this->getLocalshipping();
|
113 |
+
?>
|
114 |
</form>
|
115 |
|
116 |
<script language="javascript" type="text/javascript">
|
117 |
+
document.getElementById('frmPP').submit();
|
118 |
</script>
|
app/design/frontend/base/default/template/globalshopex/{Login.phtml → login.phtml}
RENAMED
@@ -8,7 +8,7 @@
|
|
8 |
<p>Tracking Globalshopex.com</p>
|
9 |
</div>
|
10 |
<div class="buttons-set">
|
11 |
-
<form action="<?php echo Mage::getBaseUrl() ?>
|
12 |
<button type="submit" type="button" title="Tracking Globalshopex.com click here" class="button">
|
13 |
<span>
|
14 |
<span>Click here</span>
|
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>
|
app/design/frontend/default/default/layout/globalshopex.xml
CHANGED
@@ -1,21 +1,21 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<layout version="0.0.1">
|
3 |
-
|
4 |
-
|
5 |
<reference name="checkout.cart">
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
</reference>
|
14 |
</reference>
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
</layout>
|
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/formiframe.phtml
CHANGED
@@ -1,106 +1,116 @@
|
|
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%;
|
29 |
</iframe>
|
30 |
<form name="frmPP" id="frmPP" method="post" action="https://globalshopex.com/iframe/InternationalCheckout.aspx" target="Gsframe" >
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
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 |
-
|
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 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
</form>
|
103 |
|
104 |
<script language="javascript" type="text/javascript">
|
105 |
-
|
106 |
</script>
|
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%;" 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 |
+
if (Mage::helper('core')->isModuleEnabled('Gsx_Localization')) {
|
34 |
+
echo '<input type="hidden" name="Destination" value="' . $currentCountry = Mage::helper('gsx_localization')->getCurrentCountry() . '">';
|
35 |
+
echo '<input type="hidden" name="Currency" value="' . $currentCountry = Mage::helper('gsx_localization')->getCurrentCurrencyCode() . '">';
|
36 |
+
}
|
37 |
+
?>
|
38 |
+
<?php if (Mage::helper('gsx_globalshopex')->isClearCartEnable()) { ?>
|
39 |
+
<input type="hidden" name="URLCart" value="<?php echo $this->urlToIframePage() . "emptycart?quoteid=" . Mage::getSingleton('checkout/session')->getQuote()->getId(); ?>" />
|
40 |
+
<?php
|
41 |
+
}
|
42 |
+
$imgWidth = 75;
|
43 |
+
$imgHeight = 75;
|
44 |
|
45 |
+
$session = Mage::getSingleton('checkout/session');
|
46 |
+
$inputsGsxCart = "";
|
47 |
+
$i = 1;
|
48 |
+
foreach ($session->getQuote()->getAllVisibleItems() as $item) {
|
49 |
+
$item_ID = $item->getProductId();
|
50 |
+
$_Product = Mage::getModel('catalog/product')->load($item_ID);
|
51 |
+
$ProductPrice = $item->getPrice();
|
52 |
+
$ProductPrice = substr($ProductPrice, 0, strrpos($ProductPrice, ".") + 3);
|
53 |
+
$ProductWeight = $_Product->getWeight();
|
54 |
+
$ProductWeight = substr($ProductWeight, 0, strrpos($ProductWeight, ".") + 3);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
|
56 |
+
if ($ProductWeight == "")
|
57 |
+
$ProductWeight = "0";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
|
59 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductSKU$i\" value=\"" . $_Product->getSku() . "\"/>\n";
|
60 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductDesc$i\" value=\"" . $this->buildItemDescription($item) . "\"/>\n";
|
61 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductLink$i\" value=\"" . $this->getProductUrl($item) . "\"/>\n";
|
62 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductQty$i\" value=\"" . $item->getQty() . "\"/>\n";
|
63 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductPrice$i\" value=\"" . $ProductPrice . "\"/>\n";
|
64 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductSize$i\" value=\"" . $this->getSize($item) . "\"/>\n";
|
65 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductColor$i\" value=\"" . $this->getColor($item) . "\"/>\n";
|
66 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductWeight$i\" value=\"" . $ProductWeight . "\"/>\n";
|
67 |
+
|
68 |
+
if ($item->getCountry() != "")
|
69 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductCountry$i\" value=\"" . $item->getCountry() . "\"/>\n";
|
70 |
+
if ($item->getBrand($item) != "")
|
71 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductBrand$i\" value=\"" . $this->getBrand($item) . "\"/>\n";
|
72 |
+
|
73 |
+
$attributes = Mage::getResourceModel('eav/entity_attribute_collection')
|
74 |
+
->setEntityTypeFilter($_Product->getResource()->getTypeId())
|
75 |
+
->addFieldToFilter('attribute_code', $GSX_restriction_attribute)
|
76 |
+
->load(false);
|
77 |
+
|
78 |
+
$attribute = $attributes->getFirstItem()->setEntity($_Product->getResource());
|
79 |
+
$manufac = $attribute->getSource()->getAllOptions(false);
|
80 |
+
foreach ($manufac as $man) {
|
81 |
+
$intshiping[$man['value']] = $man['label'];
|
82 |
+
}
|
83 |
+
|
84 |
+
|
85 |
+
if ($_Product->getData($GSX_restriction_attribute) == '1')
|
86 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"Restricted$i\" value='1'/>\n";
|
87 |
+
|
88 |
+
$inputsGsxCart .= "<input type=\"hidden\" name=\"ProductImage$i\" value=\"" . $this->getProductThumbnail($item)->resize($imgWidth) . "\"/>\n";
|
89 |
+
$i++;
|
90 |
+
}
|
91 |
+
echo $inputsGsxCart;
|
92 |
+
$GSX_totals = $session->getQuote()->getData();
|
93 |
+
$coupon_code = $GSX_totals['coupon_code'];
|
94 |
+
$discount = $GSX_totals['subtotal'] - $GSX_totals['subtotal_with_discount'];
|
95 |
+
$perc = ($discount * 100) / $GSX_totals['subtotal'];
|
96 |
+
$perc = round($perc, 2);
|
97 |
+
?>
|
98 |
+
|
99 |
+
<?php
|
100 |
+
if ($coupon_code != "") {
|
101 |
+
?>
|
102 |
+
<input type="hidden" name="ODiscount" value="<?php echo $perc; ?>" />
|
103 |
+
<input type="hidden" name="ODiscCode" value="<?php echo $coupon_code; ?>" />
|
104 |
+
<input type="hidden" name="ODiscPerc" value="1" />
|
105 |
+
<?php
|
106 |
+
}
|
107 |
+
?>
|
108 |
+
<?php
|
109 |
+
echo $this->getLocalshipping_EXP();
|
110 |
+
echo $this->getLocalshipping();
|
111 |
+
?>
|
112 |
</form>
|
113 |
|
114 |
<script language="javascript" type="text/javascript">
|
115 |
+
document.getElementById('frmPP').submit();
|
116 |
</script>
|
app/design/frontend/default/default/template/globalshopex/{Login.phtml → login.phtml}
RENAMED
@@ -8,7 +8,7 @@
|
|
8 |
<p>Tracking Globalshopex.com</p>
|
9 |
</div>
|
10 |
<div class="buttons-set">
|
11 |
-
<form action="<?php echo Mage::getBaseUrl() ?>
|
12 |
<button type="submit" type="button" title="Tracking Globalshopex.com click here" class="button">
|
13 |
<span>
|
14 |
<span>Click here</span>
|
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>
|
app/etc/modules/Gsx_Globalshopex.xml
CHANGED
@@ -5,8 +5,8 @@
|
|
5 |
<active>true</active>
|
6 |
<codePool>community</codePool>
|
7 |
</Gsx_Globalshopex>
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
</modules>
|
12 |
</config>
|
5 |
<active>true</active>
|
6 |
<codePool>community</codePool>
|
7 |
</Gsx_Globalshopex>
|
8 |
+
<depends>
|
9 |
+
<Mage_Checkout />
|
10 |
+
</depends>
|
11 |
</modules>
|
12 |
</config>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>GSXInternationalCheckoutWithIframe</name>
|
4 |
-
<version>2.0
|
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>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-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Gsx"><dir name="Globalshopex"><dir name="Block"><file name="Internationallogic.php" hash="
|
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.5.0</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>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-12-28</date>
|
14 |
+
<time>16:17:42</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Gsx"><dir name="Globalshopex"><dir name="Block"><file name="Internationallogic.php" hash="e57c2b9077dd25904165504e72a9e162"/></dir><dir name="Helper"><file name="Data.php" hash="7e3a22a7c3afd7e1c16886ad20a1002e"/></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="546a6bec92e9aa47215e092e2126bf77"/><file name="GsxemptycartController.php" hash="f432922192819ce6980eeea56a624598"/><file name="InvoiceController.php" hash="83684c21d0afc2b70a16f3df12493ce1"/><file name="TrackingController.php" hash="5ce2cdbd045ca062d2ff44b9ddb215e2"/></dir><dir name="etc"><file name="config.xml" hash="9c0e9a35563cb5f057095ded9339a534"/><file name="system.xml" hash="7f82828c8c37beeb20f3c0cb1441bdc0"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="globalshopex.xml" hash="dbf3873b7383349c162026208cbbc360"/></dir><dir name="template"><dir name="globalshopex"><file name="buttoniframe.phtml" hash="552e34556ce44f1cdc746020d12c0e5e"/><file name="contentInvoice.phtml" hash="2fb0bc3fbcfb69dae8327a2242165ad4"/><file name="contentTracking.phtml" hash="feb1e49e8f13071098a8cbd50dab4759"/><file name="formcarttocart.phtml" hash="fbb3ace6394cd1769c37a7c1c02fc9f9"/><file name="formiframe.phtml" hash="23ef9e1a3341324f8a003cacef2aa4a4"/><file name="login.phtml" hash="e0336dde1d4dec2c1a6f9480cd62efee"/><file name="switchtypecart.phtml" hash="10c03f0fd5ada46ffb9c5f23dc782054"/></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="layout"><file name="globalshopex.xml" hash="71dae5c89e9a3ab16974691e82d8ae53"/></dir><dir name="template"><dir name="globalshopex"><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="4bd4c808223c68ca1150becee00f4f41"/><file name="login.phtml" hash="e0336dde1d4dec2c1a6f9480cd62efee"/><file name="switchtypecart.phtml" hash="10c03f0fd5ada46ffb9c5f23dc782054"/></dir></dir></dir></dir></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><target name="mageetc"><dir name="modules"><file name="Gsx_Globalshopex.xml" hash="b2d4fb7a215175c62d0380416285d8b2"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
+
<dependencies><required><php><min>4.0.1</min><max>5.5.30</max></php></required></dependencies>
|
18 |
</package>
|