Version Notes
- Este módulo possui um pacote de alteração de layout, que pode ser instalado posteriormente.
Download this release
Release Info
Developer | Gabriel Zamprogna |
Extension | Indexa_Fretefacil |
Version | 0.2.0 |
Comparing to | |
See all releases |
Code changes from version 0.1.0 to 0.2.0
app/code/local/Indexa/Fretefacil/Model/Checkout/Type/Onepage.php
CHANGED
@@ -43,15 +43,15 @@ class Indexa_Fretefacil_Model_Checkout_Type_Onepage extends Mage_Checkout_Model_
|
|
43 |
/**
|
44 |
* define payment methods to check
|
45 |
*/
|
46 |
-
$paypal_methods[] =
|
47 |
-
|
48 |
-
|
49 |
-
$paypal_methods[] =
|
50 |
-
$paypal_methods[] =
|
51 |
-
$paypal_methods[] =
|
52 |
-
$paypal_methods[] =
|
53 |
-
$paypal_methods[] =
|
54 |
-
$paypal_methods[] =
|
55 |
|
56 |
/**
|
57 |
* check if fretefacil is selected as shipping method
|
43 |
/**
|
44 |
* define payment methods to check
|
45 |
*/
|
46 |
+
$paypal_methods[] = 'paypal_billing_agreement';
|
47 |
+
$paypal_methods[] = 'hosted_pro';
|
48 |
+
$paypal_methods[] = 'payflow_link';
|
49 |
+
$paypal_methods[] = 'verisign';
|
50 |
+
$paypal_methods[] = 'paypal_express';
|
51 |
+
$paypal_methods[] = 'paypal_direct';
|
52 |
+
$paypal_methods[] = 'paypaluk_direct';
|
53 |
+
$paypal_methods[] = 'paypaluk_express';
|
54 |
+
$paypal_methods[] = 'paypal_standard';
|
55 |
|
56 |
/**
|
57 |
* check if fretefacil is selected as shipping method
|
app/code/local/Indexa/Fretefacil/etc/config.xml
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
<config>
|
13 |
<modules>
|
14 |
<Indexa_Fretefacil>
|
15 |
-
<version>0.
|
16 |
<depends>
|
17 |
<Mage_Shipping />
|
18 |
</depends>
|
12 |
<config>
|
13 |
<modules>
|
14 |
<Indexa_Fretefacil>
|
15 |
+
<version>0.2.0</version>
|
16 |
<depends>
|
17 |
<Mage_Shipping />
|
18 |
</depends>
|
app/code/local/Indexa/Fretefacil/sql/fretefacil_setup/mysql4-install-0.1.0.php
CHANGED
@@ -103,22 +103,23 @@ if (is_null($start_id) || !is_numeric($start_id))
|
|
103 |
* Insert paypal attributes on "Default" Attribute set, to calculate shipping price
|
104 |
*/
|
105 |
$installer->run("
|
106 |
-
|
107 |
INSERT INTO {$installer->getTable('eav/attribute')} (entity_type_id, attribute_code, backend_type, frontend_input, frontend_label, is_required, is_user_defined) VALUES (4, 'paypal_altura', 'text', 'text', 'Altura', 0, 1);
|
108 |
-
INSERT INTO {$installer->getTable('
|
109 |
-
INSERT INTO {$installer->getTable('eav/entity_attribute')} ( entity_type_id, attribute_set_id, attribute_group_id, attribute_id, sort_order ) VALUES ( '4', '4', '7', ( SELECT attribute_id FROM eav_attribute WHERE attribute_code = 'paypal_altura' ) , 6 );
|
110 |
-
|
111 |
|
112 |
INSERT INTO {$installer->getTable('eav/attribute')} (entity_type_id, attribute_code, backend_type, frontend_input, frontend_label, is_required, is_user_defined) VALUES (4, 'paypal_largura', 'text', 'text', 'Largura', 0, 1);
|
113 |
-
INSERT INTO {$installer->getTable('
|
114 |
-
INSERT INTO {$installer->getTable('eav/entity_attribute')} ( entity_type_id, attribute_set_id, attribute_group_id, attribute_id, sort_order ) VALUES ( '4', '4', '7', ( SELECT attribute_id FROM eav_attribute WHERE attribute_code = 'paypal_largura' ) , 6 );
|
115 |
-
|
116 |
|
117 |
INSERT INTO {$installer->getTable('eav/attribute')} (entity_type_id, attribute_code, backend_type, frontend_input, frontend_label, is_required, is_user_defined) VALUES (4, 'paypal_comprimento', 'text', 'text', 'Comprimento', 0, 1);
|
118 |
-
INSERT INTO {$installer->getTable('
|
119 |
-
|
120 |
|
|
|
|
|
|
|
|
|
|
|
121 |
");
|
|
|
122 |
|
123 |
$installer->getConnection()
|
124 |
->commit();
|
@@ -129,4 +130,4 @@ $installer->getConnection()
|
|
129 |
|
130 |
|
131 |
|
132 |
-
$installer->endSetup();
|
103 |
* Insert paypal attributes on "Default" Attribute set, to calculate shipping price
|
104 |
*/
|
105 |
$installer->run("
|
|
|
106 |
INSERT INTO {$installer->getTable('eav/attribute')} (entity_type_id, attribute_code, backend_type, frontend_input, frontend_label, is_required, is_user_defined) VALUES (4, 'paypal_altura', 'text', 'text', 'Altura', 0, 1);
|
107 |
+
INSERT INTO {$installer->getTable('eav/entity_attribute')} ( entity_type_id, attribute_set_id, attribute_group_id, attribute_id, sort_order ) VALUES ( '4', '4', (SELECT attribute_group_id FROM eav_attribute_group WHERE attribute_set_id = 4 AND attribute_group_name = 'General'), ( SELECT attribute_id FROM eav_attribute WHERE attribute_code = 'paypal_altura' ) , 6 );
|
|
|
|
|
108 |
|
109 |
INSERT INTO {$installer->getTable('eav/attribute')} (entity_type_id, attribute_code, backend_type, frontend_input, frontend_label, is_required, is_user_defined) VALUES (4, 'paypal_largura', 'text', 'text', 'Largura', 0, 1);
|
110 |
+
INSERT INTO {$installer->getTable('eav/entity_attribute')} ( entity_type_id, attribute_set_id, attribute_group_id, attribute_id, sort_order ) VALUES ( '4', '4', (SELECT attribute_group_id FROM eav_attribute_group WHERE attribute_set_id = 4 AND attribute_group_name = 'General'), ( SELECT attribute_id FROM eav_attribute WHERE attribute_code = 'paypal_largura' ) , 6 );
|
|
|
|
|
111 |
|
112 |
INSERT INTO {$installer->getTable('eav/attribute')} (entity_type_id, attribute_code, backend_type, frontend_input, frontend_label, is_required, is_user_defined) VALUES (4, 'paypal_comprimento', 'text', 'text', 'Comprimento', 0, 1);
|
113 |
+
INSERT INTO {$installer->getTable('eav/entity_attribute')} ( entity_type_id, attribute_set_id, attribute_group_id, attribute_id, sort_order ) VALUES ( '4', '4', (SELECT attribute_group_id FROM eav_attribute_group WHERE attribute_set_id = 4 AND attribute_group_name = 'General'), ( SELECT attribute_id FROM eav_attribute WHERE attribute_code = 'paypal_comprimento' ) , 6 );
|
114 |
+
");
|
115 |
|
116 |
+
if( defined('Mage_Catalog_Model_Resource_Eav_Attribute::ENTITY') ){
|
117 |
+
$installer->run("
|
118 |
+
INSERT INTO {$installer->getTable('catalog/eav_attribute')} ( attribute_id, is_global, is_visible ) VALUES (( SELECT attribute_id FROM eav_attribute WHERE attribute_code = 'paypal_largura' ) , 1, 1 );
|
119 |
+
INSERT INTO {$installer->getTable('catalog/eav_attribute')} ( attribute_id, is_global, is_visible ) VALUES (( SELECT attribute_id FROM eav_attribute WHERE attribute_code = 'paypal_altura' ) , 1, 1 );
|
120 |
+
INSERT INTO {$installer->getTable('catalog/eav_attribute')} ( attribute_id, is_global, is_visible ) VALUES (( SELECT attribute_id FROM eav_attribute WHERE attribute_code = 'paypal_comprimento' ) , 1, 1 );
|
121 |
");
|
122 |
+
}
|
123 |
|
124 |
$installer->getConnection()
|
125 |
->commit();
|
130 |
|
131 |
|
132 |
|
133 |
+
$installer->endSetup();
|
package.xml
CHANGED
@@ -1,18 +1,19 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Indexa_Fretefacil</name>
|
4 |
-
<version>0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Módulo de integração com o Frete Fácil, serviço de envio do Paypal.</summary>
|
10 |
<description>Módulo de integração com o Frete Fácil, serviço de envio do Paypal.</description>
|
11 |
-
<notes>- Este módulo possui um pacote de alteração de layout, que pode ser instalado posteriormente
|
12 |
-
|
13 |
-
<
|
14 |
-
<
|
15 |
-
<
|
|
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Indexa_Fretefacil</name>
|
4 |
+
<version>0.2.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Módulo de integração com o Frete Fácil, serviço de envio do Paypal.</summary>
|
10 |
<description>Módulo de integração com o Frete Fácil, serviço de envio do Paypal.</description>
|
11 |
+
<notes>- Este módulo possui um pacote de alteração de layout, que pode ser instalado posteriormente.
|
12 |
+
</notes>
|
13 |
+
<authors><author><name>Gabriel Zamprogna</name><user>gabrielz</user><email>gabriel@indexainternet.com.br</email></author><author><name>PayPal Brasil</name><user>paypalbr</user><email>mnegrini@paypal.com</email></author></authors>
|
14 |
+
<date>2012-01-20</date>
|
15 |
+
<time>13:38:12</time>
|
16 |
+
<contents><target name="magelocal"><dir name="Indexa"><dir name="Fretefacil"><dir name="Helper"><file name="Data.php" hash="1a17a0127355eaa1fc2672d1f538aafb"/></dir><dir name="Model"><dir name="Carrier"><file name="Indexafretefacil.php" hash="935586a548c4d86fc136f49713291d61"/></dir><dir name="Checkout"><dir name="Type"><file name="Onepage.php" hash="831ba0a03591f9caf26d804e9aac6006"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="18df9bf4d929e299e13f6b5f6769c158"/><file name="system.xml" hash="ff2876692455e503af5d8892db111137"/></dir><dir name="sql"><dir name="fretefacil_setup"><file name="mysql4-install-0.1.0.php" hash="abdca151c0c15de86e32c102011e6414"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Indexa_Fretefacil.xml" hash="8153edf3f8708215d69dfaaa3a3f7c0a"/></dir></target></contents>
|
17 |
<compatible/>
|
18 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
19 |
</package>
|