Version Notes
Form select-valid
Download this release
Release Info
Developer | MOIP |
Extension | o2ti_moip |
Version | 1.3.10 |
Comparing to | |
See all releases |
Code changes from version 1.3.0 to 1.3.10
- app/code/local/MOIP/.DS_Store +0 -0
- app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/Form/Renderer/Config/Createfield.php +0 -38
- app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/Onestepcheckout.php +1 -1
- app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Edit.php +1 -1
- app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Edit/Form.php +0 -19
- app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Edit/Tab/Form.php +0 -58
- app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Edit/Tabs.php +0 -24
- app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Grid.php +0 -116
- app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Sales/Order/Grid.php +0 -201
- app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Sales/Order/View/Tab/Info/Customermessages.php +1 -1
- app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Sales/Order/View/Tab/Info/Deliverydate.php +0 -9
- app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/Onestepcheckout/System/Config/Form/Field/Addtimerange.php +0 -18
- app/code/local/MOIP/Onestepcheckout/Block/Checkout/Onepage/Billing.php +1 -1
- app/code/local/MOIP/Onestepcheckout/Block/Checkout/Onepage/Billing/Sortbilling.php +1 -1
- app/code/local/MOIP/Onestepcheckout/Block/Checkout/Onepage/Review/Options.php +1 -1
- app/code/local/MOIP/Onestepcheckout/Block/Checkout/Onepage/Shipping/Sortshipping.php +0 -28
- app/code/local/MOIP/Onestepcheckout/Block/Checkout/Top.php +0 -35
- app/code/local/MOIP/Onestepcheckout/Block/Onestepcheckout.php +1 -1
- app/code/local/MOIP/Onestepcheckout/Block/Sales/Info/Deliverydate.php +0 -9
- app/code/local/MOIP/Onestepcheckout/Model/Customer/Customer.php +4 -36
- app/code/local/MOIP/Onestepcheckout/Model/Entity/Tipopessoa.php +0 -20
- app/code/local/MOIP/Onestepcheckout/Model/Mysql4/Onestepcheckout.php +1 -1
- app/code/local/MOIP/Onestepcheckout/Model/Mysql4/Onestepcheckout/Collection.php +1 -1
- app/code/local/MOIP/Onestepcheckout/Model/Sales/Quote/Address.php +33 -82
- app/code/local/MOIP/Onestepcheckout/Model/Shipping/Allowedmethods.php +0 -41
- app/code/local/MOIP/Onestepcheckout/Model/System/Config/Source/Shipping/Allowedmethods.php +0 -41
- app/code/local/MOIP/Onestepcheckout/Model/System/Config/Source/form/Createfield.php +0 -38
- app/code/local/MOIP/Onestepcheckout/controllers/Adminhtml/OnestepcheckoutController.php +0 -179
- app/code/local/MOIP/Onestepcheckout/controllers/IndexController.php +9 -13
- app/code/local/MOIP/Onestepcheckout/controllers/TestController.php +1 -1
- app/code/local/MOIP/Transparente/Block/Adminhtml/moip/Info/Customermessages.php +1 -1
- app/code/local/MOIP/Transparente/Block/Standard/CartSave.php +79 -0
- app/code/local/MOIP/Transparente/Block/Standard/Form.php +47 -28
- app/code/local/MOIP/Transparente/Block/Standard/Novaforma.php +1 -1
- app/code/local/MOIP/Transparente/Block/Standard/Redirect.php +76 -24
- app/code/local/MOIP/Transparente/Helper/Data.php +1 -1
- app/code/local/MOIP/Transparente/Model/.ftpquota +0 -1
- app/code/local/MOIP/Transparente/Model/Api.php +6 -4
- app/code/local/MOIP/Transparente/Model/Mysql4/Collection.php +3 -3
- app/code/local/MOIP/Transparente/Model/Mysql4/Write.php +1 -1
- app/code/local/MOIP/Transparente/Model/Observer.php +2 -163
- app/code/local/MOIP/Transparente/Model/Resource/Custommodel.php +9 -0
- app/code/local/MOIP/Transparente/Model/Standard.php +15 -2
- app/code/local/MOIP/Transparente/Model/Write.php +1 -1
- app/code/local/MOIP/Transparente/controllers/IndexController.php +16 -1
- app/code/local/MOIP/Transparente/controllers/StandardController.php +75 -48
- app/code/local/MOIP/Transparente/etc/adminhtml.xml +1 -1
- app/code/local/MOIP/Transparente/etc/config.xml +3 -2
- app/code/local/MOIP/Transparente/etc/system.xml +13 -1
- app/code/local/MOIP/Transparente/sql/transparente_setup/mysql4-upgrade-0.2.0-0.2.1.php +24 -0
- app/design/adminhtml/default/default/template/MOIP/onestepcheckout/sales/order/view/tab/info/Deliverydate.phtml +0 -31
- app/design/frontend/base/default/layout/moip_onestepcheckout.xml +26 -22
- app/design/frontend/base/default/layout/moip_transparente.xml +67 -57
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard.phtml +103 -656
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/billing.phtml +14 -17
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/billing/billing_form.phtml +0 -217
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/billing/billingform.phtml +249 -0
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/coupon.phtml +14 -22
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/forgotpassword.phtml +50 -85
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/login.phtml +2 -3
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/payment.phtml +1 -1
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/payment/methods.phtml +4 -10
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/review.phtml +60 -57
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/review/info.phtml +0 -1
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/shipping/shipping_form.phtml +114 -119
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/shipping_method.phtml +1 -1
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/shipping_method/available.phtml +49 -81
- app/design/frontend/base/default/template/MOIP/onestepcheckout/onepage.phtml +503 -32
- app/design/frontend/base/default/template/MOIP/transparente/boleto.phtml +15 -66
- app/design/frontend/base/default/template/MOIP/transparente/cartao.phtml +148 -198
- app/design/frontend/base/default/template/MOIP/transparente/cartoes_my_account.phtml +77 -0
- app/design/frontend/base/default/template/MOIP/transparente/form.phtml +0 -682
- app/design/frontend/base/default/template/MOIP/transparente/horizontal_form.phtml +242 -418
- app/design/frontend/base/default/template/MOIP/transparente/info.phtml +51 -23
- app/design/frontend/base/default/template/MOIP/transparente/redirect.phtml +50 -1
- app/design/frontend/base/default/template/MOIP/transparente/refaz.phtml +7 -3
- app/design/frontend/base/default/template/MOIP/transparente/transferencia.phtml +9 -63
- app/design/frontend/base/default/template/MOIP/transparente/vertical_form.phtml +182 -114
- app/etc/modules/MOIP_Onestepcheckout.xml +1 -1
- js/MOIP/jquery.mask.min.js +1 -1
- js/MOIP/jquery_noconflict.js +1 -1
- js/MOIP/onestepcheckout/billing.js +3 -34
- js/MOIP/onestepcheckout/change-events.js +43 -2
- js/MOIP/script_mask.js +1 -1
- js/MOIP/transparente/bootstrap.min.js +1 -1
- js/MOIP/transparente/checkout.js +282 -143
- js/MOIP/validacao.js +1 -1
- package.xml +8 -6
- skin/frontend/base/default/MOIP/onestepcheckout/css/onestepcheckout.css +71 -54
- skin/frontend/base/default/MOIP/onestepcheckout/images/error-icon.jpg +0 -0
- skin/frontend/base/default/MOIP/onestepcheckout/images/passed-icon.jpg +0 -0
- skin/frontend/base/default/MOIP/transparente/css/bootstrap.css +1 -1
- skin/frontend/base/default/MOIP/transparente/css/cartao_save.css +53 -0
- skin/frontend/base/default/MOIP/transparente/css/{formulario.css → horizontal_form.css} +41 -5
- skin/frontend/base/default/MOIP/transparente/css/{formulario_horizontal.css → vertical_form.css} +31 -1
- skin/frontend/base/default/MOIP/transparente/imagem/correios_40010.gif +0 -0
- skin/frontend/base/default/MOIP/transparente/imagem/correios_41106.gif +0 -0
- skin/frontend/base/default/MOIP/transparente/imagem/correios_81019.gif +0 -0
app/code/local/MOIP/.DS_Store
DELETED
Binary file
|
app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/Form/Renderer/Config/Createfield.php
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class MOIP_Onestepcheckout_Block_Adminhtml_Form_Renderer_Config_Createfield extends Mage_Adminhtml_Block_System_Config_Form_Field
|
3 |
-
{
|
4 |
-
|
5 |
-
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
|
6 |
-
{
|
7 |
-
$_options = array(
|
8 |
-
'kaka' => Mage::helper('adminhtml')->__('kaak'),
|
9 |
-
'cici' => Mage::helper('adminhtml')->__('cici'),
|
10 |
-
);
|
11 |
-
$_options2 = array(
|
12 |
-
'pad' => Mage::helper('adminhtml')->__('require'),
|
13 |
-
'tps' => Mage::helper('adminhtml')->__('norequire'),
|
14 |
-
);
|
15 |
-
$element1=$element;
|
16 |
-
$element2=$element;
|
17 |
-
$element1->setValues($_options1)
|
18 |
-
->setStyle('width:70px;')
|
19 |
-
->setName($element1->getName() . '[]');
|
20 |
-
$element2->setValues($_options2)
|
21 |
-
->setStyle('width:170px;')
|
22 |
-
->setName($element2->getName() . '[]');
|
23 |
-
|
24 |
-
var_dump($element->getValue());die();
|
25 |
-
$_parts = array();
|
26 |
-
$_parts[0] = $element1->setValue(null)->getElementHtml();
|
27 |
-
|
28 |
-
$element2=$element;
|
29 |
-
$element2->setValues($_options2)
|
30 |
-
->setStyle('width:170px;')
|
31 |
-
->setName($element2->getName() . '[]');
|
32 |
-
|
33 |
-
$_parts[1] = $element2->setValue(null)->getElementHtml();
|
34 |
-
$_parts[] = $element->setValue(null)->getElementHtml();
|
35 |
-
return implode(' / ', $_parts);
|
36 |
-
}
|
37 |
-
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/Onestepcheckout.php
CHANGED
@@ -9,4 +9,4 @@ class MOIP_Onestepcheckout_Block_Adminhtml_Onestepcheckout extends Mage_Adminhtm
|
|
9 |
$this->_addButtonLabel = Mage::helper('onestepcheckout')->__('Add Item');
|
10 |
parent::__construct();
|
11 |
}
|
12 |
-
}
|
9 |
$this->_addButtonLabel = Mage::helper('onestepcheckout')->__('Add Item');
|
10 |
parent::__construct();
|
11 |
}
|
12 |
+
}
|
app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Edit.php
CHANGED
@@ -42,4 +42,4 @@ class MOIP_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Edit extends Mage_Adm
|
|
42 |
return Mage::helper('onestepcheckout')->__('Add Item');
|
43 |
}
|
44 |
}
|
45 |
-
}
|
42 |
return Mage::helper('onestepcheckout')->__('Add Item');
|
43 |
}
|
44 |
}
|
45 |
+
}
|
app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Edit/Form.php
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class MOIP_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
|
4 |
-
{
|
5 |
-
protected function _prepareForm()
|
6 |
-
{
|
7 |
-
$form = new Varien_Data_Form(array(
|
8 |
-
'id' => 'edit_form',
|
9 |
-
'action' => $this->getUrl('*/*/save', array('id' => $this->getRequest()->getParam('id'))),
|
10 |
-
'method' => 'post',
|
11 |
-
'enctype' => 'multipart/form-data'
|
12 |
-
)
|
13 |
-
);
|
14 |
-
|
15 |
-
$form->setUseContainer(true);
|
16 |
-
$this->setForm($form);
|
17 |
-
return parent::_prepareForm();
|
18 |
-
}
|
19 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Edit/Tab/Form.php
DELETED
@@ -1,58 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class MOIP_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
|
4 |
-
{
|
5 |
-
protected function _prepareForm()
|
6 |
-
{
|
7 |
-
$form = new Varien_Data_Form();
|
8 |
-
$this->setForm($form);
|
9 |
-
$fieldset = $form->addFieldset('onestepcheckout_form', array('legend'=>Mage::helper('onestepcheckout')->__('Item information')));
|
10 |
-
|
11 |
-
$fieldset->addField('title', 'text', array(
|
12 |
-
'label' => Mage::helper('onestepcheckout')->__('Title'),
|
13 |
-
'class' => 'required-entry',
|
14 |
-
'required' => true,
|
15 |
-
'name' => 'title',
|
16 |
-
));
|
17 |
-
|
18 |
-
$fieldset->addField('filename', 'file', array(
|
19 |
-
'label' => Mage::helper('onestepcheckout')->__('File'),
|
20 |
-
'required' => false,
|
21 |
-
'name' => 'filename',
|
22 |
-
));
|
23 |
-
|
24 |
-
$fieldset->addField('status', 'select', array(
|
25 |
-
'label' => Mage::helper('onestepcheckout')->__('Status'),
|
26 |
-
'name' => 'status',
|
27 |
-
'values' => array(
|
28 |
-
array(
|
29 |
-
'value' => 1,
|
30 |
-
'label' => Mage::helper('onestepcheckout')->__('Enabled'),
|
31 |
-
),
|
32 |
-
|
33 |
-
array(
|
34 |
-
'value' => 2,
|
35 |
-
'label' => Mage::helper('onestepcheckout')->__('Disabled'),
|
36 |
-
),
|
37 |
-
),
|
38 |
-
));
|
39 |
-
|
40 |
-
$fieldset->addField('content', 'editor', array(
|
41 |
-
'name' => 'content',
|
42 |
-
'label' => Mage::helper('onestepcheckout')->__('Content'),
|
43 |
-
'title' => Mage::helper('onestepcheckout')->__('Content'),
|
44 |
-
'style' => 'width:700px; height:500px;',
|
45 |
-
'wysiwyg' => false,
|
46 |
-
'required' => true,
|
47 |
-
));
|
48 |
-
|
49 |
-
if ( Mage::getSingleton('adminhtml/session')->getOnestepcheckoutData() )
|
50 |
-
{
|
51 |
-
$form->setValues(Mage::getSingleton('adminhtml/session')->getOnestepcheckoutData());
|
52 |
-
Mage::getSingleton('adminhtml/session')->setOnestepcheckoutData(null);
|
53 |
-
} elseif ( Mage::registry('onestepcheckout_data') ) {
|
54 |
-
$form->setValues(Mage::registry('onestepcheckout_data')->getData());
|
55 |
-
}
|
56 |
-
return parent::_prepareForm();
|
57 |
-
}
|
58 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Edit/Tabs.php
DELETED
@@ -1,24 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class MOIP_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
|
4 |
-
{
|
5 |
-
|
6 |
-
public function __construct()
|
7 |
-
{
|
8 |
-
parent::__construct();
|
9 |
-
$this->setId('onestepcheckout_tabs');
|
10 |
-
$this->setDestElementId('edit_form');
|
11 |
-
$this->setTitle(Mage::helper('onestepcheckout')->__('Item Information'));
|
12 |
-
}
|
13 |
-
|
14 |
-
protected function _beforeToHtml()
|
15 |
-
{
|
16 |
-
$this->addTab('form_section', array(
|
17 |
-
'label' => Mage::helper('onestepcheckout')->__('Item Information'),
|
18 |
-
'title' => Mage::helper('onestepcheckout')->__('Item Information'),
|
19 |
-
'content' => $this->getLayout()->createBlock('onestepcheckout/adminhtml_onestepcheckout_edit_tab_form')->toHtml(),
|
20 |
-
));
|
21 |
-
|
22 |
-
return parent::_beforeToHtml();
|
23 |
-
}
|
24 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Grid.php
DELETED
@@ -1,116 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class MOIP_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Grid extends Mage_Adminhtml_Block_Widget_Grid
|
4 |
-
{
|
5 |
-
public function __construct()
|
6 |
-
{
|
7 |
-
parent::__construct();
|
8 |
-
$this->setId('onestepcheckoutGrid');
|
9 |
-
$this->setDefaultSort('onestepcheckout_id');
|
10 |
-
$this->setDefaultDir('ASC');
|
11 |
-
$this->setSaveParametersInSession(true);
|
12 |
-
}
|
13 |
-
|
14 |
-
protected function _prepareCollection()
|
15 |
-
{
|
16 |
-
$collection = Mage::getModel('onestepcheckout/onestepcheckout')->getCollection();
|
17 |
-
$this->setCollection($collection);
|
18 |
-
return parent::_prepareCollection();
|
19 |
-
}
|
20 |
-
|
21 |
-
protected function _prepareColumns()
|
22 |
-
{
|
23 |
-
$this->addColumn('onestepcheckout_id', array(
|
24 |
-
'header' => Mage::helper('onestepcheckout')->__('ID'),
|
25 |
-
'align' =>'right',
|
26 |
-
'width' => '50px',
|
27 |
-
'index' => 'onestepcheckout_id',
|
28 |
-
));
|
29 |
-
|
30 |
-
$this->addColumn('title', array(
|
31 |
-
'header' => Mage::helper('onestepcheckout')->__('Title'),
|
32 |
-
'align' =>'left',
|
33 |
-
'index' => 'title',
|
34 |
-
));
|
35 |
-
|
36 |
-
|
37 |
-
$this->addColumn('content', array(
|
38 |
-
'header' => Mage::helper('onestepcheckout')->__('Item Content'),
|
39 |
-
'width' => '150px',
|
40 |
-
'index' => 'content',
|
41 |
-
));
|
42 |
-
|
43 |
-
|
44 |
-
$this->addColumn('status', array(
|
45 |
-
'header' => Mage::helper('onestepcheckout')->__('Status'),
|
46 |
-
'align' => 'left',
|
47 |
-
'width' => '80px',
|
48 |
-
'index' => 'status',
|
49 |
-
'type' => 'options',
|
50 |
-
'options' => array(
|
51 |
-
1 => 'Enabled',
|
52 |
-
2 => 'Disabled',
|
53 |
-
),
|
54 |
-
));
|
55 |
-
|
56 |
-
$this->addColumn('action',
|
57 |
-
array(
|
58 |
-
'header' => Mage::helper('onestepcheckout')->__('Action'),
|
59 |
-
'width' => '100',
|
60 |
-
'type' => 'action',
|
61 |
-
'getter' => 'getId',
|
62 |
-
'actions' => array(
|
63 |
-
array(
|
64 |
-
'caption' => Mage::helper('onestepcheckout')->__('Edit'),
|
65 |
-
'url' => array('base'=> '*/*/edit'),
|
66 |
-
'field' => 'id'
|
67 |
-
)
|
68 |
-
),
|
69 |
-
'filter' => false,
|
70 |
-
'sortable' => false,
|
71 |
-
'index' => 'stores',
|
72 |
-
'is_system' => true,
|
73 |
-
));
|
74 |
-
|
75 |
-
$this->addExportType('*/*/exportCsv', Mage::helper('onestepcheckout')->__('CSV'));
|
76 |
-
$this->addExportType('*/*/exportXml', Mage::helper('onestepcheckout')->__('XML'));
|
77 |
-
|
78 |
-
return parent::_prepareColumns();
|
79 |
-
}
|
80 |
-
|
81 |
-
protected function _prepareMassaction()
|
82 |
-
{
|
83 |
-
$this->setMassactionIdField('onestepcheckout_id');
|
84 |
-
$this->getMassactionBlock()->setFormFieldName('onestepcheckout');
|
85 |
-
|
86 |
-
$this->getMassactionBlock()->addItem('delete', array(
|
87 |
-
'label' => Mage::helper('onestepcheckout')->__('Delete'),
|
88 |
-
'url' => $this->getUrl('*/*/massDelete'),
|
89 |
-
'confirm' => Mage::helper('onestepcheckout')->__('Are you sure?')
|
90 |
-
));
|
91 |
-
|
92 |
-
$statuses = Mage::getSingleton('onestepcheckout/status')->getOptionArray();
|
93 |
-
|
94 |
-
array_unshift($statuses, array('label'=>'', 'value'=>''));
|
95 |
-
$this->getMassactionBlock()->addItem('status', array(
|
96 |
-
'label'=> Mage::helper('onestepcheckout')->__('Change status'),
|
97 |
-
'url' => $this->getUrl('*/*/massStatus', array('_current'=>true)),
|
98 |
-
'additional' => array(
|
99 |
-
'visibility' => array(
|
100 |
-
'name' => 'status',
|
101 |
-
'type' => 'select',
|
102 |
-
'class' => 'required-entry',
|
103 |
-
'label' => Mage::helper('onestepcheckout')->__('Status'),
|
104 |
-
'values' => $statuses
|
105 |
-
)
|
106 |
-
)
|
107 |
-
));
|
108 |
-
return $this;
|
109 |
-
}
|
110 |
-
|
111 |
-
public function getRowUrl($row)
|
112 |
-
{
|
113 |
-
return $this->getUrl('*/*/edit', array('id' => $row->getId()));
|
114 |
-
}
|
115 |
-
|
116 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Sales/Order/Grid.php
DELETED
@@ -1,201 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class MOIP_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Sales_Order_Grid extends Mage_Adminhtml_Block_Sales_Order_Grid
|
3 |
-
{
|
4 |
-
// protected function _prepareLayout()
|
5 |
-
// {
|
6 |
-
// $this->addTab('label', array(
|
7 |
-
// 'label' => Mage::helper('catalog')->__('Product Label'),
|
8 |
-
// 'content' => $this->getLayout()->createBlock('smartlabel/adminhtml_catalog_product_edit_tab_label')->toHtml(),
|
9 |
-
// ));
|
10 |
-
// return parent::_prepareLayout();
|
11 |
-
// }
|
12 |
-
protected function _prepareCollection()
|
13 |
-
{
|
14 |
-
$collect= Mage::getModel('customer/customer')->getCollection();
|
15 |
-
if(version_compare(Mage::getVersion(),'1.4.1.0','>=')){
|
16 |
-
$collection = Mage::getResourceModel('sales/order_grid_collection');
|
17 |
-
$collection->getSelect()->joinleft(array('one_step'=>$collect->getTable('moip_onestepcheckout')),'one_step.sales_order_id=main_table.entity_id',array('moip_deliverydate_date','moip_customercomment_info','moip_deliverydate_time'));
|
18 |
-
$this->setCollection($collection);
|
19 |
-
}
|
20 |
-
else{
|
21 |
-
//TODO: add full name logic
|
22 |
-
$collection = Mage::getResourceModel('sales/order_collection')
|
23 |
-
->addAttributeToSelect('*')
|
24 |
-
->joinAttribute('billing_firstname', 'order_address/firstname', 'billing_address_id', null, 'left')
|
25 |
-
->joinAttribute('billing_lastname', 'order_address/lastname', 'billing_address_id', null, 'left')
|
26 |
-
->joinAttribute('shipping_firstname', 'order_address/firstname', 'shipping_address_id', null, 'left')
|
27 |
-
->joinAttribute('shipping_lastname', 'order_address/lastname', 'shipping_address_id', null, 'left')
|
28 |
-
->addExpressionAttributeToSelect('billing_name',
|
29 |
-
'CONCAT({{billing_firstname}}, " ", {{billing_lastname}})',
|
30 |
-
array('billing_firstname', 'billing_lastname'))
|
31 |
-
->addExpressionAttributeToSelect('shipping_name',
|
32 |
-
'CONCAT({{shipping_firstname}}, " ", {{shipping_lastname}})',
|
33 |
-
array('shipping_firstname', 'shipping_lastname'));
|
34 |
-
$collection->getSelect()->joinleft( //array( 'one_step'=>'moip_onestepcheckout'),
|
35 |
-
array('one_step'=>$collect->getTable('moip_onestepcheckout')),
|
36 |
-
'one_step.sales_order_id=e.entity_id',
|
37 |
-
array('moip_deliverydate_date','moip_customercomment_info','moip_deliverydate_time')
|
38 |
-
);
|
39 |
-
$this->setCollection($collection);
|
40 |
-
}
|
41 |
-
return Mage_Adminhtml_Block_Widget_Grid::_prepareCollection(); //goi _prepareCollection(); cua cap ong cho phep sort giam dan ->dung muc dich
|
42 |
-
}
|
43 |
-
|
44 |
-
|
45 |
-
protected function _prepareColumns()
|
46 |
-
{
|
47 |
-
$this->addColumn('real_order_id', array(
|
48 |
-
'header'=> Mage::helper('sales')->__('Order #'),
|
49 |
-
|
50 |
-
'type' => 'text',
|
51 |
-
'index' => 'increment_id',
|
52 |
-
));
|
53 |
-
|
54 |
-
if (!Mage::app()->isSingleStoreMode()) {
|
55 |
-
$this->addColumn('store_id', array(
|
56 |
-
'header' => Mage::helper('sales')->__('Store'),
|
57 |
-
'width' =>'100px',
|
58 |
-
'index' => 'store_id',
|
59 |
-
'type' => 'store',
|
60 |
-
'store_view'=> true,
|
61 |
-
'display_deleted' => true,
|
62 |
-
|
63 |
-
));
|
64 |
-
}
|
65 |
-
|
66 |
-
$this->addColumn('created_at', array(
|
67 |
-
'header' => Mage::helper('sales')->__('Purchased On'),
|
68 |
-
'index' => 'created_at',
|
69 |
-
'type' => 'datetime',
|
70 |
-
|
71 |
-
));
|
72 |
-
|
73 |
-
/*$this->addColumn('billing_firstname', array(
|
74 |
-
'header' => Mage::helper('sales')->__('Bill to First name'),
|
75 |
-
'index' => 'billing_firstname',
|
76 |
-
));
|
77 |
-
|
78 |
-
$this->addColumn('billing_lastname', array(
|
79 |
-
'header' => Mage::helper('sales')->__('Bill to Last name'),
|
80 |
-
'index' => 'billing_lastname',
|
81 |
-
));*/
|
82 |
-
$this->addColumn('billing_name', array(
|
83 |
-
'header' => Mage::helper('sales')->__('Bill to Name'),
|
84 |
-
'index' => 'billing_name',
|
85 |
-
|
86 |
-
));
|
87 |
-
|
88 |
-
/*$this->addColumn('shipping_firstname', array(
|
89 |
-
'header' => Mage::helper('sales')->__('Ship to First name'),
|
90 |
-
'index' => 'shipping_firstname',
|
91 |
-
));
|
92 |
-
|
93 |
-
$this->addColumn('shipping_lastname', array(
|
94 |
-
'header' => Mage::helper('sales')->__('Ship to Last name'),
|
95 |
-
'index' => 'shipping_lastname',
|
96 |
-
));*/
|
97 |
-
$this->addColumn('shipping_name', array(
|
98 |
-
'header' => Mage::helper('sales')->__('Ship to Name'),
|
99 |
-
'index' => 'shipping_name',
|
100 |
-
|
101 |
-
));
|
102 |
-
|
103 |
-
$this->addColumn('moip_customercomment_info', array(
|
104 |
-
'header' => Mage::helper('sales')->__('Customer Comment'),
|
105 |
-
'index' => 'moip_customercomment_info',
|
106 |
-
'type' => 'text',
|
107 |
-
|
108 |
-
));
|
109 |
-
if(Mage::getStoreConfig('onestepcheckout/deliverydate/allow_options')){
|
110 |
-
$this->addColumn('moip_deliverydate_date', array(
|
111 |
-
'header' => Mage::helper('sales')->__('Delivery Date'),
|
112 |
-
'index' => 'moip_deliverydate_date',
|
113 |
-
'type' => 'text',
|
114 |
-
|
115 |
-
));
|
116 |
-
$this->addColumn('moip_deliverydate_time', array(
|
117 |
-
'header' => Mage::helper('sales')->__('Delivery Time'),
|
118 |
-
'index' => 'moip_deliverydate_time',
|
119 |
-
'type' => 'text',
|
120 |
-
|
121 |
-
));
|
122 |
-
}
|
123 |
-
$this->addColumn('base_grand_total', array(
|
124 |
-
'header' => Mage::helper('sales')->__('G.T. (Base)'),
|
125 |
-
'index' => 'base_grand_total',
|
126 |
-
'type' => 'currency',
|
127 |
-
'currency' => 'base_currency_code',
|
128 |
-
));
|
129 |
-
|
130 |
-
$this->addColumn('grand_total', array(
|
131 |
-
'header' => Mage::helper('sales')->__('G.T. (Purchased)'),
|
132 |
-
'index' => 'grand_total',
|
133 |
-
'type' => 'currency',
|
134 |
-
'currency' => 'order_currency_code',
|
135 |
-
));
|
136 |
-
|
137 |
-
$this->addColumn('status', array(
|
138 |
-
'header' => Mage::helper('sales')->__('Status'),
|
139 |
-
'index' => 'status',
|
140 |
-
'type' => 'options',
|
141 |
-
|
142 |
-
'options' => Mage::getSingleton('sales/order_config')->getStatuses(),
|
143 |
-
));
|
144 |
-
|
145 |
-
if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/view')) {
|
146 |
-
$this->addColumn('action',
|
147 |
-
array(
|
148 |
-
'header' => Mage::helper('sales')->__('Action'),
|
149 |
-
'width' => '50px',
|
150 |
-
'type' => 'action',
|
151 |
-
'getter' => 'getId',
|
152 |
-
'actions' => array(
|
153 |
-
array(
|
154 |
-
'caption' => Mage::helper('sales')->__('View'),
|
155 |
-
'url' => array('base'=>'*/*/view'),
|
156 |
-
'field' => 'order_id'
|
157 |
-
)
|
158 |
-
),
|
159 |
-
'filter' => false,
|
160 |
-
'sortable' => false,
|
161 |
-
'index' => 'stores',
|
162 |
-
'is_system' => true,
|
163 |
-
));
|
164 |
-
}
|
165 |
-
$this->addRssList('rss/order/new', Mage::helper('sales')->__('New Order RSS'));
|
166 |
-
|
167 |
-
//return parent::_prepareColumns();
|
168 |
-
}
|
169 |
-
protected function _addColumnFilterToCollection($column)
|
170 |
-
{
|
171 |
-
if ($this->getCollection()) {
|
172 |
-
$field = ( $column->getFilterIndex() ) ? $column->getFilterIndex() : $column->getIndex();
|
173 |
-
if ($column->getFilterConditionCallback()) {
|
174 |
-
call_user_func($column->getFilterConditionCallback(), $this->getCollection(), $column);
|
175 |
-
} else {
|
176 |
-
$cond = $column->getFilter()->getCondition();
|
177 |
-
if ($field && isset($cond)) {
|
178 |
-
// $this->getCollection()->addFieldToFilter($field , $cond);
|
179 |
-
if($field=='moip_customercomment_info' OR $field=='moip_deliverydate_date' OR $field=='moip_deliverydate_time'){
|
180 |
-
foreach($cond as $typecond => $value){
|
181 |
-
if(version_compare(Mage::getVersion(),'1.4.1.0','>=')){
|
182 |
-
$this->getCollection()->getSelect()->where('one_step.'.$field.' '.$typecond.' "'.$value.'"');
|
183 |
-
}else{
|
184 |
-
$this->getCollection()->getSelect()->where($field.' '.$typecond.' "'.$value.'"');
|
185 |
-
}
|
186 |
-
}
|
187 |
-
}
|
188 |
-
else{
|
189 |
-
if(version_compare(Mage::getVersion(),'1.4.1.0','>=')){
|
190 |
-
$this->getCollection()->addFieldToFilter("main_table.".$field , $cond);
|
191 |
-
}else{
|
192 |
-
$this->getCollection()->addFieldToFilter($field , $cond);
|
193 |
-
}
|
194 |
-
}
|
195 |
-
}
|
196 |
-
}
|
197 |
-
}
|
198 |
-
|
199 |
-
return $this;
|
200 |
-
}
|
201 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Sales/Order/View/Tab/Info/Customermessages.php
CHANGED
@@ -6,4 +6,4 @@ class MOIP_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Sales_Order_View_Tab_
|
|
6 |
return parent::_prepareLayout();
|
7 |
}
|
8 |
|
9 |
-
}
|
6 |
return parent::_prepareLayout();
|
7 |
}
|
8 |
|
9 |
+
}
|
app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Sales/Order/View/Tab/Info/Deliverydate.php
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class MOIP_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Sales_Order_View_Tab_Info_Deliverydate extends Mage_Adminhtml_Block_Sales_Order_Abstract
|
3 |
-
{
|
4 |
-
public function _prepareLayout()
|
5 |
-
{
|
6 |
-
return parent::_prepareLayout();
|
7 |
-
}
|
8 |
-
|
9 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/Onestepcheckout/System/Config/Form/Field/Addtimerange.php
DELETED
@@ -1,18 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class MOIP_Onestepcheckout_Block_Adminhtml_Onestepcheckout_System_Config_Form_Field_Addtimerange extends Mage_Adminhtml_Block_System_Config_Form_Field_Regexceptions
|
3 |
-
{
|
4 |
-
public function __construct()
|
5 |
-
{
|
6 |
-
$this->addColumn('starttime', array(
|
7 |
-
'label' => Mage::helper('adminhtml')->__('Start Time '),
|
8 |
-
'style' => 'width:120px',
|
9 |
-
));
|
10 |
-
$this->addColumn('endtime', array(
|
11 |
-
'label' => Mage::helper('adminhtml')->__('End Time'),
|
12 |
-
'style' => 'width:120px',
|
13 |
-
));
|
14 |
-
$this->_addAfter = false;
|
15 |
-
$this->_addButtonLabel = Mage::helper('adminhtml')->__('Add Time Range');
|
16 |
-
Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract::__construct();
|
17 |
-
}
|
18 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Onestepcheckout/Block/Checkout/Onepage/Billing.php
CHANGED
@@ -60,4 +60,4 @@ class MOIP_Onestepcheckout_Block_Checkout_Onepage_Billing extends Mage_Checkout_
|
|
60 |
}
|
61 |
|
62 |
|
63 |
-
}
|
60 |
}
|
61 |
|
62 |
|
63 |
+
}
|
app/code/local/MOIP/Onestepcheckout/Block/Checkout/Onepage/Billing/Sortbilling.php
CHANGED
@@ -25,4 +25,4 @@ class MOIP_Onestepcheckout_Block_Checkout_Onepage_Billing_Sortbilling extends MO
|
|
25 |
else
|
26 |
return false;
|
27 |
}
|
28 |
-
}
|
25 |
else
|
26 |
return false;
|
27 |
}
|
28 |
+
}
|
app/code/local/MOIP/Onestepcheckout/Block/Checkout/Onepage/Review/Options.php
CHANGED
@@ -7,4 +7,4 @@ class MOIP_Onestepcheckout_Block_Checkout_Onepage_Review_Options extends Mage_Co
|
|
7 |
}
|
8 |
|
9 |
|
10 |
-
}
|
7 |
}
|
8 |
|
9 |
|
10 |
+
}
|
app/code/local/MOIP/Onestepcheckout/Block/Checkout/Onepage/Shipping/Sortshipping.php
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class MOIP_Onestepcheckout_Block_Checkout_Onepage_Shipping_Sortshipping extends MOIP_Onestepcheckout_Block_Checkout_Onepage_Shipping
|
3 |
-
{
|
4 |
-
protected $type_address=array('company','street','city','state','zip','country','telephone','fax');
|
5 |
-
public function isrequired($name_address){
|
6 |
-
$status=Mage::getStoreConfig('onestepcheckout/addfield/'.$name_address);
|
7 |
-
//$status=Mage::getStoreConfig('onestepcheckout/addfield/city');
|
8 |
-
//echo $status;die();
|
9 |
-
if($status=='2')
|
10 |
-
return "required-entry";
|
11 |
-
else
|
12 |
-
return "";
|
13 |
-
}
|
14 |
-
public function isstar($name_address){
|
15 |
-
$status=Mage::getStoreConfig('onestepcheckout/addfield/'.$name_address);
|
16 |
-
if($status=='2')
|
17 |
-
return "*";
|
18 |
-
else
|
19 |
-
return "";
|
20 |
-
}
|
21 |
-
public function isdisable($name){
|
22 |
-
$status=Mage::getStoreConfig('onestepcheckout/addfield/'.$name);
|
23 |
-
if($status=='0')
|
24 |
-
return true;
|
25 |
-
else
|
26 |
-
return false;
|
27 |
-
}
|
28 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Onestepcheckout/Block/Checkout/Top.php
DELETED
@@ -1,35 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class MOIP_Onestepcheckout_Block_Checkout_Top extends Mage_Core_Block_Template
|
3 |
-
{
|
4 |
-
public function getAdditionaldays(){
|
5 |
-
$array=array();
|
6 |
-
//$week=explode(",",Mage::getStoreConfig('onestepcheckout/deliverydate/weekend'));
|
7 |
-
$week=Mage::getStoreConfig('onestepcheckout/deliverydate/weekend');
|
8 |
-
$listDay=explode(",", Mage::getStoreConfig("onestepcheckout/deliverydate/enableday"));
|
9 |
-
if(!$listDay[0])
|
10 |
-
return '';
|
11 |
-
foreach($listDay as $item){
|
12 |
-
$t=explode("/",$item);
|
13 |
-
$numday=date("w", mktime(0, 0, 0, $t[0], $t[1], $t[2]));// mktime(hour,minute,second,month,day,year) , w return number that day
|
14 |
-
if(strstr($week,$numday)){
|
15 |
-
$array[]=$item;
|
16 |
-
}
|
17 |
-
}
|
18 |
-
return implode(",",$array);
|
19 |
-
}
|
20 |
-
public function getNationaldays(){
|
21 |
-
$array=array();
|
22 |
-
$week=Mage::getStoreConfig('onestepcheckout/deliverydate/weekend');
|
23 |
-
$listDay=explode(",", Mage::getStoreConfig("onestepcheckout/deliverydate/disableday"));
|
24 |
-
if(!$listDay[0])
|
25 |
-
return '';
|
26 |
-
foreach($listDay as $item){
|
27 |
-
$t=explode("/",$item);
|
28 |
-
$numday=date("w", mktime(0, 0, 0, $t[0], $t[1], $t[2]));// mktime(hour,minute,second,month,day,year) , w return number that day
|
29 |
-
if(!strstr($week,$numday)){
|
30 |
-
$array[]=$item;
|
31 |
-
}
|
32 |
-
}
|
33 |
-
return implode(",",$array);
|
34 |
-
}
|
35 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Onestepcheckout/Block/Onestepcheckout.php
CHANGED
@@ -14,4 +14,4 @@ class MOIP_Onestepcheckout_Block_Onestepcheckout extends Mage_Core_Block_Templat
|
|
14 |
return $this->getData('onestepcheckout');
|
15 |
|
16 |
}
|
17 |
-
}
|
14 |
return $this->getData('onestepcheckout');
|
15 |
|
16 |
}
|
17 |
+
}
|
app/code/local/MOIP/Onestepcheckout/Block/Sales/Info/Deliverydate.php
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class MOIP_Onestepcheckout_Block_Sales_Info_Deliverydate extends Mage_Core_Block_Template
|
3 |
-
{
|
4 |
-
public function _prepareLayout()
|
5 |
-
{
|
6 |
-
return parent::_prepareLayout();
|
7 |
-
}
|
8 |
-
|
9 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Onestepcheckout/Model/Customer/Customer.php
CHANGED
@@ -5,34 +5,14 @@ class MOIP_Onestepcheckout_Model_Customer_Customer extends Mage_Customer_Model_C
|
|
5 |
{
|
6 |
$errors = array();
|
7 |
$customerHelper = Mage::helper('customer');
|
8 |
-
|
9 |
-
//if(Mage::getStoreConfig('onestepcheckout/addfield/name')){
|
10 |
-
if (!Zend_Validate::is( trim($this->getFirstname()) , 'NotEmpty')) {
|
11 |
-
$errors[] = $customerHelper->__('The first name cannot be empty.');
|
12 |
-
}
|
13 |
-
if (!Zend_Validate::is( trim($this->getLastname()) , 'NotEmpty')) {
|
14 |
-
$errors[] = $customerHelper->__('The last name cannot be empty.');
|
15 |
-
}
|
16 |
-
//}
|
17 |
-
// if(Mage::getStoreConfig('onestepcheckout/addfield/email') ==2){
|
18 |
-
if (!Zend_Validate::is($this->getEmail(), 'EmailAddress')) {
|
19 |
-
$errors[] = $customerHelper->__('Invalid email address "%s".', $this->getEmail());
|
20 |
-
}
|
21 |
-
//}
|
22 |
-
}
|
23 |
-
else{
|
24 |
if (!Zend_Validate::is( trim($this->getFirstname()) , 'NotEmpty')) {
|
25 |
$errors[] = $customerHelper->__('The first name cannot be empty.');
|
26 |
}
|
27 |
-
|
28 |
if (!Zend_Validate::is( trim($this->getLastname()) , 'NotEmpty')) {
|
29 |
$errors[] = $customerHelper->__('The last name cannot be empty.');
|
30 |
}
|
31 |
-
|
32 |
-
if (!Zend_Validate::is($this->getEmail(), 'EmailAddress')) {
|
33 |
-
$errors[] = $customerHelper->__('Invalid email address "%s".', $this->getEmail());
|
34 |
-
}
|
35 |
-
}
|
36 |
$password = $this->getPassword();
|
37 |
if (!$this->getId() && !Zend_Validate::is($password , 'NotEmpty')) {
|
38 |
$errors[] = $customerHelper->__('The password cannot be empty.');
|
@@ -45,19 +25,7 @@ class MOIP_Onestepcheckout_Model_Customer_Customer extends Mage_Customer_Model_C
|
|
45 |
$errors[] = $customerHelper->__('Please make sure your passwords match.');
|
46 |
}
|
47 |
|
48 |
-
|
49 |
-
$attribute = Mage::getModel('customer/attribute')->loadByCode($entityType, 'dob');
|
50 |
-
if ($attribute->getIsRequired() && '' == trim($this->getDob())) {
|
51 |
-
$errors[] = $customerHelper->__('The Date of Birth is required.');
|
52 |
-
}
|
53 |
-
$attribute = Mage::getModel('customer/attribute')->loadByCode($entityType, 'taxvat');
|
54 |
-
if ($attribute->getIsRequired() && '' == trim($this->getTaxvat())) {
|
55 |
-
$errors[] = $customerHelper->__('The TAX/VAT number is required.');
|
56 |
-
}
|
57 |
-
$attribute = Mage::getModel('customer/attribute')->loadByCode($entityType, 'gender');
|
58 |
-
if ($attribute->getIsRequired() && '' == trim($this->getGender())) {
|
59 |
-
$errors[] = $customerHelper->__('Gender is required.');
|
60 |
-
}
|
61 |
|
62 |
if (empty($errors)) {
|
63 |
return true;
|
@@ -66,4 +34,4 @@ class MOIP_Onestepcheckout_Model_Customer_Customer extends Mage_Customer_Model_C
|
|
66 |
|
67 |
|
68 |
}
|
69 |
-
}
|
5 |
{
|
6 |
$errors = array();
|
7 |
$customerHelper = Mage::helper('customer');
|
8 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
if (!Zend_Validate::is( trim($this->getFirstname()) , 'NotEmpty')) {
|
10 |
$errors[] = $customerHelper->__('The first name cannot be empty.');
|
11 |
}
|
|
|
12 |
if (!Zend_Validate::is( trim($this->getLastname()) , 'NotEmpty')) {
|
13 |
$errors[] = $customerHelper->__('The last name cannot be empty.');
|
14 |
}
|
15 |
+
|
|
|
|
|
|
|
|
|
16 |
$password = $this->getPassword();
|
17 |
if (!$this->getId() && !Zend_Validate::is($password , 'NotEmpty')) {
|
18 |
$errors[] = $customerHelper->__('The password cannot be empty.');
|
25 |
$errors[] = $customerHelper->__('Please make sure your passwords match.');
|
26 |
}
|
27 |
|
28 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
if (empty($errors)) {
|
31 |
return true;
|
34 |
|
35 |
|
36 |
}
|
37 |
+
}
|
app/code/local/MOIP/Onestepcheckout/Model/Entity/Tipopessoa.php
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class MOIP_Onestepcheckout_Model_Entity_Tipopessoa extends Mage_Eav_Model_Entity_Attribute_Source_Abstract
|
3 |
-
{
|
4 |
-
public function getAllOptions()
|
5 |
-
{
|
6 |
-
if ($this->_options === null) {
|
7 |
-
$this->_options = array();
|
8 |
-
$this->_options[] = array(
|
9 |
-
'value' => 1,
|
10 |
-
'label' => 'Pessoa Física'
|
11 |
-
);
|
12 |
-
$this->_options[] = array(
|
13 |
-
'value' => 2,
|
14 |
-
'label' => 'Pessoa Jurídica'
|
15 |
-
);
|
16 |
-
}
|
17 |
-
|
18 |
-
return $this->_options;
|
19 |
-
}
|
20 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Onestepcheckout/Model/Mysql4/Onestepcheckout.php
CHANGED
@@ -7,4 +7,4 @@ class MOIP_Onestepcheckout_Model_Mysql4_Onestepcheckout extends Mage_Core_Model_
|
|
7 |
// Note that the onestepcheckout_id refers to the key field in your database table.
|
8 |
$this->_init('onestepcheckout/onestepcheckout', 'moip_onestepcheckout_date_id');
|
9 |
}
|
10 |
-
}
|
7 |
// Note that the onestepcheckout_id refers to the key field in your database table.
|
8 |
$this->_init('onestepcheckout/onestepcheckout', 'moip_onestepcheckout_date_id');
|
9 |
}
|
10 |
+
}
|
app/code/local/MOIP/Onestepcheckout/Model/Mysql4/Onestepcheckout/Collection.php
CHANGED
@@ -7,4 +7,4 @@ class MOIP_Onestepcheckout_Model_Mysql4_Onestepcheckout_Collection extends Mage_
|
|
7 |
parent::_construct();
|
8 |
$this->_init('onestepcheckout/onestepcheckout');
|
9 |
}
|
10 |
-
}
|
7 |
parent::_construct();
|
8 |
$this->_init('onestepcheckout/onestepcheckout');
|
9 |
}
|
10 |
+
}
|
app/code/local/MOIP/Onestepcheckout/Model/Sales/Quote/Address.php
CHANGED
@@ -3,97 +3,48 @@ class MOIP_Onestepcheckout_Model_Sales_Quote_Address extends Mage_Sales_Model_Qu
|
|
3 |
{
|
4 |
public function validate()
|
5 |
{
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
$errors[] = $helper->__('Please enter the first name.');
|
13 |
-
}
|
14 |
|
15 |
-
|
16 |
-
|
17 |
-
}
|
18 |
-
// }
|
19 |
-
if(Mage::getStoreConfig('onestepcheckout/addfield/street') ==2){
|
20 |
-
if (!Zend_Validate::is($this->getStreet(1), 'NotEmpty')) {
|
21 |
-
$errors[] = $helper->__('Please enter the street.');
|
22 |
-
}
|
23 |
-
}
|
24 |
-
if(Mage::getStoreConfig('onestepcheckout/addfield/city') ==2){
|
25 |
-
if (!Zend_Validate::is($this->getCity(), 'NotEmpty')) {
|
26 |
-
$errors[] = $helper->__('Please enter the city.');
|
27 |
-
}
|
28 |
-
}
|
29 |
-
if(Mage::getStoreConfig('onestepcheckout/addfield/telephone') ==2){
|
30 |
-
if (!Zend_Validate::is($this->getTelephone(), 'NotEmpty')) {
|
31 |
-
$errors[] = $helper->__('Please enter the telephone number.');
|
32 |
-
}
|
33 |
-
}
|
34 |
-
if(Mage::getStoreConfig('onestepcheckout/addfield/zip') ==2){
|
35 |
-
$_havingOptionalZip = Mage::helper('directory')->getCountriesWithOptionalZip();
|
36 |
-
if (!in_array($this->getCountryId(), $_havingOptionalZip) && !Zend_Validate::is($this->getPostcode(), 'NotEmpty')) {
|
37 |
-
$errors[] = $helper->__('Please enter the zip/postal code.');
|
38 |
-
}
|
39 |
-
}
|
40 |
-
if(Mage::getStoreConfig('onestepcheckout/addfield/country')==2){
|
41 |
-
if (!Zend_Validate::is($this->getCountryId(), 'NotEmpty')) {
|
42 |
-
$errors[] = $helper->__('Please enter the country.');
|
43 |
-
}
|
44 |
-
}
|
45 |
-
if(Mage::getStoreConfig('onestepcheckout/addfield/state')==2){
|
46 |
-
if ($this->getCountryModel()->getRegionCollection()->getSize()
|
47 |
-
&& !Zend_Validate::is($this->getRegionId(), 'NotEmpty')) {
|
48 |
-
$errors[] = $helper->__('Please enter the state/province.');
|
49 |
-
}
|
50 |
-
}
|
51 |
-
if (empty($errors) || $this->getShouldIgnoreValidation()) {
|
52 |
-
return true;
|
53 |
-
}
|
54 |
}
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
if (!Zend_Validate::is($this->getFirstname(), 'NotEmpty')) {
|
60 |
-
$errors[] = $helper->__('Please enter the first name.');
|
61 |
}
|
62 |
-
|
63 |
-
|
64 |
-
|
|
|
65 |
}
|
66 |
-
|
67 |
-
|
68 |
-
|
|
|
|
|
69 |
}
|
70 |
-
|
71 |
-
|
72 |
-
// $errors[] = $helper->__('Please enter the city.');
|
73 |
-
// }
|
74 |
-
|
75 |
-
//if (!Zend_Validate::is($this->getTelephone(), 'NotEmpty')) {
|
76 |
-
// $errors[] = $helper->__('Please enter the telephone number.');
|
77 |
-
// }
|
78 |
-
//
|
79 |
-
// $_havingOptionalZip = Mage::helper('directory')->getCountriesWithOptionalZip();
|
80 |
-
// if (!in_array($this->getCountryId(), $_havingOptionalZip) && !Zend_Validate::is($this->getPostcode(), 'NotEmpty')) {
|
81 |
-
// $errors[] = $helper->__('Please enter the zip/postal code.');
|
82 |
-
// }
|
83 |
-
|
84 |
if (!Zend_Validate::is($this->getCountryId(), 'NotEmpty')) {
|
85 |
$errors[] = $helper->__('Please enter the country.');
|
86 |
}
|
87 |
-
|
88 |
-
//if ($this->getCountryModel()->getRegionCollection()->getSize()
|
89 |
-
// && !Zend_Validate::is($this->getRegionId(), 'NotEmpty')) {
|
90 |
-
// $errors[] = $helper->__('Please enter the state/province.');
|
91 |
-
//}
|
92 |
-
|
93 |
-
if (empty($errors) || $this->getShouldIgnoreValidation()) {
|
94 |
-
return true;
|
95 |
-
}
|
96 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
return $errors;
|
98 |
}
|
99 |
}
|
3 |
{
|
4 |
public function validate()
|
5 |
{
|
6 |
+
$errors = array();
|
7 |
+
$helper = Mage::helper('customer');
|
8 |
+
$this->implodeStreetAddress();
|
9 |
+
if (!Zend_Validate::is($this->getFirstname(), 'NotEmpty')) {
|
10 |
+
$errors[] = $helper->__('Please enter the first name.');
|
11 |
+
}
|
|
|
|
|
12 |
|
13 |
+
if (!Zend_Validate::is($this->getLastname(), 'NotEmpty')) {
|
14 |
+
$errors[] = $helper->__('Please enter the last name.');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
}
|
16 |
+
|
17 |
+
if(Mage::getStoreConfig('onestepcheckout/addfield/city') ==2){
|
18 |
+
if (!Zend_Validate::is($this->getCity(), 'NotEmpty')) {
|
19 |
+
$errors[] = $helper->__('Please enter the city.');
|
|
|
|
|
20 |
}
|
21 |
+
}
|
22 |
+
if(Mage::getStoreConfig('onestepcheckout/addfield/telephone') ==2){
|
23 |
+
if (!Zend_Validate::is($this->getTelephone(), 'NotEmpty')) {
|
24 |
+
$errors[] = $helper->__('Please enter the telephone number.');
|
25 |
}
|
26 |
+
}
|
27 |
+
if(Mage::getStoreConfig('onestepcheckout/addfield/zip') ==2){
|
28 |
+
$_havingOptionalZip = Mage::helper('directory')->getCountriesWithOptionalZip();
|
29 |
+
if (!in_array($this->getCountryId(), $_havingOptionalZip) && !Zend_Validate::is($this->getPostcode(), 'NotEmpty')) {
|
30 |
+
$errors[] = $helper->__('Please enter the zip/postal code.');
|
31 |
}
|
32 |
+
}
|
33 |
+
if(Mage::getStoreConfig('onestepcheckout/addfield/country')==2){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
if (!Zend_Validate::is($this->getCountryId(), 'NotEmpty')) {
|
35 |
$errors[] = $helper->__('Please enter the country.');
|
36 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
}
|
38 |
+
if(Mage::getStoreConfig('onestepcheckout/addfield/state')==2){
|
39 |
+
if ($this->getCountryModel()->getRegionCollection()->getSize()
|
40 |
+
&& !Zend_Validate::is($this->getRegionId(), 'NotEmpty')) {
|
41 |
+
$errors[] = $helper->__('Please enter the state/province.');
|
42 |
+
}
|
43 |
+
}
|
44 |
+
if (empty($errors) || $this->getShouldIgnoreValidation()) {
|
45 |
+
return true;
|
46 |
+
}
|
47 |
+
|
48 |
return $errors;
|
49 |
}
|
50 |
}
|
app/code/local/MOIP/Onestepcheckout/Model/Shipping/Allowedmethods.php
DELETED
@@ -1,41 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class MOIP_Onestepcheckout_Model_Shipping_Allowedmethods
|
4 |
-
{
|
5 |
-
/**
|
6 |
-
* Return array of carriers.
|
7 |
-
* If $isActiveOnlyFlag is set to true, will return only active carriers
|
8 |
-
*
|
9 |
-
* @param bool $isActiveOnlyFlag
|
10 |
-
* @return array
|
11 |
-
*/
|
12 |
-
public function toOptionArray()
|
13 |
-
{
|
14 |
-
$isActiveOnlyFlag=true;
|
15 |
-
|
16 |
-
$methods = array(array('value'=>'', 'label'=>''));
|
17 |
-
$carriers = Mage::getSingleton('shipping/config')->getAllCarriers();
|
18 |
-
foreach ($carriers as $carrierCode=>$carrierModel) {
|
19 |
-
if (!$carrierModel->isActive() && (bool)$isActiveOnlyFlag === true) {
|
20 |
-
continue;
|
21 |
-
}
|
22 |
-
$carrierMethods = $carrierModel->getAllowedMethods();
|
23 |
-
if (!$carrierMethods) {
|
24 |
-
continue;
|
25 |
-
}
|
26 |
-
$carrierTitle = Mage::getStoreConfig('carriers/'.$carrierCode.'/title');
|
27 |
-
$methods[$carrierCode] = array(
|
28 |
-
'label' => $carrierTitle,
|
29 |
-
'value' => array(),
|
30 |
-
);
|
31 |
-
foreach ($carrierMethods as $methodCode=>$methodTitle) {
|
32 |
-
$methods[$carrierCode]['value'][] = array(
|
33 |
-
'value' => $carrierCode.'_'.$methodCode,
|
34 |
-
'label' => '['.$carrierCode.'] '.$methodTitle,
|
35 |
-
);
|
36 |
-
}
|
37 |
-
}
|
38 |
-
|
39 |
-
return $methods;
|
40 |
-
}
|
41 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Onestepcheckout/Model/System/Config/Source/Shipping/Allowedmethods.php
DELETED
@@ -1,41 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class MOIP_Onestepcheckout_Model_Shipping_Allowedmethods
|
4 |
-
{
|
5 |
-
/**
|
6 |
-
* Return array of carriers.
|
7 |
-
* If $isActiveOnlyFlag is set to true, will return only active carriers
|
8 |
-
*
|
9 |
-
* @param bool $isActiveOnlyFlag
|
10 |
-
* @return array
|
11 |
-
*/
|
12 |
-
public function toOptionArray()
|
13 |
-
{
|
14 |
-
$isActiveOnlyFlag=true;
|
15 |
-
|
16 |
-
$methods = array(array('value'=>'', 'label'=>''));
|
17 |
-
$carriers = Mage::getSingleton('shipping/config')->getAllCarriers();
|
18 |
-
foreach ($carriers as $carrierCode=>$carrierModel) {
|
19 |
-
if (!$carrierModel->isActive() && (bool)$isActiveOnlyFlag === true) {
|
20 |
-
continue;
|
21 |
-
}
|
22 |
-
$carrierMethods = $carrierModel->getAllowedMethods();
|
23 |
-
if (!$carrierMethods) {
|
24 |
-
continue;
|
25 |
-
}
|
26 |
-
$carrierTitle = Mage::getStoreConfig('carriers/'.$carrierCode.'/title');
|
27 |
-
$methods[$carrierCode] = array(
|
28 |
-
'label' => $carrierTitle,
|
29 |
-
'value' => array(),
|
30 |
-
);
|
31 |
-
foreach ($carrierMethods as $methodCode=>$methodTitle) {
|
32 |
-
$methods[$carrierCode]['value'][] = array(
|
33 |
-
'value' => $carrierCode.'_'.$methodCode,
|
34 |
-
'label' => '['.$carrierCode.'] '.$methodTitle,
|
35 |
-
);
|
36 |
-
}
|
37 |
-
}
|
38 |
-
|
39 |
-
return $methods;
|
40 |
-
}
|
41 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Onestepcheckout/Model/System/Config/Source/form/Createfield.php
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class MOIP_Onestepcheckout_Model_System_Config_Source_Form_Createfield extends Mage_Adminhtml_Block_System_Config_Form_Field
|
3 |
-
{
|
4 |
-
|
5 |
-
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
|
6 |
-
{
|
7 |
-
$_options = array(
|
8 |
-
'kaka' => Mage::helper('adminhtml')->__('kaak'),
|
9 |
-
'cici' => Mage::helper('adminhtml')->__('cici'),
|
10 |
-
);
|
11 |
-
$_options2 = array(
|
12 |
-
'pad' => Mage::helper('adminhtml')->__('require'),
|
13 |
-
'tps' => Mage::helper('adminhtml')->__('norequire'),
|
14 |
-
);
|
15 |
-
$element1=$element;
|
16 |
-
$element2=$element;
|
17 |
-
$element1->setValues($_options1)
|
18 |
-
->setStyle('width:70px;')
|
19 |
-
->setName($element1->getName() . '[]');
|
20 |
-
$element2->setValues($_options2)
|
21 |
-
->setStyle('width:170px;')
|
22 |
-
->setName($element2->getName() . '[]');
|
23 |
-
|
24 |
-
var_dump($element->getValue());die();
|
25 |
-
$_parts = array();
|
26 |
-
$_parts[0] = $element1->setValue(null)->getElementHtml();
|
27 |
-
|
28 |
-
$element2=$element;
|
29 |
-
$element2->setValues($_options2)
|
30 |
-
->setStyle('width:170px;')
|
31 |
-
->setName($element2->getName() . '[]');
|
32 |
-
|
33 |
-
$_parts[1] = $element2->setValue(null)->getElementHtml();
|
34 |
-
$_parts[] = $element->setValue(null)->getElementHtml();
|
35 |
-
return implode(' / ', $_parts);
|
36 |
-
}
|
37 |
-
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Onestepcheckout/controllers/Adminhtml/OnestepcheckoutController.php
DELETED
@@ -1,179 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class MOIP_Onestepcheckout_Adminhtml_OnestepcheckoutController extends Mage_Adminhtml_Controller_action
|
3 |
-
{
|
4 |
-
protected function _initAction() {
|
5 |
-
$this->loadLayout()
|
6 |
-
->_setActiveMenu('onestepcheckout/items')
|
7 |
-
->_addBreadcrumb(Mage::helper('adminhtml')->__('Items Manager'), Mage::helper('adminhtml')->__('Item Manager'));
|
8 |
-
return $this;
|
9 |
-
}
|
10 |
-
public function indexAction() {
|
11 |
-
$this->_initAction()
|
12 |
-
->renderLayout();
|
13 |
-
}
|
14 |
-
public function editAction() {
|
15 |
-
$id = $this->getRequest()->getParam('id');
|
16 |
-
$model = Mage::getModel('onestepcheckout/onestepcheckout')->load($id);
|
17 |
-
if ($model->getId() || $id == 0) {
|
18 |
-
$data = Mage::getSingleton('adminhtml/session')->getFormData(true);
|
19 |
-
if (!empty($data)) {
|
20 |
-
$model->setData($data);
|
21 |
-
}
|
22 |
-
Mage::register('onestepcheckout_data', $model);
|
23 |
-
$this->loadLayout();
|
24 |
-
$this->_setActiveMenu('onestepcheckout/items');
|
25 |
-
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Item Manager'), Mage::helper('adminhtml')->__('Item Manager'));
|
26 |
-
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Item News'), Mage::helper('adminhtml')->__('Item News'));
|
27 |
-
$this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
|
28 |
-
$this->_addContent($this->getLayout()->createBlock('onestepcheckout/adminhtml_onestepcheckout_edit'))
|
29 |
-
->_addLeft($this->getLayout()->createBlock('onestepcheckout/adminhtml_onestepcheckout_edit_tabs'));
|
30 |
-
$this->renderLayout();
|
31 |
-
} else {
|
32 |
-
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('onestepcheckout')->__('Item does not exist'));
|
33 |
-
$this->_redirect('*/*/');
|
34 |
-
}
|
35 |
-
}
|
36 |
-
|
37 |
-
public function newAction() {
|
38 |
-
$this->_forward('edit');
|
39 |
-
}
|
40 |
-
public function saveAction() {
|
41 |
-
if ($data = $this->getRequest()->getPost()) {
|
42 |
-
if(isset($_FILES['filename']['name']) && $_FILES['filename']['name'] != '') {
|
43 |
-
try {
|
44 |
-
$uploader = new Varien_File_Uploader('filename');
|
45 |
-
$uploader->setAllowedExtensions(array('jpg','jpeg','gif','png'));
|
46 |
-
$uploader->setAllowRenameFiles(false);
|
47 |
-
$uploader->setFilesDispersion(false);
|
48 |
-
$path = Mage::getBaseDir('media') . DS ;
|
49 |
-
$uploader->save($path, $_FILES['filename']['name'] );
|
50 |
-
} catch (Exception $e) {
|
51 |
-
|
52 |
-
}
|
53 |
-
$data['filename'] = $_FILES['filename']['name'];
|
54 |
-
}
|
55 |
-
$model = Mage::getModel('onestepcheckout/onestepcheckout');
|
56 |
-
$model->setData($data)
|
57 |
-
->setId($this->getRequest()->getParam('id'));
|
58 |
-
try {
|
59 |
-
if ($model->getCreatedTime == NULL || $model->getUpdateTime() == NULL) {
|
60 |
-
$model->setCreatedTime(now())
|
61 |
-
->setUpdateTime(now());
|
62 |
-
} else {
|
63 |
-
$model->setUpdateTime(now());
|
64 |
-
}
|
65 |
-
|
66 |
-
$model->save();
|
67 |
-
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('onestepcheckout')->__('Item was successfully saved'));
|
68 |
-
Mage::getSingleton('adminhtml/session')->setFormData(false);
|
69 |
-
|
70 |
-
if ($this->getRequest()->getParam('back')) {
|
71 |
-
$this->_redirect('*/*/edit', array('id' => $model->getId()));
|
72 |
-
return;
|
73 |
-
}
|
74 |
-
$this->_redirect('*/*/');
|
75 |
-
return;
|
76 |
-
} catch (Exception $e) {
|
77 |
-
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
78 |
-
Mage::getSingleton('adminhtml/session')->setFormData($data);
|
79 |
-
$this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
|
80 |
-
return;
|
81 |
-
}
|
82 |
-
}
|
83 |
-
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('onestepcheckout')->__('Unable to find item to save'));
|
84 |
-
$this->_redirect('*/*/');
|
85 |
-
}
|
86 |
-
|
87 |
-
public function deleteAction() {
|
88 |
-
if( $this->getRequest()->getParam('id') > 0 ) {
|
89 |
-
try {
|
90 |
-
$model = Mage::getModel('onestepcheckout/onestepcheckout');
|
91 |
-
|
92 |
-
$model->setId($this->getRequest()->getParam('id'))
|
93 |
-
->delete();
|
94 |
-
|
95 |
-
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Item was successfully deleted'));
|
96 |
-
$this->_redirect('*/*/');
|
97 |
-
} catch (Exception $e) {
|
98 |
-
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
99 |
-
$this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
|
100 |
-
}
|
101 |
-
}
|
102 |
-
$this->_redirect('*/*/');
|
103 |
-
}
|
104 |
-
public function massDeleteAction() {
|
105 |
-
$onestepcheckoutIds = $this->getRequest()->getParam('onestepcheckout');
|
106 |
-
if(!is_array($onestepcheckoutIds)) {
|
107 |
-
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('adminhtml')->__('Please select item(s)'));
|
108 |
-
} else {
|
109 |
-
try {
|
110 |
-
foreach ($onestepcheckoutIds as $onestepcheckoutId) {
|
111 |
-
$onestepcheckout = Mage::getModel('onestepcheckout/onestepcheckout')->load($onestepcheckoutId);
|
112 |
-
$onestepcheckout->delete();
|
113 |
-
}
|
114 |
-
Mage::getSingleton('adminhtml/session')->addSuccess(
|
115 |
-
Mage::helper('adminhtml')->__(
|
116 |
-
'Total of %d record(s) were successfully deleted', count($onestepcheckoutIds)
|
117 |
-
)
|
118 |
-
);
|
119 |
-
} catch (Exception $e) {
|
120 |
-
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
121 |
-
}
|
122 |
-
}
|
123 |
-
$this->_redirect('*/*/index');
|
124 |
-
}
|
125 |
-
public function massStatusAction()
|
126 |
-
{
|
127 |
-
$onestepcheckoutIds = $this->getRequest()->getParam('onestepcheckout');
|
128 |
-
if(!is_array($onestepcheckoutIds)) {
|
129 |
-
Mage::getSingleton('adminhtml/session')->addError($this->__('Please select item(s)'));
|
130 |
-
} else {
|
131 |
-
try {
|
132 |
-
foreach ($onestepcheckoutIds as $onestepcheckoutId) {
|
133 |
-
$onestepcheckout = Mage::getSingleton('onestepcheckout/onestepcheckout')
|
134 |
-
->load($onestepcheckoutId)
|
135 |
-
->setStatus($this->getRequest()->getParam('status'))
|
136 |
-
->setIsMassupdate(true)
|
137 |
-
->save();
|
138 |
-
}
|
139 |
-
$this->_getSession()->addSuccess(
|
140 |
-
$this->__('Total of %d record(s) were successfully updated', count($onestepcheckoutIds))
|
141 |
-
);
|
142 |
-
} catch (Exception $e) {
|
143 |
-
$this->_getSession()->addError($e->getMessage());
|
144 |
-
}
|
145 |
-
}
|
146 |
-
$this->_redirect('*/*/index');
|
147 |
-
}
|
148 |
-
public function exportCsvAction()
|
149 |
-
{
|
150 |
-
$fileName = 'onestepcheckout.csv';
|
151 |
-
$content = $this->getLayout()->createBlock('onestepcheckout/adminhtml_onestepcheckout_grid')
|
152 |
-
->getCsv();
|
153 |
-
|
154 |
-
$this->_sendUploadResponse($fileName, $content);
|
155 |
-
}
|
156 |
-
public function exportXmlAction()
|
157 |
-
{
|
158 |
-
$fileName = 'onestepcheckout.xml';
|
159 |
-
$content = $this->getLayout()->createBlock('onestepcheckout/adminhtml_onestepcheckout_grid')
|
160 |
-
->getXml();
|
161 |
-
|
162 |
-
$this->_sendUploadResponse($fileName, $content);
|
163 |
-
}
|
164 |
-
protected function _sendUploadResponse($fileName, $content, $contentType='application/octet-stream')
|
165 |
-
{
|
166 |
-
$response = $this->getResponse();
|
167 |
-
$response->setHeader('HTTP/1.1 200 OK','');
|
168 |
-
$response->setHeader('Pragma', 'public', true);
|
169 |
-
$response->setHeader('Cache-Control', 'must-revalidate, post-check=0, pre-check=0', true);
|
170 |
-
$response->setHeader('Content-Disposition', 'attachment; filename='.$fileName);
|
171 |
-
$response->setHeader('Last-Modified', date('r'));
|
172 |
-
$response->setHeader('Accept-Ranges', 'bytes');
|
173 |
-
$response->setHeader('Content-Length', strlen($content));
|
174 |
-
$response->setHeader('Content-type', $contentType);
|
175 |
-
$response->setBody($content);
|
176 |
-
$response->sendResponse();
|
177 |
-
die;
|
178 |
-
}
|
179 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Onestepcheckout/controllers/IndexController.php
CHANGED
@@ -473,6 +473,7 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
473 |
$customerAddressId = $this->getRequest()->getPost($isbilling.'_address_id', false);
|
474 |
|
475 |
if (($postData['country_id']!='') or $customerAddressId) {
|
|
|
476 |
$postData = $this->filterdata($postData);
|
477 |
$postData['use_for_shipping']='1';
|
478 |
if (version_compare(Mage::getVersion(), '1.4.0.1', '>='))
|
@@ -483,9 +484,9 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
483 |
$data['email'] = trim($data['email']);
|
484 |
}
|
485 |
if ($isbilling="billing") {
|
486 |
-
$result = $this->getOnepage()->saveBilling($data,
|
487 |
else
|
488 |
-
$result = $this->getOnepage()->saveShipping($data,
|
489 |
}
|
490 |
|
491 |
}
|
@@ -955,22 +956,17 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
955 |
$this->loadLayout()->renderLayout();
|
956 |
|
957 |
}
|
|
|
958 |
|
959 |
public function updatebillingform() {
|
960 |
if ($this->getRequest()->isPost()) {
|
|
|
961 |
$postData=$this->getRequest()->getPost();
|
962 |
$customerAddressId = $postData['billing_address_id'];
|
963 |
if (intval($customerAddressId)!=0) {
|
964 |
-
$
|
965 |
-
|
966 |
-
|
967 |
-
else
|
968 |
-
$data=$postData;
|
969 |
-
|
970 |
-
if (isset($data['email'])) {
|
971 |
-
$data['email'] = trim($data['email']);
|
972 |
-
}
|
973 |
-
$result = $this->getOnepage()->saveBilling($data, $customerAddressId);
|
974 |
}
|
975 |
else {
|
976 |
|
@@ -1040,4 +1036,4 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
1040 |
|
1041 |
}
|
1042 |
}
|
1043 |
-
}
|
473 |
$customerAddressId = $this->getRequest()->getPost($isbilling.'_address_id', false);
|
474 |
|
475 |
if (($postData['country_id']!='') or $customerAddressId) {
|
476 |
+
|
477 |
$postData = $this->filterdata($postData);
|
478 |
$postData['use_for_shipping']='1';
|
479 |
if (version_compare(Mage::getVersion(), '1.4.0.1', '>='))
|
484 |
$data['email'] = trim($data['email']);
|
485 |
}
|
486 |
if ($isbilling="billing") {
|
487 |
+
$result = $this->getOnepage()->saveBilling($data, '');}
|
488 |
else
|
489 |
+
$result = $this->getOnepage()->saveShipping($data, '');
|
490 |
}
|
491 |
|
492 |
}
|
956 |
$this->loadLayout()->renderLayout();
|
957 |
|
958 |
}
|
959 |
+
|
960 |
|
961 |
public function updatebillingform() {
|
962 |
if ($this->getRequest()->isPost()) {
|
963 |
+
$billing_data = $this->getRequest()->getPost('billing', array());
|
964 |
$postData=$this->getRequest()->getPost();
|
965 |
$customerAddressId = $postData['billing_address_id'];
|
966 |
if (intval($customerAddressId)!=0) {
|
967 |
+
$data = $postData;
|
968 |
+
$billingAddressId = $this->getRequest()->getPost('billing_address_id');
|
969 |
+
$result = $this->getOnepage()->saveBilling($billing_data, $billingAddressId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
970 |
}
|
971 |
else {
|
972 |
|
1036 |
|
1037 |
}
|
1038 |
}
|
1039 |
+
}
|
app/code/local/MOIP/Onestepcheckout/controllers/TestController.php
CHANGED
@@ -3,6 +3,6 @@ class MOIP_Onestepcheckout_TestController extends Mage_Core_Controller_Front_Act
|
|
3 |
{
|
4 |
public function indexAction()
|
5 |
{
|
6 |
-
|
7 |
}
|
8 |
}
|
3 |
{
|
4 |
public function indexAction()
|
5 |
{
|
6 |
+
echo Mage::getUrl('onestepcheckout/index/updatebillingform');
|
7 |
}
|
8 |
}
|
app/code/local/MOIP/Transparente/Block/Adminhtml/moip/Info/Customermessages.php
CHANGED
@@ -6,4 +6,4 @@ class MOIP_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Sales_Order_View_Tab_
|
|
6 |
return parent::_prepareLayout();
|
7 |
}
|
8 |
|
9 |
-
}
|
6 |
return parent::_prepareLayout();
|
7 |
}
|
8 |
|
9 |
+
}
|
app/code/local/MOIP/Transparente/Block/Standard/CartSave.php
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class MOIP_Transparente_Block_Standard_CartSave extends Mage_Checkout_Block_Onepage_Success{
|
3 |
+
public function __construct(){
|
4 |
+
parent::__construct();
|
5 |
+
}
|
6 |
+
|
7 |
+
public function getVisaImage() {
|
8 |
+
if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
|
9 |
+
return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_visa');
|
10 |
+
}else {
|
11 |
+
return $this->getSkinUrl('MOIP/transparente/imagem/Visa.png');
|
12 |
+
}
|
13 |
+
}
|
14 |
+
public function getMastercardImage() {
|
15 |
+
if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
|
16 |
+
return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_master');
|
17 |
+
}else {
|
18 |
+
return $this->getSkinUrl('MOIP/transparente/imagem/Mastercard.png');
|
19 |
+
}
|
20 |
+
}
|
21 |
+
public function getDinersImage() {
|
22 |
+
if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
|
23 |
+
return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_diners');
|
24 |
+
}else {
|
25 |
+
return $this->getSkinUrl('MOIP/transparente/imagem/Diners.png');
|
26 |
+
}
|
27 |
+
}
|
28 |
+
public function getAmericanExpressImage() {
|
29 |
+
if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
|
30 |
+
return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_american');
|
31 |
+
}else {
|
32 |
+
return $this->getSkinUrl('MOIP/transparente/imagem/AmericanExpress.png');
|
33 |
+
}
|
34 |
+
}
|
35 |
+
public function getHipercardImage() {
|
36 |
+
if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
|
37 |
+
return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_hipercard');
|
38 |
+
}else {
|
39 |
+
return $this->getSkinUrl('MOIP/transparente/imagem/Hipercard.png');
|
40 |
+
}
|
41 |
+
}
|
42 |
+
public function imageCofre($brand){
|
43 |
+
if($brand == "Visa"){
|
44 |
+
$image_brand = $this->getVisaImage();
|
45 |
+
} elseif ($brand == "Mastercard") {
|
46 |
+
$image_brand = $this->getMastercardImage();
|
47 |
+
} elseif ($brand == "AmericanExpress") {
|
48 |
+
$image_brand = $this->getAmericanExpressImage();
|
49 |
+
} elseif ($brand == "Diners") {
|
50 |
+
$image_brand = $this->getDinersImage();
|
51 |
+
} elseif ($brand == "Hipercard") {
|
52 |
+
$image_brand = $this->getHipercardImage();
|
53 |
+
} else {
|
54 |
+
$image_brand = "";
|
55 |
+
}
|
56 |
+
return $image_brand;
|
57 |
+
}
|
58 |
+
public function getCofre() {
|
59 |
+
if (Mage::getSingleton('customer/session')->isLoggedIn()) {
|
60 |
+
$data_array = array();
|
61 |
+
$customerData = Mage::getSingleton('customer/session')->getCustomer();
|
62 |
+
$resource = Mage::getSingleton('core/resource');
|
63 |
+
|
64 |
+
$readConnection = $resource->getConnection('core_read');
|
65 |
+
$table = $readConnection->getTableName('moip_transparente');
|
66 |
+
$query = 'SELECT * FROM ' . $table .' WHERE customer_id='.$customerData->getID().' AND cofre IS NOT NULL';
|
67 |
+
$results = $readConnection->fetchAll($query);
|
68 |
+
if($results){
|
69 |
+
return Mage::helper('core')->jsonEncode((object)$results);
|
70 |
+
} else {
|
71 |
+
return 'false';
|
72 |
+
}
|
73 |
+
|
74 |
+
} else {
|
75 |
+
return 'false';
|
76 |
+
}
|
77 |
+
|
78 |
+
}
|
79 |
+
}
|
app/code/local/MOIP/Transparente/Block/Standard/Form.php
CHANGED
@@ -13,12 +13,12 @@
|
|
13 |
class MOIP_Transparente_Block_Standard_Form extends Mage_Payment_Block_Form {
|
14 |
|
15 |
protected function _construct() {
|
16 |
-
|
17 |
$transparente_layout = Mage::getStoreConfig('moipall/config/transparente_layout');
|
18 |
-
if ($transparente_layout == "
|
19 |
-
$this->setTemplate('MOIP/transparente/vertical_form.phtml');
|
20 |
-
else:
|
21 |
$this->setTemplate('MOIP/transparente/horizontal_form.phtml');
|
|
|
|
|
22 |
endif;
|
23 |
parent::_construct();
|
24 |
}
|
@@ -131,21 +131,21 @@ class MOIP_Transparente_Block_Standard_Form extends Mage_Payment_Block_Form {
|
|
131 |
if ($valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor')) {
|
132 |
$textoresumo = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc')."%.";
|
133 |
}
|
134 |
-
$descontotexto = $textoresumo ."<br/>
|
135 |
|
136 |
|
137 |
if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') && $valor_pedido < Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ) {
|
138 |
$textoresumo = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc2')."%.";
|
139 |
-
$descontotexto = $textoresumo ."<br/>
|
140 |
}
|
141 |
|
142 |
if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ) {
|
143 |
$textoresumo = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc3')."%.";
|
144 |
-
$descontotexto = $textoresumo ."<br/>
|
145 |
}
|
146 |
|
147 |
}else {
|
148 |
-
$textoresumo = "
|
149 |
$descontotexto = "";
|
150 |
}
|
151 |
if ($dataToReturn == 'preview') {
|
@@ -291,18 +291,16 @@ class MOIP_Transparente_Block_Standard_Form extends Mage_Payment_Block_Form {
|
|
291 |
}
|
292 |
|
293 |
if ($dataToReturn == 'preview') {
|
294 |
-
if($
|
295 |
-
|
296 |
-
return "{$v['valor']}";
|
297 |
}
|
298 |
else {
|
299 |
-
|
300 |
-
return "{$cartTotal}";
|
301 |
}
|
302 |
}
|
303 |
if ($dataToReturn == 'preview_parcelas') {
|
304 |
-
if($
|
305 |
-
return "Pague em até {$
|
306 |
} else {
|
307 |
return "Pague em à vista";
|
308 |
}
|
@@ -312,23 +310,44 @@ class MOIP_Transparente_Block_Standard_Form extends Mage_Payment_Block_Form {
|
|
312 |
return $parcelas;
|
313 |
}
|
314 |
}
|
315 |
-
public function
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
}
|
327 |
} else {
|
328 |
-
|
329 |
}
|
|
|
330 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
331 |
|
|
|
332 |
//get customer data
|
333 |
public function getCustomerData($selector) {
|
334 |
|
13 |
class MOIP_Transparente_Block_Standard_Form extends Mage_Payment_Block_Form {
|
14 |
|
15 |
protected function _construct() {
|
16 |
+
|
17 |
$transparente_layout = Mage::getStoreConfig('moipall/config/transparente_layout');
|
18 |
+
if ($transparente_layout == "Horizontal"):
|
|
|
|
|
19 |
$this->setTemplate('MOIP/transparente/horizontal_form.phtml');
|
20 |
+
else:
|
21 |
+
$this->setTemplate('MOIP/transparente/vertical_form.phtml');
|
22 |
endif;
|
23 |
parent::_construct();
|
24 |
}
|
131 |
if ($valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor')) {
|
132 |
$textoresumo = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc')."%.";
|
133 |
}
|
134 |
+
$descontotexto = $textoresumo ."<br/>Via internet bank.";
|
135 |
|
136 |
|
137 |
if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') && $valor_pedido < Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ) {
|
138 |
$textoresumo = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc2')."%.";
|
139 |
+
$descontotexto = $textoresumo ."<br/>Via internet bank.";
|
140 |
}
|
141 |
|
142 |
if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ) {
|
143 |
$textoresumo = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc3')."%.";
|
144 |
+
$descontotexto = $textoresumo ."<br/>Via internet bank.";
|
145 |
}
|
146 |
|
147 |
}else {
|
148 |
+
$textoresumo = "Via internet bank.";
|
149 |
$descontotexto = "";
|
150 |
}
|
151 |
if ($dataToReturn == 'preview') {
|
291 |
}
|
292 |
|
293 |
if ($dataToReturn == 'preview') {
|
294 |
+
if($key > 1){
|
295 |
+
return "{$parcelas_result}";
|
|
|
296 |
}
|
297 |
else {
|
298 |
+
return "{$total_parcelado}";
|
|
|
299 |
}
|
300 |
}
|
301 |
if ($dataToReturn == 'preview_parcelas') {
|
302 |
+
if($key > 1){
|
303 |
+
return "Pague em até {$key}x";
|
304 |
} else {
|
305 |
return "Pague em à vista";
|
306 |
}
|
310 |
return $parcelas;
|
311 |
}
|
312 |
}
|
313 |
+
public function imageCofre($brand){
|
314 |
+
if($brand == "Visa"){
|
315 |
+
$image_brand = $this->getVisaImage();
|
316 |
+
} elseif ($brand == "Mastercard") {
|
317 |
+
$image_brand = $this->getMastercardImage();
|
318 |
+
} elseif ($brand == "AmericanExpress") {
|
319 |
+
$image_brand = $this->getAmericanExpressImage();
|
320 |
+
} elseif ($brand == "Diners") {
|
321 |
+
$image_brand = $this->getDinersImage();
|
322 |
+
} elseif ($brand == "Hipercard") {
|
323 |
+
$image_brand = $this->getHipercardImage();
|
|
|
324 |
} else {
|
325 |
+
$image_brand = "";
|
326 |
}
|
327 |
+
return $image_brand;
|
328 |
}
|
329 |
+
public function getCofre() {
|
330 |
+
if (Mage::getSingleton('customer/session')->isLoggedIn()) {
|
331 |
+
$data_array = array();
|
332 |
+
$customerData = Mage::getSingleton('customer/session')->getCustomer();
|
333 |
+
$resource = Mage::getSingleton('core/resource');
|
334 |
+
|
335 |
+
$readConnection = $resource->getConnection('core_read');
|
336 |
+
$tablePrefix = (string) Mage::getConfig()->getTablePrefix()."moip_transparente";
|
337 |
+
$table = $readConnection->getTableName($tablePrefix);
|
338 |
+
$query = 'SELECT * FROM ' . $table .' WHERE customer_id='.$customerData->getID().' AND cofre IS NOT NULL';
|
339 |
+
$results = $readConnection->fetchAll($query);
|
340 |
+
if($results){
|
341 |
+
return Mage::helper('core')->jsonEncode((object)$results);
|
342 |
+
} else {
|
343 |
+
return 'false';
|
344 |
+
}
|
345 |
+
|
346 |
+
} else {
|
347 |
+
return 'false';
|
348 |
+
}
|
349 |
|
350 |
+
}
|
351 |
//get customer data
|
352 |
public function getCustomerData($selector) {
|
353 |
|
app/code/local/MOIP/Transparente/Block/Standard/Novaforma.php
CHANGED
@@ -11,4 +11,4 @@ class MOIP_Transparente_Block_IndexController_Novaforma extends Mage_Core_Block_
|
|
11 |
|
12 |
}
|
13 |
}
|
14 |
-
?>
|
11 |
|
12 |
}
|
13 |
}
|
14 |
+
?>
|
app/code/local/MOIP/Transparente/Block/Standard/Redirect.php
CHANGED
@@ -12,8 +12,14 @@ class MOIP_Transparente_Block_Standard_Redirect extends Mage_Checkout_Block_Onep
|
|
12 |
$url = "https://www.moip.com.br/Instrucao.do?token=";
|
13 |
}
|
14 |
|
15 |
-
$
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
$model = Mage::getModel('transparente/write');
|
18 |
$model->setRealorder_id($order);
|
19 |
$model->setMeio_pg($pgtoArray['forma_pagamento']);
|
@@ -24,11 +30,23 @@ class MOIP_Transparente_Block_Standard_Redirect extends Mage_Checkout_Block_Onep
|
|
24 |
$brand = $pgtoArray['debito_instituicao'];
|
25 |
} else {
|
26 |
$brand = $pgtoArray['credito_instituicao'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
}
|
28 |
-
$model->setbrand_transparente($brand);
|
29 |
-
$model->setCreditcard_parc($pgtoArray['credito_parcelamento']);
|
30 |
-
$model->setFirst6(substr($pgtoArray['credito_numero'], 0, 6));
|
31 |
-
$model->setLast4(substr($pgtoArray['credito_numero'],-4));
|
32 |
$model->setCustomer_id($customerData->getId());
|
33 |
$model->setUrlcheckout_pg($url.$result_decode['token']);
|
34 |
$model->setToken($result_decode['token']);
|
@@ -42,6 +60,15 @@ class MOIP_Transparente_Block_Standard_Redirect extends Mage_Checkout_Block_Onep
|
|
42 |
catch (Exception $ex) { };
|
43 |
return true;
|
44 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
public function getJson($pgtoArray){
|
46 |
|
47 |
if($pgtoArray['forma_pagamento'] == "BoletoBancario"){
|
@@ -55,26 +82,38 @@ class MOIP_Transparente_Block_Standard_Redirect extends Mage_Checkout_Block_Onep
|
|
55 |
);
|
56 |
|
57 |
} else {
|
|
|
58 |
$expiracao = $pgtoArray['credito_expiracao_mes']."/".$pgtoArray['credito_expiracao_ano'];
|
59 |
$DataNascimento = date('d/m/Y', strtotime($pgtoArray['credito_portador_nascimento']));
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
|
76 |
}
|
77 |
-
$json =
|
78 |
return $json;
|
79 |
|
80 |
}
|
@@ -131,10 +170,23 @@ class MOIP_Transparente_Block_Standard_Redirect extends Mage_Checkout_Block_Onep
|
|
131 |
$this->jsQuoteEscape(Mage::helper('core')->escapeHtml($address->getCountry()))
|
132 |
);
|
133 |
foreach ($order->getAllVisibleItems() as $item) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
$result[] = sprintf("_gaq.push(['_addItem', '%s', '%s', '%s', '%s', '%s', '%s']);",
|
135 |
$order->getIncrementId(),
|
136 |
$this->jsQuoteEscape($item->getSku()), $this->jsQuoteEscape($item->getName()),
|
137 |
-
|
138 |
$item->getBasePrice(), $item->getQtyOrdered()
|
139 |
);
|
140 |
}
|
@@ -222,4 +274,4 @@ class MOIP_Transparente_Block_Standard_Redirect extends Mage_Checkout_Block_Onep
|
|
222 |
private function direita($entra,$comp){
|
223 |
return substr($entra,strlen($entra)-$comp,$comp);
|
224 |
}
|
225 |
-
}
|
12 |
$url = "https://www.moip.com.br/Instrucao.do?token=";
|
13 |
}
|
14 |
|
15 |
+
$model_del = Mage::getModel('transparente/write');
|
16 |
+
|
17 |
+
$model_del->load($order, 'realorder_id');
|
18 |
+
if($model_del->getRealorder_id()){
|
19 |
+
Mage::getSingleton('core/session')->addError('A página não pode ser recarregada.');
|
20 |
+
Mage::app()->getFrontController()->getResponse()->setRedirect(Mage::getUrl('customer/account'));
|
21 |
+
return;
|
22 |
+
}
|
23 |
$model = Mage::getModel('transparente/write');
|
24 |
$model->setRealorder_id($order);
|
25 |
$model->setMeio_pg($pgtoArray['forma_pagamento']);
|
30 |
$brand = $pgtoArray['debito_instituicao'];
|
31 |
} else {
|
32 |
$brand = $pgtoArray['credito_instituicao'];
|
33 |
+
if($pgtoArray['use_cofre'] != 1){
|
34 |
+
$model->setbrand_transparente($brand);
|
35 |
+
$model->setCreditcard_parc($pgtoArray['credito_parcelamento']);
|
36 |
+
$model->setFirst6(substr($pgtoArray['credito_numero'], 0, 6));
|
37 |
+
$model->setLast4(substr($pgtoArray['credito_numero'],-4));
|
38 |
+
} else {
|
39 |
+
$model->setbrand_transparente($pgtoArray['cofre_brand']);
|
40 |
+
$model->setCreditcard_parc($pgtoArray['cofre_parcelamento']);
|
41 |
+
$model->setFirst6('****');
|
42 |
+
$model->setLast4('****');
|
43 |
+
}
|
44 |
+
if($pgtoArray['save_cart'] == "on"){
|
45 |
+
$model->setAceitaCofre(1);
|
46 |
+
} else{
|
47 |
+
$model->setAceitaCofre(0);
|
48 |
+
}
|
49 |
}
|
|
|
|
|
|
|
|
|
50 |
$model->setCustomer_id($customerData->getId());
|
51 |
$model->setUrlcheckout_pg($url.$result_decode['token']);
|
52 |
$model->setToken($result_decode['token']);
|
60 |
catch (Exception $ex) { };
|
61 |
return true;
|
62 |
}
|
63 |
+
|
64 |
+
public function getUrlAmbiente(){
|
65 |
+
if (Mage::getSingleton('transparente/standard')->getConfigData('ambiente') == "teste")
|
66 |
+
$url = "https://desenvolvedor.moip.com.br/sandbox/";
|
67 |
+
else
|
68 |
+
$url = "https://www.moip.com.br/";
|
69 |
+
|
70 |
+
return $url;
|
71 |
+
}
|
72 |
public function getJson($pgtoArray){
|
73 |
|
74 |
if($pgtoArray['forma_pagamento'] == "BoletoBancario"){
|
82 |
);
|
83 |
|
84 |
} else {
|
85 |
+
if($pgtoArray['use_cofre'] != 1){
|
86 |
$expiracao = $pgtoArray['credito_expiracao_mes']."/".$pgtoArray['credito_expiracao_ano'];
|
87 |
$DataNascimento = date('d/m/Y', strtotime($pgtoArray['credito_portador_nascimento']));
|
88 |
+
$json = array(
|
89 |
+
'Forma' => $pgtoArray['forma_pagamento'],
|
90 |
+
'Instituicao' => $pgtoArray['credito_instituicao'],
|
91 |
+
'Parcelas' => $pgtoArray['credito_parcelamento'],
|
92 |
+
'CartaoCredito' => array(
|
93 |
+
'Numero' => $pgtoArray['credito_numero'],
|
94 |
+
'Expiracao' => $expiracao,
|
95 |
+
'CodigoSeguranca' => $pgtoArray['credito_codigo_seguranca'],
|
96 |
+
'Portador' => array(
|
97 |
+
'Nome' => $pgtoArray['credito_portador_nome'],
|
98 |
+
'DataNascimento' => $DataNascimento,
|
99 |
+
'Telefone' => $pgtoArray['credito_portador_DDD'].$pgtoArray['credito_portador_telefone'],
|
100 |
+
'Identidade' => $pgtoArray['credito_portador_cpf']),
|
101 |
+
),
|
102 |
+
);
|
103 |
+
} else{
|
104 |
+
$json = array(
|
105 |
+
'Forma' => $pgtoArray['forma_pagamento'],
|
106 |
+
'Instituicao' => $pgtoArray['cofre_brand'],
|
107 |
+
'Parcelas' => $pgtoArray['cofre_parcelamento'],
|
108 |
+
'CartaoCredito' => array(
|
109 |
+
'Cofre' => $pgtoArray['cofre_numero'],
|
110 |
+
'CodigoSeguranca' => $pgtoArray['cofre_cvv']
|
111 |
+
),
|
112 |
+
);
|
113 |
+
}
|
114 |
|
115 |
}
|
116 |
+
$json = Mage::helper('core')->jsonEncode((object)$json);
|
117 |
return $json;
|
118 |
|
119 |
}
|
170 |
$this->jsQuoteEscape(Mage::helper('core')->escapeHtml($address->getCountry()))
|
171 |
);
|
172 |
foreach ($order->getAllVisibleItems() as $item) {
|
173 |
+
$cProduct = Mage::getModel('catalog/product');
|
174 |
+
$cProductId = $cProduct->getIdBySku($item->getSku());
|
175 |
+
$cProduct->load($cProductId);
|
176 |
+
$category_list = "";
|
177 |
+
$cats = $cProduct->getCategoryCollection()->exportToArray();
|
178 |
+
|
179 |
+
foreach($cats as $cat){
|
180 |
+
$category_list .= Mage::getModel('catalog/category')->load($cat['entity_id'])->getName()."|";
|
181 |
+
}
|
182 |
+
|
183 |
+
|
184 |
+
$category_list = rtrim($category_list,"|");
|
185 |
+
|
186 |
$result[] = sprintf("_gaq.push(['_addItem', '%s', '%s', '%s', '%s', '%s', '%s']);",
|
187 |
$order->getIncrementId(),
|
188 |
$this->jsQuoteEscape($item->getSku()), $this->jsQuoteEscape($item->getName()),
|
189 |
+
$category_list,
|
190 |
$item->getBasePrice(), $item->getQtyOrdered()
|
191 |
);
|
192 |
}
|
274 |
private function direita($entra,$comp){
|
275 |
return substr($entra,strlen($entra)-$comp,$comp);
|
276 |
}
|
277 |
+
}
|
app/code/local/MOIP/Transparente/Helper/Data.php
CHANGED
@@ -11,4 +11,4 @@
|
|
11 |
*/
|
12 |
class MOIP_Transparente_Helper_Data extends Mage_Core_Helper_Abstract {
|
13 |
|
14 |
-
}
|
11 |
*/
|
12 |
class MOIP_Transparente_Helper_Data extends Mage_Core_Helper_Abstract {
|
13 |
|
14 |
+
}
|
app/code/local/MOIP/Transparente/Model/.ftpquota
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
12 33136
|
|
app/code/local/MOIP/Transparente/Model/Api.php
CHANGED
@@ -128,7 +128,7 @@ class MOIP_Transparente_Model_Api {
|
|
128 |
$Pagador->addChild('IdPagador',$data['pagador_email']);
|
129 |
$EnderecoCobranca = $Pagador->addChild('EnderecoCobranca');
|
130 |
$EnderecoCobranca->addChild('Logradouro', $data['pagador_logradouro']);
|
131 |
-
$EnderecoCobranca->addChild('Numero', $data['
|
132 |
$EnderecoCobranca->addChild('Complemento', $data['pagador_complemento']);
|
133 |
$EnderecoCobranca->addChild('Bairro', $data['pagador_bairro']);
|
134 |
$EnderecoCobranca->addChild('Cidade', $data['pagador_cidade']);
|
@@ -136,7 +136,7 @@ class MOIP_Transparente_Model_Api {
|
|
136 |
$EnderecoCobranca->addChild('Pais', 'BRA');
|
137 |
$EnderecoCobranca->addChild('CEP', $data['pagador_cep']);
|
138 |
$EnderecoCobranca->addChild('TelefoneFixo', $data['pagador_ddd'] . $data['pagador_telefone']);
|
139 |
-
$Parcelamentos = $InstrucaoUnica->addChild('Parcelamentos'
|
140 |
if($tipo_parcelamento == 1){
|
141 |
$max_parcelas = $parcelamento['c_ate1'];
|
142 |
$min_parcelas = $parcelamento['c_de1'];
|
@@ -203,6 +203,7 @@ class MOIP_Transparente_Model_Api {
|
|
203 |
$standard = Mage::getSingleton('transparente/standard');
|
204 |
$parcelamento = $standard->getInfoParcelamento();
|
205 |
$parcelas = array();
|
|
|
206 |
$juros = array();
|
207 |
$primeiro = 1;
|
208 |
$max_div = $valor/(int)Mage::getSingleton('transparente/standard')->getConfigData('valorminimoparcela');
|
@@ -245,9 +246,10 @@ class MOIP_Transparente_Model_Api {
|
|
245 |
if($primeiro < 12 && $primeiro < ($valor/(int)Mage::getSingleton('transparente/standard')->getConfigData('valorminimoparcela')) )
|
246 |
{
|
247 |
while ($primeiro <= 12) {
|
248 |
-
$total_parcelado[$primeiro] =
|
249 |
$parcelas[$primeiro] = $this->getJurosComposto($valor, '2.99', $primeiro);
|
250 |
-
$
|
|
|
251 |
|
252 |
$json_parcelas[$primeiro] = array(
|
253 |
'parcela' => Mage::helper('core')->currency($parcelas[$primeiro], true, false),
|
128 |
$Pagador->addChild('IdPagador',$data['pagador_email']);
|
129 |
$EnderecoCobranca = $Pagador->addChild('EnderecoCobranca');
|
130 |
$EnderecoCobranca->addChild('Logradouro', $data['pagador_logradouro']);
|
131 |
+
$EnderecoCobranca->addChild('Numero', $data['pagador_numero']);
|
132 |
$EnderecoCobranca->addChild('Complemento', $data['pagador_complemento']);
|
133 |
$EnderecoCobranca->addChild('Bairro', $data['pagador_bairro']);
|
134 |
$EnderecoCobranca->addChild('Cidade', $data['pagador_cidade']);
|
136 |
$EnderecoCobranca->addChild('Pais', 'BRA');
|
137 |
$EnderecoCobranca->addChild('CEP', $data['pagador_cep']);
|
138 |
$EnderecoCobranca->addChild('TelefoneFixo', $data['pagador_ddd'] . $data['pagador_telefone']);
|
139 |
+
$Parcelamentos = $InstrucaoUnica->addChild('Parcelamentos');
|
140 |
if($tipo_parcelamento == 1){
|
141 |
$max_parcelas = $parcelamento['c_ate1'];
|
142 |
$min_parcelas = $parcelamento['c_de1'];
|
203 |
$standard = Mage::getSingleton('transparente/standard');
|
204 |
$parcelamento = $standard->getInfoParcelamento();
|
205 |
$parcelas = array();
|
206 |
+
$json_parcelas = array();
|
207 |
$juros = array();
|
208 |
$primeiro = 1;
|
209 |
$max_div = $valor/(int)Mage::getSingleton('transparente/standard')->getConfigData('valorminimoparcela');
|
246 |
if($primeiro < 12 && $primeiro < ($valor/(int)Mage::getSingleton('transparente/standard')->getConfigData('valorminimoparcela')) )
|
247 |
{
|
248 |
while ($primeiro <= 12) {
|
249 |
+
$total_parcelado[$primeiro] = "";
|
250 |
$parcelas[$primeiro] = $this->getJurosComposto($valor, '2.99', $primeiro);
|
251 |
+
$total_parcelado[$primeiro] = $parcelas[$primeiro]*$primeiro;
|
252 |
+
$juros[$primeiro] = '2.99';
|
253 |
|
254 |
$json_parcelas[$primeiro] = array(
|
255 |
'parcela' => Mage::helper('core')->currency($parcelas[$primeiro], true, false),
|
app/code/local/MOIP/Transparente/Model/Mysql4/Collection.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
-
class
|
3 |
{
|
4 |
public function _construct()
|
5 |
{
|
6 |
parent::_construct();
|
7 |
-
$this->_init('transparente/
|
8 |
}
|
9 |
-
}
|
1 |
<?php
|
2 |
+
class MOIP_Transparente_Model_Mysql4_Transparente_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
|
3 |
{
|
4 |
public function _construct()
|
5 |
{
|
6 |
parent::_construct();
|
7 |
+
$this->_init('transparente/transparente');
|
8 |
}
|
9 |
+
}
|
app/code/local/MOIP/Transparente/Model/Mysql4/Write.php
CHANGED
@@ -6,4 +6,4 @@ class MOIP_Transparente_Model_Mysql4_Write extends Mage_Core_Model_Mysql4_Abstra
|
|
6 |
$this->_init('transparente/write', 'order_id');
|
7 |
}
|
8 |
}
|
9 |
-
?>
|
6 |
$this->_init('transparente/write', 'order_id');
|
7 |
}
|
8 |
}
|
9 |
+
?>
|
app/code/local/MOIP/Transparente/Model/Observer.php
CHANGED
@@ -1,169 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class
|
4 |
{
|
5 |
-
public function
|
6 |
-
{
|
7 |
-
$standard = Mage::getSingleton('transparente/standard');
|
8 |
-
$api = Mage::getSingleton('transparente/api');
|
9 |
-
$conta = $api->setContaTransparente($standard->getConfigData('conta_transparente'));
|
10 |
-
$ambiente = $standard->getConfigData('ambiente');
|
11 |
-
$api->setAmbiente($standard->getConfigData('ambiente'));
|
12 |
-
$tem = $event->getOrderCreateModel();
|
13 |
-
$que = $tem->getQuote();
|
14 |
-
$orderid = "";
|
15 |
-
$orderid = $que->getentity_id();
|
16 |
-
$lastOrderId = $que->getOrder();
|
17 |
-
$parametros = $event->getrequest();
|
18 |
-
$key = $event->getparamentro();
|
19 |
-
$formadepgto = $parametros ['forma_pagamento'];
|
20 |
-
$pedido_form = "";
|
21 |
-
$pedido_form = $key ['key'];
|
22 |
-
if ($formadepgto == 'DebitoBancario'){
|
23 |
-
$bandeira = $parametros [debito_instituicao];
|
24 |
-
}
|
25 |
-
if ($formadepgto == 'BoletoBancario'){
|
26 |
-
$bandeira = "Bradesco";
|
27 |
-
}
|
28 |
-
if ($formadepgto == 'CartaoCredito'){
|
29 |
-
$bandeira = $parametros [Bandeira];
|
30 |
-
|
31 |
-
}
|
32 |
-
$valor = $que->getgrand_total();
|
33 |
-
$customer_id = $que->getcustomer_id();
|
34 |
-
|
35 |
-
/*travado para dev */
|
36 |
-
|
37 |
-
if ($bandeira != ""){
|
38 |
-
$address = Mage::getModel('sales/order_address')->load($customer_id);
|
39 |
-
$nomecli = $address->getFirstname() . ' ' . $address->getLastname();
|
40 |
-
$email = $address->getEmail();
|
41 |
-
$telefone = $address->getTelephone();
|
42 |
-
$lougadoro = $address->getStreet(1);
|
43 |
-
$numero = $address->getStreet(2);
|
44 |
-
$complemento = $address->getStreet(2);
|
45 |
-
$bairro = $address->getStreet(4);
|
46 |
-
$cep = $address->getPostcode();
|
47 |
-
$cidade = $address->getCity();
|
48 |
-
$estado = strtoupper($address->getRegionCode());
|
49 |
-
$alterapedido = rand(544, 15);
|
50 |
-
$data['id_transacao'] = "13eliseiadm".$alterapedido;
|
51 |
-
$pgtoArray = Array("conta_transparente" => "elisei",
|
52 |
-
"apelido" => "localhost do bruno",
|
53 |
-
"comissionamento" => "0",
|
54 |
-
"parcelamento2" => "",
|
55 |
-
"forma_pagamento" => $formadepgto);
|
56 |
-
#preciso arrumar baseado nos dados do forme para formade pagamento e nos do admin para outros itens.
|
57 |
-
$Arr = array(
|
58 |
-
'id_carteira' => 'moip',
|
59 |
-
'pagador_nome' => $nomecli,
|
60 |
-
'id_transacao' => $data['id_transacao'],
|
61 |
-
'valor' => $valor,
|
62 |
-
'pagador_email' => $email,
|
63 |
-
'pagador_logradouro' => $lougadoro,
|
64 |
-
'pagador_telefone' => $telefone,
|
65 |
-
'pagador_numero' => $numero,
|
66 |
-
'pagador_complemento' => $complemento,
|
67 |
-
'pagador_bairro' => $bairro,
|
68 |
-
'pagador_cep' => $cep,
|
69 |
-
'pagador_cidade' => $cidade,
|
70 |
-
'pagador_estado' => $estado,
|
71 |
-
);
|
72 |
-
$data = $Arr;
|
73 |
-
$xml = $api->generateXML($data, $pgtoArray);
|
74 |
-
$token = $api->getToken($xml);
|
75 |
-
$token = $token['token'];
|
76 |
-
$pedido = $data['id_transacao'];
|
77 |
-
if ($xml != "" && $orderid != "" && $token != "" && $bandeira != "")
|
78 |
-
{
|
79 |
-
$connR = Mage::getSingleton('core/resource')->getConnection('core_read');
|
80 |
-
$sql = "SELECT * FROM `transparente` WHERE `realorder_id` = '".$orderid."'";
|
81 |
-
$_venda = $connR->fetchAll($sql);
|
82 |
-
foreach($_venda as $venda)
|
83 |
-
{
|
84 |
-
$update = $venda['realorder_id'];
|
85 |
-
}
|
86 |
-
if($update != "")
|
87 |
-
{
|
88 |
-
$hora = date('Y-m-d H:i:s');
|
89 |
-
$conn = Mage::getSingleton('core/resource')->getConnection('core_write');
|
90 |
-
$results = $conn->query("UPDATE `transparente` SET `sale_id` = '".$pedido_form."' ,`xml_return` = '".$token."', `formapg` = '".$formadepgto."', `bandeira` = '".$bandeira."' WHERE `realorder_id` = '".$orderid."';");
|
91 |
-
}
|
92 |
-
else {
|
93 |
-
$hora = date('Y-m-d H:i:s');
|
94 |
-
$conn = Mage::getSingleton('core/resource')->getConnection('core_write');
|
95 |
-
$results = $conn->query("INSERT INTO `transparente` (
|
96 |
-
`transaction_id` ,
|
97 |
-
`realorder_id` ,
|
98 |
-
`sale_id` ,
|
99 |
-
`xml_sent` ,
|
100 |
-
`xml_return` ,
|
101 |
-
`status` ,
|
102 |
-
`formapg` ,
|
103 |
-
`bandeira` ,
|
104 |
-
`digito` ,
|
105 |
-
`vencimento` ,
|
106 |
-
`datetime`
|
107 |
-
)
|
108 |
-
VALUES (
|
109 |
-
NULL , '".$orderid."', '".$pedido_form."', '".$xml."', '".$token."', 'Sucesso', '".$formadepgto."', '".$bandeira."', '".$valor."', '', '".$hora."'
|
110 |
-
);");
|
111 |
-
}
|
112 |
-
}
|
113 |
-
}
|
114 |
-
/*$orderid.$nomecli.$email.$lougadoro.$numero.$bairro.$cep.$cidade.$estado.$token*/
|
115 |
-
|
116 |
-
|
117 |
-
return $this;
|
118 |
-
}
|
119 |
-
|
120 |
-
public function get_token($event)
|
121 |
-
{
|
122 |
-
$quote = $event->getOrder();
|
123 |
-
$idmage = $quote->getquote_id();
|
124 |
-
$valor = $quote->getgrand_total();
|
125 |
-
$increment_id = $quote->getincrement_id();
|
126 |
-
$connR = Mage::getSingleton('core/resource')->getConnection('core_read');
|
127 |
-
$sql = "SELECT * FROM `transparente` WHERE `realorder_id` = '".$idmage."'";
|
128 |
-
$_venda = $connR->fetchAll($sql);
|
129 |
-
foreach($_venda as $venda)
|
130 |
-
{
|
131 |
-
$sale_id = $venda['sale_id'];
|
132 |
-
}
|
133 |
-
if ($increment_id != $sale_id){
|
134 |
-
$conn = Mage::getSingleton('core/resource')->getConnection('core_write');
|
135 |
-
$results = $conn->query("UPDATE `transparente` SET `sale_id` = '".$increment_id."' WHERE `realorder_id` = '".$idmage."';");
|
136 |
-
}
|
137 |
-
|
138 |
-
return $this;
|
139 |
-
}
|
140 |
-
|
141 |
-
public function reorganiza($event)
|
142 |
-
{
|
143 |
-
$quote = $event->getOrder();
|
144 |
-
$idmage = $quote->getquote_id();
|
145 |
-
$valor = $quote->getgrand_total();
|
146 |
-
$increment_id = $quote->getincrement_id();
|
147 |
-
$customer_id = $quote->getcustomer_id();
|
148 |
-
$address = Mage::getModel('sales/order_address')->load($customer_id);
|
149 |
-
$nomecli = $address->getFirstname() . ' ' . $address->getLastname();
|
150 |
-
$email = $address->getEmail();
|
151 |
-
$orderInstance = $event->getOrder();
|
152 |
-
$connR = Mage::getSingleton('core/resource')->getConnection('core_read');
|
153 |
-
$sql = "SELECT * FROM `transparente` WHERE `realorder_id` = '".$idmage."'";
|
154 |
-
$_venda = $connR->fetchAll($sql);
|
155 |
-
foreach($_venda as $venda)
|
156 |
-
{
|
157 |
-
$tokenpagamento = $venda['xml_return'];
|
158 |
-
}
|
159 |
-
$session = Mage::getSingleton('adminhtml/session');
|
160 |
-
$orderHistoryComment = $tokenpagamento['0'];
|
161 |
-
$this->getResponse()->setBody($session->getUpdateResult());
|
162 |
-
$orderInstance->addStatusHistoryComment($orderHistoryComment, false);
|
163 |
-
|
164 |
-
}
|
165 |
-
|
166 |
-
public function generateInvoice($observer){
|
167 |
|
168 |
}
|
169 |
|
1 |
<?php
|
2 |
|
3 |
+
class Transparente_OrdersCancel_Model_Observer
|
4 |
{
|
5 |
+
public function cancelOldOrders($schedule) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
}
|
8 |
|
app/code/local/MOIP/Transparente/Model/Resource/Custommodel.php
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class MOIP_Transparente_Model_Resource_Custommodel_Collection extends Mage_Core_Model_Resource_Db_Collection_Abstract {
|
3 |
+
protected function _construct()
|
4 |
+
{
|
5 |
+
$this->_init('transparente/custommodel');
|
6 |
+
}
|
7 |
+
}
|
8 |
+
|
9 |
+
?>
|
app/code/local/MOIP/Transparente/Model/Standard.php
CHANGED
@@ -24,11 +24,18 @@ class MOIP_Transparente_Model_Standard extends Mage_Payment_Model_Method_Abstrac
|
|
24 |
if (!($data instanceof Varien_Object)) {
|
25 |
$data = new Varien_Object($data);
|
26 |
}
|
|
|
27 |
$info = $this->getInfoInstance();
|
28 |
$info->setFormaPagamento($data->getFormaPagamento());
|
29 |
$info->setDebitoInstituicao($data->getDebitoInstituicao());
|
30 |
$info->setCreditoInstituicao($data->getCreditoInstituicao());
|
31 |
$info->setCreditoNumero($data->getCreditoNumero());
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
$info->setCreditoExpiracaoMes($data->getCreditoExpiracaoMes());
|
33 |
$info->setCreditoExpiracaoAno($data->getCreditoExpiracaoAno());
|
34 |
$info->setCreditoCodigoSeguranca($data->getCreditoCodigoSeguranca());
|
@@ -81,6 +88,12 @@ class MOIP_Transparente_Model_Standard extends Mage_Payment_Model_Method_Abstrac
|
|
81 |
$pgtoArray['apelido'] = $this->getConfigData('apelido');
|
82 |
$pgtoArray['credito_instituicao'] = $info->getCreditoInstituicao();
|
83 |
$pgtoArray['credito_numero'] = $info->getCreditoNumero();
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
$pgtoArray['credito_expiracao_mes'] = $info->getCreditoExpiracaoMes();
|
85 |
$pgtoArray['credito_expiracao_ano'] = $info->getCreditoExpiracaoAno();
|
86 |
$pgtoArray['credito_codigo_seguranca'] = $info->getCreditoCodigoSeguranca();
|
@@ -126,8 +139,8 @@ class MOIP_Transparente_Model_Standard extends Mage_Payment_Model_Method_Abstrac
|
|
126 |
'pagador_ddd' => $this->getNumberOrDDD($a->getTelephone(), true),
|
127 |
'pagador_telefone' => $this->getNumberOrDDD($a->getTelephone()),
|
128 |
'pagador_logradouro' => $a->getStreet(1),
|
129 |
-
'pagador_numero' => $
|
130 |
-
'pagador_complemento' => $a->getStreet(
|
131 |
'pagador_bairro' => $a->getStreet(4),
|
132 |
'pagador_cep' => $cep,
|
133 |
'pagador_cidade' => $a->getCity(),
|
24 |
if (!($data instanceof Varien_Object)) {
|
25 |
$data = new Varien_Object($data);
|
26 |
}
|
27 |
+
|
28 |
$info = $this->getInfoInstance();
|
29 |
$info->setFormaPagamento($data->getFormaPagamento());
|
30 |
$info->setDebitoInstituicao($data->getDebitoInstituicao());
|
31 |
$info->setCreditoInstituicao($data->getCreditoInstituicao());
|
32 |
$info->setCreditoNumero($data->getCreditoNumero());
|
33 |
+
$info->setUseCofre($data->getUseCofre());
|
34 |
+
$info->setCofreBrand($data->getCofreBrand());
|
35 |
+
$info->setCofreNumero($data->getCofreNumero());
|
36 |
+
$info->setCofreParcelamento($data->getCofreParcelamento());
|
37 |
+
$info->setCofreCvv($data->getCofreCvv());
|
38 |
+
$info->setSaveCart($data->getSaveCart());
|
39 |
$info->setCreditoExpiracaoMes($data->getCreditoExpiracaoMes());
|
40 |
$info->setCreditoExpiracaoAno($data->getCreditoExpiracaoAno());
|
41 |
$info->setCreditoCodigoSeguranca($data->getCreditoCodigoSeguranca());
|
88 |
$pgtoArray['apelido'] = $this->getConfigData('apelido');
|
89 |
$pgtoArray['credito_instituicao'] = $info->getCreditoInstituicao();
|
90 |
$pgtoArray['credito_numero'] = $info->getCreditoNumero();
|
91 |
+
$pgtoArray['use_cofre'] = $info->getUseCofre();
|
92 |
+
$pgtoArray['cofre_brand'] = $info->getCofreBrand();
|
93 |
+
$pgtoArray['cofre_numero'] = $info->getCofreNumero();
|
94 |
+
$pgtoArray['cofre_parcelamento'] = $info->getCofreParcelamento();
|
95 |
+
$pgtoArray['cofre_cvv'] = $info->getCofreCvv();
|
96 |
+
$pgtoArray['save_cart'] = $info->getSaveCart();
|
97 |
$pgtoArray['credito_expiracao_mes'] = $info->getCreditoExpiracaoMes();
|
98 |
$pgtoArray['credito_expiracao_ano'] = $info->getCreditoExpiracaoAno();
|
99 |
$pgtoArray['credito_codigo_seguranca'] = $info->getCreditoCodigoSeguranca();
|
139 |
'pagador_ddd' => $this->getNumberOrDDD($a->getTelephone(), true),
|
140 |
'pagador_telefone' => $this->getNumberOrDDD($a->getTelephone()),
|
141 |
'pagador_logradouro' => $a->getStreet(1),
|
142 |
+
'pagador_numero' => $a->getStreet(2),
|
143 |
+
'pagador_complemento' => $a->getStreet(3),
|
144 |
'pagador_bairro' => $a->getStreet(4),
|
145 |
'pagador_cep' => $cep,
|
146 |
'pagador_cidade' => $a->getCity(),
|
app/code/local/MOIP/Transparente/Model/Write.php
CHANGED
@@ -5,4 +5,4 @@
|
|
5 |
{
|
6 |
$this->_init('transparente/write');
|
7 |
}
|
8 |
-
}
|
5 |
{
|
6 |
$this->_init('transparente/write');
|
7 |
}
|
8 |
+
}
|
app/code/local/MOIP/Transparente/controllers/IndexController.php
CHANGED
@@ -41,6 +41,21 @@ class MOIP_Transparente_IndexController extends Mage_Core_Controller_Front_Actio
|
|
41 |
echo end($parcelas);
|
42 |
}
|
43 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
public function NovaformaAction() {
|
45 |
if($this->getRequest()->getParams()){
|
46 |
$model = Mage::getModel('transparente/write');
|
@@ -156,4 +171,4 @@ class MOIP_Transparente_IndexController extends Mage_Core_Controller_Front_Actio
|
|
156 |
|
157 |
return $retorno;
|
158 |
}
|
159 |
-
}
|
41 |
echo end($parcelas);
|
42 |
}
|
43 |
}
|
44 |
+
public function CartoesAction() {
|
45 |
+
$this->loadLayout();
|
46 |
+
$this->renderLayout();
|
47 |
+
}
|
48 |
+
public function RemoveAction() {
|
49 |
+
if($this->getRequest()->getParams()){
|
50 |
+
$data = $this->getRequest()->getParams();
|
51 |
+
$model = Mage::getModel('transparente/write');
|
52 |
+
$model->load($data['cofre_remove'], 'cofre');
|
53 |
+
$model->setAceitaCofre(0);
|
54 |
+
$model->setCofre();
|
55 |
+
$model->save();
|
56 |
+
return true;
|
57 |
+
}
|
58 |
+
}
|
59 |
public function NovaformaAction() {
|
60 |
if($this->getRequest()->getParams()){
|
61 |
$model = Mage::getModel('transparente/write');
|
171 |
|
172 |
return $retorno;
|
173 |
}
|
174 |
+
}
|
app/code/local/MOIP/Transparente/controllers/StandardController.php
CHANGED
@@ -13,6 +13,11 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
13 |
public function getStandard() {
|
14 |
return Mage::getSingleton('transparente/standard');
|
15 |
}
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
protected function _expireAjax() {
|
18 |
if (!Mage::getSingleton('checkout/session')->getQuote()->hasItems()) {
|
@@ -44,13 +49,6 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
44 |
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
|
45 |
curl_setopt($ch, CURLOPT_HTTPHEADER, array($header, $documento));
|
46 |
$res = curl_exec($ch);
|
47 |
-
if($res === false)
|
48 |
-
{
|
49 |
-
|
50 |
-
Mage::log(curl_error($ch), null, 'MOIP_Transparente.log', true);
|
51 |
-
Mage::log($xml, null, 'MOIP_Transparente.log', true);
|
52 |
-
$this->generateToken($xml);
|
53 |
-
}
|
54 |
curl_close($ch);
|
55 |
|
56 |
|
@@ -61,14 +59,14 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
61 |
Mage::log($result['token'], null, 'MOIP_Transparente.log', true);
|
62 |
Mage::log($xml, null, 'MOIP_Transparente.log', true);
|
63 |
$session->setResult_decode($result);
|
64 |
-
|
65 |
return $result;
|
66 |
}
|
67 |
else {
|
68 |
-
$result['status'] = (string)$res->Resposta->Status;
|
69 |
$result['erro'] = (string)$res->Resposta->Erro;
|
70 |
-
Mage::log("
|
71 |
Mage::log($xml, null, 'MOIP_Transparente.log', true);
|
|
|
|
|
72 |
return $result;
|
73 |
}
|
74 |
|
@@ -76,6 +74,9 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
76 |
}
|
77 |
public function redirectAction() {
|
78 |
$session = Mage::getSingleton('checkout/session');
|
|
|
|
|
|
|
79 |
$getSaltes = Mage::getModel('sales/order');
|
80 |
$standard = $this->getStandard();
|
81 |
$fields = $session->getTransparenteFields();
|
@@ -88,16 +89,6 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
88 |
$session->setPgtoarry($pgtoArray);
|
89 |
$session->setClient_array($fields);
|
90 |
$this->loadLayout();
|
91 |
-
#$this->getLayout()->getBlock('content')->append($this->getLayout()->createBlock('MOIP_Transparente_Block_Standard_Redirect'));
|
92 |
-
if($pgtoArray['forma_pagamento'] == "BoletoBancario"){
|
93 |
-
$this->getLayout()->getBlock('content')->append('transparente.boleto');
|
94 |
-
}
|
95 |
-
elseif ($pgtoArray['forma_pagamento'] == "DebitoBancario") {
|
96 |
-
$this->getLayout()->getBlock('content')->append('transparente.transferencia');
|
97 |
-
}
|
98 |
-
elseif ($pgtoArray['forma_pagamento'] == "CartaoCredito") {
|
99 |
-
$this->getLayout()->getBlock('content')->append('transparente.cartao');
|
100 |
-
}
|
101 |
$this->renderLayout();
|
102 |
}
|
103 |
|
@@ -118,6 +109,7 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
118 |
public function successAction() {
|
119 |
$standard = $this->getStandard();
|
120 |
$naexecuta = "";
|
|
|
121 |
$validacao = $this->getRequest()->getParams();
|
122 |
if($validacao['validacao'] == $standard->getConfigData('validador_retorno')){
|
123 |
$data = $this->getRequest()->getPost();
|
@@ -126,9 +118,18 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
126 |
$order_magento = strpos($data_transparente, $login);
|
127 |
$order_magento = substr($data_transparente, strpos($data_transparente, "_") + 1);
|
128 |
$model = Mage::getModel('transparente/write');
|
129 |
-
|
130 |
$order = Mage::getModel('sales/order')->load($order_magento);
|
131 |
$id_order = $order->getId();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
$states_atual = $order->getStatus();
|
133 |
if($states_atual == "processing"){
|
134 |
$naexecuta = 1;
|
@@ -139,16 +140,21 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
139 |
if($states_atual == "closed"){
|
140 |
$naexecuta = 1;
|
141 |
}
|
|
|
|
|
|
|
142 |
if($states_atual == 'canceled' && $data['status_pagamento']==5){
|
143 |
$naexecuta = 1;
|
144 |
}
|
145 |
Mage::log("Nasp acionou para o pedido ".$order_magento. " - Status - " .$data['status_pagamento'], null, 'MOIP_Transparente.log', true);
|
146 |
-
if ($order->isCanceled() && $data['status_pagamento']
|
147 |
-
|
148 |
$order->setState(Mage_Sales_Model_Order::STATE_NEW);
|
149 |
$produtos = array();
|
|
|
|
|
150 |
foreach ($order->getAllItems() as $item) {
|
151 |
-
$item->setQtyCanceled(
|
152 |
$item->save();
|
153 |
$stockItem = Mage::getModel('cataloginventory/stock_item')->loadByProduct($item->getProductId());
|
154 |
$stockItem->subtractQty($item->getQtyOrdered());
|
@@ -160,11 +166,11 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
160 |
$rowTotal = $item->getPrice();
|
161 |
$orderItem = Mage::getModel('sales/order_item')
|
162 |
->setStoreId($order->getStore()->getStoreId())
|
163 |
-
->setQuoteItemId(
|
164 |
->setQuoteParentItemId(NULL)
|
165 |
->setProductId($item->getId())
|
166 |
->setProductType($item->getTypeId())
|
167 |
-
->setQtyBackordered(
|
168 |
->setTotalQtyOrdered($qty)
|
169 |
->setQtyOrdered($qty)
|
170 |
->setName($item->getName())
|
@@ -177,12 +183,31 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
177 |
->setOrder($order);
|
178 |
$orderItem->save();
|
179 |
}
|
|
|
180 |
$order->save();
|
181 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
}
|
183 |
switch ($data['status_pagamento']) {
|
184 |
case "1":
|
185 |
-
if($states_atual != 'processing'){
|
186 |
$state = Mage_Sales_Model_Order::STATE_PROCESSING;
|
187 |
$status = 'processing';
|
188 |
$comment = $this->getStatusPagamentoTransparente($status).' - Codig. Transparente: '.$data['cod_moip'];
|
@@ -214,12 +239,16 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
214 |
}
|
215 |
break;
|
216 |
case "5":
|
|
|
|
|
|
|
217 |
$state = Mage_Sales_Model_Order::STATE_CANCELED;
|
218 |
$status = 'canceled';
|
219 |
$comment = $this->getStatusPagamentoTransparente($data['status_pagamento']).' - Codig. Transparente: '.$data['cod_moip'].' - Motivo: '.utf8_encode($data['classificacao']);
|
220 |
$order->cancel();
|
221 |
break;
|
222 |
case "6":
|
|
|
223 |
$state = Mage_Sales_Model_Order::STATE_HOLDED;
|
224 |
$status = 'holded';
|
225 |
$comment = $this->getStatusPagamentoTransparente($data['status_pagamento']).' - Codig. Transparente: '.$data['cod_moip'];
|
@@ -234,10 +263,10 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
234 |
}
|
235 |
}
|
236 |
echo 'Processo de retorno concluido para o pedido #'.$id_order.' Status '.$status;
|
237 |
-
Mage::log("Cliente do pedido ".$id_order. " - Status - " .$states_atual, null, 'MOIP_Transparente.log', true);
|
238 |
}
|
239 |
else {
|
240 |
-
Mage::log("Nao atualizado transparente Cliente do pedido ".$id_order. " - Status - " .$states_atual , null, 'MOIP_Transparente.log', true);
|
241 |
}
|
242 |
}
|
243 |
}
|
@@ -321,36 +350,31 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
321 |
}
|
322 |
|
323 |
|
324 |
-
public function post_correio($url, $get) {
|
325 |
$url = explode('?', $url, 2);
|
326 |
-
|
327 |
$ch = curl_init($url[0]."?".http_build_query($get));
|
328 |
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
|
329 |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
330 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
331 |
-
|
332 |
return curl_exec($ch);
|
333 |
}
|
334 |
public function buscaCepAction() {
|
335 |
$data = $this->getRequest()->getParams();
|
336 |
if ($data['meio'] == "buscaend") {
|
337 |
-
|
338 |
-
$rua = $data['busca_end'];
|
339 |
$vSomeSpecialChars = array("á", "á","é","é", "í","í", "ó", "ú", "Á","À","É","È", "Í", "Ì","Ó", "Ú", "ç", "Ç", "ã", "Ã", "õ", "Õ");
|
340 |
$vReplacementChars = array("a", "a", "e","e", "i","i", "o", "u", "A", "A","E","E", "I", "I","O", "U", "c", "C", "a", "A", "o", "O");
|
341 |
$rua = str_replace($vSomeSpecialChars, $vReplacementChars, $rua);
|
342 |
-
$rua =
|
343 |
$uf = $data['busca_uf'];
|
344 |
-
$url_end = "http://endereco.ecorreios.com.br/
|
345 |
$get = array(
|
346 |
-
'cep' =>'',
|
347 |
'busca_end' =>$rua,
|
348 |
'busca_uf' =>$uf,
|
349 |
);
|
350 |
$config = array('adapter' => 'Zend_Http_Client_Adapter_Socket');
|
351 |
$resposta = $this->post_correio($url_end, $get);
|
352 |
-
|
353 |
-
|
354 |
$this->getResponse()->setBody($resposta);
|
355 |
}
|
356 |
|
@@ -365,20 +389,22 @@ public function post_correio($url, $get) {
|
|
365 |
$ch = curl_init($url[0]."?".http_build_query($get));
|
366 |
curl_setopt($ch, CURLOPT_POST, 1);
|
367 |
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post));
|
368 |
-
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_0 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8A293 Safari/6531.22.7');
|
369 |
-
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
|
370 |
-
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
371 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
372 |
-
Mage::log(curl_exec($ch));
|
373 |
return curl_exec($ch);
|
374 |
}
|
375 |
$cep = $data['cep'];
|
376 |
$cep = substr(preg_replace("/[^0-9]/", "", $cep) . '00000000', 0, 8);
|
377 |
-
$url_end = "http://endereco.ecorreios.com.br/
|
378 |
$config = array('adapter' => 'Zend_Http_Client_Adapter_Socket');
|
379 |
$client = new Zend_Http_Client($url_end, $config);
|
380 |
$response = $client->request();
|
381 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
382 |
switch ($endereco['uf']) {
|
383 |
case "AC":
|
384 |
$endereco['ufid'] = 485;
|
@@ -462,7 +488,8 @@ public function post_correio($url, $get) {
|
|
462 |
$endereco['ufid'] = 511;
|
463 |
break;
|
464 |
}
|
465 |
-
$this->getResponse()->setBody(
|
|
|
466 |
}
|
467 |
}
|
468 |
-
}
|
13 |
public function getStandard() {
|
14 |
return Mage::getSingleton('transparente/standard');
|
15 |
}
|
16 |
+
public function _prepareLayout()
|
17 |
+
{
|
18 |
+
$this->addMessages(Mage::getSingleton('core/session')->getMessages(true));
|
19 |
+
parent::_prepareLayout();
|
20 |
+
}
|
21 |
|
22 |
protected function _expireAjax() {
|
23 |
if (!Mage::getSingleton('checkout/session')->getQuote()->hasItems()) {
|
49 |
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
|
50 |
curl_setopt($ch, CURLOPT_HTTPHEADER, array($header, $documento));
|
51 |
$res = curl_exec($ch);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
curl_close($ch);
|
53 |
|
54 |
|
59 |
Mage::log($result['token'], null, 'MOIP_Transparente.log', true);
|
60 |
Mage::log($xml, null, 'MOIP_Transparente.log', true);
|
61 |
$session->setResult_decode($result);
|
|
|
62 |
return $result;
|
63 |
}
|
64 |
else {
|
|
|
65 |
$result['erro'] = (string)$res->Resposta->Erro;
|
66 |
+
Mage::log("Erro em status do server transparente ".$result['erro'], null, 'MOIP_Transparente.log', true);
|
67 |
Mage::log($xml, null, 'MOIP_Transparente.log', true);
|
68 |
+
Mage::getSingleton('core/session')->addError('Não foi possível processar o seu pagamento: motivo '.$result['erro'].' Corrija o dado solcitado e tente comprar novamente.');
|
69 |
+
|
70 |
return $result;
|
71 |
}
|
72 |
|
74 |
}
|
75 |
public function redirectAction() {
|
76 |
$session = Mage::getSingleton('checkout/session');
|
77 |
+
$session->setCurrent_order('');
|
78 |
+
$session->setPgtoarry('');
|
79 |
+
$session->setClient_array('');
|
80 |
$getSaltes = Mage::getModel('sales/order');
|
81 |
$standard = $this->getStandard();
|
82 |
$fields = $session->getTransparenteFields();
|
89 |
$session->setPgtoarry($pgtoArray);
|
90 |
$session->setClient_array($fields);
|
91 |
$this->loadLayout();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
$this->renderLayout();
|
93 |
}
|
94 |
|
109 |
public function successAction() {
|
110 |
$standard = $this->getStandard();
|
111 |
$naexecuta = "";
|
112 |
+
$nao_processa = "";
|
113 |
$validacao = $this->getRequest()->getParams();
|
114 |
if($validacao['validacao'] == $standard->getConfigData('validador_retorno')){
|
115 |
$data = $this->getRequest()->getPost();
|
118 |
$order_magento = strpos($data_transparente, $login);
|
119 |
$order_magento = substr($data_transparente, strpos($data_transparente, "_") + 1);
|
120 |
$model = Mage::getModel('transparente/write');
|
121 |
+
|
122 |
$order = Mage::getModel('sales/order')->load($order_magento);
|
123 |
$id_order = $order->getId();
|
124 |
+
$incrementid = $order->getIncrementId();
|
125 |
+
$model->load($incrementid, 'realorder_id');
|
126 |
+
$meio_pago = $model->getMeioPg();
|
127 |
+
if($meio_pago == "CartaoCredito"){
|
128 |
+
if($model->getAceitaCofre() == 1){
|
129 |
+
$model->setCofre($data['cofre']);
|
130 |
+
$model->save();
|
131 |
+
}
|
132 |
+
}
|
133 |
$states_atual = $order->getStatus();
|
134 |
if($states_atual == "processing"){
|
135 |
$naexecuta = 1;
|
140 |
if($states_atual == "closed"){
|
141 |
$naexecuta = 1;
|
142 |
}
|
143 |
+
if($states_atual == 'canceled' && $data['status_pagamento']!=1){
|
144 |
+
$naexecuta = 1;
|
145 |
+
}
|
146 |
if($states_atual == 'canceled' && $data['status_pagamento']==5){
|
147 |
$naexecuta = 1;
|
148 |
}
|
149 |
Mage::log("Nasp acionou para o pedido ".$order_magento. " - Status - " .$data['status_pagamento'], null, 'MOIP_Transparente.log', true);
|
150 |
+
if ($order->isCanceled() && $data['status_pagamento'] == "1") {
|
151 |
+
|
152 |
$order->setState(Mage_Sales_Model_Order::STATE_NEW);
|
153 |
$produtos = array();
|
154 |
+
|
155 |
+
#$order->hold()->save();
|
156 |
foreach ($order->getAllItems() as $item) {
|
157 |
+
$item->setQtyCanceled($item->getQtyOrdered());
|
158 |
$item->save();
|
159 |
$stockItem = Mage::getModel('cataloginventory/stock_item')->loadByProduct($item->getProductId());
|
160 |
$stockItem->subtractQty($item->getQtyOrdered());
|
166 |
$rowTotal = $item->getPrice();
|
167 |
$orderItem = Mage::getModel('sales/order_item')
|
168 |
->setStoreId($order->getStore()->getStoreId())
|
169 |
+
->setQuoteItemId($item->getId())
|
170 |
->setQuoteParentItemId(NULL)
|
171 |
->setProductId($item->getId())
|
172 |
->setProductType($item->getTypeId())
|
173 |
+
->setQtyBackordered($qty)
|
174 |
->setTotalQtyOrdered($qty)
|
175 |
->setQtyOrdered($qty)
|
176 |
->setName($item->getName())
|
183 |
->setOrder($order);
|
184 |
$orderItem->save();
|
185 |
}
|
186 |
+
|
187 |
$order->save();
|
188 |
+
|
189 |
+
$nao_processa = 1;
|
190 |
+
$state = Mage_Sales_Model_Order::STATE_PROCESSING;
|
191 |
+
$status = 'processing';
|
192 |
+
$comment = $this->getStatusPagamentoTransparente($status).' - Codig. Transparente: '.$data['cod_moip'];
|
193 |
+
$order->setState($state, $status, $comment, $notified = true, $includeComment = true);
|
194 |
+
$order->save();
|
195 |
+
$order->unhold()->save();
|
196 |
+
$invoice = $order->prepareInvoice();
|
197 |
+
if ($this->getStandard()->canCapture())
|
198 |
+
{
|
199 |
+
$invoice->register()->capture();
|
200 |
+
}
|
201 |
+
Mage::getModel('core/resource_transaction')->addObject($invoice)->addObject($invoice->getOrder())->save();
|
202 |
+
$invoice->sendEmail();
|
203 |
+
$invoice->setEmailSent(true);
|
204 |
+
$order->save();
|
205 |
+
sleep(1);
|
206 |
+
|
207 |
}
|
208 |
switch ($data['status_pagamento']) {
|
209 |
case "1":
|
210 |
+
if($states_atual != 'processing' && $nao_processa != 1){
|
211 |
$state = Mage_Sales_Model_Order::STATE_PROCESSING;
|
212 |
$status = 'processing';
|
213 |
$comment = $this->getStatusPagamentoTransparente($status).' - Codig. Transparente: '.$data['cod_moip'];
|
239 |
}
|
240 |
break;
|
241 |
case "5":
|
242 |
+
$order->hold()->save();
|
243 |
+
$order->unhold()->save();
|
244 |
+
sleep(1);
|
245 |
$state = Mage_Sales_Model_Order::STATE_CANCELED;
|
246 |
$status = 'canceled';
|
247 |
$comment = $this->getStatusPagamentoTransparente($data['status_pagamento']).' - Codig. Transparente: '.$data['cod_moip'].' - Motivo: '.utf8_encode($data['classificacao']);
|
248 |
$order->cancel();
|
249 |
break;
|
250 |
case "6":
|
251 |
+
|
252 |
$state = Mage_Sales_Model_Order::STATE_HOLDED;
|
253 |
$status = 'holded';
|
254 |
$comment = $this->getStatusPagamentoTransparente($data['status_pagamento']).' - Codig. Transparente: '.$data['cod_moip'];
|
263 |
}
|
264 |
}
|
265 |
echo 'Processo de retorno concluido para o pedido #'.$id_order.' Status '.$status;
|
266 |
+
Mage::log("Cliente do pedido ".$id_order. " - Status - " .$states_atual ." retorno completo ".implode('', $data), null, 'MOIP_Transparente.log', true);
|
267 |
}
|
268 |
else {
|
269 |
+
Mage::log("Nao atualizado transparente Cliente do pedido ".$id_order. " - Status - " .$states_atual ." retorno completo ".implode('', $data) , null, 'MOIP_Transparente.log', true);
|
270 |
}
|
271 |
}
|
272 |
}
|
350 |
}
|
351 |
|
352 |
|
353 |
+
public function post_correio($url, $get) {
|
354 |
$url = explode('?', $url, 2);
|
|
|
355 |
$ch = curl_init($url[0]."?".http_build_query($get));
|
356 |
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
|
357 |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
358 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
|
|
359 |
return curl_exec($ch);
|
360 |
}
|
361 |
public function buscaCepAction() {
|
362 |
$data = $this->getRequest()->getParams();
|
363 |
if ($data['meio'] == "buscaend") {
|
364 |
+
$rua = $data['logradouro'];
|
|
|
365 |
$vSomeSpecialChars = array("á", "á","é","é", "í","í", "ó", "ú", "Á","À","É","È", "Í", "Ì","Ó", "Ú", "ç", "Ç", "ã", "Ã", "õ", "Õ");
|
366 |
$vReplacementChars = array("a", "a", "e","e", "i","i", "o", "u", "A", "A","E","E", "I", "I","O", "U", "c", "C", "a", "A", "o", "O");
|
367 |
$rua = str_replace($vSomeSpecialChars, $vReplacementChars, $rua);
|
368 |
+
$rua = trim($rua);
|
369 |
$uf = $data['busca_uf'];
|
370 |
+
$url_end = "http://endereco.ecorreios.com.br/app/enderecoCep.php";
|
371 |
$get = array(
|
372 |
+
'cep' => '0',
|
373 |
'busca_end' =>$rua,
|
374 |
'busca_uf' =>$uf,
|
375 |
);
|
376 |
$config = array('adapter' => 'Zend_Http_Client_Adapter_Socket');
|
377 |
$resposta = $this->post_correio($url_end, $get);
|
|
|
|
|
378 |
$this->getResponse()->setBody($resposta);
|
379 |
}
|
380 |
|
389 |
$ch = curl_init($url[0]."?".http_build_query($get));
|
390 |
curl_setopt($ch, CURLOPT_POST, 1);
|
391 |
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post));
|
|
|
|
|
|
|
392 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
|
|
393 |
return curl_exec($ch);
|
394 |
}
|
395 |
$cep = $data['cep'];
|
396 |
$cep = substr(preg_replace("/[^0-9]/", "", $cep) . '00000000', 0, 8);
|
397 |
+
$url_end = "http://endereco.ecorreios.com.br/app/enderecoCep.php?cep={$cep}";
|
398 |
$config = array('adapter' => 'Zend_Http_Client_Adapter_Socket');
|
399 |
$client = new Zend_Http_Client($url_end, $config);
|
400 |
$response = $client->request();
|
401 |
+
|
402 |
+
if($response->getBody() != "503"){
|
403 |
+
$res = $response->getBody();
|
404 |
+
|
405 |
+
$endereco = Mage::helper('core')->jsonDecode($res);
|
406 |
+
|
407 |
+
|
408 |
switch ($endereco['uf']) {
|
409 |
case "AC":
|
410 |
$endereco['ufid'] = 485;
|
488 |
$endereco['ufid'] = 511;
|
489 |
break;
|
490 |
}
|
491 |
+
$this->getResponse()->setBody(Mage::helper('core')->jsonEncode((object)$endereco));
|
492 |
+
}
|
493 |
}
|
494 |
}
|
495 |
+
}
|
app/code/local/MOIP/Transparente/etc/adminhtml.xml
CHANGED
@@ -19,4 +19,4 @@
|
|
19 |
</admin>
|
20 |
</resources>
|
21 |
</acl>
|
22 |
-
</config>
|
19 |
</admin>
|
20 |
</resources>
|
21 |
</acl>
|
22 |
+
</config>
|
app/code/local/MOIP/Transparente/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<MOIP_Transparente>
|
5 |
-
<version>0.2.
|
6 |
</MOIP_Transparente>
|
7 |
</modules>
|
8 |
<global>
|
@@ -136,9 +136,10 @@
|
|
136 |
<pagamento_direto>1</pagamento_direto>
|
137 |
<parcelamento>1</parcelamento>
|
138 |
<jurostipo>1</jurostipo>
|
|
|
139 |
<parcelamento_c_de1>1</parcelamento_c_de1>
|
140 |
<parcelamento_c_ate1>12</parcelamento_c_ate1>
|
141 |
-
<parcelamento_c_juros1>
|
142 |
<parcelamento_s_juros2>1.25</parcelamento_s_juros2>
|
143 |
<parcelamento_s_juros3>2.49</parcelamento_s_juros3>
|
144 |
<parcelamento_s_juros4>3.74</parcelamento_s_juros4>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<MOIP_Transparente>
|
5 |
+
<version>0.2.1</version>
|
6 |
</MOIP_Transparente>
|
7 |
</modules>
|
8 |
<global>
|
136 |
<pagamento_direto>1</pagamento_direto>
|
137 |
<parcelamento>1</parcelamento>
|
138 |
<jurostipo>1</jurostipo>
|
139 |
+
<estoqueboleto>-99</estoqueboleto>
|
140 |
<parcelamento_c_de1>1</parcelamento_c_de1>
|
141 |
<parcelamento_c_ate1>12</parcelamento_c_ate1>
|
142 |
+
<parcelamento_c_juros1>2.99</parcelamento_c_juros1>
|
143 |
<parcelamento_s_juros2>1.25</parcelamento_s_juros2>
|
144 |
<parcelamento_s_juros3>2.49</parcelamento_s_juros3>
|
145 |
<parcelamento_s_juros4>3.74</parcelamento_s_juros4>
|
app/code/local/MOIP/Transparente/etc/system.xml
CHANGED
@@ -439,7 +439,19 @@
|
|
439 |
<show_in_website>1</show_in_website>
|
440 |
<show_in_store>1</show_in_store>
|
441 |
</vcmentoboleto>
|
442 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
443 |
|
444 |
<allowspecific translate="label">
|
445 |
<label>Pagamento a partir de países aplicáveis</label>
|
439 |
<show_in_website>1</show_in_website>
|
440 |
<show_in_store>1</show_in_store>
|
441 |
</vcmentoboleto>
|
442 |
+
<estoqueboleto translate="label">
|
443 |
+
<label>Permitir compra por boleto apenas e estoque for maior ou igual a:</label>
|
444 |
+
<comment><![CDATA[<br /><div class="custom-options "><div class="box" style="width:243px;">
|
445 |
+
<p>Informe a quantidade mínima em estoque que permite ao cliente pagar por boleto.</br>
|
446 |
+
Para não limitar a geração do boleto informe um valor negativo ex: -99.</p>
|
447 |
+
</div></div>]]>
|
448 |
+
</comment>
|
449 |
+
<frontend_type>text</frontend_type>
|
450 |
+
<sort_order>81</sort_order>
|
451 |
+
<show_in_default>1</show_in_default>
|
452 |
+
<show_in_website>1</show_in_website>
|
453 |
+
<show_in_store>1</show_in_store>
|
454 |
+
</estoqueboleto>
|
455 |
|
456 |
<allowspecific translate="label">
|
457 |
<label>Pagamento a partir de países aplicáveis</label>
|
app/code/local/MOIP/Transparente/sql/transparente_setup/mysql4-upgrade-0.2.0-0.2.1.php
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Transparente - Transparente Payment Module
|
4 |
+
*
|
5 |
+
* @title Magento -> Custom Payment Module for Transparente (Brazil)
|
6 |
+
* @category Payment Gateway
|
7 |
+
* @package MOIP_Transparente
|
8 |
+
* @author Transparente Pagamentos S/a
|
9 |
+
* @copyright Copyright (c) 2013 Moip Soluções Web
|
10 |
+
* @license Licença válida por tempo indeterminado
|
11 |
+
*/
|
12 |
+
|
13 |
+
$installer = $this;
|
14 |
+
$installer->startSetup();
|
15 |
+
$tablePrefix = (string) Mage::getConfig()->getTablePrefix();
|
16 |
+
|
17 |
+
$installer->run("ALTER TABLE `".$tablePrefix."moip_transparente`
|
18 |
+
ADD `cofre` VARCHAR( 250 ) NULL AFTER `status_token`,
|
19 |
+
ADD `cofre_parcela` VARCHAR( 30 ) NULL AFTER `cofre`,
|
20 |
+
ADD `aceita_cofre` VARCHAR( 30 )NULL AFTER `cofre_parcela`");
|
21 |
+
$installer->startSetup();
|
22 |
+
|
23 |
+
$installer->endSetup();
|
24 |
+
?>
|
app/design/adminhtml/default/default/template/MOIP/onestepcheckout/sales/order/view/tab/info/Deliverydate.phtml
DELETED
@@ -1,31 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
$_order = Mage::registry('current_order');
|
4 |
-
$orderid=$_order->getId();
|
5 |
-
$orders=Mage::getModel('onestepcheckout/onestepcheckout')->getCollection()->addFieldToFilter('sales_order_id',$orderid);
|
6 |
-
$class_orders=get_class($orders); //cha ve name class cua doi tuong
|
7 |
-
$o ='';
|
8 |
-
|
9 |
-
foreach($orders as $order) //$orders chua nhieu doi tuong. va` chi lay dc doi tuong con qua foreach
|
10 |
-
{
|
11 |
-
$o = $order; break; //vi` record nam o doi tuong dau tien, nen chi can lay doi tuong dau tien
|
12 |
-
}
|
13 |
-
?>
|
14 |
-
<?php
|
15 |
-
//echo $orderid;die();
|
16 |
-
//echo '<pre>';var_dump($_order->getCollection()->getData());die();
|
17 |
-
?>
|
18 |
-
<div class="box-right">
|
19 |
-
<div class="entry-edit">
|
20 |
-
<div class="entry-edit-head">
|
21 |
-
<h4 class="icon-head head-shipping-method"><?php echo $this->helper('onestepcheckout')->__('Delivery Date') ?></h4>
|
22 |
-
</div>
|
23 |
-
<fieldset>
|
24 |
-
<?php if($o):?>
|
25 |
-
<?php echo $this->__('Data de entrega:')?><span style="font-weight:bold;"> <?php echo $o->getMoipDeliverydateDate();?></span><br>
|
26 |
-
<?php echo $this->__('Horário:')?><span style="font-weight:bold;"> <?php echo $o->getMoipDeliverydateTime();?></span>
|
27 |
-
<?php endif?>
|
28 |
-
</fieldset>
|
29 |
-
</div>
|
30 |
-
</div>
|
31 |
-
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/layout/moip_onestepcheckout.xml
CHANGED
@@ -4,8 +4,9 @@
|
|
4 |
|
5 |
<checkout_onepage_index>
|
6 |
<reference name="head">
|
7 |
-
|
8 |
<action method="addJs" ifconfig="moipall/config/enable_jquery"><script>MOIP/jquery.js</script></action>
|
|
|
9 |
<action method="addJs"><script>MOIP/jquery_noconflict.js</script></action>
|
10 |
<action method="addJs"><script>MOIP/onestepcheckout/jquery.fancybox-1.3.1.js</script></action>
|
11 |
<action method="addJs"><script>MOIP/onestepcheckout/change-events.js</script></action>
|
@@ -13,23 +14,13 @@
|
|
13 |
<action method="addJs"><script>MOIP/script_mask.js</script></action>
|
14 |
<action method="addJs"><script>MOIP/validacao.js</script></action>
|
15 |
<action method="addJs"><script>MOIP/transparente/checkout.js</script></action>
|
|
|
|
|
16 |
<action method="addCss"><stylesheet>MOIP/onestepcheckout/css/onestepcheckout.css</stylesheet></action>
|
17 |
<action method="addCss"><stylesheet>MOIP/onestepcheckout/css/jquery.fancybox-1.3.1.css</stylesheet></action>
|
18 |
|
19 |
-
|
20 |
-
|
21 |
-
<action method="removeItem"><type>js</type><name>infortis/jquery/jquery-noconflict.js</name></action>
|
22 |
-
<action method="removeItem"><type>js</type><name>infortis/jquery/plugins/jquery.owlcarousel.min.js</name></action>
|
23 |
-
<action method="removeItem"><type>js</type><name>infortis/jquery/plugins/jquery.easing.min.js</name></action>
|
24 |
-
<action method="removeItem"><type>js</type><name>infortis/jquery/plugins/jquery.accordion.min.js</name></action>
|
25 |
-
<action method="removeItem"><type>js</type><name>infortis/jquery/plugins/jquery.tabs.min.js</name></action>
|
26 |
-
<action method="removeItem"><type>js</type><name>infortis/jquery/plugins/jquery.ba-throttle-debounce.min.js</name></action>
|
27 |
-
<action method="addJs"><script>infortis/jquery/plugins/jquery.owlcarousel.min.js</script></action>
|
28 |
-
<action method="addJs"><script>infortis/jquery/plugins/jquery.easing.min.js</script></action>
|
29 |
-
<action method="addJs"><script>infortis/jquery/plugins/jquery.accordion.min.js</script></action>
|
30 |
-
<action method="addJs"><script>infortis/jquery/plugins/jquery.tabs.min.js</script></action>
|
31 |
-
<action method="addJs"><script>infortis/jquery/plugins/jquery.ba-throttle-debounce.min.js</script></action>
|
32 |
-
-->
|
33 |
<!-- estes são exemplos de como remover outros js do site
|
34 |
use o <type>skin_js</type> se o js estiver na pasta skin
|
35 |
<action method="removeItem"><type>skin_js</type><name>js/jquery.js</name></action>
|
@@ -51,7 +42,7 @@ ou use <type>js</type> caso o js da pasta pasta_da_loja/js
|
|
51 |
<block type="customer/account_forgotpassword" name="checkout.onepage.forgotpassword" as="forgotpassword" template="MOIP/onestepcheckout/daskboard/onepage/forgotpassword.phtml"/>
|
52 |
|
53 |
<block type="onestepcheckout/checkout_onepage_billing" name="checkout.onepage.billing" as="billing" template="MOIP/onestepcheckout/daskboard/onepage/billing.phtml">
|
54 |
-
<block type="onestepcheckout/checkout_onepage_billing" name="checkout.onepage.billing.billingform" as="billing_form" template="MOIP/onestepcheckout/daskboard/onepage/billing/
|
55 |
|
56 |
</block>
|
57 |
|
@@ -64,8 +55,8 @@ ou use <type>js</type> caso o js da pasta pasta_da_loja/js
|
|
64 |
<block type="onestepcheckout/checkout_onepage_shipping" name="checkout.onepage.shipping" as="shipping" template="MOIP/onestepcheckout/daskboard/onepage/shipping.phtml">
|
65 |
<block type="onestepcheckout/checkout_onepage_shipping" name="checkout.onepage.shipping.shippingform" as="shipping_form" template="MOIP/onestepcheckout/daskboard/onepage/shipping/shipping_form.phtml"/>
|
66 |
</block>
|
67 |
-
<block type="checkout/
|
68 |
-
<block type="checkout/onepage_shipping_method_available" name="
|
69 |
</block>
|
70 |
<block type="checkout/onepage_payment" name="onestepcheckout.onepage.payment" as="payment" template="MOIP/onestepcheckout/daskboard/onepage/payment.phtml">
|
71 |
<block type="checkout/onepage_payment_methods" name="onestepcheckout.onepage.payment.methods" as="methods" template="MOIP/onestepcheckout/daskboard/onepage/payment/methods.phtml"/>
|
@@ -79,14 +70,24 @@ ou use <type>js</type> caso o js da pasta pasta_da_loja/js
|
|
79 |
<action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
80 |
<block type="checkout/cart_totals" name="checkout.onepage.review.info.totals" as="totals" template="MOIP/onestepcheckout/daskboard/onepage/review/totals.phtml"/>
|
81 |
|
82 |
-
|
83 |
|
84 |
</block>
|
85 |
-
|
|
|
|
|
|
|
|
|
|
|
86 |
|
87 |
</block>
|
88 |
</block>
|
89 |
</reference>
|
|
|
|
|
|
|
|
|
|
|
90 |
</checkout_onepage_index>
|
91 |
|
92 |
<onestepcheckout_index_updateshippingmethod>
|
@@ -142,8 +143,11 @@ ou use <type>js</type> caso o js da pasta pasta_da_loja/js
|
|
142 |
<action method="setTemplate"><template>MOIP/onestepcheckout/emptyupdate.phtml</template></action>
|
143 |
</reference>
|
144 |
<reference name="content">
|
145 |
-
|
146 |
-
|
|
|
|
|
|
|
147 |
</onestepcheckout_index_updatebillingform>
|
148 |
<sales_order_view>
|
149 |
<reference name="sales.order.info">
|
4 |
|
5 |
<checkout_onepage_index>
|
6 |
<reference name="head">
|
7 |
+
<action method="removeItem"><type>skin_js</type><name>js/lib/jquery-1.10.2.min.js</name></action>
|
8 |
<action method="addJs" ifconfig="moipall/config/enable_jquery"><script>MOIP/jquery.js</script></action>
|
9 |
+
|
10 |
<action method="addJs"><script>MOIP/jquery_noconflict.js</script></action>
|
11 |
<action method="addJs"><script>MOIP/onestepcheckout/jquery.fancybox-1.3.1.js</script></action>
|
12 |
<action method="addJs"><script>MOIP/onestepcheckout/change-events.js</script></action>
|
14 |
<action method="addJs"><script>MOIP/script_mask.js</script></action>
|
15 |
<action method="addJs"><script>MOIP/validacao.js</script></action>
|
16 |
<action method="addJs"><script>MOIP/transparente/checkout.js</script></action>
|
17 |
+
<action method="addJs"><script>varien/accordion.js</script></action>
|
18 |
+
<action method="addItem"><type>skin_js</type><name>js/opcheckout.js</name></action>
|
19 |
<action method="addCss"><stylesheet>MOIP/onestepcheckout/css/onestepcheckout.css</stylesheet></action>
|
20 |
<action method="addCss"><stylesheet>MOIP/onestepcheckout/css/jquery.fancybox-1.3.1.css</stylesheet></action>
|
21 |
|
22 |
+
|
23 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
<!-- estes são exemplos de como remover outros js do site
|
25 |
use o <type>skin_js</type> se o js estiver na pasta skin
|
26 |
<action method="removeItem"><type>skin_js</type><name>js/jquery.js</name></action>
|
42 |
<block type="customer/account_forgotpassword" name="checkout.onepage.forgotpassword" as="forgotpassword" template="MOIP/onestepcheckout/daskboard/onepage/forgotpassword.phtml"/>
|
43 |
|
44 |
<block type="onestepcheckout/checkout_onepage_billing" name="checkout.onepage.billing" as="billing" template="MOIP/onestepcheckout/daskboard/onepage/billing.phtml">
|
45 |
+
<block type="onestepcheckout/checkout_onepage_billing" name="checkout.onepage.billing.billingform" as="billing_form" template="MOIP/onestepcheckout/daskboard/onepage/billing/billingform.phtml"/>
|
46 |
|
47 |
</block>
|
48 |
|
55 |
<block type="onestepcheckout/checkout_onepage_shipping" name="checkout.onepage.shipping" as="shipping" template="MOIP/onestepcheckout/daskboard/onepage/shipping.phtml">
|
56 |
<block type="onestepcheckout/checkout_onepage_shipping" name="checkout.onepage.shipping.shippingform" as="shipping_form" template="MOIP/onestepcheckout/daskboard/onepage/shipping/shipping_form.phtml"/>
|
57 |
</block>
|
58 |
+
<block type="checkout/onepage_progress" name="checkout.onepage.shipping_method" as="shipping_method" template="MOIP/onestepcheckout/daskboard/onepage/shipping_method.phtml">
|
59 |
+
<block type="checkout/onepage_shipping_method_available" name="checkout.onepage.shipping_method.available" as="available" template="MOIP/onestepcheckout/daskboard/onepage/shipping_method/available.phtml"/>
|
60 |
</block>
|
61 |
<block type="checkout/onepage_payment" name="onestepcheckout.onepage.payment" as="payment" template="MOIP/onestepcheckout/daskboard/onepage/payment.phtml">
|
62 |
<block type="checkout/onepage_payment_methods" name="onestepcheckout.onepage.payment.methods" as="methods" template="MOIP/onestepcheckout/daskboard/onepage/payment/methods.phtml"/>
|
70 |
<action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
71 |
<block type="checkout/cart_totals" name="checkout.onepage.review.info.totals" as="totals" template="MOIP/onestepcheckout/daskboard/onepage/review/totals.phtml"/>
|
72 |
|
73 |
+
|
74 |
|
75 |
</block>
|
76 |
+
<block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before" translate="label">
|
77 |
+
<label>Items Before</label>
|
78 |
+
</block>
|
79 |
+
<block type="core/text_list" name="checkout.onepage.review.info.items.after" as="items_after" translate="label">
|
80 |
+
<label>Items After</label>
|
81 |
+
</block>
|
82 |
|
83 |
</block>
|
84 |
</block>
|
85 |
</reference>
|
86 |
+
<reference name="checkout.onepage.review.info.items.after">
|
87 |
+
<block type="monkey/checkout_subscribe" name="magemonkey.subscribe" template="magemonkey/checkout/subscribe.phtml">
|
88 |
+
<block type="monkey/signup" name="left.monkeysignup" template="magemonkey/lists.phtml" />
|
89 |
+
</block>
|
90 |
+
</reference>
|
91 |
</checkout_onepage_index>
|
92 |
|
93 |
<onestepcheckout_index_updateshippingmethod>
|
143 |
<action method="setTemplate"><template>MOIP/onestepcheckout/emptyupdate.phtml</template></action>
|
144 |
</reference>
|
145 |
<reference name="content">
|
146 |
+
|
147 |
+
<block type="onestepcheckout/checkout_onepage_billing" name="checkout.onepage.billing.billingform" as="billing_form" template="MOIP/onestepcheckout/daskboard/onepage/billing/billingform.phtml"/>
|
148 |
+
|
149 |
+
|
150 |
+
</reference>
|
151 |
</onestepcheckout_index_updatebillingform>
|
152 |
<sales_order_view>
|
153 |
<reference name="sales.order.info">
|
app/design/frontend/base/default/layout/moip_transparente.xml
CHANGED
@@ -1,32 +1,26 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<layout version="0.1.0">
|
3 |
-
<sales>
|
4 |
-
<block type="Transparente/Standard_Info" name="transparente.info" template="MOIP/transparente/info.phtml"></block>
|
5 |
-
</sales>
|
6 |
<onepagecheckout_index_index>
|
7 |
<reference name="head">
|
|
|
8 |
<action method="addJs" ifconfig="moipall/config/enable_jquery"><script>MOIP/jquery.js</script></action>
|
9 |
-
<action method="addJs"><script>MOIP/jquery_noconflict.js</script></action>
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
</reference>
|
14 |
</onepagecheckout_index_index>
|
15 |
-
|
|
|
16 |
<reference name="head">
|
17 |
-
|
18 |
-
<action method="addJs"><script>MOIP/jquery_noconflict.js</script></action>
|
19 |
-
<action method="addJs"><script>MOIP/jquery.mask.min.js</script></action>
|
20 |
-
<action method="addJs"><script>MOIP/script_mask.js</script></action>
|
21 |
-
<action method="addJs"><script>MOIP/validacao.js</script></action>
|
22 |
-
<action method="addJs"><script>MOIP/transparente/checkout.js</script></action>
|
23 |
</reference>
|
24 |
</checkout_onepage_index>
|
25 |
-
<transparente_standard_redirect>
|
26 |
|
|
|
27 |
<reference name="head">
|
|
|
28 |
<action method="setTitle"><params><![CDATA[Pagamento via MoIP S/A]]></params></action>
|
29 |
<action method="addJs" ifconfig="moipall/config/enable_jquery"><script>MOIP/jquery.js</script></action>
|
|
|
30 |
<action method="addJs"><script>MOIP/jquery_noconflict.js</script></action>
|
31 |
<action method="addJs"><script>MOIP/transparente/bootstrap.min.js</script></action>
|
32 |
<action method="addJs"><script>MOIP/transparente/bootstrap-modal.js</script></action>
|
@@ -34,43 +28,41 @@
|
|
34 |
<action method="addJs"><script>MOIP/script_mask.js</script></action>
|
35 |
<action method="addJs"><script>MOIP/validacao.js</script></action>
|
36 |
<action method="addCss"><stylesheet>MOIP/transparente/css/bootstrap.css</stylesheet></action>
|
|
|
|
|
37 |
|
38 |
<!-- para o tema ultimo remove esse comentario, nao esquecer da linha de baixo e do checkout
|
39 |
-
|
40 |
-
<action method="removeItem"><type>js</type><name>infortis/jquery/jquery-noconflict.js</name></action>
|
41 |
-
<action method="removeItem"><type>js</type><name>infortis/jquery/plugins/jquery.owlcarousel.min.js</name></action>
|
42 |
-
<action method="removeItem"><type>js</type><name>infortis/jquery/plugins/jquery.easing.min.js</name></action>
|
43 |
-
<action method="removeItem"><type>js</type><name>infortis/jquery/plugins/jquery.accordion.min.js</name></action>
|
44 |
-
<action method="removeItem"><type>js</type><name>infortis/jquery/plugins/jquery.tabs.min.js</name></action>
|
45 |
-
<action method="removeItem"><type>js</type><name>infortis/jquery/plugins/jquery.ba-throttle-debounce.min.js</name></action>
|
46 |
-
<action method="addJs"><script>infortis/jquery/plugins/jquery.owlcarousel.min.js</script></action>
|
47 |
-
<action method="addJs"><script>infortis/jquery/plugins/jquery.easing.min.js</script></action>
|
48 |
-
<action method="addJs"><script>infortis/jquery/plugins/jquery.accordion.min.js</script></action>
|
49 |
-
<action method="addJs"><script>infortis/jquery/plugins/jquery.tabs.min.js</script></action>
|
50 |
-
<action method="addJs"><script>infortis/jquery/plugins/jquery.ba-throttle-debounce.min.js</script></action>
|
51 |
-
|
|
|
|
|
|
|
52 |
</reference>
|
53 |
<reference name="root">
|
54 |
<action method="setTemplate"><template>page/1column.phtml</template></action>
|
55 |
</reference>
|
56 |
-
<reference name="
|
57 |
-
|
58 |
<block type="MOIP_Transparente_Block_Standard_Redirect" name="transparente.comum" template="MOIP/transparente/redirect.phtml">
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
</block>
|
67 |
-
<block type="MOIP_Transparente_Block_Standard_Redirect" name="transparente.cartao" template="MOIP/transparente/cartao.phtml">
|
68 |
-
<block type="MOIP_Transparente_Block_Standard_Redirect" name="cartao_form" template="MOIP/transparente/refaz.phtml">
|
69 |
-
<action method="setBlockId"><block_id>cartao_form</block_id></action>
|
70 |
-
</block>
|
71 |
</block>
|
72 |
</reference>
|
73 |
-
|
74 |
</transparente_standard_redirect>
|
75 |
|
76 |
<transparente_index_index>
|
@@ -87,7 +79,7 @@
|
|
87 |
|
88 |
<sales_order_view>
|
89 |
<reference name="head">
|
90 |
-
|
91 |
<action method="addJs"><script>MOIP/jquery_noconflict.js</script></action>
|
92 |
<action method="addJs"><script>MOIP/transparente/bootstrap.min.js</script></action>
|
93 |
<action method="addJs"><script>MOIP/transparente/bootstrap-modal.js</script></action>
|
@@ -98,20 +90,11 @@
|
|
98 |
</reference>
|
99 |
</sales_order_view>
|
100 |
|
101 |
-
|
102 |
-
<reference name="content">
|
103 |
-
<action method="setTemplate"><template>MOIP/transparente/info.phtml</template></action>
|
104 |
-
<block type="MOIP_Transparente_Block_Info" name="transparente_info" template="MOIP/transparente/info.phtml">
|
105 |
-
<block type="MOIP_Transparente_Block_Info" name="transparente.info" template="MOIP/transparente/form.phtml">
|
106 |
-
<action method="setBlockId"><block_id>refaz_forma</block_id></action>
|
107 |
-
</block>
|
108 |
-
</block>
|
109 |
-
</reference>
|
110 |
-
</transparente_info>
|
111 |
|
112 |
-
|
113 |
<reference name="head">
|
114 |
-
|
115 |
<action method="addJs"><script>MOIP/jquery_noconflict.js</script></action>
|
116 |
<action method="addJs"><script>MOIP/transparente/bootstrap.min.js</script></action>
|
117 |
<action method="addJs"><script>MOIP/transparente/bootstrap-modal.js</script></action>
|
@@ -120,9 +103,36 @@
|
|
120 |
<action method="addJs"><script>MOIP/validacao.js</script></action>
|
121 |
<action method="addCss"><stylesheet>MOIP/transparente/css/bootstrap.css</stylesheet></action>
|
122 |
</reference>
|
123 |
-
|
124 |
<reference name="my.account.wrapper">
|
125 |
<block type="customer/address_edit" name="customer_address_edit" template="MOIP/customer/address/edit.phtml"/>
|
126 |
</reference>
|
127 |
</customer_address_form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
</layout>
|
1 |
<?xml version="1.0"?>
|
2 |
<layout version="0.1.0">
|
|
|
|
|
|
|
3 |
<onepagecheckout_index_index>
|
4 |
<reference name="head">
|
5 |
+
<action method="removeItem"><type>skin_js</type><name>js/lib/jquery-1.10.2.min.js</name></action>
|
6 |
<action method="addJs" ifconfig="moipall/config/enable_jquery"><script>MOIP/jquery.js</script></action>
|
7 |
+
<action method="addJs"><script>MOIP/jquery_noconflict.js</script></action>
|
8 |
+
|
|
|
|
|
9 |
</reference>
|
10 |
</onepagecheckout_index_index>
|
11 |
+
|
12 |
+
<checkout_onepage_index>
|
13 |
<reference name="head">
|
14 |
+
|
|
|
|
|
|
|
|
|
|
|
15 |
</reference>
|
16 |
</checkout_onepage_index>
|
|
|
17 |
|
18 |
+
<transparente_standard_redirect>
|
19 |
<reference name="head">
|
20 |
+
<action method="removeItem"><type>skin_js</type><name>js/lib/jquery-1.10.2.min.js</name></action>
|
21 |
<action method="setTitle"><params><![CDATA[Pagamento via MoIP S/A]]></params></action>
|
22 |
<action method="addJs" ifconfig="moipall/config/enable_jquery"><script>MOIP/jquery.js</script></action>
|
23 |
+
|
24 |
<action method="addJs"><script>MOIP/jquery_noconflict.js</script></action>
|
25 |
<action method="addJs"><script>MOIP/transparente/bootstrap.min.js</script></action>
|
26 |
<action method="addJs"><script>MOIP/transparente/bootstrap-modal.js</script></action>
|
28 |
<action method="addJs"><script>MOIP/script_mask.js</script></action>
|
29 |
<action method="addJs"><script>MOIP/validacao.js</script></action>
|
30 |
<action method="addCss"><stylesheet>MOIP/transparente/css/bootstrap.css</stylesheet></action>
|
31 |
+
|
32 |
+
|
33 |
|
34 |
<!-- para o tema ultimo remove esse comentario, nao esquecer da linha de baixo e do checkout
|
35 |
+
<action method="removeItem"><type>js</type><name>infortis/jquery/jquery-1.7.2.min.js</name></action>
|
36 |
+
<action method="removeItem"><type>js</type><name>infortis/jquery/jquery-noconflict.js</name></action>
|
37 |
+
<action method="removeItem"><type>js</type><name>infortis/jquery/plugins/jquery.owlcarousel.min.js</name></action>
|
38 |
+
<action method="removeItem"><type>js</type><name>infortis/jquery/plugins/jquery.easing.min.js</name></action>
|
39 |
+
<action method="removeItem"><type>js</type><name>infortis/jquery/plugins/jquery.accordion.min.js</name></action>
|
40 |
+
<action method="removeItem"><type>js</type><name>infortis/jquery/plugins/jquery.tabs.min.js</name></action>
|
41 |
+
<action method="removeItem"><type>js</type><name>infortis/jquery/plugins/jquery.ba-throttle-debounce.min.js</name></action>
|
42 |
+
<action method="addJs"><script>infortis/jquery/plugins/jquery.owlcarousel.min.js</script></action>
|
43 |
+
<action method="addJs"><script>infortis/jquery/plugins/jquery.easing.min.js</script></action>
|
44 |
+
<action method="addJs"><script>infortis/jquery/plugins/jquery.accordion.min.js</script></action>
|
45 |
+
<action method="addJs"><script>infortis/jquery/plugins/jquery.tabs.min.js</script></action>
|
46 |
+
<action method="addJs"><script>infortis/jquery/plugins/jquery.ba-throttle-debounce.min.js</script></action>
|
47 |
+
|
48 |
+
outros exemplos:
|
49 |
+
em breve...
|
50 |
+
-->
|
51 |
</reference>
|
52 |
<reference name="root">
|
53 |
<action method="setTemplate"><template>page/1column.phtml</template></action>
|
54 |
</reference>
|
55 |
+
<reference name="content">
|
|
|
56 |
<block type="MOIP_Transparente_Block_Standard_Redirect" name="transparente.comum" template="MOIP/transparente/redirect.phtml">
|
57 |
+
<block type="MOIP_Transparente_Block_Standard_Redirect" name="transparente.transferencia" template="MOIP/transparente/transferencia.phtml"></block>
|
58 |
+
<block type="MOIP_Transparente_Block_Standard_Redirect" name="transparente.boleto" template="MOIP/transparente/boleto.phtml"></block>
|
59 |
+
<block type="MOIP_Transparente_Block_Standard_Redirect" name="transparente.cartao" template="MOIP/transparente/cartao.phtml">
|
60 |
+
<block type="MOIP_Transparente_Block_Standard_Redirect" name="cartao_form" template="MOIP/transparente/refaz.phtml">
|
61 |
+
<action method="setBlockId"><block_id>cartao_form</block_id></action>
|
62 |
+
</block>
|
63 |
+
</block>
|
|
|
|
|
|
|
|
|
|
|
64 |
</block>
|
65 |
</reference>
|
|
|
66 |
</transparente_standard_redirect>
|
67 |
|
68 |
<transparente_index_index>
|
79 |
|
80 |
<sales_order_view>
|
81 |
<reference name="head">
|
82 |
+
<action method="addJs"><script>MOIP/jquery.js</script></action>
|
83 |
<action method="addJs"><script>MOIP/jquery_noconflict.js</script></action>
|
84 |
<action method="addJs"><script>MOIP/transparente/bootstrap.min.js</script></action>
|
85 |
<action method="addJs"><script>MOIP/transparente/bootstrap-modal.js</script></action>
|
90 |
</reference>
|
91 |
</sales_order_view>
|
92 |
|
93 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
|
95 |
+
<customer_address_form>
|
96 |
<reference name="head">
|
97 |
+
<action method="addJs"><script>MOIP/jquery.js</script></action>
|
98 |
<action method="addJs"><script>MOIP/jquery_noconflict.js</script></action>
|
99 |
<action method="addJs"><script>MOIP/transparente/bootstrap.min.js</script></action>
|
100 |
<action method="addJs"><script>MOIP/transparente/bootstrap-modal.js</script></action>
|
103 |
<action method="addJs"><script>MOIP/validacao.js</script></action>
|
104 |
<action method="addCss"><stylesheet>MOIP/transparente/css/bootstrap.css</stylesheet></action>
|
105 |
</reference>
|
|
|
106 |
<reference name="my.account.wrapper">
|
107 |
<block type="customer/address_edit" name="customer_address_edit" template="MOIP/customer/address/edit.phtml"/>
|
108 |
</reference>
|
109 |
</customer_address_form>
|
110 |
+
|
111 |
+
<sales>
|
112 |
+
<block type="MOIP_Transparente_Block_Standard_Info" name="transparente.info" template="MOIP/transparente/info.phtml"></block>
|
113 |
+
</sales>
|
114 |
+
|
115 |
+
|
116 |
+
<customer_account>
|
117 |
+
<reference name="customer_account_navigation">
|
118 |
+
<action method="addLink" translate="label" module="transparente"><name>transparente</name><path>transparente/index/Cartoes</path><label>Meus Cartões</label></action>
|
119 |
+
</reference>
|
120 |
+
</customer_account>
|
121 |
+
|
122 |
+
<transparente_index_cartoes>
|
123 |
+
<reference name="head">
|
124 |
+
<action method="addJs"><script>MOIP/jquery.js</script></action>
|
125 |
+
<action method="addJs"><script>MOIP/jquery_noconflict.js</script></action>
|
126 |
+
<action method="addItem"><type>skin_css</type><name>MOIP/transparente/css/cartao_save.css</name></action>
|
127 |
+
</reference>
|
128 |
+
<update handle="customer_account"/>
|
129 |
+
<reference name="root">
|
130 |
+
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
|
131 |
+
</reference>
|
132 |
+
<reference name="content">
|
133 |
+
<block type="MOIP_Transparente_Block_Standard_CartSave" template="MOIP/transparente/cartoes_my_account.phtml">
|
134 |
+
</block>
|
135 |
+
</reference>
|
136 |
+
|
137 |
+
</transparente_index_cartoes>
|
138 |
</layout>
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard.phtml
CHANGED
@@ -1,584 +1,32 @@
|
|
1 |
<?php if(Mage::getStoreConfig('onestepcheckout/config/enabled')):?>
|
2 |
-
<?php
|
3 |
-
$
|
4 |
-
$
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
'titlePosition': 'inside',
|
14 |
-
'openEffect': 'elastic',
|
15 |
-
'openSpeed': '150',
|
16 |
-
'closeEffect': 'elastic',
|
17 |
-
'closeSpeed': '150',
|
18 |
-
'width': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxwidth");?>px',
|
19 |
-
'height': '280px',
|
20 |
-
});
|
21 |
-
jQuery("#loginbox").fancybox({
|
22 |
-
'titlePosition': 'inside',
|
23 |
-
'openEffect': 'elastic',
|
24 |
-
'openSpeed': '150',
|
25 |
-
'closeEffect': 'elastic',
|
26 |
-
'closeSpeed': '150',
|
27 |
-
'width': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxwidth");?>px',
|
28 |
-
'height': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxheight"); ?>px',
|
29 |
-
});
|
30 |
-
jQuery("#onestepcheckout-toc-link").fancybox({
|
31 |
-
'titlePosition': 'inside',
|
32 |
-
'openEffect': 'elastic',
|
33 |
-
'openSpeed': '150',
|
34 |
-
'closeEffect': 'elastic',
|
35 |
-
'closeSpeed': '150',
|
36 |
-
});
|
37 |
-
jQuery("#forgotpassword").fancybox({
|
38 |
-
'titlePosition': 'inside',
|
39 |
-
'openEffect': 'elastic',
|
40 |
-
'openSpeed': '150',
|
41 |
-
'closeEffect': 'elastic',
|
42 |
-
'closeSpeed': '150',
|
43 |
-
'width': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxwidth");?>px',
|
44 |
-
'height': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxheight")+50; ?>px',
|
45 |
-
});
|
46 |
-
jQuery("#backlogin").fancybox({
|
47 |
-
'titlePosition': 'inside',
|
48 |
-
'openEffect': 'elastic',
|
49 |
-
'openSpeed': '150',
|
50 |
-
'closeEffect': 'elastic',
|
51 |
-
'closeSpeed': '150',
|
52 |
-
});
|
53 |
-
jQuery("#store_secure").fancybox({
|
54 |
-
'titlePosition': 'inside',
|
55 |
-
'openEffect': 'elastic',
|
56 |
-
'openSpeed': '150',
|
57 |
-
'closeEffect': 'elastic',
|
58 |
-
'closeSpeed': '150',
|
59 |
-
'width': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxwidth");?>px',
|
60 |
-
'height': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxheight")+50; ?>px',
|
61 |
-
});
|
62 |
-
var message_payment = "<?php echo Mage::helper('onestepcheckout')->__('Please select a payment method for your order!');?>";
|
63 |
-
var message_ship = "<?php echo Mage::helper('onestepcheckout')->__('Please select a shipping method for your order!');?>";
|
64 |
-
var updatepaymenttypeurl = "<?php echo Mage::getUrl('onestepcheckout/index/updatepaymenttype')?>";
|
65 |
-
var updatepaymentmethodurl = "<?php echo Mage::getUrl('onestepcheckout/index/updatepaymentmethod')?>";
|
66 |
-
var updatecouponurl = "<?php echo Mage::getUrl('onestepcheckout/index/updatecoupon')?>";
|
67 |
-
var updateqtyurl = "<?php echo Mage::getUrl('onestepcheckout/index/updateqty')?>";
|
68 |
-
var removeproducturl = "<?php echo Mage::getUrl('onestepcheckout/index/removeproduct')?>";
|
69 |
-
var updateshippingmethodurl = "<?php echo Mage::getUrl('onestepcheckout/index/updateshippingmethod') ?>";
|
70 |
-
var urls = "<?php echo Mage::getUrl('onestepcheckout/index/updateshippingmethod') ?>";
|
71 |
-
function update_paymentmethods(){return 1;}
|
72 |
-
function update_shippingmethods(){return 1;}
|
73 |
-
function zip_load(){return 1;}
|
74 |
-
function payment_load(){return 1;}
|
75 |
-
function shipping_load(){return 1;}
|
76 |
-
function ProxCamp(fields) {
|
77 |
-
fields.value=soNumeros(fields.value)
|
78 |
-
if (fields.value.length == fields.maxLength) {
|
79 |
-
for (var i = 0; i < fields.form.length; i++) {
|
80 |
-
if (fields.form[i] == fields && fields.form[(i + 1)] && fields.form[(i + 1)].type != "hidden") {
|
81 |
-
fields.form[(i + 1)].focus();
|
82 |
-
break;
|
83 |
-
}
|
84 |
-
}
|
85 |
-
}
|
86 |
-
}
|
87 |
-
function soNumeros(v){
|
88 |
-
return v.replace(/\D/g,"")
|
89 |
-
}
|
90 |
-
function has_default_billing()
|
91 |
-
{
|
92 |
-
<?php if (Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling()): ?>
|
93 |
-
return 1;
|
94 |
-
<?php else: ?>
|
95 |
-
return 0;
|
96 |
<?php endif ?>
|
97 |
-
|
98 |
-
function getval(sel) {
|
99 |
-
if (sel.value == 1){
|
100 |
-
jQuery('.dados-pj').slideUp();
|
101 |
-
jQuery('.dados-pj input:not([type=checkbox])').removeClass('required-entry');
|
102 |
-
}else{
|
103 |
-
jQuery('.dados-pj').slideDown();
|
104 |
-
jQuery('.dados-pj input:not([type=checkbox])').addClass('required-entry');
|
105 |
-
}
|
106 |
-
}
|
107 |
-
function marcar_isento() {
|
108 |
-
jQuery("#insestadual").val("Isento");
|
109 |
-
}
|
110 |
-
function seleciona_cep_busca(valor) {
|
111 |
-
var cep_buscado = jQuery('.'+valor.className).val();
|
112 |
-
jQuery("#billing\\:postcode").val(cep_buscado);
|
113 |
-
buscarEndereco('billing');
|
114 |
-
jQuery.fancybox.close();
|
115 |
-
jQuery("#billing\\:street2").focus();
|
116 |
-
}
|
117 |
-
function busca_endereco_correios(){
|
118 |
-
var url = '<?php echo $urldosite?>index.php/Transparente/Standard/buscaCep/meio/buscaend/busca_end/' + jQuery("#endereco_de_consulta").val().replace(/[^a-zA-ZãéíóúãõàèìòùÀÈÌÙÒÃÂâÁÉÍÓÚ ]/g, '') +'/busca_uf/'+jQuery("#busca_uf").val();
|
119 |
-
jQuery.getJSON(url, function (json) {
|
120 |
-
var qty_consulta = json.consulta.length;
|
121 |
-
if(qty_consulta > 1){
|
122 |
-
jQuery("#searchForm").hide();
|
123 |
-
jQuery("#buscar_nos_correios").show();
|
124 |
-
}
|
125 |
-
jQuery(".resultados_get_busca").html();
|
126 |
-
jQuery.each(json.consulta, function (i, fb) {
|
127 |
-
jQuery(".resultados_get_busca").append('<label><div class="seletec_result_end"><input type="radio" value="'+fb.retorno.cep+'" class="cep_encontrado_'+fb.retorno.cep+'" onclick="javascript:seleciona_cep_busca(this);"></div><div class="dados_result_end"><span class="cidade">'+fb.retorno.cidade + ' - ' + fb.retorno.uf+'</span><span class="cep">'+fb.retorno.cep+'</span><span class="rua">'+fb.retorno.rua+'</span></div></label>');
|
128 |
-
});
|
129 |
-
|
130 |
-
});
|
131 |
-
};
|
132 |
|
133 |
-
function buscarEndereco(whatform) {
|
134 |
-
if (whatform == "billing") {
|
135 |
-
var campos = {
|
136 |
-
postcode: document.getElementById('billing:postcode'),
|
137 |
-
street_1: document.getElementById('billing:street1'),
|
138 |
-
street_4: document.getElementById('billing:street4'),
|
139 |
-
city: document.getElementById('billing:city'),
|
140 |
-
region: document.getElementById('billing:region_id')
|
141 |
-
};
|
142 |
-
updateShippingType(document.getElementById('billing:postcode'));
|
143 |
-
}
|
144 |
-
if (whatform == "shipping") {
|
145 |
-
var campos = {
|
146 |
-
postcode: document.getElementById('shipping:postcode'),
|
147 |
-
street_1: document.getElementById('shipping:street1'),
|
148 |
-
street_4: document.getElementById('shipping:street4'),
|
149 |
-
city: document.getElementById('shipping:city'),
|
150 |
-
region: document.getElementById('shipping:region_id'),
|
151 |
-
};
|
152 |
-
|
153 |
-
}
|
154 |
-
if (whatform == "register") {
|
155 |
-
var campos = {
|
156 |
-
postcode: document.getElementById('postcode'),
|
157 |
-
street_1: document.getElementById('street_1'),
|
158 |
-
street_4: document.getElementById('street_4'),
|
159 |
-
city: document.getElementById('city'),
|
160 |
-
region: document.getElementById('region_id')
|
161 |
-
};
|
162 |
-
}
|
163 |
-
|
164 |
-
jQuery.ajax({
|
165 |
-
type:'GET',
|
166 |
-
url: '<?php echo $urldosite?>index.php/Transparente/Standard/buscaCep/meio/cep/cep/' + campos.postcode.value.replace(/\+/g, ''),
|
167 |
-
|
168 |
-
beforeSend: function(data){
|
169 |
-
jQuery(campos.street_1).val("Buscando Endereço");
|
170 |
-
jQuery(campos.street_4).val("Buscando Endereço");
|
171 |
-
jQuery(campos.city).val("Buscando Endereço");
|
172 |
-
},
|
173 |
-
|
174 |
-
success: function(data){
|
175 |
-
jQuery('#loading-mask').fadeOut();
|
176 |
-
var addressData = jQuery.parseJSON(data);
|
177 |
-
jQuery(campos.street_1).val(addressData.logradouro);
|
178 |
-
jQuery(campos.street_4).val(addressData.bairro);
|
179 |
-
jQuery(campos.city).val(addressData.cidade);
|
180 |
-
jQuery(campos.region).val(addressData.ufid);
|
181 |
-
if (campos.postcode != "" && campos.postcode != ".")
|
182 |
-
{
|
183 |
-
updateShippingType(campos.postcode);
|
184 |
-
}
|
185 |
-
},
|
186 |
-
error: function(){
|
187 |
-
jQuery(campos.street_1).val("");
|
188 |
-
jQuery(campos.street_4).val("");
|
189 |
-
jQuery(campos.city).val("");
|
190 |
-
jQuery(campos.region).val("");
|
191 |
-
if (campos.postcode != "" && campos.postcode != ".")
|
192 |
-
{
|
193 |
-
updateShippingType(campos.postcode);
|
194 |
-
}
|
195 |
-
},
|
196 |
-
});
|
197 |
-
};
|
198 |
-
function updateShippingMethod() {
|
199 |
-
if(document.getElementById('billing:postcode') != "" && document.getElementById('billing:postcode') != "." ){
|
200 |
-
jQuery('#checkout-payment-method-load').html('<div class="update_payment">Calculando valor do pagamento.<img class="Loading" alt="Loading..." src="<?php echo $this->getSkinUrl("MOIP/onestepcheckout/images/ajax-loader-tr.gif")?>"></div>');
|
201 |
-
jQuery.ajax({
|
202 |
-
url: urls,
|
203 |
-
type: "POST",
|
204 |
-
data: "shipping_method=" + jQuery('input[name=shipping_method]:checked').val(),
|
205 |
-
})
|
206 |
-
.done(function(msg) {
|
207 |
-
msg = msg.replace("[]", "");
|
208 |
-
jQuery('#checkout-review-load').html(msg);
|
209 |
-
jQuery('#checkout-payment-method-load').html('<div class="update_payment">Calculando valor do pagamento.<img class="Loading" alt="Loading..." src="<?php echo $this->getSkinUrl("MOIP/onestepcheckout/images/ajax-loader-tr.gif")?>"></div>');
|
210 |
-
updatePaymentAssociated();
|
211 |
-
})
|
212 |
-
.fail(function() {
|
213 |
-
updateShippingMethod();
|
214 |
-
})
|
215 |
-
.always(function() {
|
216 |
-
|
217 |
-
});
|
218 |
-
}
|
219 |
-
};
|
220 |
-
function updateShippingType(str_value){
|
221 |
-
jQuery('#message-box').html('');
|
222 |
-
jQuery('#checkout-shipping-method-load').html('<div class="update_shipping">Calculando Frete.<img class="Loading" alt="Loading..." src="<?php echo $this->getSkinUrl("MOIP/onestepcheckout/images/ajax-loader-tr.gif")?>"></div>');
|
223 |
-
|
224 |
-
<?php if(!Mage::helper('onestepcheckout')->onlyProductDownloadable()):?>
|
225 |
-
if(update_shippingmethods()){
|
226 |
-
jQuery.ajax({
|
227 |
-
type: "POST",
|
228 |
-
url: "<?php echo Mage::getUrl('onestepcheckout/index/updateshippingtype')?>",
|
229 |
-
data:jQuery("#onestep_form").serialize(),
|
230 |
-
success: function(msg){
|
231 |
-
jQuery('#checkout-shipping-method-load').html(msg);
|
232 |
-
},
|
233 |
-
error: function(){
|
234 |
-
alert("Problemas no Serviço de cotação, entre em contato com a loja.");
|
235 |
-
},
|
236 |
-
});
|
237 |
-
}else{
|
238 |
-
updatePaymentAssociated();
|
239 |
-
}
|
240 |
-
<?php else:?>
|
241 |
-
updatePaymentAssociated();
|
242 |
-
<?php endif?>
|
243 |
-
}
|
244 |
-
function updatePaymentAssociated() {
|
245 |
-
|
246 |
-
if (!update_paymentmethods()) {
|
247 |
-
|
248 |
-
if (jQuery('input[name=payment\\[method\\]]:checked').val() && payment_load()) {
|
249 |
-
updatePaymentMethod(jQuery('input[name=payment\\[method\\]]:checked').val());
|
250 |
-
} else {
|
251 |
-
|
252 |
-
}
|
253 |
-
} else {
|
254 |
-
jQuery.ajax({
|
255 |
-
type: "POST",
|
256 |
-
url: "<?php echo Mage::getUrl('onestepcheckout/index/updatepaymenttype')?>",
|
257 |
-
data: jQuery("#onestep_form").serialize(),
|
258 |
-
success: function(msg) {
|
259 |
-
jQuery('#checkout-payment-method-load').html(msg);
|
260 |
-
if (jQuery('input[name=payment\\[method\\]]:checked').val() && payment_load()) {
|
261 |
-
updatePaymentMethod(jQuery('input[name=payment\\[method\\]]:checked').val());
|
262 |
-
} else {
|
263 |
-
|
264 |
-
}
|
265 |
-
}
|
266 |
-
});
|
267 |
-
}
|
268 |
-
}
|
269 |
-
function updatePaymentMethod(value) {
|
270 |
-
jQuery.ajax({
|
271 |
-
url: updatepaymentmethodurl,
|
272 |
-
type: "POST",
|
273 |
-
data: "payment%5Bmethod%5D=" + value,
|
274 |
-
})
|
275 |
-
.done(function(msg) {
|
276 |
-
jQuery('#checkout-review-load').html(msg);
|
277 |
-
})
|
278 |
-
.fail(function() {
|
279 |
-
updatePaymentMethod(value);
|
280 |
-
})
|
281 |
-
.always(function() {
|
282 |
-
});
|
283 |
-
};
|
284 |
-
function updateCoupon(code, isremove) {
|
285 |
-
jQuery.ajax({
|
286 |
-
url: updatecouponurl,
|
287 |
-
type: "POST",
|
288 |
-
data: "coupon_code=" + code + "&remove=" + isremove,
|
289 |
-
})
|
290 |
-
.done(function(msg) {
|
291 |
-
jQuery.ajax({
|
292 |
-
url: updatepaymenttypeurl,
|
293 |
-
type: "POST",
|
294 |
-
data: jQuery("#onestep_form").serialize(),
|
295 |
-
});
|
296 |
-
jQuery('#checkout-payment-method-load').html();
|
297 |
-
str = jQuery.parseJSON(msg);
|
298 |
-
jQuery('#tab-coupon').html(str.coupon);
|
299 |
-
jQuery('#checkout-review-load').html(str.view);
|
300 |
-
})
|
301 |
-
.fail(function() {
|
302 |
-
updateCoupon(code, isremove);
|
303 |
-
})
|
304 |
-
.always(function() {
|
305 |
-
updateShippingType(document.getElementById('billing:postcode'));
|
306 |
-
});
|
307 |
-
};
|
308 |
-
function removeProduct(id) {
|
309 |
-
hasgift = (typeof(jQuery('#allow-gift-message-container')) != 'undefined') ? 1 : 0;
|
310 |
-
jQuery('#message-box').html('');
|
311 |
-
jQuery.ajax({
|
312 |
-
type: "POST",
|
313 |
-
url: removeproducturl,
|
314 |
-
data: "id=" + id + '&hasgiftbox=' + hasgift,
|
315 |
-
success: function(msg) {
|
316 |
-
jQuery.ajax({
|
317 |
-
type: "POST",
|
318 |
-
url: updatepaymenttypeurl,
|
319 |
-
data: jQuery("#onestep_form").serialize(),
|
320 |
-
success: function(msg) {
|
321 |
-
jQuery('#checkout-payment-method-load').html(msg);
|
322 |
-
}
|
323 |
-
});
|
324 |
-
str = jQuery.parseJSON(msg);
|
325 |
-
if (str.view.search("<script") != 0) {
|
326 |
-
if (str.giftbox) {
|
327 |
-
jQuery('#checkout-review-load').html(str.view);
|
328 |
-
jQuery('#onepage-checkout-shipping-method-additional-load').html(str.giftbox);
|
329 |
-
} else {
|
330 |
-
jQuery('#checkout-review-load').html(str.view);
|
331 |
-
}
|
332 |
-
} else {
|
333 |
-
jQuery('#checkout-review-load').append(str.view);
|
334 |
-
}
|
335 |
-
}
|
336 |
-
});
|
337 |
-
updateShippingType(document.getElementById('billing:postcode'));
|
338 |
-
}
|
339 |
-
function logined()
|
340 |
-
{
|
341 |
-
<?php if(Mage::getSingleton('customer/session')->isLoggedIn()):?>
|
342 |
-
return 1;
|
343 |
-
<?php else: ?>
|
344 |
-
return 0;
|
345 |
-
<?php endif ?>
|
346 |
-
}
|
347 |
-
function hasaddress(){
|
348 |
-
<?php if(count(Mage::getSingleton('customer/session')->getCustomer()->getAddresses())): ?>
|
349 |
-
updateShippingType(document.getElementById('billing:postcode'));
|
350 |
-
return 1;
|
351 |
-
<?php else:?>
|
352 |
-
return 0;
|
353 |
-
<?php endif; ?>
|
354 |
-
}
|
355 |
-
function reDrawOnepage(versao)
|
356 |
-
{
|
357 |
-
if(versao == 2){
|
358 |
-
jQuery("#shipping_collum").css({'width':'100%','margin-bottom':'10px'});
|
359 |
-
jQuery("#payment_collum").css({'width':'100%', 'float':'left','margin-left': '0'});
|
360 |
-
};
|
361 |
-
if(versao == 4){
|
362 |
-
jQuery('body').addClass('moip-opc-2columns');
|
363 |
-
jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment').removeClass('row-fluid');
|
364 |
-
jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment').removeClass('grid12-12');
|
365 |
-
jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review').removeClass('row-fluid');
|
366 |
-
jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review').removeClass('grid12-12');
|
367 |
-
jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment .moip-osc-column').removeClass('grid12-6');
|
368 |
-
jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment .moip-osc-column').removeClass('span6');
|
369 |
-
jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment').addClass('grid12-6');
|
370 |
-
jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment').addClass('span6');
|
371 |
-
jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment .moip-osc-column').addClass('span12');
|
372 |
-
jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment .moip-osc-column').addClass('grid12-12');
|
373 |
-
jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review').addClass('span6');
|
374 |
-
jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review').addClass('grid12-6');
|
375 |
-
};
|
376 |
-
}
|
377 |
-
jQuery(function(){
|
378 |
-
jQuery("#billing\\:day").attr('maxlength', '2');
|
379 |
-
jQuery("#billing\\:day").attr('onkeyup', 'ProxCamp(this)');
|
380 |
-
jQuery("#billing\\:month").attr('maxlength', '2');
|
381 |
-
jQuery("#billing\\:month").attr('onkeyup', 'ProxCamp(this)');
|
382 |
-
jQuery("#billing\\:year").attr('maxlength', '4');
|
383 |
-
jQuery("#billing\\:year").attr('onkeyup', 'ProxCamp(this)');
|
384 |
-
|
385 |
-
if (!logined()) {
|
386 |
-
jQuery('#allow-gift-message-container').clearForm();
|
387 |
-
}
|
388 |
-
jQuery(".customer-dob").css('width','100px');
|
389 |
-
jQuery(".moipzip").css('width','100px');
|
390 |
-
jQuery(".cart .discount").css({'border':'none','background':'none'});
|
391 |
-
jQuery('[id="billing:postcode"]').addClass('required-entry');
|
392 |
-
jQuery('[id="shipping:postcode"]').addClass('required-entry');
|
393 |
-
jQuery('[id="billing:region_id"]').addClass('validate-select');
|
394 |
-
jQuery('[id="shipping:region_id"]').addClass('validate-select');
|
395 |
-
<?php
|
396 |
-
$color ="#000";
|
397 |
-
if(Mage::getStoreConfig('onestepcheckout/layout/style_cor')!= ""){
|
398 |
-
$color = "#".Mage::getStoreConfig('onestepcheckout/layout/style_cor');
|
399 |
-
}
|
400 |
-
?>
|
401 |
-
<?php
|
402 |
-
if(Mage::getStoreConfig('onestepcheckout/layout/page_layout')==2 || Mage::helper('onestepcheckout')->onlyProductDownloadable() || Mage::getStoreConfig('onestepcheckout/layout/page_layout')==4):?>
|
403 |
-
reDrawOnepage("<?php echo Mage::getStoreConfig('onestepcheckout/layout/page_layout'); ?>");
|
404 |
-
<?php endif?>
|
405 |
-
if (logined()) {
|
406 |
-
if (!has_default_billing()) {
|
407 |
-
jQuery('#billing-new-address-form').clearForm();
|
408 |
-
jQuery('#shipping-new-address-form').clearForm();
|
409 |
-
}
|
410 |
-
} else {
|
411 |
-
jQuery('#billing-new-address-form').clearForm();
|
412 |
-
jQuery('#shipping-new-address-form').clearForm();
|
413 |
-
}
|
414 |
-
|
415 |
-
<?php
|
416 |
-
$islogin=0;
|
417 |
-
if(Mage::getSingleton('customer/session')->isLoggedIn()){
|
418 |
-
$islogin=1;
|
419 |
-
}
|
420 |
-
?>
|
421 |
-
<?php if($islogin){
|
422 |
-
$Email_customer = Mage::getSingleton('customer/session')->getCustomer()->getEmail();
|
423 |
-
$first_name = Mage::getSingleton('customer/session')->getCustomer()->getFirstname();
|
424 |
-
$Last_name = Mage::getSingleton('customer/session')->getCustomer()->getLastname();
|
425 |
-
$taxvat = Mage::getSingleton('customer/session')->getCustomer()->getTaxvat();
|
426 |
-
|
427 |
-
?>
|
428 |
-
jQuery("#billing\\:email").val("<?php echo $Email_customer; ?>");
|
429 |
-
jQuery("#billing\\:firstname").val("<?php echo $first_name; ?>");
|
430 |
-
jQuery("#billing\\:lastname").val("<?php echo $Last_name; ?>");
|
431 |
-
jQuery("#billing\\:taxvat").val("<?php echo $taxvat; ?>");
|
432 |
-
<?php } ?>
|
433 |
-
var completeajax=1;
|
434 |
-
if (jQuery('input[name=shipping_method]:checked').val()) {
|
435 |
-
|
436 |
-
jQuery.ajax({
|
437 |
-
type: "POST",
|
438 |
-
url: updateshippingmethodurl,
|
439 |
-
data: "shipping_method=" + jQuery('input[name=shipping_method]:checked').val(),
|
440 |
-
success: function(msg) {
|
441 |
-
msg = msg.replace("[]", "");
|
442 |
-
jQuery('#checkout-review-load').html(msg);
|
443 |
-
}
|
444 |
-
});
|
445 |
-
}
|
446 |
-
|
447 |
-
|
448 |
-
jQuery('.btn-checkout').bind("click",function(e){
|
449 |
-
|
450 |
-
var logic= true;
|
451 |
-
|
452 |
-
jQuery('#co-payment-form').show();
|
453 |
-
var form = new VarienForm('onestep_form');
|
454 |
-
|
455 |
-
<?php if(Mage::helper('onestepcheckout')->onlyProductDownloadable()):?>
|
456 |
-
var notshipmethod=1;
|
457 |
-
<?php else:?>
|
458 |
-
var notshipmethod=jQuery("input[name=shipping_method]:checked").val();
|
459 |
-
<?php endif?>
|
460 |
-
if(!jQuery('input[name=payment\\[method\\]]:checked').val() || !notshipmethod){
|
461 |
-
logic=false;
|
462 |
-
}
|
463 |
-
if(!jQuery('input[name=payment\\[method\\]]:checked').val()){
|
464 |
-
if(!jQuery('#advice-required-entry_payment').length){
|
465 |
-
jQuery('#checkout-payment-method-load').append('<dt><div class="validation-advice" id="advice-required-entry_payment" style="position:relative;">'+message_payment+'</div></dt>');
|
466 |
-
jQuery(document).scrollTop(jQuery('#checkout-payment-method-load').offset().top );
|
467 |
-
}
|
468 |
-
}else{
|
469 |
-
jQuery('#advice-required-entry_payment').remove();
|
470 |
-
}
|
471 |
-
if(!notshipmethod){
|
472 |
-
if(!jQuery('#advice-required-entry_shipping').length){
|
473 |
-
jQuery('#checkout-shipping-method-loadding').append('<dt><div class="validation-advice" id="advice-required-entry_shipping" style="position:relative;">'+message_ship+'</div></dt>');
|
474 |
-
jQuery(document).scrollTop(jQuery('#checkout-shipping-method-loadding').offset().top );
|
475 |
-
}
|
476 |
-
}else{
|
477 |
-
jQuery('#advice-required-entry_shipping').remove();
|
478 |
-
}
|
479 |
-
|
480 |
-
if(!form.validator.validate()) {
|
481 |
-
if(logined()!=1){
|
482 |
-
val=jQuery('#billing\\:email').val();
|
483 |
-
emailvalidated=Validation.get('IsEmpty').test(val) || /^([a-z0-9,!\#\$%&'\*\+\/=\?\^_`\{\|\}~-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z0-9,!\#\$%&'\*\+\/=\?\^_`\{\|\}~-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*@([a-z0-9-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z0-9-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*\.(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]){2,})$/i.test(val);
|
484 |
-
if(val!="" && emailvalidated){
|
485 |
-
updateEmailmsg(val);
|
486 |
-
}
|
487 |
-
}
|
488 |
-
}else{
|
489 |
-
if(logined()!=1){
|
490 |
-
var msgerror=1;
|
491 |
-
val=jQuery('#billing\\:email').val();
|
492 |
-
emailvalidated=Validation.get('IsEmpty').test(val) || /^([a-z0-9,!\#\$%&'\*\+\/=\?\^_`\{\|\}~-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z0-9,!\#\$%&'\*\+\/=\?\^_`\{\|\}~-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*@([a-z0-9-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z0-9-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*\.(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]){2,})$/i.test(val);
|
493 |
-
if(val!="" && emailvalidated){
|
494 |
-
msgerror=updateEmailmsg(val);
|
495 |
-
}
|
496 |
-
if(msgerror==0){
|
497 |
-
return false;
|
498 |
-
}
|
499 |
-
}
|
500 |
-
|
501 |
-
if(logic){
|
502 |
-
jQuery('#onestep_form').submit();
|
503 |
-
jQuery('#loading-mask').show();
|
504 |
-
|
505 |
-
}else {
|
506 |
-
return false;
|
507 |
-
}
|
508 |
-
}
|
509 |
-
return false;
|
510 |
-
});
|
511 |
-
jQuery('.validation-advice').delay(1000).fadeOut();
|
512 |
-
jQuery('.validation-advice').delay(5000).fadeOut("slow");
|
513 |
-
});
|
514 |
-
//]]>
|
515 |
-
</script>
|
516 |
-
|
517 |
-
<script type="text/javascript">
|
518 |
-
//<![CDATA[
|
519 |
-
function removeProductId(product_id){
|
520 |
-
if(confirm("<?php echo $this->__('Tem certeza que deseja remover o produto?')?>")){
|
521 |
-
removeProduct(product_id);
|
522 |
-
}
|
523 |
-
}
|
524 |
-
function updateEmailmsg(val){
|
525 |
-
jQuery('#message-box').html('');
|
526 |
-
var asyncdata;
|
527 |
-
jQuery.ajax({
|
528 |
-
async:false,
|
529 |
-
type: "POST",
|
530 |
-
url: "<?php echo Mage::getUrl('onestepcheckout/index/updateemailmsg')?>",
|
531 |
-
data:"email="+val,
|
532 |
-
success: function(msg){
|
533 |
-
var error="<div id=\"message-box\"><div class=\"validation-advice\" style=\"position:relative;\">Email já cadastrado, por favor <a href=\"#inline1\" id=\"loginbox\">Clique aqui e faça o login</a></div></div>";
|
534 |
-
if(msg==0){
|
535 |
-
jQuery('#billing\\:email').after(error);
|
536 |
-
jQuery('#message-box').html(error);
|
537 |
-
|
538 |
-
asyncdata='0';
|
539 |
-
}else{
|
540 |
-
if(logined()!=1){
|
541 |
-
jQuery('#message-box').html('');
|
542 |
-
}
|
543 |
-
jQuery('#billing\\:email').removeClass('validation-failed');
|
544 |
-
asyncdata= '1';
|
545 |
-
}
|
546 |
-
}
|
547 |
-
});
|
548 |
-
return asyncdata;
|
549 |
-
}
|
550 |
-
//]]>
|
551 |
-
</script>
|
552 |
-
<?php if(Mage::getStoreConfig('onestepcheckout/layout/style_cor')!= ""):
|
553 |
-
$color = "#".Mage::getStoreConfig('onestepcheckout/layout/style_cor');
|
554 |
-
$botao_color = "#".Mage::getStoreConfig('onestepcheckout/layout/botao_cor');
|
555 |
-
?>
|
556 |
-
<style type="text/css">
|
557 |
-
#loginbox{background:<?php echo $botao_color;?>;padding: 10px;color:#fff;text-decoration: none;border-radius: 5px;}
|
558 |
-
div.moip-osc-block-title{border-bottom:4px solid <?php echo $color;?>;}
|
559 |
-
.onestepcheckout-numbers{background:<?php echo $color;?>;}
|
560 |
-
p.moip-osc-block-title{color:<?php echo $color;?>;}
|
561 |
-
.moip-osc-block-title>h3 {color: <?php echo $color;?>;}
|
562 |
-
|
563 |
-
<?php if(!Mage::getStoreConfig('onestepcheckout/layout/site_response')): ?>
|
564 |
-
.moip-osc-column.span4.grid12-4 {width: 33%;}
|
565 |
-
<?php endif ?>
|
566 |
-
</style>
|
567 |
-
<?php endif;?>
|
568 |
<div class=" row-fluid grid12-12">
|
569 |
<h1 class="moip-osc-page-tittle"><?php echo $this->__(Mage::getStoreConfig('onestepcheckout/layout/page_titulo'))?></h1>
|
570 |
<p class="moip-osc-page-content"><?php echo $this->__(Mage::getStoreConfig('onestepcheckout/layout/page_conteudo'))?></p>
|
571 |
</div>
|
572 |
<div class="moip-osc-threecolumns moip-osc-checkoutcontainer moip-osc-skin-generic">
|
573 |
-
<form id="onestep_form" action="<?php echo $this->getUrl('onestepcheckout/index/updateordermethod') ?>" method="POST">
|
574 |
<div class="moip-osc-column span4 grid12-4">
|
575 |
-
|
576 |
<div class="moip-osc-block-title">
|
577 |
<div class="onestepcheckout-numbers onestepcheckout-numbers-1"></div>
|
578 |
<h3><?php echo $this->__('Billing address');?></h3>
|
579 |
</div>
|
580 |
<div class="moip-osc-block-content">
|
581 |
-
<div>
|
582 |
<?php if(!$islogin):?>
|
583 |
<?php if(Mage::getStoreConfig('onestepcheckout/layout/enable_quicklogin')):?>
|
584 |
<a id="loginbox" href="#inline1" title=""><?php echo $this->__('Already registered? Click here to login.');?></a>
|
@@ -586,11 +34,7 @@ function updateEmailmsg(val){
|
|
586 |
<?php endif?>
|
587 |
<?php echo $this->getChildHtml('billing');?>
|
588 |
<?php if(Mage::helper('onestepcheckout')->showCouponCode()):?>
|
589 |
-
<div class="tab-coupon">
|
590 |
-
<div id="tab-coupon">
|
591 |
<?php echo $this->getChildHtml('coupon');?>
|
592 |
-
</div>
|
593 |
-
</div>
|
594 |
<?php endif;?>
|
595 |
</div>
|
596 |
</div>
|
@@ -607,24 +51,26 @@ function updateEmailmsg(val){
|
|
607 |
</div>
|
608 |
</div>
|
609 |
</div>
|
610 |
-
<?php endif
|
611 |
<?php endif;?>
|
612 |
-
|
613 |
</div>
|
614 |
<div class="moip-osc-column-2 span8 grid12-8">
|
615 |
-
<div
|
616 |
<div class="shipping-payment">
|
617 |
<?php if(!Mage::helper('onestepcheckout')->onlyProductDownloadable()):?>
|
618 |
-
<div class="moip-osc-column moip-osc-column-middle
|
619 |
<div class="moip-osc-block" >
|
620 |
<div class="moip-osc-block-title">
|
621 |
<div class="onestepcheckout-numbers onestepcheckout-numbers-2" id="moip-osc-p2"></div>
|
622 |
<h3> <?php echo $this->__('Shipping method');?> </h3>
|
623 |
</div>
|
624 |
-
|
625 |
-
|
626 |
-
<?php
|
627 |
-
|
|
|
|
|
628 |
</div>
|
629 |
</div>
|
630 |
<?php endif?>
|
@@ -664,84 +110,85 @@ function updateEmailmsg(val){
|
|
664 |
</div>
|
665 |
|
666 |
</form>
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
</div>
|
732 |
-
<div id="store_secure_content" style="width:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxwidth')?>px;height:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')?>px;overflow:auto;">
|
733 |
-
<div class="moip-osc-title-login">
|
734 |
-
<h1><?php echo $this->__('Loja Segura');?> </h1>
|
735 |
-
</div>
|
736 |
-
<div class="moip-osc-ct-term" style="height: <?php echo (Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')-90).'px';?>">
|
737 |
-
<?php echo $this->__(Mage::getStoreConfig('onestepcheckout/layout/secure'));?>
|
738 |
-
</div>
|
739 |
-
</div>
|
740 |
-
</div>
|
741 |
-
|
742 |
</div>
|
743 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
744 |
<div style="left: 0px; min-height: 710px; display: none; top:0px;" id="loading-mask">
|
745 |
<p id="loading_mask_loader" class="loader"><img alt="Loading..." src="<?php echo $this->getSkinUrl('MOIP/onestepcheckout/images/ajax-loader-tr.gif')?>"><br>Atualizando dados, por favor aguarde...</p>
|
746 |
</div>
|
747 |
-
<?php endif?>
|
1 |
<?php if(Mage::getStoreConfig('onestepcheckout/config/enabled')):?>
|
2 |
+
<?php $color = "#".Mage::getStoreConfig('onestepcheckout/layout/style_cor'); ?>
|
3 |
+
<?php $botao_color = "#".Mage::getStoreConfig('onestepcheckout/layout/botao_cor');?>
|
4 |
+
<?php $islogin=0; if(Mage::getSingleton('customer/session')->isLoggedIn()) $islogin=1; ?>
|
5 |
+
<style type="text/css">
|
6 |
+
#loginbox{background:<?php echo $botao_color;?>;padding: 10px;color:#fff;text-decoration: none;border-radius: 5px;}
|
7 |
+
div.moip-osc-block-title{border-bottom:4px solid <?php echo $color;?>;}
|
8 |
+
.onestepcheckout-numbers{background:<?php echo $color;?>;}
|
9 |
+
p.moip-osc-block-title{color:<?php echo $color;?>;}
|
10 |
+
.moip-osc-block-title>h3 {color: <?php echo $color;?>;}
|
11 |
+
<?php if(!Mage::getStoreConfig('onestepcheckout/layout/site_response')): ?>
|
12 |
+
.moip-osc-column.span4.grid12-4 {width: 33%;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
<?php endif ?>
|
14 |
+
</style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
<div class=" row-fluid grid12-12">
|
17 |
<h1 class="moip-osc-page-tittle"><?php echo $this->__(Mage::getStoreConfig('onestepcheckout/layout/page_titulo'))?></h1>
|
18 |
<p class="moip-osc-page-content"><?php echo $this->__(Mage::getStoreConfig('onestepcheckout/layout/page_conteudo'))?></p>
|
19 |
</div>
|
20 |
<div class="moip-osc-threecolumns moip-osc-checkoutcontainer moip-osc-skin-generic">
|
21 |
+
<form id="onestep_form" autocomplete="off" action="<?php echo $this->getUrl('onestepcheckout/index/updateordermethod') ?>" method="POST">
|
22 |
<div class="moip-osc-column span4 grid12-4">
|
23 |
+
|
24 |
<div class="moip-osc-block-title">
|
25 |
<div class="onestepcheckout-numbers onestepcheckout-numbers-1"></div>
|
26 |
<h3><?php echo $this->__('Billing address');?></h3>
|
27 |
</div>
|
28 |
<div class="moip-osc-block-content">
|
29 |
+
<div class="billing_start">
|
30 |
<?php if(!$islogin):?>
|
31 |
<?php if(Mage::getStoreConfig('onestepcheckout/layout/enable_quicklogin')):?>
|
32 |
<a id="loginbox" href="#inline1" title=""><?php echo $this->__('Already registered? Click here to login.');?></a>
|
34 |
<?php endif?>
|
35 |
<?php echo $this->getChildHtml('billing');?>
|
36 |
<?php if(Mage::helper('onestepcheckout')->showCouponCode()):?>
|
|
|
|
|
37 |
<?php echo $this->getChildHtml('coupon');?>
|
|
|
|
|
38 |
<?php endif;?>
|
39 |
</div>
|
40 |
</div>
|
51 |
</div>
|
52 |
</div>
|
53 |
</div>
|
54 |
+
<?php endif; ?>
|
55 |
<?php endif;?>
|
56 |
+
|
57 |
</div>
|
58 |
<div class="moip-osc-column-2 span8 grid12-8">
|
59 |
+
<div class="moip-osc-column-container row-fluid grid12-12">
|
60 |
<div class="shipping-payment">
|
61 |
<?php if(!Mage::helper('onestepcheckout')->onlyProductDownloadable()):?>
|
62 |
+
<div class="moip-osc-column moip-osc-column-middle grid12-6" id="shipping_collum">
|
63 |
<div class="moip-osc-block" >
|
64 |
<div class="moip-osc-block-title">
|
65 |
<div class="onestepcheckout-numbers onestepcheckout-numbers-2" id="moip-osc-p2"></div>
|
66 |
<h3> <?php echo $this->__('Shipping method');?> </h3>
|
67 |
</div>
|
68 |
+
<div class="moip-osc-block-content">
|
69 |
+
<?php echo $this->getChildHtml('shipping_method');?>
|
70 |
+
<?php if(Mage::helper('onestepcheckout')->enableGiftMessage()):?>
|
71 |
+
<?php echo $this->getChildHtml('additional') ?>
|
72 |
+
<?php endif; ?>
|
73 |
+
</div>
|
74 |
</div>
|
75 |
</div>
|
76 |
<?php endif?>
|
110 |
</div>
|
111 |
|
112 |
</form>
|
113 |
+
</div>
|
114 |
+
<div style="display: none;">
|
115 |
+
<div id="inlineerros" style="width:350px;height:280px>px;overflow:auto;">
|
116 |
+
<div class="moip-osc-title-login">
|
117 |
+
<h1>Ops, corriga os campos a baixo:</h1>
|
118 |
+
</div>
|
119 |
+
<div class="erros_cadastro">
|
120 |
+
<ul class="erros_cadastro_valores">
|
121 |
+
</ul>
|
122 |
+
<div class="buttons-set">
|
123 |
+
<button type="button" class="button" onclick="jQuery.fancybox.close();"><span ><span ><?php echo $this->__('Entendi!') ?></span></span></button>
|
124 |
+
</div>
|
125 |
+
</div>
|
126 |
+
</div>
|
127 |
+
<div id="inlinecorreio" style="width:350px;height:280px>px;overflow:auto;">
|
128 |
+
<div class="moip-osc-title-login">
|
129 |
+
<h1>Busque seu CEP</h1>
|
130 |
+
</div>
|
131 |
+
<div id="searchForm">
|
132 |
+
<ul class="form-list" style="width:260px;">
|
133 |
+
<li class="wide">
|
134 |
+
<label class="required"><em>*</em>Rua, Avenida, travessa...</label>
|
135 |
+
<div class="input-box">
|
136 |
+
<input type="text" name="endereco" id="endereco_de_consulta" value="" class="input-text"/>
|
137 |
+
</div>
|
138 |
+
</li>
|
139 |
+
<li class="field">
|
140 |
+
<label class="required"><em>*</em>Estado</label>
|
141 |
+
<div class="input-box">
|
142 |
+
<input type="text" name="uf_busca" maxlength="2" id="busca_uf" class="input-text" value=""/>
|
143 |
+
</div>
|
144 |
+
</li>
|
145 |
+
<button type="button" title="Buscar endereço" class="button btn-inline" id="correios_end" onclick="javascript:busca_endereco_correios();"/>
|
146 |
+
<span><span>Buscar Endereço</span></span></button>
|
147 |
+
</ul>
|
148 |
+
</div>
|
149 |
+
<div id="resultado">
|
150 |
+
<ul class="resultados_get_busca"></ul>
|
151 |
+
</div>
|
152 |
+
<div id="buscar_nos_correios">
|
153 |
+
<h4>Não achou o seu endereço?</h4>
|
154 |
+
<div><a href="http://www.buscacep.correios.com.br/servicos/dnec/index.do" target="_blank">Busque direto nos Correios.</a></div>
|
155 |
+
</div>
|
156 |
+
<div style="left: 0px;height:100%; display: none; top:0px;" id="loading-mask2">
|
157 |
+
<p id="loading_mask_loader" class="loader"><img alt="Loading..." src="<?php echo $this->getSkinUrl('MOIP/onestepcheckout/images/ajax-loader-tr.gif')?>"><br>Obtendo dados, por favor aguarde...</p>
|
158 |
+
</div>
|
159 |
+
</div>
|
160 |
+
<?php if(!$islogin):?>
|
161 |
+
<div id="inline1" style="width:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxwidth')?>px;height:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')?>px;overflow:auto;">
|
162 |
+
<div class="moip-osc-ct-term" style="height: <?php echo (Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')-30).'px';?>">
|
163 |
+
<?php echo $this->getChildHtml('login');?>
|
164 |
+
</div>
|
165 |
+
</div>
|
166 |
+
<?php endif; ?>
|
167 |
+
<?php if(!$islogin):?>
|
168 |
+
<div id="inline3" style="width:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxwidth')?>px;height:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')+40?>px;overflow:auto;">
|
169 |
+
<div class="moip-osc-ct-term" style="height: <?php echo (Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')+40).'px';?>">
|
170 |
+
<?php echo $this->getChildHtml('forgotpassword');?>
|
171 |
+
</div>
|
172 |
+
</div>
|
173 |
+
<?php endif; ?>
|
174 |
+
<div id="inline2" style="width:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxwidth')?>px;height:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')?>px;overflow:auto;">
|
175 |
+
<div class="moip-osc-title-login">
|
176 |
+
<h1><?php echo $this->__('Terms and Conditions');?> </h1>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
</div>
|
178 |
+
<div class="moip-osc-ct-term" style="height: <?php echo (Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')-90).'px';?>">
|
179 |
+
<?php echo $this->__(Mage::getStoreConfig('onestepcheckout/termcondition/content_options'));?>
|
180 |
+
</div>
|
181 |
+
</div>
|
182 |
+
<div id="store_secure_content" style="width:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxwidth')?>px;height:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')?>px;overflow:auto;">
|
183 |
+
<div class="moip-osc-title-login">
|
184 |
+
<h1><?php echo $this->__('Loja Segura');?> </h1>
|
185 |
+
</div>
|
186 |
+
<div class="moip-osc-ct-term" style="height: <?php echo (Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')-90).'px';?>">
|
187 |
+
<?php echo $this->__(Mage::getStoreConfig('onestepcheckout/layout/secure'));?>
|
188 |
+
</div>
|
189 |
+
</div>
|
190 |
+
</div>
|
191 |
<div style="left: 0px; min-height: 710px; display: none; top:0px;" id="loading-mask">
|
192 |
<p id="loading_mask_loader" class="loader"><img alt="Loading..." src="<?php echo $this->getSkinUrl('MOIP/onestepcheckout/images/ajax-loader-tr.gif')?>"><br>Atualizando dados, por favor aguarde...</p>
|
193 |
</div>
|
194 |
+
<?php endif?>
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/billing.phtml
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
|
2 |
<div id="co-billing-form">
|
3 |
<fieldset>
|
4 |
<ul class="form-list">
|
@@ -17,31 +17,26 @@
|
|
17 |
<?php echo $this->getChildHtml('billing_form');?>
|
18 |
</ul>
|
19 |
<ul class="form-list">
|
20 |
-
|
21 |
<?php if ($this->isCustomerLoggedIn()):?>
|
22 |
-
|
23 |
-
|
24 |
<input type="checkbox" name="save_in_address_book" <?php if (!Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling()):?> value="1" <?php else: ?> value='0' <?php endif; ?>onchange="if(window.shipping) shipping.setSameAsBilling(false);"<?php if (!Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling()):?> checked="checked"<?php endif;?> title="<?php echo $this->__('Save in address book') ?>" id="billing:save_in_address_book" class="checkbox" />
|
25 |
<label for="billing:save_in_address_book" ><?php echo $this->__('Salvar como novo endereço') ?></label>
|
26 |
-
|
27 |
-
|
28 |
<?php else : ?>
|
29 |
-
|
30 |
<input type="hidden" name="billing[save_in_address_book]" value="1" />
|
31 |
<input type="hidden" name="billing[address_id]" value=""/>
|
32 |
-
|
33 |
<?php endif; ?>
|
34 |
-
|
35 |
<?php if(Mage::getStoreConfig('onestepcheckout/config/allowshippingotheraddress')):?>
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
|
|
42 |
<?php else:?>
|
43 |
-
|
44 |
-
</li>
|
45 |
<?php endif; ?>
|
46 |
|
47 |
</ul>
|
@@ -74,8 +69,10 @@ function updateBillingForm(address_id, flag) {
|
|
74 |
type: "POST",
|
75 |
url: "<?php echo Mage::getUrl('onestepcheckout/index/updatebillingform')?>",
|
76 |
data: jQuery("#onestep_form").serialize(),
|
|
|
77 |
success: function(msg) {
|
78 |
jQuery('#moip_onstepcheckout_billing_form').html(msg);
|
|
|
79 |
updateShippingType();
|
80 |
}
|
81 |
});
|
1 |
+
<script type="text/javascript" src="<?php echo $this->getJsUrl('MOIP/onestepcheckout/billing.js') ?>"></script>
|
2 |
<div id="co-billing-form">
|
3 |
<fieldset>
|
4 |
<ul class="form-list">
|
17 |
<?php echo $this->getChildHtml('billing_form');?>
|
18 |
</ul>
|
19 |
<ul class="form-list">
|
|
|
20 |
<?php if ($this->isCustomerLoggedIn()):?>
|
21 |
+
<li class="control">
|
|
|
22 |
<input type="checkbox" name="save_in_address_book" <?php if (!Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling()):?> value="1" <?php else: ?> value='0' <?php endif; ?>onchange="if(window.shipping) shipping.setSameAsBilling(false);"<?php if (!Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling()):?> checked="checked"<?php endif;?> title="<?php echo $this->__('Save in address book') ?>" id="billing:save_in_address_book" class="checkbox" />
|
23 |
<label for="billing:save_in_address_book" ><?php echo $this->__('Salvar como novo endereço') ?></label>
|
24 |
+
</li>
|
|
|
25 |
<?php else : ?>
|
|
|
26 |
<input type="hidden" name="billing[save_in_address_book]" value="1" />
|
27 |
<input type="hidden" name="billing[address_id]" value=""/>
|
|
|
28 |
<?php endif; ?>
|
29 |
+
|
30 |
<?php if(Mage::getStoreConfig('onestepcheckout/config/allowshippingotheraddress')):?>
|
31 |
+
<li class="control">
|
32 |
+
<?php if(!Mage::helper('onestepcheckout')->onlyProductDownloadable()):?>
|
33 |
+
<input type="checkbox" name="ship_to_same_address" value="1" title="<?php echo $this->__('ship to same address') ?>" id="ship_to_same_address" class="checkbox" checked="checked" oncharge="jQuery('#billing\\:save_in_address_book').val('1');" > <label for="ship_to_same_address" ><?php echo $this->__('Ship to same address') ?></label>
|
34 |
+
<?php else:?>
|
35 |
+
<input type="hidden" name="ship_to_same_address" value="1" title="<?php echo $this->__('ship to same address') ?>">
|
36 |
+
<?php endif; ?>
|
37 |
+
</li>
|
38 |
<?php else:?>
|
39 |
+
<input type="hidden" name="ship_to_same_address" value="1" title="<?php echo $this->__('ship to same address') ?>">
|
|
|
40 |
<?php endif; ?>
|
41 |
|
42 |
</ul>
|
69 |
type: "POST",
|
70 |
url: "<?php echo Mage::getUrl('onestepcheckout/index/updatebillingform')?>",
|
71 |
data: jQuery("#onestep_form").serialize(),
|
72 |
+
|
73 |
success: function(msg) {
|
74 |
jQuery('#moip_onstepcheckout_billing_form').html(msg);
|
75 |
+
|
76 |
updateShippingType();
|
77 |
}
|
78 |
});
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/billing/billing_form.phtml
DELETED
@@ -1,217 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
$myStatus = Mage::getSingleton('customer/session')->isLoggedIn();
|
4 |
-
if (Mage::getSingleton('customer/session')->isLoggedIn()) {
|
5 |
-
$customer = Mage::getSingleton('customer/session')->getCustomer();
|
6 |
-
$firstname = $customer->getFirstname();
|
7 |
-
$lastname = $customer->getLastname();
|
8 |
-
$region_select = $this->escapeHtml($this->getAddress()->getRegion());
|
9 |
-
$taxvat = $customer->getTaxvat();
|
10 |
-
$exibe_email = 0;
|
11 |
-
} else {
|
12 |
-
$fullname = "";
|
13 |
-
$firstname = "";
|
14 |
-
$lastname = "";
|
15 |
-
$region_select = "";
|
16 |
-
$taxvat = "";
|
17 |
-
$exibe_email = 1;
|
18 |
-
}
|
19 |
-
if(Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling()){
|
20 |
-
|
21 |
-
$address_data = Mage::getModel('customer/address')->load(Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling());
|
22 |
-
$firstname = $address_data->getFirstname();
|
23 |
-
$lastname = $address_data->getLastname();
|
24 |
-
}
|
25 |
-
$_dob = $this->getLayout()->createBlock('customer/widget_dob');
|
26 |
-
$_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat');
|
27 |
-
$_gender = $this->getLayout()->createBlock('customer/widget_gender');
|
28 |
-
?>
|
29 |
-
|
30 |
-
<script type="text/javascript" src="<?php echo $this->getJsUrl('MOIP/onestepcheckout/billing.js') ?>"></script>
|
31 |
-
|
32 |
-
<li class="customer-name field">
|
33 |
-
<label for="billing:firstname" class="required"><em>*</em>Nome</label>
|
34 |
-
<div class="input-box">
|
35 |
-
<input type="text" id="billing:firstname" name="billing[firstname]" value="<?php echo $firstname; ?>" title="Nome" class="input-text required-entry" autocomplete="off">
|
36 |
-
</div>
|
37 |
-
</li>
|
38 |
-
<li class="field name-lastname">
|
39 |
-
<label for="billing:lastname" class="required"><em>*</em>Sobrenome</label>
|
40 |
-
<div class="input-box">
|
41 |
-
<input type="text" id="billing:lastname" name="billing[lastname]" value="<?php echo $lastname; ?>" title="Sobrenome" class="input-text required-entry" autocomplete="off">
|
42 |
-
</div>
|
43 |
-
</li>
|
44 |
-
<li class="wide" <?php if($exibe_email == 0) echo 'style="display:none"' ?>>
|
45 |
-
<label for="billing:email" class="required"><em>*</em>Endereço de e-mail</label>
|
46 |
-
<div class="input-box">
|
47 |
-
<input type="text" name="billing[email]" id="billing:email" value="<?php echo $this->htmlEscape( Mage::getSingleton('customer/session')->getCustomer()->getEmail()) ?>" <?php if($myStatus) echo 'readonly="true"'; ?> title="Endereço de e-mail" class="input-text validate-email required-entry" autocomplete="off">
|
48 |
-
</div>
|
49 |
-
</li>
|
50 |
-
<?php if(!$myStatus): ?>
|
51 |
-
<li class="wide" id="register-customer-password" style="display:block;">
|
52 |
-
<div class="field">
|
53 |
-
<label for="billing:customer_password" class="required"><em>*</em>Senha</label>
|
54 |
-
<div class="input-box">
|
55 |
-
<input type="password" name="billing[customer_password]" id="billing:customer_password" title="Senha" class="input-text required-entry validate-password" autocomplete="off">
|
56 |
-
</div>
|
57 |
-
</div>
|
58 |
-
<div class="field">
|
59 |
-
<label for="billing:confirm_password" class="required"><em>*</em>Confirmar senha</label>
|
60 |
-
<div class="input-box">
|
61 |
-
<input type="password" name="billing[confirm_password]" onkeypress="valide_senha(this);" title="Confirmar senha" id="billing:confirm_password" class="input-text required-entry validate-cpassword" autocomplete="off">
|
62 |
-
</div>
|
63 |
-
</div>
|
64 |
-
</li>
|
65 |
-
<li style="display:none">
|
66 |
-
<input type="checkbox" name="register_new_account" checked="checked" value="1" title="register new account" id="register_new_account" class="checkbox"> <label for="register_new_account" style="float:none;">Criar uma conta para uso futuro</label>
|
67 |
-
</li>
|
68 |
-
<li class="wide">A senha é utilizada para você ter acesso futuro e acompanhar o seu pedido.</li>
|
69 |
-
<?php endif; ?>
|
70 |
-
<?php if(Mage::getStoreConfig('onestepcheckout/config/enable_pj')):?>
|
71 |
-
|
72 |
-
<li class="wide pj-pf">
|
73 |
-
<li class="wide"><h3 class="como_comprar_title">Comprar Como:</h3></li>
|
74 |
-
</li>
|
75 |
-
<li class="wide pj-pf">
|
76 |
-
<div class="field">
|
77 |
-
<input type="radio" class="radio_pf_pj" name="billing[tipopessoa]" value="1" onclick="getval(this);" checked>
|
78 |
-
<label class="label_pf_pj">Pessoa Física: </label>
|
79 |
-
</div>
|
80 |
-
<div class="field">
|
81 |
-
<input type="radio" class="radio_pf_pj" name="billing[tipopessoa]" value="2" onclick="getval(this);">
|
82 |
-
<label class="label_pf_pj">Pessoa Jurídica: </label>
|
83 |
-
</div>
|
84 |
-
</li>
|
85 |
-
<li class="field dados-pj">
|
86 |
-
<label for="billing:nomefantasia" class="required"><em>*</em>Nome Fantasia</label>
|
87 |
-
<div class="input-box">
|
88 |
-
<input type="text" title="Nome Fantasia" class="input-text" name="billing[nomefantasia]" id="nomefantasia" value="<?php echo $this->htmlEscape(Mage::getSingleton('customer/session')->getCustomer()->getNomefantasia()); ?>" autocomplete="off">
|
89 |
-
</div>
|
90 |
-
</li>
|
91 |
-
<li class="field dados-pj">
|
92 |
-
<label for="billing:razaosocial" class="required"><em>*</em>Razão Social</label>
|
93 |
-
<div class="input-box">
|
94 |
-
<input type="text" title="razao_social" class="input-text" name="billing[razaosocial]" id="razaosocial" value="<?php echo $this->htmlEscape(Mage::getSingleton('customer/session')->getCustomer()->getRazaosocial()) ?>" autocomplete="off">
|
95 |
-
</div>
|
96 |
-
</li>
|
97 |
-
<li class="field dados-pj">
|
98 |
-
<label for="billing:cnpj" class="required"><em>*</em>CNPJ</label>
|
99 |
-
<div class="input-box">
|
100 |
-
<input type="text" title="cnpj" class="input-text" name="billing[cnpj]" id="cnpj" value="<?php $this->htmlEscape(Mage::getSingleton('customer/session')->getCustomer()->getCnpj()) ?>" autocomplete="off">
|
101 |
-
</div>
|
102 |
-
</li>
|
103 |
-
<li class="field dados-pj">
|
104 |
-
<label for="billing:insestadual" class="required"><em>*</em>Inscrição Estadual</label>
|
105 |
-
<div class="input-box">
|
106 |
-
<input type="text" title="Inscrição Estadual" class="input-text" name="billing[insestadual]" id="insestadual" value="">
|
107 |
-
</div>
|
108 |
-
<input type="checkbox" name="Isento" value="<?php echo $this->htmlEscape(Mage::getSingleton('customer/session')->getCustomer()->getInsestadual()) ?>" onclick="marcar_isento()" style="width: 15px !important;"><label>Isento</label>
|
109 |
-
</li>
|
110 |
-
<li class="wide"><h3>Dados do Responsável pelo Pedido:</h3></li>
|
111 |
-
<?php endif; ?>
|
112 |
-
<?php if ($_taxvat->isEnabled()): ?>
|
113 |
-
<li class="field">
|
114 |
-
<label for="billing:taxvat" class="required"><em>*</em>CPF </label>
|
115 |
-
<div class="input-box">
|
116 |
-
<input type="text" id="billing:taxvat" name="billing[taxvat]"value="<?php echo $taxvat;?>" title="CPF" class="input-text required-entry" >
|
117 |
-
</div>
|
118 |
-
<script type="text/javascript">
|
119 |
-
//<![CDATA[
|
120 |
-
$('billing:taxvat').addClassName('validar_cpf');
|
121 |
-
Validation.add('validar_cpf', 'O CPF ou CNPJ informado \xE9 invalido', function(v){return validaCPF(v,0);});
|
122 |
-
//]]>
|
123 |
-
</script>
|
124 |
-
</li>
|
125 |
-
<?php endif; ?>
|
126 |
-
<li class="field">
|
127 |
-
<label for="billing:telephone" class="required"><em>*</em>Telefone</label>
|
128 |
-
<div class="input-box">
|
129 |
-
<input type="text" name="billing[telephone]" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="Telefone" class="input-text required-entry" id="billing:telephone" autocomplete="off">
|
130 |
-
</div>
|
131 |
-
</li>
|
132 |
-
<div style="clear:both"></div>
|
133 |
-
<?php if ($_dob->isEnabled()): ?>
|
134 |
-
<li class="field">
|
135 |
-
<?php echo $this->getLayout()->createBlock('customer/widget_dob')
|
136 |
-
->setDate($this->getCustomer()->getDob())
|
137 |
-
->setFieldIdFormat('billing:%s')
|
138 |
-
->setFieldNameFormat('billing[%s]')
|
139 |
-
->toHtml() ?>
|
140 |
-
</li>
|
141 |
-
<?php endif ?>
|
142 |
-
<?php if ($_gender->isEnabled()): ?>
|
143 |
-
<li class="field">
|
144 |
-
<?php echo $_gender->setGender($this->getQuote()->getCustomerGender())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml(); ?>
|
145 |
-
</li>
|
146 |
-
<?php endif ?>
|
147 |
-
<li class="wide"><h2 class="endereco_title">Endereço</h2></li>
|
148 |
-
<li class="wide">
|
149 |
-
<li class="field">
|
150 |
-
<label for="billing:postcode" class="required"><em>*</em>CEP</label>
|
151 |
-
<div class="input-box">
|
152 |
-
<input type="text" title="CEP" name="billing[postcode]" id="billing:postcode" value="<?php echo $this->htmlEscape($this->getAddress()->getPostcode()) ?>" class="input-text validate-zip-international required-entry moipzip" onchange="javascript: buscarEndereco('billing');" autocomplete="off" style="width: 100px;">
|
153 |
-
</div>
|
154 |
-
</li>
|
155 |
-
<li class="field">
|
156 |
-
<div class="input-box" style="margin-top: 20px;margin-bottom: 8px;">
|
157 |
-
<a id="correio" href="#inlinecorreio" title="">Não sabe o CEP?</a>
|
158 |
-
</div>
|
159 |
-
</li>
|
160 |
-
</li>
|
161 |
-
<li class="wide">
|
162 |
-
<label for="billing:street1" class="required"><em>*</em>Endereço</label>
|
163 |
-
<div class="input-box">
|
164 |
-
<input type="text" title="Endereço da rua" name="billing[street][0]" id="billing:street1" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(1)) ?>" class="input-text required-entry" autocomplete="off">
|
165 |
-
</div>
|
166 |
-
</li>
|
167 |
-
<li class="field">
|
168 |
-
<label for="billing:street2" class="required"><em>*</em>Número</label>
|
169 |
-
<div class="input-box">
|
170 |
-
<input type="text" title="Street Address 2" name="billing[street][1]" id="billing:street2" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(2)) ?>" class="input-text required-entry" autocomplete="off">
|
171 |
-
</div>
|
172 |
-
</li>
|
173 |
-
<li class="field">
|
174 |
-
<label for="billing:street3" class="required">Complemento</label>
|
175 |
-
<div class="input-box">
|
176 |
-
<input type="text" title="Complemento" name="billing[street][2]" id="billing:street3" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(3)) ?>" class="input-text" autocomplete="off">
|
177 |
-
</div>
|
178 |
-
</li>
|
179 |
-
<li class="field">
|
180 |
-
<label for="billing:street4" class="required"><em>*</em>Bairro</label>
|
181 |
-
<div class="input-box">
|
182 |
-
<input type="text" title="Bairro" name="billing[street][3]" id="billing:street4" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(4)) ?>" class="input-text required-entry" autocomplete="off">
|
183 |
-
</div>
|
184 |
-
</li>
|
185 |
-
<li class="field">
|
186 |
-
<label for="billing:city" class="required"><em>*</em>Cidade</label>
|
187 |
-
<div class="input-box">
|
188 |
-
<input type="text" title="Cidade" name="billing[city]" value="<?php echo $this->htmlEscape($this->getAddress()->getCity()) ?>"class="input-text required-entry" id="billing:city" autocomplete="off">
|
189 |
-
</div>
|
190 |
-
</li>
|
191 |
-
<li class="field">
|
192 |
-
<label for="billing:region_id" class=""><em style="display: none;">*</em>Estado</label>
|
193 |
-
<div class="input-box">
|
194 |
-
<select id="billing:region_id" name="billing[region_id]" title="Estado" style="display: none;" defaultvalue="" class="validate-select">
|
195 |
-
<option value="">Por favor, selecione o estado</option>
|
196 |
-
</select>
|
197 |
-
<script type="text/javascript">//<![CDATA[
|
198 |
-
$("billing:region_id").setAttribute("defaultValue", "");
|
199 |
-
//]]></script>
|
200 |
-
<input type="text" maxlength="2" id="billing:region" name="billing[region]" value="<?php echo $this->escapeHtml($region_select) ?>" title="Estado" class="input-text" style="" autocomplete="off">
|
201 |
-
</div>
|
202 |
-
</li>
|
203 |
-
<li class="wide" style="display: none;">
|
204 |
-
<label for="billing:country_id" class="required"><em></em>País</label>
|
205 |
-
<div class="input-box">
|
206 |
-
<?php echo $this->getCountryHtmlSelect('billing') ?>
|
207 |
-
</div>
|
208 |
-
</li>
|
209 |
-
<div style="clear:both"></div>
|
210 |
-
<script type="text/javascript">
|
211 |
-
//<![CDATA[
|
212 |
-
jQuery(function(){jQuery("#billing-new-address-form").show();});
|
213 |
-
var billing = new Billing("co-billing-form","<?php echo $this->getUrl('checkout/onepage/getAddress/address/') ?>", "<?php echo $this->getUrl('checkout/onepage/saveBilling/') ?>");
|
214 |
-
var billingForm = new VarienForm("co-billing-form");
|
215 |
-
var billingRegionUpdater = new RegionUpdater("billing:country_id", "billing:region", "billing:region_id", countryRegions, undefined, "billing:postcode");
|
216 |
-
//]]>
|
217 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/billing/billingform.phtml
ADDED
@@ -0,0 +1,249 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$myStatus = Mage::getSingleton('customer/session')->isLoggedIn();
|
3 |
+
if (Mage::getSingleton('customer/session')->isLoggedIn()) {
|
4 |
+
$customer = Mage::getSingleton('customer/session')->getCustomer();
|
5 |
+
$firstname = $customer->getFirstname();
|
6 |
+
$lastname = $customer->getLastname();
|
7 |
+
$region_select = $this->escapeHtml($this->getAddress()->getRegion());
|
8 |
+
$taxvat = $customer->getTaxvat();
|
9 |
+
|
10 |
+
$exibe_email = 0;
|
11 |
+
} else {
|
12 |
+
$fullname = "";
|
13 |
+
$firstname = "";
|
14 |
+
$lastname = "";
|
15 |
+
$region_select = "";
|
16 |
+
$taxvat = "";
|
17 |
+
$exibe_email = 1;
|
18 |
+
}
|
19 |
+
if($this->getAddress()){
|
20 |
+
$firstname = $this->getAddress()->getFirstname();
|
21 |
+
$lastname = $this->getAddress()->getLastname();
|
22 |
+
}
|
23 |
+
$_dob = $this->getLayout()->createBlock('customer/widget_dob');
|
24 |
+
$_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat');
|
25 |
+
$_gender = $this->getLayout()->createBlock('customer/widget_gender');
|
26 |
+
?>
|
27 |
+
<li class="fields">
|
28 |
+
<div class="customer-name field">
|
29 |
+
<label for="billing:firstname" class="required"><em>*</em>Nome</label>
|
30 |
+
<div class="input-box">
|
31 |
+
<input autocomplete="off" type="text" id="billing:firstname" name="billing[firstname]" value="<?php echo $firstname; ?>" title="Nome" class="input-text required-entry" >
|
32 |
+
</div>
|
33 |
+
</div>
|
34 |
+
<div class="field name-lastname">
|
35 |
+
<label for="billing:lastname" class="required"><em>*</em>Sobrenome</label>
|
36 |
+
<div class="input-box">
|
37 |
+
<input autocomplete="off" type="text" id="billing:lastname" name="billing[lastname]" value="<?php echo $lastname; ?>" title="Sobrenome" class="input-text required-entry" >
|
38 |
+
</div>
|
39 |
+
</div>
|
40 |
+
</li>
|
41 |
+
<li class="wide" <?php if($exibe_email == 0) echo 'style="display:none"' ?>>
|
42 |
+
<label for="billing:email" class="required"><em>*</em>Endereço de e-mail</label>
|
43 |
+
<div class="input-box">
|
44 |
+
<input autocomplete="off" type="text" name="billing[email]" id="billing:email" value="<?php echo $this->htmlEscape( Mage::getSingleton('customer/session')->getCustomer()->getEmail()) ?>" <?php if($myStatus) echo 'readonly="true"'; ?> title="Endereço de e-mail" class="input-text validate-email required-entry" >
|
45 |
+
</div>
|
46 |
+
</li>
|
47 |
+
<?php if(!$myStatus): ?>
|
48 |
+
<li class="fields" id="register-customer-password" style="display:block;">
|
49 |
+
<div class="field">
|
50 |
+
<label for="billing:customer_password" class="required"><em>*</em>Senha</label>
|
51 |
+
<div class="input-box">
|
52 |
+
<input autocomplete="off" type="password" name="billing[customer_password]" id="billing:customer_password" title="Senha" class="input-text required-entry validate-password" >
|
53 |
+
</div>
|
54 |
+
</div>
|
55 |
+
<div class="field">
|
56 |
+
<label for="billing:confirm_password" class="required"><em>*</em>Confirmar senha</label>
|
57 |
+
<div class="input-box">
|
58 |
+
<input autocomplete="off" type="password" name="billing[confirm_password]" onkeypress="valide_senha(this);" title="Confirmar senha" id="billing:confirm_password" class="input-text required-entry validate-cpassword" >
|
59 |
+
</div>
|
60 |
+
</div>
|
61 |
+
</li>
|
62 |
+
<input autocomplete="off" type="hidden" name="register_new_account" checked="checked" value="1" title="Criar conta" id="register_new_account" class="input-checkbox">
|
63 |
+
|
64 |
+
|
65 |
+
<li class="wide">A senha é utilizada para você ter acesso futuro e acompanhar o seu pedido.</li>
|
66 |
+
<?php endif; ?>
|
67 |
+
<?php if(Mage::getStoreConfig('onestepcheckout/config/enable_pj')):?>
|
68 |
+
|
69 |
+
<h3 class="como_comprar_title">Comprar Como:</h3>
|
70 |
+
<li class="fields pj-pf">
|
71 |
+
<div class="field">
|
72 |
+
<label class="">
|
73 |
+
<input autocomplete="off" type="radio" name="billing[tipopessoa]" class="radio validate-one-required-by-name" value="1" id="billing:pf" onclick="getval(this);" checked>
|
74 |
+
Pessoa Física
|
75 |
+
</label>
|
76 |
+
</div>
|
77 |
+
<div class="field">
|
78 |
+
<label class="">
|
79 |
+
<input autocomplete="off" type="radio" name="billing[tipopessoa]" class="radio validate-one-required-by-name" value="2" id="billing:pj" onclick="getval(this);">
|
80 |
+
Pessoa Jurídica
|
81 |
+
</label>
|
82 |
+
</div>
|
83 |
+
</li>
|
84 |
+
<li class="fields dados-pj">
|
85 |
+
<div class="field">
|
86 |
+
<label for="billing:nomefantasia" class="required"><em>*</em>Nome Fantasia</label>
|
87 |
+
<div class="input-box">
|
88 |
+
<input autocomplete="off" type="text" title="Nome Fantasia" class="input-text" name="billing[nomefantasia]" id="nomefantasia" value="<?php echo $this->htmlEscape(Mage::getSingleton('customer/session')->getCustomer()->getNomefantasia()); ?>" >
|
89 |
+
</div>
|
90 |
+
</div>
|
91 |
+
<div class="field">
|
92 |
+
<label for="billing:razaosocial" class="required"><em>*</em>Razão Social</label>
|
93 |
+
<div class="input-box">
|
94 |
+
<input autocomplete="off" type="text" title="razao_social" class="input-text" name="billing[razaosocial]" id="razaosocial" value="<?php echo $this->htmlEscape(Mage::getSingleton('customer/session')->getCustomer()->getRazaosocial()) ?>" >
|
95 |
+
</div>
|
96 |
+
</div>
|
97 |
+
</li>
|
98 |
+
<li class="fields dados-pj">
|
99 |
+
<div class="field">
|
100 |
+
<label for="billing:cnpj" class="required"><em>*</em>CNPJ</label>
|
101 |
+
<div class="input-box">
|
102 |
+
<input autocomplete="off" type="text" title="cnpj" class="input-text" name="billing[cnpj]" id="cnpj" value="<?php $this->htmlEscape(Mage::getSingleton('customer/session')->getCustomer()->getCnpj()) ?>" >
|
103 |
+
</div>
|
104 |
+
</div>
|
105 |
+
<div class="field">
|
106 |
+
<label for="billing:insestadual" class="required"><em>*</em>Inscrição Estadual</label>
|
107 |
+
<div class="input-box">
|
108 |
+
<input autocomplete="off" type="text" title="Inscrição Estadual" class="input-text" name="billing[insestadual]" id="insestadual" value="">
|
109 |
+
</div>
|
110 |
+
<input autocomplete="off" type="checkbox" name="Isento" value="<?php echo $this->htmlEscape(Mage::getSingleton('customer/session')->getCustomer()->getInsestadual()) ?>" onclick="marcar_isento()" style="width: 15px !important;"><label>Isento</label>
|
111 |
+
</div>
|
112 |
+
</li>
|
113 |
+
<h3 class="dados_pessoais">Dados do Responsável pelo Pedido:</h3>
|
114 |
+
<?php endif; ?>
|
115 |
+
<li class="fields">
|
116 |
+
<?php if ($_taxvat->isEnabled()): ?>
|
117 |
+
<div class="field">
|
118 |
+
<label for="billing:taxvat" class="required"><em>*</em>CPF </label>
|
119 |
+
<div class="input-box">
|
120 |
+
<input autocomplete="off" type="text" id="billing:taxvat" name="billing[taxvat]"value="<?php echo $taxvat;?>" title="CPF" class="input-text required-entry" >
|
121 |
+
</div>
|
122 |
+
<script autocomplete="off" type="text/javascript">
|
123 |
+
//<![CDATA[
|
124 |
+
$('billing:taxvat').addClassName('validar_cpf');
|
125 |
+
Validation.add('validar_cpf', 'O CPF ou CNPJ informado \xE9 invalido', function(v){return validaCPF(v,0);});
|
126 |
+
//]]>
|
127 |
+
</script>
|
128 |
+
</div>
|
129 |
+
<?php endif; ?>
|
130 |
+
<div class="field">
|
131 |
+
<label for="billing:telephone" class="required"><em>*</em>Telefone</label>
|
132 |
+
<div class="input-box">
|
133 |
+
<input autocomplete="off" type="text" name="billing[telephone]" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="Telefone" class="input-text validate-tel-national required-entry" id="billing:telephone" >
|
134 |
+
<script autocomplete="off" type="text/javascript">
|
135 |
+
//<![CDATA[
|
136 |
+
Validation.add('validate-tel-national', 'Entre com telefone válido: (99)9999-?9999', function(v) {
|
137 |
+
return Validation.get('IsEmpty').test(v) || /^([()])([0-9]){2}([)])([0-9]){4}([-])([0-9]){4,5}$/.test(v);
|
138 |
+
});
|
139 |
+
//]]>
|
140 |
+
</script>
|
141 |
+
</div>
|
142 |
+
</div>
|
143 |
+
</li>
|
144 |
+
<li class="fields">
|
145 |
+
<?php if ($_dob->isEnabled()): ?>
|
146 |
+
<div class="field">
|
147 |
+
<?php echo $this->getLayout()->createBlock('customer/widget_dob')
|
148 |
+
->setDate($this->getCustomer()->getDob())
|
149 |
+
->setFieldIdFormat('billing:%s')
|
150 |
+
->setFieldNameFormat('billing[%s]')
|
151 |
+
->toHtml() ?>
|
152 |
+
</div>
|
153 |
+
<?php endif ?>
|
154 |
+
<?php if ($_gender->isEnabled()): ?>
|
155 |
+
<div class="field">
|
156 |
+
<?php echo $_gender->setGender($this->getQuote()->getCustomerGender())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml(); ?>
|
157 |
+
</div>
|
158 |
+
<?php endif ?>
|
159 |
+
</li>
|
160 |
+
<h2 class="endereco_title">Endereço</h2>
|
161 |
+
<li class="fields">
|
162 |
+
<div class="field">
|
163 |
+
|
164 |
+
<label for="billing:postcode" class="required"><em>*</em>CEP</label>
|
165 |
+
<div class="input-box">
|
166 |
+
<input autocomplete="off" type="text" title="CEP" name="billing[postcode]" id="billing:postcode" value="<?php echo $this->htmlEscape($this->getAddress()->getPostcode()) ?>" class="input-text validate-zip-international required-entry moipzip" onchange="javascript: buscarEndereco('billing');" style="width: 100px;">
|
167 |
+
</div>
|
168 |
+
<script autocomplete="off" type="text/javascript">
|
169 |
+
//<![CDATA[
|
170 |
+
Validation.add('validate-zip-international', 'Entre com um cep válido: 99999-999', function(v) {
|
171 |
+
return Validation.get('IsEmpty').test(v) || /^([0-9]){5}([-])([0-9]){3}$/.test(v);
|
172 |
+
});
|
173 |
+
//]]>
|
174 |
+
</script>
|
175 |
+
</div>
|
176 |
+
<div class="field">
|
177 |
+
<div class="input-box" style="margin-top: 20px;margin-bottom: 8px;">
|
178 |
+
<a id="correio" href="#inlinecorreio">Não sabe o CEP?</a>
|
179 |
+
</div>
|
180 |
+
</div>
|
181 |
+
</li>
|
182 |
+
<li class="wide">
|
183 |
+
<label for="billing:street1" class="required"><em>*</em>Endereço</label>
|
184 |
+
<div class="input-box">
|
185 |
+
<input autocomplete="off" type="text" title="Endereço da rua" name="billing[street][0]" id="billing:street1" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(1)) ?>" class="input-text required-entry" >
|
186 |
+
</div>
|
187 |
+
</li>
|
188 |
+
<li class="fields">
|
189 |
+
<div class="field">
|
190 |
+
<label for="billing:street2" class="required"><em>*</em>Número</label>
|
191 |
+
<div class="input-box">
|
192 |
+
<input autocomplete="off" type="text" title="Número" name="billing[street][1]" id="billing:street2" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(2)) ?>" class="input-text required-entry" >
|
193 |
+
</div>
|
194 |
+
</div>
|
195 |
+
<div class="field">
|
196 |
+
<label for="billing:street3" class="required">Complemento</label>
|
197 |
+
<div class="input-box">
|
198 |
+
<input autocomplete="off" type="text" title="Complemento" name="billing[street][2]" id="billing:street3" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(3)) ?>" class="input-text" >
|
199 |
+
</div>
|
200 |
+
</div>
|
201 |
+
</li>
|
202 |
+
|
203 |
+
|
204 |
+
|
205 |
+
<li class="fields">
|
206 |
+
<div class="field">
|
207 |
+
<label for="billing:street4" class="required"><em>*</em>Bairro</label>
|
208 |
+
<div class="input-box">
|
209 |
+
<input autocomplete="off" type="text" title="Bairro" name="billing[street][3]" id="billing:street4" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(4)) ?>" class="input-text required-entry" >
|
210 |
+
</div>
|
211 |
+
</div>
|
212 |
+
<div class="field">
|
213 |
+
<label for="billing:city" class="required"><em>*</em>Cidade</label>
|
214 |
+
<div class="input-box">
|
215 |
+
<input autocomplete="off" type="text" title="Cidade" name="billing[city]" value="<?php echo $this->htmlEscape($this->getAddress()->getCity()) ?>"class="input-text required-entry" id="billing:city" >
|
216 |
+
</div>
|
217 |
+
</div>
|
218 |
+
</li>
|
219 |
+
<li class="fields">
|
220 |
+
<div class="field">
|
221 |
+
<label for="billing:region_id" class=""><em style="display: none;">*</em>Estado</label>
|
222 |
+
<div class="input-box">
|
223 |
+
<select id="billing:region_id" name="billing[region_id]" title="Estado" style="display: none;" defaultvalue="" class="validate-select">
|
224 |
+
<option value="">Por favor, selecione o estado</option>
|
225 |
+
</select>
|
226 |
+
<script autocomplete="off" type="text/javascript">//<![CDATA[
|
227 |
+
$("billing:region_id").setAttribute("defaultValue", "");
|
228 |
+
//]]></script>
|
229 |
+
<input autocomplete="off" type="text" maxlength="2" id="billing:region" name="billing[region]" value="<?php echo $this->escapeHtml($region_select) ?>" title="Estado" class="input-text" style="" >
|
230 |
+
</div>
|
231 |
+
</div>
|
232 |
+
|
233 |
+
<div class="field">
|
234 |
+
<label for="billing:country_id" class="required"><em></em>País</label>
|
235 |
+
<div class="input-box">
|
236 |
+
<?php echo $this->getCountryHtmlSelect('billing') ?>
|
237 |
+
</div>
|
238 |
+
</div>
|
239 |
+
</li>
|
240 |
+
|
241 |
+
<script autocomplete="off" type="text/javascript">
|
242 |
+
//<![CDATA[
|
243 |
+
jQuery(function(){jQuery("#billing-new-address-form").show();});
|
244 |
+
var billing = new Billing("co-billing-form","<?php echo $this->getUrl('checkout/onepage/getAddress/address/') ?>", "<?php echo $this->getUrl('checkout/onepage/saveBilling/') ?>");
|
245 |
+
var billingForm = new VarienForm("co-billing-form");
|
246 |
+
var billingRegionUpdater = new RegionUpdater("billing:country_id", "billing:region", "billing:region_id", countryRegions, undefined, "billing:postcode");
|
247 |
+
//]]>
|
248 |
+
</script>
|
249 |
+
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/coupon.phtml
CHANGED
@@ -1,30 +1,22 @@
|
|
|
|
|
|
|
|
1 |
|
2 |
-
|
3 |
-
|
4 |
-
<div class="
|
5 |
-
|
6 |
-
<div class="discount-form">
|
7 |
-
<h2 style="margin-top:3px"> <?php echo $this->__('Discount Codes') ?></h2>
|
8 |
-
<span class="cupom_tem" style="cursor:pointer"><?php echo $this->__('Você tem um cupom de desconto? Clique aqui para utiliza-lo.') ?></span>
|
9 |
-
<div class="cupom_tem_codigo" style="display:none;">
|
10 |
-
<input type="hidden" name="remove" id="remove-coupone" value="0" />
|
11 |
-
<div class="input-box">
|
12 |
-
<input class="input-text" id="coupon_code" name="coupon_code" value="<?php echo $this->htmlEscape($this->getCouponCode()) ?>" style="max-width: 180px;" />
|
13 |
-
</div>
|
14 |
-
|
15 |
-
<div class="buttons-set">
|
16 |
-
<button type="button" title="<?php echo $this->__('Apply Coupon') ?>" class="button" onclick="if(!$('coupon_code').value){alert('Please enter coupon code.')}else{updateCoupon($('coupon_code').value,0);}" value="<?php echo $this->__('Apply Coupon') ?>"><span><span><?php echo $this->__('Apply Coupon') ?></span></span></button>
|
17 |
-
<?php if(strlen($this->getCouponCode())): ?>
|
18 |
-
<button type="button" title="<?php echo $this->__('Cancel Coupon') ?>" class="button" onclick="updateCoupon($('coupon_code').value,1)" value="<?php echo $this->__('Cancel Coupon') ?>"><span><span><?php echo $this->__('Cancel Coupon') ?></span></span></button>
|
19 |
-
<?php endif;?>
|
20 |
-
</div>
|
21 |
-
<div style="clear:both;"></div>
|
22 |
-
</div>
|
23 |
</div>
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
25 |
</div>
|
26 |
</div>
|
27 |
</div>
|
|
|
28 |
<script type="text/javascript">
|
29 |
//<![CDATA[
|
30 |
jQuery(document).ready(function(){
|
1 |
+
<div class="discount-form">
|
2 |
+
<h2 style="margin-top:3px"> <?php echo $this->__('Discount Codes') ?></h2>
|
3 |
+
<span class="cupom_tem" style="cursor:pointer"><?php echo $this->__('Você tem um cupom de desconto? Clique aqui para utiliza-lo.') ?></span>
|
4 |
|
5 |
+
<div class="cupom_tem_codigo" style="display:none;">
|
6 |
+
<input type="hidden" name="remove" id="remove-coupone" value="0" />
|
7 |
+
<div class="input-box">
|
8 |
+
<input class="input-text" id="coupon_code" name="coupon_code" value="<?php echo $this->htmlEscape($this->getCouponCode()) ?>" style="max-width: 180px;" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
</div>
|
10 |
+
|
11 |
+
<div class="buttons-set">
|
12 |
+
<button type="button" title="<?php echo $this->__('Apply Coupon') ?>" class="button" onclick="if(!$('coupon_code').value){alert('Please enter coupon code.')}else{updateCoupon($('coupon_code').value,0);}" value="<?php echo $this->__('Apply Coupon') ?>"><span><span><?php echo $this->__('Apply Coupon') ?></span></span></button>
|
13 |
+
<?php if(strlen($this->getCouponCode())): ?>
|
14 |
+
<button type="button" title="<?php echo $this->__('Cancel Coupon') ?>" class="button" onclick="updateCoupon($('coupon_code').value,1)" value="<?php echo $this->__('Cancel Coupon') ?>"><span><span><?php echo $this->__('Cancel Coupon') ?></span></span></button>
|
15 |
+
<?php endif;?>
|
16 |
</div>
|
17 |
</div>
|
18 |
</div>
|
19 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
20 |
<script type="text/javascript">
|
21 |
//<![CDATA[
|
22 |
jQuery(document).ready(function(){
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/forgotpassword.phtml
CHANGED
@@ -1,62 +1,30 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
</div>
|
16 |
-
</li>
|
17 |
-
</ul>
|
18 |
-
</div>
|
19 |
-
<div class="buttons-set" >
|
20 |
-
|
21 |
-
|
22 |
-
<span id="forgotpass-please-wait" class="please-wait">
|
23 |
-
<img class="v-middle" title="Loading next step..." alt="Loading next step..." src="<?php echo $this->getSkinUrl('/MOIP/onestepcheckout/images/opc-ajax-loader.gif') ?>"><?php echo $this->__('Loading...');?>
|
24 |
-
</span>
|
25 |
-
<a id="backlogin" href="#inline1" <?php /*href="<?php echo $this->helper('customer')->getLoginUrl() ?>"*/?> >Voltar para página de login</a>
|
26 |
-
<button id="btforgotpass" type="button" onclick="onepageforgotpassword(this)" title="<?php echo $this->__('Submit') ?>" class="button"><span ><span><?php echo $this->__('Submit') ?></span></span></button>
|
27 |
-
</div>
|
28 |
-
|
29 |
-
|
30 |
-
</form>
|
31 |
-
<?php else: //fix cho IE?>
|
32 |
-
<div class="page-title" style="margin:0px 0px 10px;border:0px;overflow:hidden;width:100%;">
|
33 |
-
<h1 style="color:#0A263C;font-size:20px;margin:0;font-weight:normal;line-height:1.35;"><?php echo $this->__('Forgot Your Password?') ?></h1>
|
34 |
-
</div>
|
35 |
-
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
36 |
-
<form method="post" id="form-validate" style="display:inline;">
|
37 |
-
<div class="fieldset" style="padding:15px 0px 0px; margin:0px;background:none repeat scroll 0 0 #FBFAF6;border:1px solid #BBAFA0;">
|
38 |
-
<h2 class="legend" style="margin:-25px 0 0 25px;background:none repeat scroll 0 0 #F9F3E3;border:1px solid #F19900;color:#E76200;float:left;font-size:13px;font-weight:bold;padding:0 8px;line-height:1.35;"><?php echo $this->__('Retrieve your password here') ?></h2>
|
39 |
-
<p style="margin-left: 0.8em;text-align:left;margin:0 0 10px;padding-left:15px;"><?php echo $this->__('Please enter your email below and we\'ll send you a new password.') ?></p>
|
40 |
-
<ul class="form-list" style="list-style:none outside none;">
|
41 |
-
<li style="margin:0 0 8px;">
|
42 |
-
<label for="email_address" class="required" style="margin-left: 0.8em;width:100px;color:#666666;float:left;font-weight:bold;z-index:0;"><?php echo $this->__('Email Address') ?><em style="position:static;float:none;color:#EB340A;font-style:normal;right:-8px;top:0;">*</em></label>
|
43 |
-
<div class="input-box" style="clear:none;text-align:left;display:block;width:260px;">
|
44 |
-
<input type="text" style="width: 200px !important;padding:2px;background:none repeat scroll 0 0 #FFFFFF;border:1px solid #B6B6B6;color:#2F2F2F;font:12px/15px Arial,Helvetica,sans-serif;vertical-align:middle;" name="email" alt="email" id="email_address" class="input-text required-entry validate-email" value="<?php echo $this->htmlEscape($this->getEmailValue()) ?>" />
|
45 |
-
<div style="display: none;clear:both;color:#EB340A;font-size:11px;font-weight:bold;line-height:13px;margin:3px 0 0;min-height:13px;padding-left:17px;" id="errorforgotpass" class="validation-advice"><?php echo $this->__('Invalid email!');?></div>
|
46 |
-
</div>
|
47 |
-
</li>
|
48 |
-
</ul>
|
49 |
-
</div>
|
50 |
-
<div class="buttons-set" style="margin:0px;border-top:1px solid #E4E4E4;clear:both;padding:8px 0 0;text-align:right;">
|
51 |
-
<p class="required" style="margin:0px;color:#EB340A;font-size:11px;text-align:right;"><?php echo $this->__('* Required Fields') ?></p>
|
52 |
-
<p class="back-link" style="float:left;margin:0;"><a id="backlogin" href="#inline1" style="color:#1E7EC8;text-decoration:underline;"<?php /*href="<?php echo $this->helper('customer')->getLoginUrl() ?>"*/?> ><small style="font-size:1em;">« </small><?php echo $this->__('Back to Login') ?></a></p>
|
53 |
-
<span style="display: none; " id="forgotpass-please-wait" class="please-wait">
|
54 |
-
<img class="v-middle" style="vertical-align:middle;border:0 none;"title="Loading next step..." alt="Loading next step..." src="<?php echo $this->getSkinUrl('/MOIP/onestepcheckout/images/opc-ajax-loader.gif') ?>"><?php echo $this->__('Loading...');?>
|
55 |
-
</span>
|
56 |
-
<button id="btforgotpass" style="float:right;margin-left:5px;background:none repeat scroll 0 0 transparent;border:0 none;cursor:pointer;margin:0;overflow:visible;padding:0;width:auto;color:#2F2F2F;font:12px/15px Arial,Helvetica,sans-serif;vertical-align:middle;"type="button" onclick="onepageforgotpassword(this)" title="<?php echo $this->__('Submit') ?>" class="button"><span style="background:none repeat scroll 0 0 #F18200;border:1px solid #DE5400;color:#FFFFFF;display:block;font:bold 12px/19px Arial,Helvetica,sans-serif;height:19px;padding:0 8px;text-align:center;white-space:nowrap;"><span style="border:0 none;padding:0;background:none repeat scroll 0 0 #F18200;color:#FFFFFF;display:block;font:bold 12px/19px Arial,Helvetica,sans-serif;height:19px;text-align:center;white-space:nowrap;"><?php echo $this->__('Submit') ?></span></span></button>
|
57 |
</div>
|
58 |
-
</
|
59 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
<script type="text/javascript">
|
61 |
//<![CDATA[
|
62 |
var dataForm = new VarienForm('form-validate', true);
|
@@ -73,35 +41,32 @@
|
|
73 |
//<![CDATA[
|
74 |
jQuery('#forgotpass-please-wait').css('display','none');
|
75 |
jQuery('#errorforgotpass').css('display','none');
|
76 |
-
function updateForgotpassword(email)
|
77 |
-
|
78 |
-
jQuery('#
|
79 |
-
jQuery('#forgotpass-please-wait').css('display','block'); //note: echo $this->getChildHtml('login_before') cuar .col2-set
|
80 |
jQuery.ajax({
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
}
|
95 |
-
else{
|
96 |
-
jQuery('#btforgotpass').css('display','block');
|
97 |
-
jQuery('#forgotpass-please-wait').css('display','none');
|
98 |
-
jQuery('#errorforgotpass').css('display','block');
|
99 |
-
jQuery('#email_address').addClass('validation-failed')
|
100 |
}
|
101 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
});
|
103 |
}
|
104 |
//]]>
|
105 |
-
</script>
|
106 |
-
|
107 |
-
|
1 |
+
|
2 |
+
<div class="moip-osc-title-login">
|
3 |
+
<h1 ><?php echo $this->__('Forgot Your Password?') ?></h1>
|
4 |
+
</div>
|
5 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
6 |
+
<form method="post" id="form-validate" >
|
7 |
+
<div class="fieldset" >
|
8 |
+
<p><?php echo $this->__('Por favor, informe o email. Será encaminhado um link para o seu email com a nova senha.')?></p>
|
9 |
+
<ul class="form-list">
|
10 |
+
<li >
|
11 |
+
<label for="email_address" class="required"><?php echo $this->__('Email Address');?> <em >* </em> </label>
|
12 |
+
<div class="input-box" >
|
13 |
+
<input type="text" name="email" alt="email" id="email_address" class="input-text required-entry validate-email cp-email-recuperar-senha" value="<?php echo $this->htmlEscape($this->getEmailValue()) ?>" />
|
14 |
+
<div id="errorforgotpass" class="validation-advice"><?php echo $this->__('Invalid email!');?></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
</div>
|
16 |
+
</li>
|
17 |
+
</ul>
|
18 |
+
</div>
|
19 |
+
<div class="buttons-set" >
|
20 |
+
<span id="forgotpass-please-wait" class="please-wait">
|
21 |
+
<img class="v-middle" title="Loading next step..." alt="Loading next step..." src="<?php echo $this->getSkinUrl('/MOIP/onestepcheckout/images/opc-ajax-loader.gif') ?>"><?php echo $this->__('Loading...');?>
|
22 |
+
</span>
|
23 |
+
<a id="backlogin" href="#inline1">Voltar para página de login</a>
|
24 |
+
<button id="btforgotpass" type="button" onclick="onepageforgotpassword(this)" title="<?php echo $this->__('Submit') ?>" class="button"><span ><span><?php echo $this->__('Submit') ?></span></span></button>
|
25 |
+
</div>
|
26 |
+
</form>
|
27 |
+
|
28 |
<script type="text/javascript">
|
29 |
//<![CDATA[
|
30 |
var dataForm = new VarienForm('form-validate', true);
|
41 |
//<![CDATA[
|
42 |
jQuery('#forgotpass-please-wait').css('display','none');
|
43 |
jQuery('#errorforgotpass').css('display','none');
|
44 |
+
function updateForgotpassword(email) {
|
45 |
+
jQuery('#btforgotpass').css('display','none');
|
46 |
+
jQuery('#forgotpass-please-wait').css('display','block');
|
|
|
47 |
jQuery.ajax({
|
48 |
+
type: "POST",
|
49 |
+
url: "<?php echo Mage::getUrl('onestepcheckout/index/forgotpass')?>",
|
50 |
+
data: "email="+email,
|
51 |
+
success: function(msg){
|
52 |
+
if(msg==1){
|
53 |
+
jQuery('#inline3').html("<div class='moip-osc-title-login envia-senha'><h1>Esqueceu a senha?</h1></div><p>O email de recuperaçao de senha foi enviado.</p><p class='back-link'><a id='backlogin1' class='voltar-login' href='#inline1'>Voltar para página de login</a></p>");
|
54 |
+
jQuery('#inline3').css("height","243px");
|
55 |
+
jQuery("#backlogin1").fancybox({
|
56 |
+
'titlePosition' : 'inside',
|
57 |
+
'transitionIn' : 'none',
|
58 |
+
'transitionOut' : 'none',
|
59 |
+
'height' : '243',
|
60 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
}
|
62 |
+
else {
|
63 |
+
jQuery('#btforgotpass').css('display','block');
|
64 |
+
jQuery('#forgotpass-please-wait').css('display','none');
|
65 |
+
jQuery('#errorforgotpass').css('display','block');
|
66 |
+
jQuery('#email_address').addClass('validation-failed')
|
67 |
+
}
|
68 |
+
}
|
69 |
});
|
70 |
}
|
71 |
//]]>
|
72 |
+
</script>
|
|
|
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/login.phtml
CHANGED
@@ -8,10 +8,9 @@
|
|
8 |
<h1>Acesse sua conta!</h1>
|
9 |
|
10 |
</div>
|
11 |
-
<form id="login-form" method="post">
|
12 |
<fieldset>
|
13 |
<div >
|
14 |
-
<h3><?php echo $this->__('Por favor, informe os dados abaixo.') ?></h3>
|
15 |
<ul class="form-list" style="width:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxwidth')-20?>px;">
|
16 |
<li>
|
17 |
<label for="login-email" class="required" >E-mail<em>*</em></label>
|
@@ -45,7 +44,7 @@
|
|
45 |
</div>
|
46 |
<script type="text/javascript">
|
47 |
//<![CDATA[
|
48 |
-
var loginForm = new VarienForm('login-form', true);
|
49 |
$('login-email').observe('keypress', bindLoginPost);
|
50 |
$('login-password').observe('keypress', bindLoginPost);
|
51 |
function bindLoginPost(evt){
|
8 |
<h1>Acesse sua conta!</h1>
|
9 |
|
10 |
</div>
|
11 |
+
<form id="login-form-checkout" method="post">
|
12 |
<fieldset>
|
13 |
<div >
|
|
|
14 |
<ul class="form-list" style="width:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxwidth')-20?>px;">
|
15 |
<li>
|
16 |
<label for="login-email" class="required" >E-mail<em>*</em></label>
|
44 |
</div>
|
45 |
<script type="text/javascript">
|
46 |
//<![CDATA[
|
47 |
+
var loginForm = new VarienForm('login-form-checkout', true);
|
48 |
$('login-email').observe('keypress', bindLoginPost);
|
49 |
$('login-password').observe('keypress', bindLoginPost);
|
50 |
function bindLoginPost(evt){
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/payment.phtml
CHANGED
@@ -30,7 +30,7 @@
|
|
30 |
//]]>
|
31 |
</script>
|
32 |
<div id="co-payment-form">
|
33 |
-
<fieldset>
|
34 |
<?php echo $this->getChildHtml('methods') ?>
|
35 |
</fieldset>
|
36 |
</div>
|
30 |
//]]>
|
31 |
</script>
|
32 |
<div id="co-payment-form">
|
33 |
+
<fieldset id="checkout-payment-method-load">
|
34 |
<?php echo $this->getChildHtml('methods') ?>
|
35 |
</fieldset>
|
36 |
</div>
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/payment/methods.phtml
CHANGED
@@ -3,26 +3,20 @@
|
|
3 |
<dt>
|
4 |
|
5 |
<?php if( sizeof($this->getMethods()) > 1 ): ?>
|
6 |
-
<input id="p_method_<?php echo $_code ?>" value="<?php echo $_code ?>" type="radio" name="payment[method]" title="
|
7 |
<?php else: ?>
|
8 |
-
<span class="no-display"><input id="p_method_<?php echo $_code ?>" value="<?php echo $_code ?>" type="radio" name="payment[method]" checked="checked" class="radio payment_method_handle" /></span>
|
9 |
<?php endif; ?>
|
10 |
|
11 |
<label for="p_method_<?php echo $_code ?>"><?php echo $_method->getTitle() ?> <?php echo $this->getMethodLabelAfterHtml($_method) ?></label>
|
12 |
</dt>
|
13 |
-
|
14 |
<?php if ($html = $this->getPaymentMethodFormHtml($_method)): ?>
|
15 |
<dd>
|
16 |
<?php echo $html; ?>
|
17 |
</dd>
|
18 |
<?php endif; ?>
|
19 |
-
|
20 |
-
<?php if($html = $this->getChildHtml('payment.method.'.$_code)): //mage1.3?>
|
21 |
-
<dd>
|
22 |
-
<?php echo $html; ?>
|
23 |
-
</dd>
|
24 |
-
<?php endif; ?>
|
25 |
-
<?php endif;?>
|
26 |
<div style="clear:both !important"></div>
|
27 |
<?php endforeach; ?>
|
28 |
</dl>
|
3 |
<dt>
|
4 |
|
5 |
<?php if( sizeof($this->getMethods()) > 1 ): ?>
|
6 |
+
<input id="p_method_<?php echo $_code ?>" value="<?php echo $_code ?>" type="radio" name="payment[method]" title="Meio de Pagamento" onclick="payment.switchMethod('<?php echo $_code ?>');updatePaymentMethod(this.value);"<?php if($this->getSelectedMethodCode()==$_code): ?> checked="checked"<?php endif; ?> class="radio payment_method_handle validate-one-required-by-name" />
|
7 |
<?php else: ?>
|
8 |
+
<span class="no-display"><input id="p_method_<?php echo $_code ?>" value="<?php echo $_code ?>" type="radio" name="payment[method]" checked="checked" class="radio payment_method_handle validate-one-required-by-name" onclick="payment.switchMethod('<?php echo $_code ?>');updatePaymentMethod(this.value);" /></span>
|
9 |
<?php endif; ?>
|
10 |
|
11 |
<label for="p_method_<?php echo $_code ?>"><?php echo $_method->getTitle() ?> <?php echo $this->getMethodLabelAfterHtml($_method) ?></label>
|
12 |
</dt>
|
13 |
+
|
14 |
<?php if ($html = $this->getPaymentMethodFormHtml($_method)): ?>
|
15 |
<dd>
|
16 |
<?php echo $html; ?>
|
17 |
</dd>
|
18 |
<?php endif; ?>
|
19 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
<div style="clear:both !important"></div>
|
21 |
<?php endforeach; ?>
|
22 |
</dl>
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/review.phtml
CHANGED
@@ -1,60 +1,63 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
</div>
|
16 |
-
<?php endif ?>
|
17 |
-
</div>
|
18 |
-
|
19 |
-
<div style="float: right;" id="onestepcheckout_place_order_button">
|
20 |
-
<button type="button" title="<?php echo $this->__('Place Order') ?>" class="button btn-checkout" >
|
21 |
-
<span><span><?php echo $this->__('Place Order') ?></span></span></button>
|
22 |
-
</div>
|
23 |
-
<?php if(Mage::getStoreConfig('onestepcheckout/layout/use_secure')){ ?>
|
24 |
-
<div class="float:left">
|
25 |
-
<a id="store_secure" target="_blank" href="#store_secure_content">
|
26 |
-
<span class="secure_store"><img src="<?php echo $this->getSkinUrl('MOIP/onestepcheckout/images/loja_segura.jpg') ?>" alt="<?php echo $this->__('Loja Segura, Saiba mais') ?>" title="<?php echo $this->__('Loja Segura, Saiba mais...') ?>" class="v-middle" /> </span>
|
27 |
-
</a>
|
28 |
-
</div>
|
29 |
-
<?php } ?>
|
30 |
-
<?php if(Mage::getStoreConfig('onestepcheckout/layout/allowsubscribenewsletter')==1):?>
|
31 |
-
<?php if(Mage::helper('onestepcheckout')->issubscribed()):?>
|
32 |
-
<ul class="form-list">
|
33 |
-
<li class="control">
|
34 |
-
<input type="checkbox" name="subscribe_newsletter" value="0" title="<?php echo $this->__('Receber novidades') ?>" id="subscribe_newsletter" class="checkbox"> <label for="subscribe_newsletter"><?php echo $this->__('Receber novidades') ?></label>
|
35 |
-
</li>
|
36 |
-
</ul>
|
37 |
-
<?php endif?>
|
38 |
-
<?php endif ?>
|
39 |
-
<?php if(Mage::getStoreConfig('onestepcheckout/layout/allowsubscribenewsletter')==2):?>
|
40 |
-
<?php if(Mage::helper('onestepcheckout')->issubscribed()):?>
|
41 |
-
<ul class="form-list">
|
42 |
-
<li class="control">
|
43 |
-
<input type="checkbox" name="subscribe_newsletter" value="1" checked="checked" title="<?php echo $this->__('Receber novidades') ?>" id="subscribe_newsletter" class="checkbox"> <label for="subscribe_newsletter" style="float:none;"><?php echo $this->__('Receber novidades') ?></label>
|
44 |
-
</li>
|
45 |
-
</ul>
|
46 |
-
<?php endif?>
|
47 |
-
<?php endif?>
|
48 |
-
<?php if(Mage::helper('onestepcheckout')->showComment()):?>
|
49 |
-
<div class="onestepcheckout-comments">
|
50 |
-
<label for="id_comments"><?php echo $this->__('Comments');?></label><br/>
|
51 |
-
<textarea id="id_comments" name="onestepcheckout_comments" cols="40" rows="4"></textarea>
|
52 |
-
</div>
|
53 |
-
<?php endif;?>
|
54 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
</div>
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
|
|
|
|
60 |
|
1 |
+
<div id="checkout-review-load">
|
2 |
+
<?php echo $this->getChildHtml('info') ?>
|
3 |
+
</div>
|
4 |
+
<div class="coluna_2_checkout span12 grid12-12">
|
5 |
+
<?php echo $this->getChildHtml('items_before'); ?>
|
6 |
+
<div id="checkout-review-terms">
|
7 |
+
<?php if(Mage::getStoreConfig('onestepcheckout/termcondition/allow_options')):?>
|
8 |
+
<div class="onestepcheckout-enable-terms" style="postion:relative;">
|
9 |
+
<ul class="form-list">
|
10 |
+
<li class="control">
|
11 |
+
<input class="required-entry checkbox" type="checkbox" id="id_accept_terms" name="accept_terms" value="1" checked="checked" s />
|
12 |
+
<label for="termos"><?php echo $this->__('Eu aceito o');?> <a id="onestepcheckout-toc-link" target="_blank" href="#inline2"><?php echo $this->__('Contrato de compra e os Termos de uso do site.');?></a></label>
|
13 |
+
</li>
|
14 |
+
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
</div>
|
16 |
+
<?php endif ?>
|
17 |
+
</div>
|
18 |
+
|
19 |
+
<div style="float: right;" id="onestepcheckout_place_order_button">
|
20 |
+
<button type="button" title="<?php echo $this->__('Place Order') ?>" class="button btn-checkout" id="checkout-onepage-buttom">
|
21 |
+
<span><span><?php echo $this->__('Place Order') ?></span></span></button>
|
22 |
+
</div>
|
23 |
+
|
24 |
+
<?php if(Mage::getStoreConfig('onestepcheckout/layout/use_secure')){ ?>
|
25 |
+
<div class="float:left">
|
26 |
+
<a id="store_secure" target="_blank" href="#store_secure_content">
|
27 |
+
<span class="secure_store"><img src="<?php echo $this->getSkinUrl('MOIP/onestepcheckout/images/loja_segura.jpg') ?>" alt="<?php echo $this->__('Loja Segura, Saiba mais') ?>" title="<?php echo $this->__('Loja Segura, Saiba mais...') ?>" class="v-middle" /> </span>
|
28 |
+
</a>
|
29 |
+
</div>
|
30 |
+
<?php } ?>
|
31 |
+
|
32 |
+
<?php if(Mage::getStoreConfig('onestepcheckout/layout/allowsubscribenewsletter')==1):?>
|
33 |
+
<?php if(Mage::helper('onestepcheckout')->issubscribed()):?>
|
34 |
+
<ul class="form-list">
|
35 |
+
<li class="control">
|
36 |
+
<input type="checkbox" name="subscribe_newsletter" value="0" title="<?php echo $this->__('Receber novidades') ?>" id="subscribe_newsletter" class="checkbox"> <label for="subscribe_newsletter"><?php echo $this->__('Receber novidades') ?></label>
|
37 |
+
</li>
|
38 |
+
</ul>
|
39 |
+
<?php endif?>
|
40 |
+
<?php endif ?>
|
41 |
+
|
42 |
+
<?php if(Mage::getStoreConfig('onestepcheckout/layout/allowsubscribenewsletter')==2):?>
|
43 |
+
<?php if(Mage::helper('onestepcheckout')->issubscribed()):?>
|
44 |
+
<ul class="form-list">
|
45 |
+
<li class="control">
|
46 |
+
<input type="checkbox" name="subscribe_newsletter" value="1" checked="checked" title="<?php echo $this->__('Receber novidades') ?>" id="subscribe_newsletter" class="checkbox"> <label for="subscribe_newsletter" style="float:none;"><?php echo $this->__('Receber novidades') ?></label>
|
47 |
+
</li>
|
48 |
+
</ul>
|
49 |
+
<?php endif?>
|
50 |
+
<?php endif?>
|
51 |
+
|
52 |
+
<?php if(Mage::helper('onestepcheckout')->showComment()):?>
|
53 |
+
<div class="onestepcheckout-comments">
|
54 |
+
<label for="id_comments"><?php echo $this->__('Comments');?></label><br/>
|
55 |
+
<textarea id="id_comments" name="onestepcheckout_comments" cols="40" rows="4"></textarea>
|
56 |
</div>
|
57 |
+
<?php endif;?>
|
58 |
+
<?php echo $this->getChildHtml('items_after'); ?>
|
59 |
+
</div>
|
60 |
+
<span class="please-wait" id="review-please-wait" style="display:none;">
|
61 |
+
<img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Submitting order information...') ?>" title="<?php echo $this->__('Submitting order information...') ?>" class="v-middle" /> <?php echo $this->__('Submitting order information...') ?>
|
62 |
+
</span>
|
63 |
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/review/info.phtml
CHANGED
@@ -24,7 +24,6 @@
|
|
24 |
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
*/
|
26 |
?>
|
27 |
-
<?php echo $this->getChildHtml('items_before'); ?>
|
28 |
<div id="checkout-review-table-wrapper">
|
29 |
<table class="data-table" id="checkout-review-table">
|
30 |
<?php if ($this->helper('tax')->displayCartBothPrices()): $colspan = $rowspan = 2; else: $colspan = $rowspan = 1; endif; ?>
|
24 |
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
*/
|
26 |
?>
|
|
|
27 |
<div id="checkout-review-table-wrapper">
|
28 |
<table class="data-table" id="checkout-review-table">
|
29 |
<?php if ($this->helper('tax')->displayCartBothPrices()): $colspan = $rowspan = 2; else: $colspan = $rowspan = 1; endif; ?>
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/shipping/shipping_form.phtml
CHANGED
@@ -1,122 +1,117 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
?>
|
20 |
|
21 |
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
</div>
|
38 |
-
</div>
|
39 |
-
</div>
|
40 |
-
<li class="wide">
|
41 |
-
<li class="field">
|
42 |
-
|
43 |
-
<label for="shipping:telephone" class="required"><?php echo $this->__('Telephone') ?></label>
|
44 |
-
<div class="input-box">
|
45 |
-
<input type="text" name="shipping[telephone]" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text required-entry inputtext" autocomplete="off" id="shipping:telephone" onchange="shipping.setSameAsshipping(false);" />
|
46 |
-
</div>
|
47 |
-
|
48 |
-
</li>
|
49 |
-
</li>
|
50 |
-
<li class="wide">
|
51 |
-
<li class="fields">
|
52 |
-
<h2>Endereço</h2>
|
53 |
-
</li>
|
54 |
-
</li>
|
55 |
-
|
56 |
-
<li class="wide">
|
57 |
-
<li class="field">
|
58 |
-
<label for="shipping:postcode" class="required"><em>*</em>CEP</label>
|
59 |
-
<div class="input-box">
|
60 |
-
<input type="text" title="CEP" name="shipping[postcode]" id="shipping:postcode" value="<?php echo $this->htmlEscape($this->getAddress()->getPostcode()) ?>" class="input-text inputtext validate-zip-international required-entry moipzip" onchange="javascript: buscarEndereco('shipping');" autocomplete="off" style="width: 100px;">
|
61 |
-
</div>
|
62 |
-
</li>
|
63 |
-
<li class="field">
|
64 |
-
<div class="input-box" style="margin-top: 20px;margin-bottom: 8px;">
|
65 |
-
<a id="correio" href="#inlinecorreio" title="">Não sabe o CEP?</a>
|
66 |
-
</div>
|
67 |
-
</li>
|
68 |
-
</li>
|
69 |
-
<li class="wide">
|
70 |
-
<label for="shipping:street1" class="required"><em>*</em>Endereço</label>
|
71 |
-
<div class="input-box">
|
72 |
-
<input type="text" title="Endereço da rua" name="shipping[street][]" id="shipping:street1" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(1)) ?>" class="input-text inputtext required-entry" autocomplete="off">
|
73 |
-
</div>
|
74 |
-
</li>
|
75 |
-
<li class="wide">
|
76 |
-
<li class="field">
|
77 |
-
<label for="shipping:street2" class="required"><em>*</em>Número</label>
|
78 |
-
<div class="input-box">
|
79 |
-
<input type="text" title="Street Address 2" name="shipping[street][]" id="shipping:street2" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(2)) ?>" class="input-text inputtext required-entry" autocomplete="off">
|
80 |
-
</div>
|
81 |
-
</li>
|
82 |
-
<li class="field">
|
83 |
-
<label for="shipping:street3" class="required">Complemento</label>
|
84 |
-
<div class="input-box">
|
85 |
-
<input type="text" title="Complemento" name="shipping[street][]" id="shipping:street3" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(3)) ?>" class="input-text inputtext" autocomplete="off">
|
86 |
-
</div>
|
87 |
-
</li>
|
88 |
-
</li>
|
89 |
-
<li class="wide">
|
90 |
-
<li class="field">
|
91 |
-
<label for="shipping:street4" class="required"><em>*</em>Bairro</label>
|
92 |
-
<div class="input-box">
|
93 |
-
<input type="text" title="Bairro" name="shipping[street][]" id="shipping:street4" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(4)) ?>" class="input-text inputtext required-entry" autocomplete="off">
|
94 |
-
</div>
|
95 |
-
</li>
|
96 |
-
<li class="field">
|
97 |
-
<label for="shipping:city" class="required"><em>*</em>Cidade</label>
|
98 |
-
<div class="input-box">
|
99 |
-
<input type="text" title="Cidade" name="shipping[city]" value="<?php echo $this->htmlEscape($this->getAddress()->getCity()) ?>"class="input-text inputtext required-entry" id="shipping:city" autocomplete="off">
|
100 |
-
</div>
|
101 |
-
</li>
|
102 |
-
</li>
|
103 |
-
<li class="wide">
|
104 |
-
<li class="field">
|
105 |
-
<label for="shipping:region_id" class=""><em style="display: none;">*</em>Estado</label>
|
106 |
-
<div class="input-box">
|
107 |
-
<select id="shipping:region_id" name="shipping[region_id]" title="Estado" style="display: none;" defaultvalue="" class="validate-select">
|
108 |
-
<option value="">Por favor, selecione o estado</option>
|
109 |
-
</select>
|
110 |
-
<script type="text/javascript">$("shipping:region_id").setAttribute("defaultValue", "");</script>
|
111 |
-
<input type="text" maxlength="2" id="shipping:region" name="shipping[region]" value="<?php echo $this->escapeHtml($region_select) ?>" title="Estado" class="input-text" style="" autocomplete="off">
|
112 |
-
</div>
|
113 |
-
</li>
|
114 |
-
<li class="field" style="display:none;" >
|
115 |
-
<label for="shipping:country_id" class="required"><em></em>País</label>
|
116 |
-
<div class="input-box">
|
117 |
-
<?php echo $this->getCountryHtmlSelect('shipping') ?>
|
118 |
-
</div>
|
119 |
-
</li>
|
120 |
-
</li>
|
121 |
-
|
122 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php $myStatus = Mage::getSingleton('customer/session')->isLoggedIn();
|
2 |
+
if (Mage::getSingleton('customer/session')->isLoggedIn()) {
|
3 |
+
$customer = Mage::getSingleton('customer/session')->getCustomer();
|
4 |
+
$fullname = $customer->getName();
|
5 |
+
$firstname = $customer->getFirstname();
|
6 |
+
$lastname = $customer->getLastname();
|
7 |
+
$region_select = $this->escapeHtml($this->getAddress()->getRegion());
|
8 |
+
$taxvat = $customer->getTaxvat();
|
9 |
+
}
|
10 |
+
else
|
11 |
+
{
|
12 |
+
$fullname = "";
|
13 |
+
$firstname = "";
|
14 |
+
$lastname = "";
|
15 |
+
$region_select = "";
|
16 |
+
$taxvat = "";
|
17 |
+
}
|
18 |
+
?>
|
|
|
19 |
|
20 |
|
21 |
+
<div id="shipping-new-address-form">
|
22 |
+
<input type="hidden" name="shipping[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="shipping:address_id" />
|
23 |
+
<div id="moip_onstepcheckout_shipping_form">
|
24 |
+
<div class="customer-name">
|
25 |
+
<div class="field name-firstname">
|
26 |
+
<label for="shipping:firstname" class="required"><em>*</em>Nome</label>
|
27 |
+
<div class="input-box">
|
28 |
+
<input type="text" id="shipping:firstname" name="shipping[firstname]" value="<?php echo $firstname; ?>" title="Nome" class="input-text required-entry" autocomplete="off">
|
29 |
+
</div>
|
30 |
+
</div>
|
31 |
+
<div class="field name-lastname">
|
32 |
+
<label for="shipping:lastname" class="required"><em>*</em>Sobrenome</label>
|
33 |
+
<div class="input-box">
|
34 |
+
<input type="text" id="shipping:lastname" name="shipping[lastname]" value="<?php echo $lastname; ?>" title="Sobrenome" class="input-text required-entry" autocomplete="off">
|
35 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
</div>
|
37 |
+
</div>
|
38 |
+
<li class="wide">
|
39 |
+
<li class="field">
|
40 |
+
<label for="shipping:telephone" class="required"><?php echo $this->__('Telephone') ?></label>
|
41 |
+
<div class="input-box">
|
42 |
+
<input type="text" name="shipping[telephone]" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text required-entry inputtext" autocomplete="off" id="shipping:telephone" onchange="shipping.setSameAsshipping(false);" />
|
43 |
+
</div>
|
44 |
+
</li>
|
45 |
+
</li>
|
46 |
+
<li class="wide">
|
47 |
+
<li class="fields">
|
48 |
+
<h2>Endereço</h2>
|
49 |
+
</li>
|
50 |
+
</li>
|
51 |
+
<li class="wide">
|
52 |
+
<li class="field">
|
53 |
+
<label for="shipping:postcode" class="required"><em>*</em>CEP</label>
|
54 |
+
<div class="input-box">
|
55 |
+
<input type="text" title="CEP" name="shipping[postcode]" id="shipping:postcode" value="<?php echo $this->htmlEscape($this->getAddress()->getPostcode()) ?>" class="input-text inputtext validate-zip-international required-entry moipzip" onchange="javascript: buscarEndereco('shipping');" autocomplete="off" style="width: 100px;">
|
56 |
+
</div>
|
57 |
+
</li>
|
58 |
+
<li class="field">
|
59 |
+
<div class="input-box" style="margin-top: 20px;margin-bottom: 8px;">
|
60 |
+
<a id="correio" href="#inlinecorreio" title="">Não sabe o CEP?</a>
|
61 |
+
</div>
|
62 |
+
</li>
|
63 |
+
</li>
|
64 |
+
<li class="wide">
|
65 |
+
<label for="shipping:street1" class="required"><em>*</em>Endereço</label>
|
66 |
+
<div class="input-box">
|
67 |
+
<input type="text" title="Endereço da rua" name="shipping[street][]" id="shipping:street1" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(1)) ?>" class="input-text inputtext required-entry" autocomplete="off">
|
68 |
+
</div>
|
69 |
+
</li>
|
70 |
+
<li class="wide">
|
71 |
+
<li class="field">
|
72 |
+
<label for="shipping:street2" class="required"><em>*</em>Número</label>
|
73 |
+
<div class="input-box">
|
74 |
+
<input type="text" title="Street Address 2" name="shipping[street][]" id="shipping:street2" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(2)) ?>" class="input-text inputtext required-entry" autocomplete="off">
|
75 |
+
</div>
|
76 |
+
</li>
|
77 |
+
<li class="field">
|
78 |
+
<label for="shipping:street3" class="required">Complemento</label>
|
79 |
+
<div class="input-box">
|
80 |
+
<input type="text" title="Complemento" name="shipping[street][]" id="shipping:street3" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(3)) ?>" class="input-text inputtext" autocomplete="off">
|
81 |
+
</div>
|
82 |
+
</li>
|
83 |
+
</li>
|
84 |
+
<li class="wide">
|
85 |
+
<li class="field">
|
86 |
+
<label for="shipping:street4" class="required"><em>*</em>Bairro</label>
|
87 |
+
<div class="input-box">
|
88 |
+
<input type="text" title="Bairro" name="shipping[street][]" id="shipping:street4" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(4)) ?>" class="input-text inputtext required-entry" autocomplete="off">
|
89 |
+
</div>
|
90 |
+
</li>
|
91 |
+
<li class="field">
|
92 |
+
<label for="shipping:city" class="required"><em>*</em>Cidade</label>
|
93 |
+
<div class="input-box">
|
94 |
+
<input type="text" title="Cidade" name="shipping[city]" value="<?php echo $this->htmlEscape($this->getAddress()->getCity()) ?>"class="input-text inputtext required-entry" id="shipping:city" autocomplete="off">
|
95 |
+
</div>
|
96 |
+
</li>
|
97 |
+
</li>
|
98 |
+
<li class="wide">
|
99 |
+
<li class="field">
|
100 |
+
<label for="shipping:region_id" class=""><em style="display: none;">*</em>Estado</label>
|
101 |
+
<div class="input-box">
|
102 |
+
<select id="shipping:region_id" name="shipping[region_id]" title="Estado" style="display: none;" defaultvalue="" class="validate-select">
|
103 |
+
<option value="">Por favor, selecione o estado</option>
|
104 |
+
</select>
|
105 |
+
<script type="text/javascript">$("shipping:region_id").setAttribute("defaultValue", "");</script>
|
106 |
+
<input type="text" maxlength="2" id="shipping:region" name="shipping[region]" value="<?php echo $this->escapeHtml($region_select) ?>" title="Estado" class="input-text" style="" autocomplete="off">
|
107 |
+
</div>
|
108 |
+
</li>
|
109 |
+
<li class="field" style="display:none;" >
|
110 |
+
<label for="shipping:country_id" class="required"><em></em>País</label>
|
111 |
+
<div class="input-box">
|
112 |
+
<?php echo $this->getCountryHtmlSelect('shipping') ?>
|
113 |
+
</div>
|
114 |
+
</li>
|
115 |
+
</li>
|
116 |
+
</div>
|
117 |
+
</div>
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/shipping_method.phtml
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<div id="co-shipping-method-form" >
|
2 |
-
<div id="checkout-shipping-method-load"
|
3 |
<?php echo $this->getChildHtml('available') ?>
|
4 |
</div>
|
5 |
<script type="text/javascript">
|
1 |
<div id="co-shipping-method-form" >
|
2 |
+
<div id="checkout-shipping-method-load">
|
3 |
<?php echo $this->getChildHtml('available') ?>
|
4 |
</div>
|
5 |
<script type="text/javascript">
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/shipping_method/available.phtml
CHANGED
@@ -1,16 +1,16 @@
|
|
1 |
<?php if (!($_shippingRateGroups = $this->getShippingRates())): ?>
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
<?php else: ?>
|
9 |
<dl id="checkout-shipping-method-loadding" class="sp-methods">
|
10 |
<?php $_sole = count($this->getShippingRates()) == 1; foreach ($this->getShippingRates() as $code => $_rates): ?>
|
11 |
<dt><?php echo $this->getCarrierName($code); ?></dt>
|
12 |
<dd>
|
13 |
-
<ul>
|
14 |
<?php $_sole = $_sole && count($_rates) == "nada"; foreach ($_rates as $_rate): ?>
|
15 |
<li>
|
16 |
<?php if ($_rate->getErrorMessage()): ?>
|
@@ -21,74 +21,42 @@
|
|
21 |
<?php echo $_rate->getErrorMessage() ?>
|
22 |
</div>
|
23 |
<?php else: ?>
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
$parametro = $_rate->getCode();
|
36 |
-
|
37 |
-
switch ($parametro){
|
38 |
-
case "pedroteixeira_correios_40045":
|
39 |
-
$imagem = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/icone_sedex_a');
|
40 |
-
break;
|
41 |
-
case "freeshipping_freeshipping":
|
42 |
-
$imagem = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/icone_gratis');
|
43 |
-
break;
|
44 |
-
case "pedroteixeira_correios_41106":
|
45 |
-
$imagem = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/icone_pac');
|
46 |
-
break;
|
47 |
-
case "pedroteixeira_correios_40010":
|
48 |
-
$imagem = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/icone_sedex');
|
49 |
-
break;
|
50 |
-
case "pedroteixeira_correios_40215":
|
51 |
-
$imagem = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/icone_sedex_10');
|
52 |
-
break;
|
53 |
-
case "pedroteixeira_correios_40290":
|
54 |
-
$imagem = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/icone_sedex_hoje');
|
55 |
-
break;
|
56 |
-
case "flatrate_flatrate":
|
57 |
-
$imagem = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/icone_fixo');//pac
|
58 |
-
break;
|
59 |
-
}
|
60 |
-
?>
|
61 |
-
<div class="image_shipping">
|
62 |
-
<img src="<?php echo $imagem?>">
|
63 |
-
</div>
|
64 |
-
<?php endif; ?>
|
65 |
-
<?php else: ?>
|
66 |
-
<?php if ($code == "pedroteixeira_correios" || $code == "flatrate" || $code == "freeshipping"):
|
67 |
-
$pedroteixeira_correios_40045 = $this->getSkinUrl('MOIP/transparente/imagem/pedroteixeira_correios_40045.png'); //sedex_acobrar
|
68 |
-
$pedroteixeira_correios_41106 = $this->getSkinUrl('MOIP/transparente/imagem/pedroteixeira_correios_41106.png'); //pac
|
69 |
-
$pedroteixeira_correios_40010 = $this->getSkinUrl('MOIP/transparente/imagem/pedroteixeira_correios_40010.png'); //sedex
|
70 |
-
$pedroteixeira_correios_40215 = $this->getSkinUrl('MOIP/transparente/imagem/pedroteixeira_correios_40215.png'); //sedex10
|
71 |
-
$pedroteixeira_correios_40290 = $this->getSkinUrl('MOIP/transparente/imagem/pedroteixeira_correios_40290.png'); //sedexhoje
|
72 |
-
$freeshipping_freeshipping = $this->getSkinUrl('MOIP/transparente/imagem/freeshipping_freeshipping.png'); //frete gratis
|
73 |
-
$flatrate_flatrate = $this->getSkinUrl('MOIP/transparente/imagem/flatrate_flatrate.png'); //frete fixo
|
74 |
-
?>
|
75 |
-
<div class="image_shipping">
|
76 |
-
<img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem/'); echo $_rate->getCode()?>.gif" id="moip<?php echo $_rate->getCode() ?>.png" alt="<?php echo $_rate->getMethodTitle() ?>">
|
77 |
-
</div>
|
78 |
-
<?php endif; ?>
|
79 |
-
<?php endif; ?>
|
80 |
-
<?php endif; ?>
|
81 |
-
|
82 |
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
<?php endif ?>
|
93 |
</li>
|
94 |
<?php endforeach; ?>
|
@@ -99,12 +67,12 @@
|
|
99 |
<?php endif; ?>
|
100 |
<script type="text/javascript">
|
101 |
//<![CDATA[
|
102 |
-
if(jQuery("#billing\\:postcode").val() == '' || jQuery("#billing\\:postcode").val() == '.'){
|
103 |
-
|
104 |
-
|
105 |
-
} else{
|
106 |
-
|
107 |
-
|
108 |
-
}
|
109 |
//]]>
|
110 |
</script>
|
1 |
<?php if (!($_shippingRateGroups = $this->getShippingRates())): ?>
|
2 |
+
<div class="erro_cep sem_cep" style="display:none;">
|
3 |
+
Aguardando preenchimento do CEP, para cálculo do frete, pelos correios.
|
4 |
+
</div>
|
5 |
+
<div class="erro_cep com_cep" style="display:none;">
|
6 |
+
Não Há Meio de Envio disponível, entre em contato com a loja.
|
7 |
+
</div>
|
8 |
<?php else: ?>
|
9 |
<dl id="checkout-shipping-method-loadding" class="sp-methods">
|
10 |
<?php $_sole = count($this->getShippingRates()) == 1; foreach ($this->getShippingRates() as $code => $_rates): ?>
|
11 |
<dt><?php echo $this->getCarrierName($code); ?></dt>
|
12 |
<dd>
|
13 |
+
<ul class="shipping">
|
14 |
<?php $_sole = $_sole && count($_rates) == "nada"; foreach ($_rates as $_rate): ?>
|
15 |
<li>
|
16 |
<?php if ($_rate->getErrorMessage()): ?>
|
21 |
<?php echo $_rate->getErrorMessage() ?>
|
22 |
</div>
|
23 |
<?php else: ?>
|
24 |
+
<?php if ($_sole) : ?>
|
25 |
+
<span class="no-display"><input name="shipping_method" type="radio" title="Meio de Envio" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>" checked="checked" class="validate-one-required-by-name"/></span>
|
26 |
+
<script type="text/javascript">
|
27 |
+
//<![CDATA[
|
28 |
+
updateShippingMethod();
|
29 |
+
//]]>
|
30 |
+
</script>
|
31 |
+
<?php else: ?>
|
32 |
+
<input name="shipping_method" type="radio" value="<?php echo $_rate->getCode() ?>" title="Meio de Envio" id="s_method_<?php echo $_rate->getCode() ?>" class="radio shipping_method_handle validate-one-required-by-name" onclick="updateShippingMethod();"/>
|
33 |
+
<?php endif; ?>
|
34 |
+
<label for="s_method_<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>" value="<?php echo $_rate->getPrice() ?>">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
+
<?php if(Mage::getStoreConfig('moipall/config/icones_na_entrega')): ?>
|
37 |
+
<?php
|
38 |
+
if ($code == "pedroteixeira_correios" || $code == "flatrate" || $code == "freeshipping"){
|
39 |
+
$pedroteixeira_correios_40045 = $this->getSkinUrl('MOIP/transparente/imagem/pedroteixeira_correios_40045.png'); //sedex_acobrar
|
40 |
+
$pedroteixeira_correios_41106 = $this->getSkinUrl('MOIP/transparente/imagem/pedroteixeira_correios_41106.png'); //pac
|
41 |
+
$pedroteixeira_correios_40010 = $this->getSkinUrl('MOIP/transparente/imagem/pedroteixeira_correios_40010.png'); //sedex
|
42 |
+
$pedroteixeira_correios_40215 = $this->getSkinUrl('MOIP/transparente/imagem/pedroteixeira_correios_40215.png'); //sedex10
|
43 |
+
$pedroteixeira_correios_40290 = $this->getSkinUrl('MOIP/transparente/imagem/pedroteixeira_correios_40290.png'); //sedexhoje
|
44 |
+
$freeshipping_freeshipping = $this->getSkinUrl('MOIP/transparente/imagem/freeshipping_freeshipping.png'); //frete gratis
|
45 |
+
$flatrate_flatrate = $this->getSkinUrl('MOIP/transparente/imagem/flatrate_flatrate.png'); //frete fixo
|
46 |
+
}
|
47 |
+
?>
|
48 |
+
|
49 |
+
<img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem/'); echo $_rate->getCode()?>.gif" id="moip<?php echo $_rate->getCode() ?>.png" alt="<?php echo $_rate->getMethodTitle() ?>" class="image_shipping">
|
50 |
+
|
51 |
+
<?php endif; ?>
|
52 |
+
<?php echo $_rate->getMethodTitle() ?>
|
53 |
+
<?php $_excl = $this->getShippingPrice($_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
|
54 |
+
<?php $_incl = $this->getShippingPrice($_rate->getPrice(), true); ?>
|
55 |
+
<?php echo $_excl; ?>
|
56 |
+
<?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
|
57 |
+
(<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
|
58 |
+
<?php endif; ?>
|
59 |
+
</label>
|
60 |
<?php endif ?>
|
61 |
</li>
|
62 |
<?php endforeach; ?>
|
67 |
<?php endif; ?>
|
68 |
<script type="text/javascript">
|
69 |
//<![CDATA[
|
70 |
+
if(jQuery("#billing\\:postcode").val() == '' || jQuery("#billing\\:postcode").val() == '.'){
|
71 |
+
jQuery(".sem_cep").show();
|
72 |
+
jQuery(".com_cep").hide();
|
73 |
+
} else{
|
74 |
+
jQuery(".sem_cep").hide();
|
75 |
+
jQuery(".com_cep").show();
|
76 |
+
}
|
77 |
//]]>
|
78 |
</script>
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/onepage.phtml
CHANGED
@@ -1,37 +1,508 @@
|
|
1 |
-
<script type="text/javascript" src="<?php echo $this->getJsUrl('varien/accordion.js') ?>"></script>
|
2 |
-
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/opcheckout.js') ?>"></script>
|
3 |
<script type="text/javascript">countryRegions = <?php echo $this->helper('directory')->getRegionJson() ?></script>
|
4 |
-
<?php
|
5 |
-
<div class="page-title">
|
6 |
-
<h1><?php echo $this->__('Checkout') ?></h1>
|
7 |
-
</div>
|
8 |
-
<ol class="opc" id="checkoutSteps">
|
9 |
-
<?php $i=0; foreach($this->getSteps() as $_stepId => $_stepInfo): ?>
|
10 |
-
<?php if (!$this->getChild($_stepId) || !$this->getChild($_stepId)->isShow()): continue; endif; $i++ ?>
|
11 |
-
<li id="opc-<?php echo $_stepId ?>" class="section<?php echo !empty($_stepInfo['allow'])?' allow':'' ?><?php echo !empty($_stepInfo['complete'])?' saved':'' ?>">
|
12 |
-
<div class="step-title">
|
13 |
-
<span class="number"><?php echo $i ?></span>
|
14 |
-
<h2><?php echo $_stepInfo['label'] ?></h2>
|
15 |
-
<a href="#"><?php echo $this->__('Edit') ?></a>
|
16 |
-
</div>
|
17 |
-
<div id="checkout-step-<?php echo $_stepId ?>" class="step a-item" style="display:none;">
|
18 |
-
<?php echo $this->getChildHtml($_stepId) ?>
|
19 |
-
</div>
|
20 |
-
</li>
|
21 |
-
<?php endforeach ?>
|
22 |
-
</ol>
|
23 |
-
<?php endif?>
|
24 |
<script type="text/javascript">
|
25 |
//<![CDATA[
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
//]]>
|
37 |
</script>
|
|
|
|
|
|
|
|
1 |
<script type="text/javascript">countryRegions = <?php echo $this->helper('directory')->getRegionJson() ?></script>
|
2 |
+
<?php $urldosite = Mage::getBaseUrl('web', true);?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
<script type="text/javascript">
|
4 |
//<![CDATA[
|
5 |
+
jQuery("#correio").fancybox({
|
6 |
+
'titlePosition': 'inside',
|
7 |
+
'openEffect': 'elastic',
|
8 |
+
'openSpeed': '150',
|
9 |
+
'closeEffect': 'elastic',
|
10 |
+
'closeSpeed': '150',
|
11 |
+
'width': '350px',
|
12 |
+
'height': '280px',
|
13 |
+
});
|
14 |
+
jQuery(".inline_erros").fancybox({
|
15 |
+
'titlePosition': 'inside',
|
16 |
+
'openEffect': 'elastic',
|
17 |
+
'openSpeed': '150',
|
18 |
+
'closeEffect': 'elastic',
|
19 |
+
'closeSpeed': '150',
|
20 |
+
'width': '350px',
|
21 |
+
'height': '280px',
|
22 |
+
});
|
23 |
+
|
24 |
+
jQuery("#loginbox").fancybox({
|
25 |
+
'titlePosition': 'inside',
|
26 |
+
'openEffect': 'elastic',
|
27 |
+
'openSpeed': '150',
|
28 |
+
'closeEffect': 'elastic',
|
29 |
+
'closeSpeed': '150',
|
30 |
+
'width': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxwidth");?>px',
|
31 |
+
'height': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxheight"); ?>px',
|
32 |
+
});
|
33 |
+
jQuery("#onestepcheckout-toc-link").fancybox({
|
34 |
+
'titlePosition': 'inside',
|
35 |
+
'openEffect': 'elastic',
|
36 |
+
'openSpeed': '150',
|
37 |
+
'closeEffect': 'elastic',
|
38 |
+
'closeSpeed': '150',
|
39 |
+
});
|
40 |
+
jQuery("#forgotpassword").fancybox({
|
41 |
+
'titlePosition': 'inside',
|
42 |
+
'openEffect': 'elastic',
|
43 |
+
'openSpeed': '150',
|
44 |
+
'closeEffect': 'elastic',
|
45 |
+
'closeSpeed': '150',
|
46 |
+
'width': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxwidth");?>px',
|
47 |
+
'height': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxheight")+50; ?>px',
|
48 |
+
});
|
49 |
+
jQuery("#backlogin").fancybox({
|
50 |
+
'titlePosition': 'inside',
|
51 |
+
'openEffect': 'elastic',
|
52 |
+
'openSpeed': '150',
|
53 |
+
'closeEffect': 'elastic',
|
54 |
+
'closeSpeed': '150',
|
55 |
+
});
|
56 |
+
jQuery("#store_secure").fancybox({
|
57 |
+
'titlePosition': 'inside',
|
58 |
+
'openEffect': 'elastic',
|
59 |
+
'openSpeed': '150',
|
60 |
+
'closeEffect': 'elastic',
|
61 |
+
'closeSpeed': '150',
|
62 |
+
'width': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxwidth");?>px',
|
63 |
+
'height': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxheight")+50; ?>px',
|
64 |
+
});
|
65 |
+
var message_payment = "<?php echo Mage::helper('onestepcheckout')->__('Please select a payment method for your order!');?>";
|
66 |
+
var message_ship = "<?php echo Mage::helper('onestepcheckout')->__('Please select a shipping method for your order!');?>";
|
67 |
+
var updatepaymenttypeurl = "<?php echo Mage::getUrl('onestepcheckout/index/updatepaymenttype')?>";
|
68 |
+
var updatepaymentmethodurl = "<?php echo Mage::getUrl('onestepcheckout/index/updatepaymentmethod')?>";
|
69 |
+
var updatecouponurl = "<?php echo Mage::getUrl('onestepcheckout/index/updatecoupon')?>";
|
70 |
+
var updateqtyurl = "<?php echo Mage::getUrl('onestepcheckout/index/updateqty')?>";
|
71 |
+
var removeproducturl = "<?php echo Mage::getUrl('onestepcheckout/index/removeproduct')?>";
|
72 |
+
var updateshippingmethodurl = "<?php echo Mage::getUrl('onestepcheckout/index/updateshippingmethod') ?>";
|
73 |
+
|
74 |
+
function ProxCamp(fields) {
|
75 |
+
fields.value=soNumeros(fields.value)
|
76 |
+
if (fields.value.length == fields.maxLength) {
|
77 |
+
for (var i = 0; i < fields.form.length; i++) {
|
78 |
+
if (fields.form[i] == fields && fields.form[(i + 1)] && fields.form[(i + 1)].type != "hidden") {
|
79 |
+
fields.form[(i + 1)].focus();
|
80 |
+
break;
|
81 |
+
}
|
82 |
+
}
|
83 |
+
}
|
84 |
+
}
|
85 |
+
function soNumeros(v){
|
86 |
+
return v.replace(/\D/g,"")
|
87 |
+
}
|
88 |
+
function has_default_billing()
|
89 |
+
{
|
90 |
+
<?php if (Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling()): ?>
|
91 |
+
return 1;
|
92 |
+
<?php else: ?>
|
93 |
+
return 0;
|
94 |
+
<?php endif ?>
|
95 |
+
}
|
96 |
+
function getval(sel) {
|
97 |
+
if (sel.value == 1){
|
98 |
+
jQuery('.dados-pj').slideUp();
|
99 |
+
jQuery('.dados-pj input:not([type=checkbox])').removeClass('required-entry');
|
100 |
+
}else{
|
101 |
+
jQuery('.dados-pj').slideDown();
|
102 |
+
jQuery('.dados-pj input:not([type=checkbox])').addClass('required-entry');
|
103 |
+
}
|
104 |
+
}
|
105 |
+
function marcar_isento() {
|
106 |
+
jQuery("#insestadual").val("Isento");
|
107 |
+
}
|
108 |
+
function seleciona_cep_busca(valor) {
|
109 |
+
var cep_buscado = jQuery('.'+valor.className).val();
|
110 |
+
jQuery("#billing\\:postcode").val(cep_buscado);
|
111 |
+
buscarEndereco('billing');
|
112 |
+
jQuery.fancybox.close();
|
113 |
+
jQuery("#billing\\:street2").focus();
|
114 |
+
}
|
115 |
+
function busca_endereco_correios(){
|
116 |
+
var url = '<?php echo Mage::getUrl("Transparente/Standard/buscaCep/")?>meio/buscaend/logradouro/' + jQuery("#endereco_de_consulta").val().replace(/[^a-zA-ZãéíóúãõàèìòùÀÈÌÙÒÃÂâÁÉÍÓÚ ]/g, '') +'/busca_uf/'+jQuery("#busca_uf").val();
|
117 |
+
jQuery.getJSON(url, function (result) {
|
118 |
+
for (var i = 0; i < result.length; i++) {
|
119 |
+
jQuery(".resultados_get_busca").append('<label class="busca_end_label"><div class="seletec_result_end"><input type="radio" value="'+result[i].retorno.cep+'" class="cep_encontrado_'+result[i].retorno.cep+'" onclick="javascript:seleciona_cep_busca(this);"></div><div class="dados_result_end"><span class="cidade">'+result[i].retorno.cidade + ' - ' + result[i].retorno.uf+'</span><span class="cep">'+result[i].retorno.cep+'</span><span class="rua">'+result[i].retorno.rua+'</span></div></label>');
|
120 |
+
}
|
121 |
+
jQuery("#searchForm").hide();
|
122 |
+
jQuery("#buscar_nos_correios").show();
|
123 |
+
});
|
124 |
+
};
|
125 |
+
|
126 |
+
function buscarEndereco(whatform) {
|
127 |
+
if (whatform == "billing") {
|
128 |
+
var campos = {
|
129 |
+
postcode: document.getElementById('billing:postcode'),
|
130 |
+
street_1: document.getElementById('billing:street1'),
|
131 |
+
street_4: document.getElementById('billing:street4'),
|
132 |
+
city: document.getElementById('billing:city'),
|
133 |
+
region: document.getElementById('billing:region_id')
|
134 |
+
};
|
135 |
+
|
136 |
+
}
|
137 |
+
if (whatform == "shipping") {
|
138 |
+
var campos = {
|
139 |
+
postcode: document.getElementById('shipping:postcode'),
|
140 |
+
street_1: document.getElementById('shipping:street1'),
|
141 |
+
street_4: document.getElementById('shipping:street4'),
|
142 |
+
city: document.getElementById('shipping:city'),
|
143 |
+
region: document.getElementById('shipping:region_id'),
|
144 |
+
};
|
145 |
+
|
146 |
+
}
|
147 |
+
if (whatform == "register") {
|
148 |
+
var campos = {
|
149 |
+
postcode: document.getElementById('postcode'),
|
150 |
+
street_1: document.getElementById('street_1'),
|
151 |
+
street_4: document.getElementById('street_4'),
|
152 |
+
city: document.getElementById('city'),
|
153 |
+
region: document.getElementById('region_id')
|
154 |
+
};
|
155 |
+
}
|
156 |
+
|
157 |
+
jQuery.ajax({
|
158 |
+
type:'GET',
|
159 |
+
url: '<?php echo $urldosite; ?>Transparente/Standard/buscaCep/meio/cep/cep/' + campos.postcode.value.replace(/\+/g, ''),
|
160 |
+
|
161 |
+
beforeSend: function(data){
|
162 |
+
jQuery(campos.street_1).val("Buscando Endereço");
|
163 |
+
jQuery(campos.street_4).val("Buscando Endereço");
|
164 |
+
jQuery(campos.city).val("Buscando Endereço");
|
165 |
+
},
|
166 |
+
|
167 |
+
success: function(data){
|
168 |
+
jQuery('#loading-mask').fadeOut();
|
169 |
+
var addressData = jQuery.parseJSON(data);
|
170 |
+
jQuery(campos.street_1).val(addressData.logradouro);
|
171 |
+
jQuery(campos.street_4).val(addressData.bairro);
|
172 |
+
jQuery(campos.city).val(addressData.cidade);
|
173 |
+
jQuery(campos.region).val(addressData.ufid);
|
174 |
+
if (campos.postcode != "" && campos.postcode != ".")
|
175 |
+
{
|
176 |
+
updateShippingType(campos.postcode);
|
177 |
+
};
|
178 |
+
jQuery("#billing\\:street2").focus();
|
179 |
+
},
|
180 |
+
error: function(){
|
181 |
+
jQuery(campos.street_1).val("");
|
182 |
+
jQuery(campos.street_4).val("");
|
183 |
+
jQuery(campos.city).val("");
|
184 |
+
jQuery(campos.region).val("");
|
185 |
+
if (campos.postcode != "" && campos.postcode != ".")
|
186 |
+
{
|
187 |
+
updateShippingType(campos.postcode);
|
188 |
+
};
|
189 |
+
},
|
190 |
+
});
|
191 |
+
};
|
192 |
+
function updateShippingMethod() {
|
193 |
+
if(document.getElementById('billing:postcode') != "" && document.getElementById('billing:postcode') != "." ){
|
194 |
+
jQuery.ajax({
|
195 |
+
type: "POST",
|
196 |
+
url: updateshippingmethodurl,
|
197 |
+
data: jQuery("#onestep_form").serialize(),
|
198 |
+
beforeSend: function(){
|
199 |
+
jQuery('.validation-advice').hide();
|
200 |
+
jQuery("input[name='shipping_method']").removeClass('validation-failed');
|
201 |
+
jQuery('#checkout-payment-method-load').html('<div class="update_payment">Calculando valor do pagamento.<img class="Loading" alt="Loading..." src="<?php echo $this->getSkinUrl("MOIP/onestepcheckout/images/ajax-loader-tr.gif")?>"></div>');
|
202 |
+
|
203 |
+
},
|
204 |
+
success: function(msg) {
|
205 |
+
msg = msg.replace("[]", "");
|
206 |
+
jQuery('#checkout-review-load').html(msg);
|
207 |
+
updatePaymentAssociated();
|
208 |
+
},
|
209 |
+
fail:function() {
|
210 |
+
updateShippingMethod();
|
211 |
+
},
|
212 |
+
always: function() {
|
213 |
+
|
214 |
+
},
|
215 |
+
})
|
216 |
+
|
217 |
+
}
|
218 |
+
};
|
219 |
+
function updateShippingType(str_value){
|
220 |
+
<?php if(!Mage::helper('onestepcheckout')->onlyProductDownloadable()):?>
|
221 |
+
jQuery.ajax({
|
222 |
+
async: false,
|
223 |
+
type: "POST",
|
224 |
+
url: "<?php echo Mage::getUrl('onestepcheckout/index/updateshippingtype')?>",
|
225 |
+
data:jQuery("#onestep_form").serialize(),
|
226 |
+
beforeSend: function(){
|
227 |
+
jQuery('#message-box').html('');
|
228 |
+
jQuery('#checkout-shipping-method-load').html('<div class="update_shipping">Calculando Frete.<img class="Loading" alt="Loading..." src="<?php echo $this->getSkinUrl("MOIP/onestepcheckout/images/ajax-loader-tr.gif")?>"></div>');
|
229 |
+
},
|
230 |
+
success: function(msg){
|
231 |
+
jQuery('#checkout-shipping-method-load').html(msg);
|
232 |
+
},
|
233 |
+
error: function(){
|
234 |
+
jQuery('#checkout-shipping-method-load').html("Não foi possível cotar o seu frete, por favor recarrege a página ou entre em contato com nossa loja.");
|
235 |
+
},
|
236 |
+
});
|
237 |
+
<?php endif?>
|
238 |
+
}
|
239 |
+
function updatePaymentAssociated() {
|
240 |
+
jQuery.ajax({
|
241 |
+
type: "POST",
|
242 |
+
url: updatepaymenttypeurl,
|
243 |
+
data: jQuery("#onestep_form").serialize(),
|
244 |
+
beforeSend: function(data){
|
245 |
+
|
246 |
+
},
|
247 |
+
success: function(msg) {
|
248 |
+
jQuery('#checkout-payment-method-load').html(msg);
|
249 |
+
},
|
250 |
+
});
|
251 |
+
}
|
252 |
+
function updatePaymentMethod(value) {
|
253 |
+
jQuery.ajax({
|
254 |
+
url: updatepaymentmethodurl,
|
255 |
+
type: "POST",
|
256 |
+
data: "payment%5Bmethod%5D=" + value,
|
257 |
+
success: function(msg) {
|
258 |
+
jQuery('#checkout-review-load').html(msg);
|
259 |
+
},
|
260 |
+
});
|
261 |
+
|
262 |
+
};
|
263 |
+
function updateCoupon(code, isremove) {
|
264 |
+
jQuery.ajax({
|
265 |
+
url: updatecouponurl,
|
266 |
+
type: "POST",
|
267 |
+
data: "coupon_code=" + code + "&remove=" + isremove,
|
268 |
+
})
|
269 |
+
.done(function(msg) {
|
270 |
+
jQuery.ajax({
|
271 |
+
url: updatepaymenttypeurl,
|
272 |
+
type: "POST",
|
273 |
+
data: jQuery("#onestep_form").serialize(),
|
274 |
+
});
|
275 |
+
jQuery('#checkout-payment-method-load').html();
|
276 |
+
str = jQuery.parseJSON(msg);
|
277 |
+
jQuery('#tab-coupon').html(str.coupon);
|
278 |
+
jQuery('#checkout-review-load').html(str.view);
|
279 |
+
})
|
280 |
+
.fail(function() {
|
281 |
+
updateCoupon(code, isremove);
|
282 |
+
})
|
283 |
+
.always(function() {
|
284 |
+
updateShippingType(document.getElementById('billing:postcode'));
|
285 |
+
});
|
286 |
+
};
|
287 |
+
function removeProduct(id) {
|
288 |
+
hasgift = (typeof(jQuery('#allow-gift-message-container')) != 'undefined') ? 1 : 0;
|
289 |
+
|
290 |
+
jQuery.ajax({
|
291 |
+
type: "POST",
|
292 |
+
url: removeproducturl,
|
293 |
+
data: "id=" + id + '&hasgiftbox=' + hasgift,
|
294 |
+
beforeSend: function(){
|
295 |
+
jQuery('#message-box').html('');
|
296 |
+
},
|
297 |
+
success: function(msg) {
|
298 |
+
jQuery.ajax({
|
299 |
+
type: "POST",
|
300 |
+
url: updatepaymenttypeurl,
|
301 |
+
data: jQuery("#onestep_form").serialize(),
|
302 |
+
success: function(msg) {
|
303 |
+
jQuery('#checkout-payment-method-load').html(msg);
|
304 |
+
}
|
305 |
+
});
|
306 |
+
str = jQuery.parseJSON(msg);
|
307 |
+
if (str.view.search("<script") != 0) {
|
308 |
+
if (str.giftbox) {
|
309 |
+
jQuery('#checkout-review-load').html(str.view);
|
310 |
+
jQuery('#onepage-checkout-shipping-method-additional-load').html(str.giftbox);
|
311 |
+
} else {
|
312 |
+
jQuery('#checkout-review-load').html(str.view);
|
313 |
+
}
|
314 |
+
} else {
|
315 |
+
jQuery('#checkout-review-load').append(str.view);
|
316 |
+
}
|
317 |
+
}
|
318 |
+
});
|
319 |
+
updateShippingType(document.getElementById('billing:postcode'));
|
320 |
+
}
|
321 |
+
function logined()
|
322 |
+
{
|
323 |
+
<?php if(Mage::getSingleton('customer/session')->isLoggedIn()):?>
|
324 |
+
return 1;
|
325 |
+
<?php else: ?>
|
326 |
+
return 0;
|
327 |
+
<?php endif ?>
|
328 |
+
}
|
329 |
+
function hasaddress(){
|
330 |
+
<?php if(count(Mage::getSingleton('customer/session')->getCustomer()->getAddresses())): ?>
|
331 |
+
updateShippingType(document.getElementById('billing:postcode'));
|
332 |
+
return 1;
|
333 |
+
<?php else:?>
|
334 |
+
return 0;
|
335 |
+
<?php endif; ?>
|
336 |
+
}
|
337 |
+
function reDrawOnepage(versao)
|
338 |
+
{
|
339 |
+
if(versao == 2){
|
340 |
+
jQuery("#shipping_collum").css({'width':'100%','margin-bottom':'10px'});
|
341 |
+
jQuery("#payment_collum").css({'width':'100%', 'float':'left','margin-left': '0'});
|
342 |
+
};
|
343 |
+
if(versao == 4){
|
344 |
+
jQuery('body').addClass('moip-opc-2columns');
|
345 |
+
jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment').removeClass('row-fluid');
|
346 |
+
jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment').removeClass('grid12-12');
|
347 |
+
jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review').removeClass('row-fluid');
|
348 |
+
jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review').removeClass('grid12-12');
|
349 |
+
jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment .moip-osc-column').removeClass('grid12-6');
|
350 |
+
jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment .moip-osc-column').removeClass('span6');
|
351 |
+
jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment').addClass('grid12-6');
|
352 |
+
jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment').addClass('span6');
|
353 |
+
jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment .moip-osc-column').addClass('span12');
|
354 |
+
jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment .moip-osc-column').addClass('grid12-12');
|
355 |
+
jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review').addClass('span6');
|
356 |
+
jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review').addClass('grid12-6');
|
357 |
+
};
|
358 |
+
}
|
359 |
+
function removeProductId(product_id){
|
360 |
+
if(confirm("<?php echo $this->__('Tem certeza que deseja remover o produto?')?>")){
|
361 |
+
removeProduct(product_id);
|
362 |
+
}
|
363 |
+
}
|
364 |
+
function updateEmailmsg(val){
|
365 |
+
jQuery.ajax({
|
366 |
+
async:true,
|
367 |
+
type: "POST",
|
368 |
+
url: "<?php echo Mage::getUrl('onestepcheckout/index/updateemailmsg')?>",
|
369 |
+
data:"email="+val,
|
370 |
+
beforeSend: function(){
|
371 |
+
jQuery('#message-box').html('');
|
372 |
+
},
|
373 |
+
success: function(msg){
|
374 |
+
var error="<div id=\"message-box\"><div class=\"validation-advice\" style=\"position:relative;\">Email já cadastrado, por favor <a href=\"#inline1\" id=\"loginbox\">Clique aqui e faça o login</a></div></div>";
|
375 |
+
if(msg==0){
|
376 |
+
jQuery('#billing\\:email').after(error);
|
377 |
+
jQuery('#message-box').html(error);
|
378 |
+
}else{
|
379 |
+
if(logined()!=1){
|
380 |
+
jQuery('#message-box').html('');
|
381 |
+
}
|
382 |
+
jQuery('#billing\\:email').removeClass('validation-failed');
|
383 |
+
}
|
384 |
+
}
|
385 |
+
});
|
386 |
+
}
|
387 |
+
|
388 |
+
jQuery( window ).load(function() {
|
389 |
+
<?php if(Mage::helper('onestepcheckout')->onlyProductDownloadable()): ?>
|
390 |
+
reDrawOnepage('4');
|
391 |
+
<?php endif ?>
|
392 |
+
jQuery('#checkout-onepage-buttom').bind("click",function(e){
|
393 |
+
jQuery(".btn-checkout").attr("disabled", "disabled");
|
394 |
+
jQuery(".btn-checkout").hide();
|
395 |
+
jQuery('#co-payment-form').show();
|
396 |
+
var form = new VarienForm('onestep_form', true);
|
397 |
+
if(!form.validator.validate()) {
|
398 |
+
var logic= false;
|
399 |
+
if(logined()!=1){
|
400 |
+
val=jQuery('#billing\\:email').val();
|
401 |
+
emailvalidated=Validation.get('IsEmpty').test(val) || /^([a-z0-9,!\#\$%&'\*\+\/=\?\^_`\{\|\}~-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z0-9,!\#\$%&'\*\+\/=\?\^_`\{\|\}~-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*@([a-z0-9-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z0-9-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*\.(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]){2,})$/i.test(val);
|
402 |
+
if(val!="" && emailvalidated){
|
403 |
+
updateEmailmsg(val);
|
404 |
+
}
|
405 |
+
}
|
406 |
+
} else {
|
407 |
+
var logic= true;
|
408 |
+
if(logined()!=1){
|
409 |
+
var msgerror=1;
|
410 |
+
val=jQuery('#billing\\:email').val();
|
411 |
+
emailvalidated=Validation.get('IsEmpty').test(val) || /^([a-z0-9,!\#\$%&'\*\+\/=\?\^_`\{\|\}~-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z0-9,!\#\$%&'\*\+\/=\?\^_`\{\|\}~-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*@([a-z0-9-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z0-9-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*\.(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]){2,})$/i.test(val);
|
412 |
+
if(val!="" && emailvalidated){
|
413 |
+
msgerror=updateEmailmsg(val);
|
414 |
+
}
|
415 |
+
if(msgerror==0){
|
416 |
+
return false;
|
417 |
+
}
|
418 |
+
|
419 |
+
}
|
420 |
+
}
|
421 |
+
if(logic){
|
422 |
+
jQuery('#loading-mask').show();
|
423 |
+
jQuery('#onestep_form').submit();
|
424 |
+
return true;
|
425 |
+
} else {
|
426 |
+
jQuery('.btn-checkout').after('<a class="inline_erros" href="#inlineerros" style="display:none"></a>');
|
427 |
+
jQuery(".erros_cadastro_valores").html("");
|
428 |
+
var erro_dado = [];
|
429 |
+
var j = 0;
|
430 |
+
jQuery(".validation-failed").each(function() {
|
431 |
+
j++;
|
432 |
+
temp_erro = jQuery(this).attr("title");
|
433 |
+
if(jQuery.inArray(temp_erro, erro_dado) != 1){
|
434 |
+
erro_dado[j] = jQuery(this).attr("title");
|
435 |
+
jQuery(".erros_cadastro_valores").append('<li>'+erro_dado[j]+'</li>');
|
436 |
+
}
|
437 |
+
jQuery(".inline_erros").trigger( "click" );
|
438 |
+
});
|
439 |
+
if(jQuery.inArray("Meio de Envio", erro_dado) == 1){
|
440 |
+
jQuery('#checkout-shipping-method-loadding').append('<dt><div class="validation-advice" id="advice-required-entry_shipping" style="position:relative;">Você deverá selecionar uma forma de envio.</div></dt>');
|
441 |
+
}
|
442 |
+
|
443 |
+
jQuery('.validation-advice').delay(3000).fadeOut("slow");
|
444 |
+
jQuery(".btn-checkout").removeAttr("disabled");
|
445 |
+
jQuery(".btn-checkout").show("slow");
|
446 |
+
return false;
|
447 |
+
}
|
448 |
+
});
|
449 |
+
jQuery('#onestep_form :input').blur(function() {
|
450 |
+
if(jQuery(this).attr('id') != "billing:day" && jQuery(this).attr('id') != "billing:month"){
|
451 |
+
Validation.validate(jQuery(this).attr('id'));
|
452 |
+
}
|
453 |
+
});
|
454 |
+
jQuery("#billing\\:day").attr('maxlength', '2');
|
455 |
+
jQuery("#billing\\:day").attr('onkeyup', 'ProxCamp(this)');
|
456 |
+
jQuery("#billing\\:month").attr('maxlength', '2');
|
457 |
+
jQuery("#billing\\:month").attr('onkeyup', 'ProxCamp(this)');
|
458 |
+
jQuery("#billing\\:year").attr('maxlength', '4');
|
459 |
+
jQuery("#billing\\:year").attr('onkeyup', 'ProxCamp(this)');
|
460 |
+
if (!logined()) {
|
461 |
+
jQuery('#allow-gift-message-container').clearForm();
|
462 |
+
}
|
463 |
+
jQuery('[id="billing:postcode"]').addClass('required-entry');
|
464 |
+
jQuery('[id="shipping:postcode"]').addClass('required-entry');
|
465 |
+
jQuery('[id="billing:region_id"]').addClass('validate-select');
|
466 |
+
jQuery('[id="shipping:region_id"]').addClass('validate-select');
|
467 |
+
<?php if(Mage::getStoreConfig('onestepcheckout/layout/page_layout')==2 || Mage::helper('onestepcheckout')->onlyProductDownloadable() || Mage::getStoreConfig('onestepcheckout/layout/page_layout')==4):?>
|
468 |
+
reDrawOnepage("<?php echo Mage::getStoreConfig('onestepcheckout/layout/page_layout'); ?>");
|
469 |
+
<?php endif?>
|
470 |
+
if (logined()) {
|
471 |
+
if (!has_default_billing()) {
|
472 |
+
jQuery('#billing-new-address-form').clearForm();
|
473 |
+
jQuery('#shipping-new-address-form').clearForm();
|
474 |
+
}
|
475 |
+
} else {
|
476 |
+
jQuery('#billing-new-address-form').clearForm();
|
477 |
+
jQuery('#shipping-new-address-form').clearForm();
|
478 |
+
}
|
479 |
+
<?php
|
480 |
+
$islogin=0;
|
481 |
+
if(Mage::getSingleton('customer/session')->isLoggedIn()){
|
482 |
+
$islogin=1;
|
483 |
+
}
|
484 |
+
?>
|
485 |
+
<?php if($islogin){
|
486 |
+
$Email_customer = Mage::getSingleton('customer/session')->getCustomer()->getEmail();
|
487 |
+
$first_name = Mage::getSingleton('customer/session')->getCustomer()->getFirstname();
|
488 |
+
$Last_name = Mage::getSingleton('customer/session')->getCustomer()->getLastname();
|
489 |
+
$taxvat = Mage::getSingleton('customer/session')->getCustomer()->getTaxvat();
|
490 |
+
?>
|
491 |
+
|
492 |
+
jQuery("#billing\\:email").val("<?php echo $Email_customer; ?>");
|
493 |
+
jQuery("#billing\\:firstname").val("<?php echo $first_name; ?>");
|
494 |
+
jQuery("#billing\\:lastname").val("<?php echo $Last_name; ?>");
|
495 |
+
jQuery("#billing\\:taxvat").val("<?php echo $taxvat; ?>");
|
496 |
+
<?php } ?>
|
497 |
+
<?php if(!Mage::helper('onestepcheckout')->onlyProductDownloadable()):?>
|
498 |
+
jQuery('#credito_numero').focus(function() {
|
499 |
+
if(!jQuery("input[name='shipping_method']:checked").val()){
|
500 |
+
jQuery('.form-list.cartao').html("Desculpe, Selecione primeiramente a Forma de Envio no passo 2.");
|
501 |
+
}
|
502 |
+
});
|
503 |
+
<?php endif?>
|
504 |
+
});
|
505 |
//]]>
|
506 |
</script>
|
507 |
+
|
508 |
+
|
app/design/frontend/base/default/template/MOIP/transparente/boleto.phtml
CHANGED
@@ -1,73 +1,22 @@
|
|
1 |
<?php $session = Mage::getSingleton('checkout/session'); ?>
|
2 |
-
<?php $result_decode = $session->getResult_decode(); ?>
|
3 |
-
<?php $client_array = $session->getClient_array(); ?>
|
4 |
<?php $pgtoArraya = $session->getPgtoarry(); ?>
|
5 |
-
<?php $
|
6 |
-
$customerData = "";
|
7 |
-
|
8 |
-
if(Mage::getSingleton('customer/session')->isLoggedIn()) {
|
9 |
-
$customerData = Mage::getSingleton('customer/session')->getCustomer();
|
10 |
-
}
|
11 |
-
if (Mage::getSingleton('transparente/standard')->getConfigData('ambiente') == "teste") {
|
12 |
-
$url = "https://desenvolvedor.moip.com.br/sandbox/Instrucao.do?token=";
|
13 |
-
$urljs = "https://desenvolvedor.moip.com.br/sandbox/";
|
14 |
-
}
|
15 |
-
else {
|
16 |
-
$url = "https://www.moip.com.br/Instrucao.do?token=";
|
17 |
-
$urljs = "https://www.moip.com.br/";
|
18 |
-
}
|
19 |
-
?>
|
20 |
-
<?php if (!Mage::helper('core/cookie')->isUserNotAllowSaveCookie()): ?>
|
21 |
-
<?php $accountId = 'UA-33860171-1' ?>
|
22 |
-
<script type="text/javascript">
|
23 |
-
//<![CDATA[
|
24 |
-
var _gaq = _gaq || [];
|
25 |
-
_gaq.push(['_setAccount', '<?php echo Mage::getStoreConfig("moipall/google/idgoogle") ?>']);
|
26 |
-
<?php echo $this->getTrackingTransparente($client_array); ?>
|
27 |
-
(function() {
|
28 |
-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
29 |
-
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
30 |
-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
31 |
-
})();
|
32 |
-
//]]>
|
33 |
-
</script>
|
34 |
-
<?php endif; ?>
|
35 |
-
<?php $order = Mage::getModel('sales/order')->load($pgtoArray['id_transacao']); ?>
|
36 |
-
<?php $this->getSaveDate($pgtoArray['id_transacao'], $result_decode, $customerData, $pgtoArraya, $client_array); ?>
|
37 |
-
|
38 |
-
<script type="text/javascript" charset="ISO-8859-1" src="<?php echo $urljs ?>transparente/MoipWidget-v2.js" onerror="erro_mail('erro caiu o transparente widget')" ></script>
|
39 |
-
<div id="MoipWidget" data-token="<?php echo $result_decode['token'] ?>" callback-method-error="erroValidacao" callback-method-success="sucesso"></div>
|
40 |
-
<div class="row grid-full">
|
41 |
-
<div class="grid12-12">
|
42 |
-
<h3>Seu pedido foi enviado com sucesso, <strong><?php echo $client_array['pagador_nome'] ?></strong>!</h3>
|
43 |
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
</div>
|
49 |
-
<button class="btn-transparente btn-boleto buttontransparente" onclick="abre_boleto()" ><img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem/printer.png') ?>" alt="" />Visualize o boleto<span>clique aqui</span></button>
|
50 |
-
<div class="row boleto-can-pay">
|
51 |
-
<strong>
|
52 |
-
<h3>Você sabia que:</h3>
|
53 |
-
</strong>
|
54 |
-
<h3>Pode pagar o seu boleto bancário pelo celular ou pela internet?</h3>
|
55 |
-
<h3></h3>
|
56 |
-
</div>
|
57 |
</div>
|
58 |
-
<
|
59 |
-
|
60 |
-
|
61 |
-
<
|
62 |
-
|
63 |
-
|
64 |
-
<div class="row">
|
65 |
-
<a href="<?php echo Mage::helper('core/url')->getHomeUrl(); ?>" class="back-to-store">Voltar para a home</a>
|
66 |
-
</div>
|
67 |
</div>
|
68 |
</div>
|
69 |
-
|
70 |
-
|
71 |
<!-- js importantes não alterem -->
|
72 |
<script type="text/javascript">
|
73 |
//<![CDATA[
|
@@ -91,11 +40,11 @@ if (Mage::getSingleton('transparente/standard')->getConfigData('ambiente') == "t
|
|
91 |
|
92 |
});
|
93 |
var sucesso = function(data){
|
94 |
-
jQuery(".modal-body").append("<iframe hspace=\"0\" vspace=\"0\" width=\"650\" height=\"900\" scrolling= \"no\" frameBorder=\"0\" allowtransparency=\"true\" src=\"<?php echo $
|
95 |
};
|
96 |
|
97 |
var erroValidacao = function(data){
|
98 |
alert(data);
|
99 |
};
|
100 |
//]]>
|
101 |
-
</script>
|
1 |
<?php $session = Mage::getSingleton('checkout/session'); ?>
|
|
|
|
|
2 |
<?php $pgtoArraya = $session->getPgtoarry(); ?>
|
3 |
+
<?php $result_decode = $session->getResult_decode(); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
+
<div class="corpo_transparente grid12-5 alpha">
|
6 |
+
<div class="method-type boleto-title">
|
7 |
+
<h3>Falta apenas um passo para finalizar sua compra.</h3>
|
8 |
+
<h4>Imprima seu boleto e faça o pagamento em qualquer banco.</h4>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
</div>
|
10 |
+
<button class="btn-transparente btn-boleto buttontransparente" onclick="abre_boleto()" ><img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem/printer.png') ?>" alt="" />Visualize o boleto<span>clique aqui</span></button>
|
11 |
+
<div class="row boleto-can-pay">
|
12 |
+
<strong>
|
13 |
+
<h3>Você sabia que:</h3>
|
14 |
+
</strong>
|
15 |
+
<h3>Pode pagar o seu boleto bancário pelo celular ou pela internet?</h3>
|
|
|
|
|
|
|
16 |
</div>
|
17 |
</div>
|
18 |
+
|
19 |
+
|
20 |
<!-- js importantes não alterem -->
|
21 |
<script type="text/javascript">
|
22 |
//<![CDATA[
|
40 |
|
41 |
});
|
42 |
var sucesso = function(data){
|
43 |
+
jQuery(".modal-body").append("<iframe hspace=\"0\" vspace=\"0\" width=\"650\" height=\"900\" scrolling= \"no\" frameBorder=\"0\" allowtransparency=\"true\" src=\"<?php echo $this->getUrlAmbiente(); ?>Instrucao.do?token=<?php echo $result_decode['token'] ?>\"> </iframe>");
|
44 |
};
|
45 |
|
46 |
var erroValidacao = function(data){
|
47 |
alert(data);
|
48 |
};
|
49 |
//]]>
|
50 |
+
</script>
|
app/design/frontend/base/default/template/MOIP/transparente/cartao.phtml
CHANGED
@@ -1,209 +1,159 @@
|
|
1 |
<?php $session = Mage::getSingleton('checkout/session'); ?>
|
2 |
-
<?php $result_decode = $session->getResult_decode(); ?>
|
3 |
-
<?php $client_array = $session->getClient_array(); ?>
|
4 |
<?php $pgtoArraya = $session->getPgtoarry(); ?>
|
5 |
-
<?php $
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
}
|
18 |
-
?>
|
19 |
-
<?php if (!Mage::helper('core/cookie')->isUserNotAllowSaveCookie()): ?>
|
20 |
-
<?php $accountId = 'UA-33860171-1' ?>
|
21 |
-
<script type="text/javascript">
|
22 |
-
//<![CDATA[
|
23 |
-
var _gaq = _gaq || [];
|
24 |
-
_gaq.push(['_setAccount', '<?php echo Mage::getStoreConfig("moipall/google/idgoogle") ?>']);
|
25 |
-
<?php echo $this->getTrackingTransparente($client_array); ?>
|
26 |
-
(function() {
|
27 |
-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
28 |
-
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
29 |
-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
30 |
-
})();
|
31 |
-
//]]>
|
32 |
-
</script>
|
33 |
-
<?php endif; ?>
|
34 |
-
<?php $order = Mage::getModel('sales/order')->load($pgtoArray['id_transacao']); ?>
|
35 |
-
<?php $this->getSaveDate($pgtoArray['id_transacao'], $result_decode, $customerData, $pgtoArraya, $client_array); ?>
|
36 |
-
|
37 |
-
<script type="text/javascript" charset="ISO-8859-1" src="<?php echo $urljs ?>transparente/MoipWidget-v2.js" onerror="erro_mail('erro caiu o transparente widget')" ></script>
|
38 |
-
<div id="MoipWidget" data-token="<?php echo $result_decode['token'] ?>" callback-method-error="erroValidacao" callback-method-success="sucesso"></div>
|
39 |
-
<div class="row grid-full">
|
40 |
-
<div class="section clearer grid12-12 ">
|
41 |
-
<h3>Seu pedido foi enviado com sucesso, <strong><?php echo $client_array['pagador_nome'] ?></strong>!</h3>
|
42 |
-
|
43 |
-
<div class="corpo_transparente grid12-5 ">
|
44 |
-
<div class="pgcartao">
|
45 |
-
|
46 |
-
<div class="method-type cc-title">
|
47 |
-
<h3>Cartão de Crédito</h3>
|
48 |
-
<div class="loader"/>Por favor, aguarde!</br><img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem/ajax-loader.gif'); ?>" border="0"></div>
|
49 |
-
</div>
|
50 |
-
<div id="pgcartao">
|
51 |
-
<div id="statustransparente"></div>
|
52 |
-
<div id="statustransparenteadd"></div>
|
53 |
-
</div>
|
54 |
-
|
55 |
-
<div class="warning-block" style="display:none">
|
56 |
-
<h3>O Pagamento não pode ser realizado</h3>
|
57 |
-
<strong>Erros Apresentados:</strong>
|
58 |
-
<div class="error-msg"><ul class="erros_transparente"></ul></div>
|
59 |
-
</div>
|
60 |
-
<div style="display: none;" id="loading-mask">
|
61 |
-
<p id="loading_mask_loader" class="loader"><img alt="Loading..." src="<?php echo $this->getSkinUrl('MOIP/onestepcheckout/images/ajax-loader-tr.gif')?>"><br>Realizando pagamento, por favor aguarde...</p>
|
62 |
-
</div>
|
63 |
-
<div class="repeat_cartao" style="display:none;clear:both;">
|
64 |
-
<div class="title_refaz"><h3>Você poderá refazer o pagamento usando o formulário abaixo</h3></div>
|
65 |
-
<?php echo $this->getChildHtml('cartao_form'); ?>
|
66 |
-
</div>
|
67 |
-
|
68 |
-
</div>
|
69 |
-
</div>
|
70 |
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
</div>
|
84 |
</div>
|
85 |
</div>
|
86 |
-
<?php echo Mage::getStoreConfig("moipall/google/outros_funil"); ?>
|
87 |
<script type="text/javascript">
|
88 |
//<![CDATA[
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
}
|
153 |
-
jQuery(".erros_transparente").html("");
|
154 |
-
jQuery(".erros_transparente").append(infosTransparente);
|
155 |
-
}
|
156 |
-
}
|
157 |
-
jQuery(document).ready(function(){
|
158 |
-
var settings = <?php echo $this->getJson($pgtoArraya); ?>;
|
159 |
-
MoipWidget(settings);
|
160 |
-
});
|
161 |
-
|
162 |
-
jQuery("#refazercartao").submit(function(e){
|
163 |
-
jQuery(".warning-block").hide();
|
164 |
-
jQuery(".title_refaz").hide();
|
165 |
-
jQuery("#pgcartao").hide();
|
166 |
-
jQuery(".loading-mask").show();
|
167 |
-
var postData = jQuery(this).serializeArray();
|
168 |
-
var formURL = jQuery(this).attr("action");
|
169 |
-
jQuery.ajax(
|
170 |
-
{
|
171 |
-
url : formURL,
|
172 |
-
type: "POST",
|
173 |
-
data : postData,
|
174 |
-
success:function(data, textStatus, jqXHR)
|
175 |
-
{
|
176 |
-
jQuery("#loading-mask").hide();
|
177 |
-
var settings =
|
178 |
-
{
|
179 |
-
"Forma": "CartaoCredito",
|
180 |
-
"Instituicao": jQuery("#bandeira").val(),
|
181 |
-
"Parcelas": jQuery("#Parcelas").val(),
|
182 |
-
"CartaoCredito":
|
183 |
-
{
|
184 |
-
"Numero": jQuery("input[name=Numero]").val(),
|
185 |
-
"Expiracao": jQuery("input[name=Expiracao_mes]").val()+'/'+jQuery("input[name=Expiracao_ano]").val(),
|
186 |
-
"CodigoSeguranca": jQuery("input[name=CodigoSeguranca]").val(),
|
187 |
-
"Portador": {
|
188 |
-
"Nome" : jQuery("input[name=Portador]").val(),
|
189 |
-
"DataNascimento": jQuery("input[name=DataNascimento]").val(),
|
190 |
-
"Telefone": jQuery("input[name=Telefone]").val(),
|
191 |
-
"Identidade": jQuery("input[name=CPF]").val()
|
192 |
-
}
|
193 |
-
}
|
194 |
-
}
|
195 |
-
sendToCreditCard2(settings);
|
196 |
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
|
|
|
|
|
|
|
|
202 |
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
//]]>
|
209 |
</script>
|
1 |
<?php $session = Mage::getSingleton('checkout/session'); ?>
|
|
|
|
|
2 |
<?php $pgtoArraya = $session->getPgtoarry(); ?>
|
3 |
+
<?php $result_decode = $session->getResult_decode(); ?>
|
4 |
+
<div class="corpo_transparente grid12-5 alpha">
|
5 |
+
<div class="pgcartao">
|
6 |
+
<div class="method-type cc-title">
|
7 |
+
<h3>Cartão de Crédito</h3>
|
8 |
+
<div class="loader"/>Por favor, aguarde!<p><img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem/ajax-loader.gif'); ?>" border="0"></p></div>
|
9 |
+
</div>
|
10 |
+
<div id="pgcartao">
|
11 |
+
<div id="statustransparente"></div>
|
12 |
+
<div id="statustransparenteadd"></div>
|
13 |
+
<div id="statustransparenteadd2"></div>
|
14 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
+
<div class="warning-block" style="display:none">
|
17 |
+
<h3>O Pagamento não pode ser realizado</h3>
|
18 |
+
<strong>Erros Apresentados:</strong>
|
19 |
+
<div class="error-msg"><ul class="erros_transparente"></ul></div>
|
20 |
+
</div>
|
21 |
+
<div style="display: none;" id="loading-mask">
|
22 |
+
<p id="loading_mask_loader" class="loader"><img alt="Loading..." src="<?php echo $this->getSkinUrl('MOIP/onestepcheckout/images/ajax-loader-tr.gif')?>"><br>Realizando pagamento, por favor aguarde...</p>
|
23 |
+
</div>
|
24 |
+
<div class="repeat_cartao" style="display:none;clear:both;">
|
25 |
+
<div class="title_refaz"><h3>Você poderá refazer o pagamento usando o formulário abaixo</h3></div>
|
26 |
+
<?php echo $this->getChildHtml('cartao_form'); ?>
|
27 |
+
</div>
|
|
|
28 |
</div>
|
29 |
</div>
|
|
|
30 |
<script type="text/javascript">
|
31 |
//<![CDATA[
|
32 |
+
var erroValidacao = "";
|
33 |
+
var sucesso = "";
|
34 |
+
var sucesso = function(data){
|
35 |
+
if (data.Status == "Cancelado"){
|
36 |
+
jQuery(".repeat_cartao").show();
|
37 |
+
jQuery(".warning-block").css({display:"block"});
|
38 |
+
jQuery(".loader").css({display:"none"});
|
39 |
+
jQuery("#statustransparente").html("<h3>Pagamento Cancelado</h3>");
|
40 |
+
jQuery("#statustransparenteadd").html("Transação não aprovada.");
|
41 |
+
if(data.hasOwnProperty(data.Classificacao)){
|
42 |
+
var motivo = JSON.stringify(data.Classificacao.Descricao);
|
43 |
+
} else{
|
44 |
+
var motivo = "semretorno";
|
45 |
+
}
|
46 |
+
if(motivo == '"Desconhecido"'){
|
47 |
+
jQuery(".erros_transparente").html("Seus dados estão incorretos ou não podemos envia-los a operadora de crédito.");
|
48 |
+
}
|
49 |
+
if(motivo == '"Transação não processada"'){
|
50 |
+
jQuery(".erros_transparente").html("O pagamento não pode ser processado.</br>Por favor, tente novamente.</br>Caso o erro persista, entre em contato com o nosso atendimento.");
|
51 |
+
}
|
52 |
+
if(motivo == '"Política de segurança do Transparente"'){
|
53 |
+
jQuery(".erros_transparente").html("Pagamento não autorizado.</br>Entre em contato com o seu banco antes de uma nova tentativa.");
|
54 |
+
}
|
55 |
+
if(motivo == '"Política de segurança do Banco Emissor"'){
|
56 |
+
jQuery(".erros_transparente").html("O pagamento não foi autorizado pelo Banco Emissor do seu Cartão.</br>Entre em contato com o Banco para entender o motivo e refazer o pagamento..");
|
57 |
+
}
|
58 |
+
if(motivo == '"Cartão vencido"'){
|
59 |
+
jQuery(".erros_transparente").html("A validade do seu Cartão expirou.</br>Escolha outra forma de pagamento para concluir o pagamento.");
|
60 |
+
}
|
61 |
+
if(motivo == '"Dados inválidos"'){
|
62 |
+
jQuery(".erros_transparente").html("Dados informados inválidos.</br>Você digitou algo errado durante o preenchimento dos dados do seu Cartão.</br>Certifique-se de que está usando o Cartão correto e faça uma nova tentativa.");
|
63 |
+
}
|
64 |
+
if(motivo =='semretorno' ){
|
65 |
+
jQuery(".erros_transparente").html("Verifique os dados e tente pagar novamente.");
|
66 |
+
}
|
67 |
+
}
|
68 |
+
if (data.Status == "EmAnalise"){
|
69 |
+
jQuery(".loader").css({display:"none"});
|
70 |
+
jQuery("#pgcartao").css({display:"block"});
|
71 |
+
jQuery("#statustransparente").css({display:"block"});
|
72 |
+
jQuery("#statustransparente").html("<h3>Pagamento Aguardando Aprovação</h3>");
|
73 |
+
jQuery("#statustransparenteadd").html("Por favor, aguarde a análise da transação. Assim que for alterado o status você será informado via e-mail.");
|
74 |
+
jQuery("#statustransparenteadd2").html("Este Pagamento foi processado por Moip S/A, a equipe de análise de risco poderá entrar em contato para confirmar dados da transação.");
|
75 |
+
|
76 |
+
}
|
77 |
+
if (data.Status == "Autorizado"){
|
78 |
+
jQuery(".loader").css({display:"none"});
|
79 |
+
jQuery("#statustransparente").html("<h3>Pagamento Aprovado</h3>");
|
80 |
+
jQuery("#statustransparenteadd").html("Por favor, aguarde o processo de envio.");
|
81 |
+
|
82 |
+
}
|
83 |
+
}
|
84 |
+
var erroValidacao = function(data) {
|
85 |
+
jQuery(".repeat_cartao").show();
|
86 |
+
jQuery(".loading-mask").hide();
|
87 |
+
jQuery(".loader").css({display:"none"});
|
88 |
+
jQuery(".warning-block").show();
|
89 |
+
infosTransparente = '<li class="erro" style="list-style: none;margin-left: 29px;font-weight: bold;">'+data.Mensagem+'</li>';
|
90 |
+
jQuery(".erros_transparente").html("");
|
91 |
+
jQuery(".erros_transparente").append(infosTransparente);
|
92 |
+
var infosTransparente ="";
|
93 |
+
for (i=0; i<data.length; i++) {
|
94 |
+
Transparente = data[i];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
|
96 |
+
for(j in Transparente)
|
97 |
+
{
|
98 |
+
atributo = j;
|
99 |
+
if(atributo == "Mensagem")
|
100 |
+
{
|
101 |
+
valor = Transparente[j];
|
102 |
+
infosTransparente = '<li class="erro" style="list-style: none;margin-left: 29px;font-weight: bold;">'+valor+'</li>';
|
103 |
+
}
|
104 |
+
}
|
105 |
|
106 |
+
jQuery(".erros_transparente").html("");
|
107 |
+
jQuery(".erros_transparente").append(infosTransparente);
|
108 |
+
}
|
109 |
+
}
|
110 |
+
jQuery(document).ready(function(){
|
111 |
+
var settings = <?php echo $this->getJson($pgtoArraya); ?>;
|
112 |
+
MoipWidget(settings);
|
113 |
+
});
|
114 |
+
jQuery("#refazercartao").submit(function(e){
|
115 |
+
jQuery(".warning-block").hide();
|
116 |
+
jQuery(".title_refaz").hide();
|
117 |
+
jQuery("#pgcartao").hide();
|
118 |
+
jQuery(".loading-mask").show();
|
119 |
+
var postData = jQuery(this).serializeArray();
|
120 |
+
var formURL = jQuery(this).attr("action");
|
121 |
+
jQuery.ajax(
|
122 |
+
{
|
123 |
+
url : formURL,
|
124 |
+
type: "POST",
|
125 |
+
data : postData,
|
126 |
+
success:function(data, textStatus, jqXHR)
|
127 |
+
{
|
128 |
+
jQuery("#loading-mask").hide();
|
129 |
+
var settings =
|
130 |
+
{
|
131 |
+
"Forma": "CartaoCredito",
|
132 |
+
"Instituicao": jQuery("#bandeira").val(),
|
133 |
+
"Parcelas": jQuery("#Parcelas").val(),
|
134 |
+
"CartaoCredito":
|
135 |
+
{
|
136 |
+
"Numero": jQuery("input[name=Numero]").val(),
|
137 |
+
"Expiracao": jQuery("input[name=Expiracao_mes]").val()+'/'+jQuery("input[name=Expiracao_ano]").val(),
|
138 |
+
"CodigoSeguranca": jQuery("input[name=CodigoSeguranca]").val(),
|
139 |
+
"Portador": {
|
140 |
+
"Nome" : jQuery("input[name=Portador]").val(),
|
141 |
+
"DataNascimento": jQuery("input[name=DataNascimento]").val(),
|
142 |
+
"Telefone": jQuery("input[name=Telefone]").val(),
|
143 |
+
"Identidade": jQuery("input[name=CPF]").val()
|
144 |
+
}
|
145 |
+
}
|
146 |
+
}
|
147 |
+
sendToCreditCard2(settings);
|
148 |
+
},
|
149 |
+
|
150 |
+
});
|
151 |
+
e.preventDefault();
|
152 |
+
});
|
153 |
+
function sendToCreditCard2(valores){
|
154 |
+
var settings = valores
|
155 |
+
MoipWidget(settings);
|
156 |
+
jQuery(".loading-mask").hide();
|
157 |
+
}
|
158 |
//]]>
|
159 |
</script>
|
app/design/frontend/base/default/template/MOIP/transparente/cartoes_my_account.phtml
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php $cofre = $this->getCofre(); ?>
|
2 |
+
<?php if($cofre !="false"): ?>
|
3 |
+
<h2>Gerencie Seus Cartões</h2>
|
4 |
+
<p>Seus cartões são mantidos plenamente seguros, os dados aqui mostrados possuem apenas informações públicas sobre eles, sendo criado pela bandeira de seu cartão apenas uma chave codificada
|
5 |
+
que nos permite acessa-los quando você for realizar um novo pedido.</p>
|
6 |
+
<p>Essa chave é válida únicamente para a nossa loja, não sendo aceita em demais estabeleciomentos.</p>
|
7 |
+
|
8 |
+
|
9 |
+
<?php $cofre = Mage::helper('core')->jsonDecode($cofre); ?>
|
10 |
+
<form method="POST" action='<?php echo Mage::getBaseUrl('web', true); ?>transparente/index/Remove/' id="remove_card" class="remove_card">
|
11 |
+
<div class="block block-account">
|
12 |
+
<div class="block-title">
|
13 |
+
<strong><span>Remova seus Cartões</span></strong>
|
14 |
+
</div>
|
15 |
+
<div class="block-content">
|
16 |
+
|
17 |
+
<ul class="form-list-cofre">
|
18 |
+
<?php foreach ($cofre as $key => $value): ?>
|
19 |
+
<?php $cardBrand = $value['brand_transparente'] ?>
|
20 |
+
<?php $cardNunber = $value['cofre'] ?>
|
21 |
+
<li class="cofre">
|
22 |
+
<label>
|
23 |
+
<div class="radio_cofre">
|
24 |
+
<input id="cartao_remove" class="validate-one-required-by-name" type="radio" name="cofre_remove" title="Cartão de Crédito Salvo" value="<?php echo $cardNunber ?>">
|
25 |
+
</div>
|
26 |
+
<div class="image_cofre">
|
27 |
+
<img src="<?php echo $this->imageCofre($value['brand_transparente']); ?>" alt="<?php echo $value['brand_transparente']; ?>" border="0">
|
28 |
+
</div>
|
29 |
+
<div class="cofre_number">
|
30 |
+
<h4 class="brand_title"><?php echo $value['brand_transparente']; ?> </h4>
|
31 |
+
<?php echo $value['first6'] ?> ** **** <?php echo $value['last4'] ?>
|
32 |
+
</div>
|
33 |
+
</label>
|
34 |
+
</li>
|
35 |
+
<?php endforeach; ?>
|
36 |
+
</ul>
|
37 |
+
<div class="action_remove">
|
38 |
+
<button type="submit" title="Remover" class="button"><span><span>Remover</span></span></button>
|
39 |
+
</div>
|
40 |
+
</div>
|
41 |
+
</div>
|
42 |
+
</form>
|
43 |
+
|
44 |
+
<script type="text/javascript">
|
45 |
+
//<![CDATA[
|
46 |
+
var remove_card = new VarienForm('remove_card');
|
47 |
+
|
48 |
+
jQuery("#remove_card").submit(function(e){
|
49 |
+
if(remove_card.validator.validate()){
|
50 |
+
var postData = jQuery(this).serializeArray();
|
51 |
+
var formURL = jQuery(this).attr("action");
|
52 |
+
jQuery("#remove_card").hide();
|
53 |
+
jQuery("#loading_mask_loader").show();
|
54 |
+
jQuery.ajax(
|
55 |
+
{
|
56 |
+
url : formURL,
|
57 |
+
type: "POST",
|
58 |
+
data : postData,
|
59 |
+
success:function(data, textStatus, jqXHR)
|
60 |
+
{
|
61 |
+
location.reload();
|
62 |
+
},
|
63 |
+
|
64 |
+
});
|
65 |
+
}
|
66 |
+
e.preventDefault();
|
67 |
+
});
|
68 |
+
//]]>
|
69 |
+
</script>
|
70 |
+
<?php else: ?>
|
71 |
+
<h2>Você ainda não salvou o seu cartão</h2>
|
72 |
+
<p>Seus cartões são mantidos plenamente seguros, os dados aqui mostrados possuem apenas informações públicas sobre eles, sendo criado pela bandeira de seu cartão apenas uma chave codificada
|
73 |
+
que nos permite acessa-los quando você for realizar um novo pedido.</p>
|
74 |
+
<p>Essa chave é válida únicamente para a nossa loja, não sendo aceita em demais estabeleciomentos.</p>
|
75 |
+
<h4>Para Salvar seus cartões é fácil:</h4>
|
76 |
+
<p>Em sua próxima compra basta marcar o campo: "Salvar Cartão para Compra Futura", ele fica logo a baixo do campo "Opções de Parcelamento" no checkout de sua página.</p>
|
77 |
+
<?php endif; ?>
|
app/design/frontend/base/default/template/MOIP/transparente/form.phtml
DELETED
@@ -1,682 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$standad = Mage::getSingleton('transparente/standard');
|
3 |
-
$api = Mage::getSingleton('transparente/api');
|
4 |
-
$api->setContaTransparente($standad->getConfigData('conta_transparente'));
|
5 |
-
$api->setAmbiente($standad->getConfigData('ambiente'));
|
6 |
-
$parcelas = "";
|
7 |
-
$descontotexto = "";
|
8 |
-
$asterisco = "";
|
9 |
-
$nome = "";
|
10 |
-
$telefone = "";
|
11 |
-
$cpf = "";
|
12 |
-
$dn = "";
|
13 |
-
$icone_cartao = $this->getSkinUrl('MOIP/transparente/imagem/abacartao.png');
|
14 |
-
$icone_boleto = $this->getSkinUrl('MOIP/transparente/imagem/ababoleto.png');
|
15 |
-
$icone_transf = $this->getSkinUrl('MOIP/transparente/imagem/abatransf.png');
|
16 |
-
$cartao_visa = $this->getSkinUrl('MOIP/transparente/imagem/Visa.png');
|
17 |
-
$cartao_master = $this->getSkinUrl('MOIP/transparente/imagem/Mastercard.png');
|
18 |
-
$cartao_diners = $this->getSkinUrl('MOIP/transparente/imagem/Diners.png');
|
19 |
-
$cartao_american = $this->getSkinUrl('MOIP/transparente/imagem/AmericanExpress.png');
|
20 |
-
$cartao_hipercard = $this->getSkinUrl('MOIP/transparente/imagem/Hipercard.png');
|
21 |
-
$boleto = $this->getSkinUrl('MOIP/transparente/imagem/Bradesco.png');
|
22 |
-
$cartao_bb = $this->getSkinUrl('MOIP/transparente/imagem/BancoDoBrasil.png');
|
23 |
-
$cartao_bradesco = $this->getSkinUrl('MOIP/transparente/imagem/Bradesco.png');
|
24 |
-
$cartao_itau = $this->getSkinUrl('MOIP/transparente/imagem/Itau.png');
|
25 |
-
$cartao_banrisul = $this->getSkinUrl('MOIP/transparente/imagem/Banrisul.png');
|
26 |
-
if(Mage::getStoreConfig('moipall/config/trocar_icone')):
|
27 |
-
$icone_cartao = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/icone_cartao');
|
28 |
-
$icone_boleto = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/icone_boleto');
|
29 |
-
$icone_transf = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/icone_transf');
|
30 |
-
endif;
|
31 |
-
if(Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')):
|
32 |
-
$cartao_visa = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_visa');
|
33 |
-
$cartao_master = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_master');
|
34 |
-
$cartao_diners = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_diners');
|
35 |
-
$cartao_american = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_american');
|
36 |
-
$cartao_hipercard = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_hipercard');
|
37 |
-
endif;
|
38 |
-
if(Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')):
|
39 |
-
$cartao_bb = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_bb');
|
40 |
-
$cartao_bradesco = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_bradesco');
|
41 |
-
$cartao_itau = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_itau');
|
42 |
-
$cartao_banrisul = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_banrisul');
|
43 |
-
endif;
|
44 |
-
if(Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')):
|
45 |
-
$boleto = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/boleto');
|
46 |
-
endif;
|
47 |
-
$mostraboleto = 1;
|
48 |
-
$nivelestoque = $standad->getConfigData('estoqueboleto');
|
49 |
-
$idcount = 0;
|
50 |
-
echo "tokem". Mage::registry('xml');
|
51 |
-
$_Produtos = Mage::getSingleton('checkout/cart')->getQuote()->getAllItems();
|
52 |
-
foreach ($_Produtos as $value)
|
53 |
-
{
|
54 |
-
$item_ID = $value->getProductId();
|
55 |
-
$_Product = Mage::getModel('catalog/product')->load($item_ID);
|
56 |
-
$model = Mage::getModel('catalog/product');
|
57 |
-
$_product = $model->load($item_ID);
|
58 |
-
$stocklevel[$idcount] = (int)Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty();
|
59 |
-
$nomeprod[$idcount] = $model->getName();
|
60 |
-
$idcount = $idcount + 1;
|
61 |
-
}
|
62 |
-
$idcount = $idcount - 1;
|
63 |
-
$teste = 0;
|
64 |
-
while($teste <= $idcount )
|
65 |
-
{
|
66 |
-
if ($stocklevel[$teste] <= $nivelestoque){
|
67 |
-
$prodbaixostock = "O Produto <b>". $nomeprod[$teste] . "</b> está com o estoque baixo (<b>menos de ". $stocklevel[$teste] ." unidades</b>) e não poderá ser pago com boleto. </br>A quantidade mínima de um produto em estoque para compra por boleto deverá ser de: <b>". $nivelestoque . " Produtos.</b> ";
|
68 |
-
$mostraboleto = 0;
|
69 |
-
}
|
70 |
-
$teste++;
|
71 |
-
}
|
72 |
-
|
73 |
-
$descont_boleto = Mage::getStoreConfig('parcelamento_de2');
|
74 |
-
$virtual = Mage::helper('onestepcheckout')->onlyProductDownloadable();
|
75 |
-
if ($virtual){
|
76 |
-
$data = $standad->getQuote()->getBillingAddress();
|
77 |
-
}
|
78 |
-
else {
|
79 |
-
$data = $standad->getQuote()->getShippingAddress();
|
80 |
-
}
|
81 |
-
$valor_pedido = $data->getGrandTotal();
|
82 |
-
$valor_parc = $data->getGrandTotal();
|
83 |
-
$valor_parc = number_format($valor_parc,2);
|
84 |
-
|
85 |
-
if($valor_pedido > 5):
|
86 |
-
$parcelamento = $api->getParcelamento($data->getGrandTotal());
|
87 |
-
foreach ($parcelamento as $k => $v):
|
88 |
-
if($v['juros'] == "1.99"):
|
89 |
-
$asterisco = "*";
|
90 |
-
else:
|
91 |
-
$parcelas_sem_juros = $k;
|
92 |
-
endif;
|
93 |
-
|
94 |
-
$parcelas .= "<option value=\"".$k."\"> ".$k."x R$ " . $v['valor'] . "".$asterisco." | Total: R$ " .$v['total']."</option>";
|
95 |
-
endforeach;
|
96 |
-
else:
|
97 |
-
$parcelas .= "<option value=\"1\"> Pagamento à vista </option>";
|
98 |
-
endif;
|
99 |
-
|
100 |
-
|
101 |
-
if (Mage::getStoreConfig('moipall/pagamento_avancado/pagamento_boleto')):
|
102 |
-
if ($valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor')):
|
103 |
-
$descontotexto = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc')."%.";
|
104 |
-
$descontotexto1 = $descontotexto ."<br/>Págavel em qualquer banco, casas lotéricas ou via internet bank.";
|
105 |
-
$desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc')/100;
|
106 |
-
endif;
|
107 |
-
|
108 |
-
if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') && $valor_pedido < Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ):
|
109 |
-
$descontotexto = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc2')."%.";
|
110 |
-
$descontotexto1 = $descontotexto ."<br/>Págavel em qualquer banco, casas lotéricas ou via internet bank.";
|
111 |
-
$desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc2')/100;
|
112 |
-
endif;
|
113 |
-
|
114 |
-
if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ):
|
115 |
-
$descontotexto = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc3')."%.";
|
116 |
-
$descontotexto1 = $descontotexto ."<br/>Págavel em qualquer banco, casas lotéricas ou via internet bank.";
|
117 |
-
$desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc3')/100;
|
118 |
-
endif;
|
119 |
-
|
120 |
-
|
121 |
-
else:
|
122 |
-
$descontotexto1 = "Págavel em qualquer banco, casas lotéricas ou via internet bank.";
|
123 |
-
$desconto = $data->getGrandTotal();
|
124 |
-
endif;
|
125 |
-
|
126 |
-
|
127 |
-
if (Mage::getStoreConfig('moipall/pagamento_avancado/transf_desc')):
|
128 |
-
if ($valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor')):
|
129 |
-
$descontotexto = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc')."%.";
|
130 |
-
$descontotexto1 = $descontotexto ."<br/>Págavel únicamente através internet bank.";
|
131 |
-
$desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc')/100;
|
132 |
-
endif;
|
133 |
-
|
134 |
-
if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') && $valor_pedido < Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ):
|
135 |
-
$descontotexto = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc2')."%.";
|
136 |
-
$descontotexto1 = $descontotexto ."<br/>Págavel únicamente através internet bank.";
|
137 |
-
$desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc2')/100;
|
138 |
-
endif;
|
139 |
-
|
140 |
-
if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ):
|
141 |
-
$descontotexto = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc3')."%.";
|
142 |
-
$descontotexto1 = $descontotexto ."<br/>Págavel únicamente através internet bank.";
|
143 |
-
$desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc3')/100;
|
144 |
-
endif;
|
145 |
-
|
146 |
-
|
147 |
-
else:
|
148 |
-
$descontotexto1 = "Págavel em qualquer banco, casas lotéricas ou via internet bank.";
|
149 |
-
$desconto = $data->getGrandTotal();
|
150 |
-
endif;
|
151 |
-
|
152 |
-
if(Mage::getSingleton('customer/session')->isLoggedIn()){
|
153 |
-
$nome = Mage::getSingleton('customer/session')->getCustomer()->getName();
|
154 |
-
$telefone = Mage::getSingleton('customer/session')->getCustomer()->getTelephone();
|
155 |
-
$cpf = Mage::getSingleton('customer/session')->getCustomer()->getTaxvat();
|
156 |
-
$dn = Mage::getSingleton('customer/session')->getCustomer()->getdob();
|
157 |
-
$dn = date("d/m/Y", strtotime($dn));
|
158 |
-
}
|
159 |
-
?>
|
160 |
-
|
161 |
-
<script type="text/javascript">
|
162 |
-
|
163 |
-
jQuery(document).ready(function(){
|
164 |
-
<?php if (!in_array("CartaoCredito", $standad->getFormasPagamento()) ): ?>
|
165 |
-
jQuery('#linhaparcelas').css({display:"none"});
|
166 |
-
<?php endif;?>
|
167 |
-
<?php if (!in_array("BoletoBancario", $standad->getFormasPagamento()) ): ?>
|
168 |
-
jQuery('#linhaboleto').css({display:"none"});
|
169 |
-
<?php endif;?>
|
170 |
-
<?php if (!in_array("DebitoBancario", $standad->getFormasPagamento()) ): ?>
|
171 |
-
jQuery('#linhatransf').css({display:"none"});
|
172 |
-
<?php endif;?>
|
173 |
-
});
|
174 |
-
|
175 |
-
fechar = function(){
|
176 |
-
<?php if (in_array("CartaoCredito", $standad->getFormasPagamento()) ): ?>
|
177 |
-
jQuery('#linhacartao').css({display:"none"});
|
178 |
-
<?php endif;?>
|
179 |
-
<?php if (in_array("BoletoBancario", $standad->getFormasPagamento()) ): ?>
|
180 |
-
jQuery('#conteudoboleto').css({display:"none"});
|
181 |
-
<?php endif;?>
|
182 |
-
<?php if (in_array("DebitoBancario", $standad->getFormasPagamento()) ): ?>
|
183 |
-
jQuery('#conteudotransf').css({display:"none"});
|
184 |
-
<?php endif;?>
|
185 |
-
}
|
186 |
-
parcelas = function(){
|
187 |
-
fechar();
|
188 |
-
jQuery('#linhacartao').hide();
|
189 |
-
jQuery("#linhacartao").slideDown("slow");
|
190 |
-
jQuery('#linhacartao').css({display:"block"});
|
191 |
-
|
192 |
-
}
|
193 |
-
boleto = function(){
|
194 |
-
fechar();
|
195 |
-
jQuery('#conteudoboleto').hide();
|
196 |
-
jQuery("#conteudoboleto").slideDown("slow");
|
197 |
-
jQuery('#conteudoboleto').css({display:"block"});
|
198 |
-
}
|
199 |
-
transf = function(){
|
200 |
-
fechar();
|
201 |
-
jQuery('#conteudotransf').hide();
|
202 |
-
jQuery("#conteudotransf").slideDown("slow");
|
203 |
-
jQuery('#conteudotransf').css({display:"block"});
|
204 |
-
}
|
205 |
-
function countChar(val) {
|
206 |
-
var cvv = val.value.length;
|
207 |
-
if(cvv > 2){
|
208 |
-
jQuery('#formcli').hide();
|
209 |
-
jQuery("#formcli").slideDown("slow");
|
210 |
-
jQuery('#formcli').css({display:"block"});
|
211 |
-
document.getElementById('credito_portador_nome').value = document.getElementById('billing:firstname').value + ' ' + document.getElementById('billing:lastname').value;
|
212 |
-
document.getElementById('credito_portador_telefone').value = document.getElementById('billing:telephone').value;
|
213 |
-
document.getElementById('credito_portador_cpf').value = document.getElementById('billing:taxvat').value;
|
214 |
-
if(document.getElementById('billing:year').value)
|
215 |
-
{
|
216 |
-
document.getElementById('credito_portador_nascimento').value = document.getElementById('billing:day').value + '/' + document.getElementById('billing:month').value + '/' + document.getElementById('billing:year').value
|
217 |
-
}
|
218 |
-
}
|
219 |
-
};
|
220 |
-
//validacao do transparente - inicio
|
221 |
-
jQuery('.btn-checkout').on("click",function(e)
|
222 |
-
{
|
223 |
-
if(jQuery('input[name=payment\\[method\\]]:checked').val() == "moip_transparente_standard"){
|
224 |
-
if(!jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val()){
|
225 |
-
if(!jQuery('#advice-required-moip').length)
|
226 |
-
{
|
227 |
-
logic=false;
|
228 |
-
jQuery('#checkout-payment-moip').css({display:"block"});
|
229 |
-
jQuery('#checkout-payment-moip').html('Selecione a forma de pagamento.');
|
230 |
-
return false;
|
231 |
-
}
|
232 |
-
}
|
233 |
-
else
|
234 |
-
jQuery('#checkout-payment-moip').css({display:"none"});
|
235 |
-
jQuery('#advice-required-entry_payment_moip').remove();
|
236 |
-
}
|
237 |
-
if(jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val() == "CartaoCredito")
|
238 |
-
{
|
239 |
-
if(!jQuery("input[name=payment\\[credito_instituicao\\]]:checked").val())
|
240 |
-
{
|
241 |
-
if(!jQuery('#advice-required-moip').length)
|
242 |
-
{
|
243 |
-
logic=false;
|
244 |
-
jQuery('#checkout-payment-bandeira').css({display:"block"});
|
245 |
-
jQuery('#checkout-payment-bandeira').html('Selecione a bandeira do cartão.');
|
246 |
-
return false;
|
247 |
-
}
|
248 |
-
}
|
249 |
-
else
|
250 |
-
jQuery('#checkout-payment-bandeira').css({display:"none"});
|
251 |
-
jQuery('#advice-required-entry_payment_bandeira').remove();
|
252 |
-
}
|
253 |
-
if(jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val() == "DebitoBancario")
|
254 |
-
{
|
255 |
-
if(!jQuery("input[name=payment\\[debito_instituicao\\]]:checked").val())
|
256 |
-
{
|
257 |
-
if(!jQuery('#advice-required-moip').length)
|
258 |
-
{
|
259 |
-
logic=false;
|
260 |
-
jQuery('#checkout-payment-banco').css({display:"block"});
|
261 |
-
jQuery('#checkout-payment-banco').html('Selecione o seu banco.');
|
262 |
-
return false;
|
263 |
-
}
|
264 |
-
|
265 |
-
}
|
266 |
-
else
|
267 |
-
jQuery('#checkout-payment-banco').css({display:"none"});
|
268 |
-
}
|
269 |
-
});
|
270 |
-
|
271 |
-
//validacao do transparente - fim
|
272 |
-
bb = function(){
|
273 |
-
document.getElementById('checkout-payment-moip-deb').style.display='none';
|
274 |
-
document.getElementById('debbb').style.opacity='1';
|
275 |
-
document.getElementById('debbradesco').style.opacity='0.4';
|
276 |
-
document.getElementById('debitau').style.opacity='0.4';
|
277 |
-
document.getElementById('Banrisul').style.opacity='0.4';
|
278 |
-
document.getElementById('pagdebito').style.display='block';
|
279 |
-
document.getElementById('checkout-payment-banco').style.display='none';
|
280 |
-
};
|
281 |
-
bradesco = function(){
|
282 |
-
document.getElementById('checkout-payment-moip-deb').style.display='none';
|
283 |
-
document.getElementById('debbb').style.opacity='0.4';
|
284 |
-
document.getElementById('debbradesco').style.opacity='1';
|
285 |
-
document.getElementById('debitau').style.opacity='0.4';
|
286 |
-
document.getElementById('Banrisul').style.opacity='0.4';
|
287 |
-
document.getElementById('pagdebito').style.display='block';
|
288 |
-
document.getElementById('checkout-payment-banco').style.display='none';
|
289 |
-
};
|
290 |
-
itau = function(){
|
291 |
-
document.getElementById('checkout-payment-moip-deb').style.display='none';
|
292 |
-
document.getElementById('debbb').style.opacity='0.4';
|
293 |
-
document.getElementById('debbradesco').style.opacity='0.4';
|
294 |
-
document.getElementById('debitau').style.opacity='1';
|
295 |
-
document.getElementById('Banrisul').style.opacity='0.4';
|
296 |
-
document.getElementById('pagdebito').style.display='block';
|
297 |
-
document.getElementById('checkout-payment-banco').style.display='none';
|
298 |
-
};
|
299 |
-
banrisul = function(){
|
300 |
-
document.getElementById('checkout-payment-moip-deb').style.display='none';
|
301 |
-
document.getElementById('debbb').style.opacity='0.4';
|
302 |
-
document.getElementById('debbradesco').style.opacity='0.4';
|
303 |
-
document.getElementById('debitau').style.opacity='0.4';
|
304 |
-
document.getElementById('Banrisul').style.opacity='1';
|
305 |
-
document.getElementById('pagdebito').style.display='block';
|
306 |
-
document.getElementById('checkout-payment-banco').style.display='none';
|
307 |
-
};
|
308 |
-
visa = function(){
|
309 |
-
document.getElementById('Visa').style.opacity='1';
|
310 |
-
document.getElementById('Mastercard').style.opacity='0.4';
|
311 |
-
document.getElementById('Diners').style.opacity='0.4';
|
312 |
-
document.getElementById('AmericanExpress').style.opacity='0.4';
|
313 |
-
document.getElementById('Hipercard').style.opacity='0.4';
|
314 |
-
document.getElementById('checkout-payment-bandeira').style.display='none';
|
315 |
-
};
|
316 |
-
mastercard = function(){
|
317 |
-
document.getElementById('Visa').style.opacity='0.4';
|
318 |
-
document.getElementById('Mastercard').style.opacity='1';
|
319 |
-
document.getElementById('Diners').style.opacity='0.4';
|
320 |
-
document.getElementById('AmericanExpress').style.opacity='0.4';
|
321 |
-
document.getElementById('Hipercard').style.opacity='0.4';
|
322 |
-
document.getElementById('checkout-payment-bandeira').style.display='none';
|
323 |
-
};
|
324 |
-
americanexpress = function(){
|
325 |
-
document.getElementById('Visa').style.opacity='0.4';
|
326 |
-
document.getElementById('Mastercard').style.opacity='0.4';
|
327 |
-
document.getElementById('Diners').style.opacity='0.4';
|
328 |
-
document.getElementById('AmericanExpress').style.opacity='1';
|
329 |
-
document.getElementById('Hipercard').style.opacity='0.4';
|
330 |
-
document.getElementById('checkout-payment-bandeira').style.display='none';
|
331 |
-
};
|
332 |
-
diners = function(){
|
333 |
-
document.getElementById('Visa').style.opacity='0.4';
|
334 |
-
document.getElementById('Mastercard').style.opacity='0.4';
|
335 |
-
document.getElementById('Diners').style.opacity='1';
|
336 |
-
document.getElementById('AmericanExpress').style.opacity='0.4';
|
337 |
-
document.getElementById('Hipercard').style.opacity='0.4';
|
338 |
-
document.getElementById('checkout-payment-bandeira').style.display='none';
|
339 |
-
};
|
340 |
-
hipercard = function(){
|
341 |
-
document.getElementById('Visa').style.opacity='0.4';
|
342 |
-
document.getElementById('Mastercard').style.opacity='0.4';
|
343 |
-
document.getElementById('Diners').style.opacity='0.4';
|
344 |
-
document.getElementById('AmericanExpress').style.opacity='0.4';
|
345 |
-
document.getElementById('Hipercard').style.opacity='1';
|
346 |
-
document.getElementById('checkout-payment-bandeira').style.display='none';
|
347 |
-
};
|
348 |
-
</script>
|
349 |
-
|
350 |
-
<link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('MOIP/transparente/css/formulario.css'); ?> "media="all">
|
351 |
-
<div id="checkoutmoip">
|
352 |
-
<ul id="payment_form_<?php echo $this->getMethodCode() ?>">
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
<?php if ($mostraboleto != "1"): ?>
|
358 |
-
<label>
|
359 |
-
|
360 |
-
<?php if (in_array("BoletoBancario", $standad->getFormasPagamento()) ): ?>
|
361 |
-
<input onclick="boleto();" type="radio" name="payment[forma_pagamento]" title="Boleto" value="" class="forma_pg">
|
362 |
-
|
363 |
-
<div id="linhaboleto" onclick="boleto();">
|
364 |
-
<div id="icone">
|
365 |
-
<img alt="Boleto Bancário" id="imageboleto" src="<?php echo $icone_boleto; ?>">
|
366 |
-
</div>
|
367 |
-
<div id="desc">
|
368 |
-
<h3>Boleto</h3>
|
369 |
-
<span class="desc">
|
370 |
-
Indisponível
|
371 |
-
</span>
|
372 |
-
</div>
|
373 |
-
<div id="valor">
|
374 |
-
<h3>Valor</h3>
|
375 |
-
R$ <?php echo number_format($desconto,2) ?>
|
376 |
-
</div>
|
377 |
-
</div>
|
378 |
-
</label>
|
379 |
-
<div style="clear:both;"></div>
|
380 |
-
<div id="conteudoboleto">
|
381 |
-
<h3>Boleto Bancário</h3>
|
382 |
-
<div id="icone">
|
383 |
-
<img alt="Boleto Bancário" id="imageboleto" src="<?php echo $boleto; ?>">
|
384 |
-
</div>
|
385 |
-
<div id="desc2">
|
386 |
-
<?php echo $prodbaixostock; ?>
|
387 |
-
</div>
|
388 |
-
</div>
|
389 |
-
|
390 |
-
<?php endif;?>
|
391 |
-
<?php endif; ?>
|
392 |
-
|
393 |
-
|
394 |
-
<div style="clear:both;"></div>
|
395 |
-
|
396 |
-
<?php if ($mostraboleto == "1"): ?>
|
397 |
-
<label>
|
398 |
-
<?php if (in_array("BoletoBancario", $standad->getFormasPagamento()) ): ?>
|
399 |
-
<input onclick="boleto();" type="radio" name="payment[forma_pagamento]" title="Boleto" value="BoletoBancario" class="forma_pg">
|
400 |
-
|
401 |
-
<div id="linhaboleto" onclick="boleto();">
|
402 |
-
<div id="icone">
|
403 |
-
<img alt="Boleto Bancário" id="imageboleto" src="<?php echo $icone_boleto; ?>">
|
404 |
-
</div>
|
405 |
-
<div id="desc">
|
406 |
-
<h3>Boleto</h3>
|
407 |
-
<span class="desc">
|
408 |
-
<?php echo $descontotexto; ?>
|
409 |
-
</span>
|
410 |
-
</div>
|
411 |
-
<div id="valor">
|
412 |
-
<h3>Valor</h3>
|
413 |
-
R$ <?php echo number_format($desconto,2) ?>
|
414 |
-
</div>
|
415 |
-
</div>
|
416 |
-
</label>
|
417 |
-
<div style="clear:both;"></div>
|
418 |
-
<div id="conteudoboleto">
|
419 |
-
<h3>Boleto Bancário</h3>
|
420 |
-
<div id="icone">
|
421 |
-
<img alt="Boleto Bancário" id="imageboleto" src="<?php echo $boleto; ?>">
|
422 |
-
</div>
|
423 |
-
<div id="desc2">
|
424 |
-
<?php echo $descontotexto1; ?>
|
425 |
-
</div>
|
426 |
-
</div>
|
427 |
-
<?php endif; ?>
|
428 |
-
<?php endif; ?>
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
<div style="clear:both;"></div>
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
<label onclick="parcelas();">
|
441 |
-
|
442 |
-
|
443 |
-
<?php if (in_array("CartaoCredito", $standad->getFormasPagamento()) ): ?>
|
444 |
-
<input onclick="parcelas();" id="cartao_radio" type="radio" name="payment[forma_pagamento]" title="Cartão de Crédito" value="CartaoCredito" class="forma_pg">
|
445 |
-
|
446 |
-
|
447 |
-
<div id="linhaparcelas">
|
448 |
-
<div id="icone">
|
449 |
-
<img alt="Cartão de Crédito" id="imageboleto" src="<?php echo $icone_cartao; ?>">
|
450 |
-
</div>
|
451 |
-
<div id="desc">
|
452 |
-
<h3>Cartão de Crédito</h3>
|
453 |
-
<span class="desc">
|
454 |
-
Pague em até <?php echo $k; ?>x
|
455 |
-
</span>
|
456 |
-
</div>
|
457 |
-
<div id="valor">
|
458 |
-
Parcelas <?php echo $k; ?>x de
|
459 |
-
R$ <?php echo $v['valor']; ?>
|
460 |
-
</div>
|
461 |
-
</div>
|
462 |
-
<?php endif;?>
|
463 |
-
</label>
|
464 |
-
<div style="clear:both;"></div>
|
465 |
-
<div id="linhacartao">
|
466 |
-
<h3>Cartão de Crédito</h3>
|
467 |
-
<li class="wide">
|
468 |
-
<label class="required" for="credito_bandeira" >Selecione a Bandeira:</label>
|
469 |
-
<div class="input-box" style="text-align:center;">
|
470 |
-
|
471 |
-
<label id="band">
|
472 |
-
<input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" onclick="visa();" value="Visa"><img src="<?php echo $cartao_visa; ?>" onclick=";" id="Visa" alt="Visa" border="0">
|
473 |
-
</label>
|
474 |
-
|
475 |
-
<label id="band">
|
476 |
-
<input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" onclick="mastercard();" value="Mastercard"><img src="<?php echo $cartao_master; ?>" onclick="" id="Mastercard" alt="Mastercard" border="0">
|
477 |
-
</label>
|
478 |
-
|
479 |
-
|
480 |
-
<label id="band">
|
481 |
-
<input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" onclick="americanexpress();" value="AmericanExpress"><img src="<?php echo $cartao_american; ?>" onclick="" id="AmericanExpress" alt="AmericanExpress" border="0">
|
482 |
-
</label>
|
483 |
-
</div>
|
484 |
-
<div class="input-box" style="text-align:center;">
|
485 |
-
<label id="band">
|
486 |
-
<input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" onclick="diners();" value="Diners"> <img onclick="" src="<?php echo $cartao_diners; ?>" id="Diners" alt="Diners" border="0">
|
487 |
-
</label>
|
488 |
-
|
489 |
-
|
490 |
-
<label id="band">
|
491 |
-
<input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" onclick="hipercard();" value="Hipercard"><img onclick="" src="<?php echo $cartao_hipercard; ?>" id="Hipercard" alt="Hipercard" border="0">
|
492 |
-
</label>
|
493 |
-
|
494 |
-
</div>
|
495 |
-
</li>
|
496 |
-
|
497 |
-
<div id="checkout-payment-bandeira" class="validation-advice" style="display:none;position:relative;" ></div>
|
498 |
-
|
499 |
-
<li class="wide">
|
500 |
-
<label class="required" for="credito_numero">Número:</label>
|
501 |
-
<div class="input-box">
|
502 |
-
<input type="text" name="payment[credito_numero]" id="credito_numero" class="input-text required-entry validate-cc-number" >
|
503 |
-
</div>
|
504 |
-
</li>
|
505 |
-
|
506 |
-
|
507 |
-
<li class="wide">
|
508 |
-
<label class="required" for="Validade">Validade:</label>
|
509 |
-
<div class="input-box">
|
510 |
-
<select name="payment[credito_expiracao_mes]" id="credito_expiracao_mes" class="input-text required-entry" >
|
511 |
-
<option value="">Mês</option>
|
512 |
-
<option value="01">01</option>
|
513 |
-
<option value="02">02</option>
|
514 |
-
<option value="03">03</option>
|
515 |
-
<option value="04">04</option>
|
516 |
-
<option value="05">05</option>
|
517 |
-
<option value="06">06</option>
|
518 |
-
<option value="07">07</option>
|
519 |
-
<option value="08">08</option>
|
520 |
-
<option value="09">09</option>
|
521 |
-
<option value="10">10</option>
|
522 |
-
<option value="11">11</option>
|
523 |
-
<option value="12">12</option>
|
524 |
-
</select>
|
525 |
-
<select name="payment[credito_expiracao_ano]" id="credito_expiracao_ano" class="input-text required-entry" >
|
526 |
-
<option value="">Ano</option>
|
527 |
-
<option value="13">13</option>
|
528 |
-
<option value="14">14</option>
|
529 |
-
<option value="15">15</option>
|
530 |
-
<option value="16">16</option>
|
531 |
-
<option value="17">17</option>
|
532 |
-
<option value="18">18</option>
|
533 |
-
<option value="19">19</option>
|
534 |
-
<option value="20">20</option>
|
535 |
-
<option value="21">21</option>
|
536 |
-
<option value="22">22</option>
|
537 |
-
<option value="23">23</option>
|
538 |
-
<option value="24">24</option>
|
539 |
-
<option value="25">25</option>
|
540 |
-
</select>
|
541 |
-
</div>
|
542 |
-
</li>
|
543 |
-
<li class="wide">
|
544 |
-
<label class="required" for="cvv">Código de segurança:</label>
|
545 |
-
<div class="input-box">
|
546 |
-
<span class="tooltip">
|
547 |
-
<input type="text" name="payment[credito_codigo_seguranca]" onkeyup="countChar(this)" class="input-text required-entry" id="credito_codigo_seguranca" >
|
548 |
-
<span class="custom help" style=" width:260px;"><em>Código de segurança:</em>Veja no verso do seu cartão.<img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem/codigo-seguranca.png'); ?>" id="imageseguratransparente" border="0"></span></span>
|
549 |
-
</div>
|
550 |
-
</li>
|
551 |
-
<?php
|
552 |
-
$data = $standad->getQuote()->getShippingAddress();
|
553 |
-
$data->getGrandTotal();
|
554 |
-
?>
|
555 |
-
|
556 |
-
<li class="wide">
|
557 |
-
<label class="required" for="credito_parcela">Opções de pagamento:</label>
|
558 |
-
<div class="input-box">
|
559 |
-
<select name="payment[credito_parcelamento]" id="credito_parcelamento" class="input-text required-entry" >
|
560 |
-
<?php echo $parcelas; ?>
|
561 |
-
</select>
|
562 |
-
|
563 |
-
<div id="addparcelas">
|
564 |
-
<?php
|
565 |
-
|
566 |
-
if ($parcelas_sem_juros >= 1)
|
567 |
-
{
|
568 |
-
echo "<div id=\"addparcelasdesc\"> Sem juros até ".$parcelas_sem_juros." parcelas";
|
569 |
-
if ($parcelas_sem_juros < $k)
|
570 |
-
{
|
571 |
-
echo ", após juros de ". $v['juros'] ." a.m.</div>";
|
572 |
-
}
|
573 |
-
}
|
574 |
-
if ($parcelas_sem_juros == "12")
|
575 |
-
{
|
576 |
-
echo "<div id=\"addparcelasdesc\"> Com juros de ".$v['juros'] ." a.m.</div>";
|
577 |
-
}
|
578 |
-
?>
|
579 |
-
</div>
|
580 |
-
</div>
|
581 |
-
</li>
|
582 |
-
|
583 |
-
<div id="formcli" style="display:none;">
|
584 |
-
<h3>Dados do Titular</h3>
|
585 |
-
<div id="pjtransparente" style="display:none;width:80%; float:left;color:red;">Atenção para Pessoa Júridica você deverá informar os dados do seu cartão empresarial, não os dados da empresa.</div>
|
586 |
-
|
587 |
-
<li class="wide">
|
588 |
-
<label class="required" for="credito_parcela">Nome no Cartão:</label>
|
589 |
-
<div class="input-box">
|
590 |
-
<span class="tooltip" >
|
591 |
-
<input type="text" name="payment[credito_portador_nome]" value="<?php echo $nome; ?>" class="required-entry" id="credito_portador_nome" >
|
592 |
-
<span class="custom help"><em>Nome do titular</em>deverá ser obrigatoriamente como descrito no cartão.</span></span>
|
593 |
-
</div>
|
594 |
-
</li>
|
595 |
-
<li class="wide">
|
596 |
-
<label class="required" for="credito_parcela">CPF:</label>
|
597 |
-
<div class="input-box">
|
598 |
-
<input type="text" name="payment[credito_portador_cpf]" class="required-entry validar_cpf" placeholder="Ex. 111.111.111-11" onkeypress="return txtBoxFormat(this, '999.999.999-99', event);" maxlength="14" id="credito_portador_cpf" value="<?php echo $cpf; ?>" >
|
599 |
-
</div>
|
600 |
-
</li>
|
601 |
-
<li class="wide">
|
602 |
-
<label class="required" for="credito_parcela">Telefone:</label>
|
603 |
-
<div class="input-box">
|
604 |
-
<span class="tooltip" >
|
605 |
-
<input type="text" name="payment[credito_portador_telefone]" id="credito_portador_telefone" onkeypress="return txtBoxFormat(this, '(99)9999-9999', event);" maxlength="14" value="<?php echo $telefone; ?>" placeholder="Ex. (19)9999-9999" class="input-text required-entry">
|
606 |
-
<span class="custom help"><em>Telefone de contato</em>Muitas vezes é necessária a confirmação manual de seus dados por nossa equipe de crédito, por favor informe um telefone em que seja fácil te localizar.</span></span>
|
607 |
-
</div>
|
608 |
-
</li>
|
609 |
-
<li class="wide">
|
610 |
-
<label class="required" for="credito_parcela">Data nascimento:</label>
|
611 |
-
<div class="input-box">
|
612 |
-
<input type="text" name="payment[credito_portador_nascimento]" id="credito_portador_nascimento" onkeypress="return txtBoxFormat(this, '99/99/9999', event);" maxlength="10" value="<?php if ($dn !='') { echo $dn; } ?>" placeholder="Ex. 10/10/1985" class="input-text required-entry" >
|
613 |
-
</div>
|
614 |
-
</li>
|
615 |
-
</div>
|
616 |
-
</div>
|
617 |
-
|
618 |
-
|
619 |
-
<div style="clear:both;"></div>
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
<label>
|
626 |
-
|
627 |
-
<?php if (in_array("DebitoBancario", $standad->getFormasPagamento()) ): ?>
|
628 |
-
<input onclick="transf();" type="radio" class="forma_pg" name="payment[forma_pagamento]" value="DebitoBancario" >
|
629 |
-
|
630 |
-
<div id="linhatransf" onclick="transf();">
|
631 |
-
<div id="icone">
|
632 |
-
<img alt="Transferência Bancária" id="imageboleto" src="<?php echo $icone_transf; ?>">
|
633 |
-
</div>
|
634 |
-
<div id="desc">
|
635 |
-
<h3>Transferência Bancária</h3>
|
636 |
-
<span class="desc">
|
637 |
-
<?php echo $descontotexto; ?>
|
638 |
-
</span>
|
639 |
-
</div>
|
640 |
-
<div id="valor">
|
641 |
-
<h3>Valor</h3>
|
642 |
-
R$ <?php echo number_format($desconto,2) ?>
|
643 |
-
</div>
|
644 |
-
</div>
|
645 |
-
<?php endif;?>
|
646 |
-
</label>
|
647 |
-
<div style="clear:both;"></div>
|
648 |
-
<div id="conteudotransf">
|
649 |
-
<h3>Transferência Online</h3>
|
650 |
-
<div id="pagdebito">
|
651 |
-
Após finalizar o pedido você será redirecionado ao site do seu banco...</br>
|
652 |
-
<?php echo $descontotexto1; ?>
|
653 |
-
</br>
|
654 |
-
</div>
|
655 |
-
<div id="transparente_debito_bandeiras">
|
656 |
-
<label>
|
657 |
-
<input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" onclick="bb();" value="BancoDoBrasil">
|
658 |
-
<img src="<?php echo $cartao_bb; ?>" alt="Banco do Brasil" id="debbb" >
|
659 |
-
</label>
|
660 |
-
<label>
|
661 |
-
<input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" onclick="bradesco();" value="Bradesco">
|
662 |
-
<img src="<?php echo $cartao_bradesco; ?>" id="debbradesco" alt="Bradesco">
|
663 |
-
</label>
|
664 |
-
<label>
|
665 |
-
<input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" onclick="itau();" value="Itau" >
|
666 |
-
<img src="<?php echo $cartao_itau; ?>" id="debitau" alt="Itaú" >
|
667 |
-
</label>
|
668 |
-
<label>
|
669 |
-
<input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" onclick="banrisul();" value="Banrisul">
|
670 |
-
<img src="<?php echo $cartao_banrisul; ?>" id="Banrisul" alt="Banrisul" >
|
671 |
-
</label>
|
672 |
-
</div>
|
673 |
-
<div id="checkout-payment-banco" class="validation-advice" style="position:relative;display:none;"></div>
|
674 |
-
<div id="checkout-payment-moip-deb" class="validation-advice" style="position:relative;display:none;" >
|
675 |
-
Por favor, selecione o banco!
|
676 |
-
</div>
|
677 |
-
</div>
|
678 |
-
<div style="clear:both;"></div>
|
679 |
-
|
680 |
-
</ul>
|
681 |
-
</div>
|
682 |
-
<div id="checkout-payment-moip" class="validation-advice" style="position:relative;display:none;"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/MOIP/transparente/horizontal_form.phtml
CHANGED
@@ -1,456 +1,280 @@
|
|
1 |
-
|
2 |
-
<?php
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
$selector = "";
|
7 |
-
$dn = "";
|
8 |
-
?>
|
9 |
<script type="text/javascript">
|
10 |
//<![CDATA[
|
11 |
-
fechar = function(){
|
12 |
-
jQuery('.transparente-payment-method-content').slideUp();
|
13 |
-
}
|
14 |
-
function setCcType(ccType)
|
15 |
-
{
|
16 |
-
if(ccType != 'HI'){
|
17 |
-
jQuery('#transparente_cc_type').val(ccType);
|
18 |
-
jQuery('#credito_numero').addClass('validate-cc-number');
|
19 |
-
jQuery('#credito_numero').addClass('validate-cc-type');
|
20 |
-
} else {
|
21 |
-
jQuery('#credito_numero').removeClass('validate-cc-number');
|
22 |
-
jQuery('#credito_numero').removeClass('validate-cc-type');
|
23 |
-
|
24 |
-
}
|
25 |
-
|
26 |
-
}
|
27 |
-
if(Validation) {
|
28 |
-
if($H != 'HI'){
|
29 |
-
Validation.creditCartTypes = $H({
|
30 |
-
'VI': [new RegExp('^4[0-9]{12}([0-9]{3})?$'), new RegExp('^[0-9]{3}$'), true],
|
31 |
-
'MC': [new RegExp('^5[1-5][0-9]{14}$'), new RegExp('^[0-9]{3}$'), true],
|
32 |
-
'AE': [new RegExp('^3[47][0-9]{13}$'), new RegExp('^[0-9]{4}$'), true],
|
33 |
-
'HI': [new RegExp('/^(606282\d{10}(\d{3})?)|(3841\d{15})$/'), new RegExp('^[0-9]{3}$'), true],
|
34 |
-
'DI': [false, new RegExp('^[0-9]+'), true]
|
35 |
-
});
|
36 |
-
}
|
37 |
-
}
|
38 |
-
function countChar(val) {
|
39 |
-
var cvv = val.value.length;
|
40 |
-
if (cvv > 2) {
|
41 |
-
jQuery(".dados-titular").slideDown("slow");
|
42 |
-
jQuery("#formcli").slideDown("slow");
|
43 |
-
|
44 |
-
jQuery('.dados-titular').css({
|
45 |
-
display: "block"
|
46 |
-
});
|
47 |
-
jQuery("#formcli").css({
|
48 |
-
display: "block"
|
49 |
-
});
|
50 |
-
document.getElementById('credito_portador_nome').value = document.getElementById('billing:firstname').value + ' ' + document.getElementById('billing:lastname').value;
|
51 |
-
document.getElementById('credito_portador_telefone').value = document.getElementById('billing:telephone').value;
|
52 |
-
document.getElementById('credito_portador_cpf').value = document.getElementById('billing:taxvat').value;
|
53 |
-
if (document.getElementById('billing:year').value) {
|
54 |
-
document.getElementById('credito_portador_nascimento').value = document.getElementById('billing:day').value + '/' + document.getElementById('billing:month').value + '/' + document.getElementById('billing:year').value
|
55 |
-
}
|
56 |
-
}
|
57 |
-
};
|
58 |
jQuery(document).ready(function() {
|
59 |
-
|
60 |
-
list:[
|
61 |
-
{
|
62 |
-
brand: 'American Express',
|
63 |
-
value_brand: 'Amex-moip',
|
64 |
-
verification: '^3[47][0-9]',
|
65 |
-
separation: '^([0-9]{4})([0-9]{6})?(?:([0-9]{6})([0-9]{5}))?$',
|
66 |
-
hidden: '**** ****** *[0-9][0-9][0-9][0-9]',
|
67 |
-
accepted: true,
|
68 |
-
length: 15
|
69 |
-
},
|
70 |
-
{
|
71 |
-
brand: 'MasterCard',
|
72 |
-
value_brand: 'Mastercard-moip',
|
73 |
-
verification: '^5[1-5][0-9]',
|
74 |
-
separation: '^([0-9]{4})([0-9]{4})?([0-9]{4})?([0-9]{4})?$',
|
75 |
-
hidden: '**** **** **** [0-9][0-9][0-9][0-9]',
|
76 |
-
accepted: true,
|
77 |
-
length: 16
|
78 |
-
},
|
79 |
-
{
|
80 |
-
brand: 'Visa',
|
81 |
-
value_brand: 'Visa-moip',
|
82 |
-
verification: '^4[0-9]',
|
83 |
-
separation: '^([0-9]{4})([0-9]{4})?([0-9]{4})?([0-9]{4})?$',
|
84 |
-
hidden: '**** **** **** [0-9][0-9][0-9][0-9]',
|
85 |
-
accepted: true,
|
86 |
-
length: 16
|
87 |
-
},
|
88 |
-
{
|
89 |
-
brand: 'Hipercard',
|
90 |
-
value_brand: 'Hipercard-moip',
|
91 |
-
verification: '^606282|3841(?:0[0-9])[0-9]',
|
92 |
-
separation: '^([0-9]{19})?$',
|
93 |
-
hidden: '*****************',
|
94 |
-
accepted: true,
|
95 |
-
length: 19
|
96 |
-
},
|
97 |
-
{
|
98 |
-
brand: 'Diners Club',
|
99 |
-
value_brand: 'Dinners-moip',
|
100 |
-
verification: '^3(?:0[0-5]|[68][0-9])[0-9]',
|
101 |
-
separation: '^([0-9]{4})([0-9]{4})?([0-9]{4})?(?:([0-9]{4})([0-9]{4})([0-9]{2}))?$',
|
102 |
-
hidden: '**** **** **[0-9][0-9] [0-9][0-9]',
|
103 |
-
accepted: true,
|
104 |
-
length: 14
|
105 |
-
}
|
106 |
-
|
107 |
-
],
|
108 |
-
active:null
|
109 |
-
};
|
110 |
-
jQuery('#credito_numero').keydown(function(e){
|
111 |
-
var card = jQuery(this).val().replace(/[^0-9]/g,''),
|
112 |
-
trim = jQuery.trim( jQuery(this).val().slice(0,-1) );
|
113 |
-
for( var i=0; i<creditcards.list.length; i++ ){
|
114 |
-
if(card.match( new RegExp(creditcards.list[i].verification) )){
|
115 |
-
creditcards.active = i;
|
116 |
-
if( jQuery(this).next('img').length == 0 ){
|
117 |
-
jQuery(this).next('small').remove();
|
118 |
-
jQuery("."+creditcards.list[i].value_brand).trigger('click');
|
119 |
-
}
|
120 |
-
if( !creditcards.list[i].accepted && jQuery(this).nextAll('small').length == 0 ){
|
121 |
-
|
122 |
-
}
|
123 |
-
break;
|
124 |
-
}
|
125 |
-
}
|
126 |
-
if( creditcards.active == null && card.length > 4 && jQuery(this).nextAll('small').length == 0 ){
|
127 |
-
jQuery(this).after('<small style="margin-left:5px; color:#F00;">'+'Cartão Inválido'+'</small>');
|
128 |
-
jQuery('.input-brand-bandeira > li').find('img').show();
|
129 |
-
}
|
130 |
-
key = creditcards.active !== null? creditcards.active : 1 ;
|
131 |
-
if( e.keyCode == 8 && trim != jQuery(this).val().slice(0,-1) ){
|
132 |
-
jQuery(this).val( trim );
|
133 |
-
e.preventDefault();
|
134 |
-
return;
|
135 |
-
}
|
136 |
-
if( card.length >= creditcards.list[ key ].length && jQuery.inArray(e.keyCode, [37, 38, 39, 40, 46, 8, 9, 27, 13, 110, 190]) === -1 && !e.metaKey && !e.ctrlKey ){
|
137 |
-
e.preventDefault();
|
138 |
-
return;
|
139 |
-
}
|
140 |
-
if( new RegExp(creditcards.list[ key ].separation).exec( card ) && e.keyCode >= 48 && e.keyCode <= 57 ){
|
141 |
-
jQuery(this).val( jQuery(this).val() + ' ' );
|
142 |
-
}
|
143 |
-
return;
|
144 |
-
});
|
145 |
-
jQuery('#credito_numero').keyup(function(e){
|
146 |
-
var card = jQuery(this).val().replace(/[^0-9]/,'');
|
147 |
-
if( creditcards.active !== null && !card.match( new RegExp(creditcards.list[ creditcards.active ].verification) ) ){
|
148 |
-
jQuery(this).nextAll('small').remove();
|
149 |
-
jQuery(this).next('img').remove();
|
150 |
-
creditcards.active = null;
|
151 |
-
}else
|
152 |
-
if( card.length < 4 ){
|
153 |
-
jQuery(this).next('small').remove();
|
154 |
-
}
|
155 |
-
});
|
156 |
-
jQuery('#credito_numero').on('paste',function(e){
|
157 |
-
var el = this;
|
158 |
-
setTimeout(function(){
|
159 |
-
var card = jQuery(el).val().replace(/[^0-9]/g,'');
|
160 |
-
jQuery(el).val( card );
|
161 |
-
var e = jQuery.Event('keydown',{
|
162 |
-
which: 37,
|
163 |
-
keyCode: 37
|
164 |
-
});
|
165 |
-
jQuery(el).trigger(e).promise().done(function(e){
|
166 |
-
key = creditcards.active !== null? creditcards.active : 1 ;
|
167 |
-
card.substr( 0 , creditcards.list[ key ].length );
|
168 |
-
var separation = new RegExp(creditcards.list[ key ].separation).exec( card ),
|
169 |
-
storage = '';
|
170 |
-
while( !separation && card.length > 1 ){
|
171 |
-
storage = card.charAt( card.length - 1 );
|
172 |
-
card = card.slice(0,-1);
|
173 |
-
separation = new RegExp(creditcards.list[ key ].separation).exec( card );
|
174 |
-
}
|
175 |
-
if( separation ){
|
176 |
-
var separated = [];
|
177 |
-
for( var i=0; i<separation.length; i++){
|
178 |
-
if( typeof separation[i] != 'undefined' ) separated.push( separation[i] );
|
179 |
-
}
|
180 |
-
var string = separated.slice(1).join(' ') + (storage!=''? ' '+storage : '' )
|
181 |
-
jQuery(el).val( string )
|
182 |
-
}
|
183 |
-
});
|
184 |
-
},0);
|
185 |
-
});
|
186 |
-
|
187 |
-
|
188 |
-
jQuery('#credito_portador_telefone').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
|
189 |
-
jQuery('#credito_portador_cpf').mask("000.000.000-00", {placeholder: "___.___.___-__"});
|
190 |
-
jQuery('#credito_portador_nascimento').mask("99/99/9999", {placeholder: "__/__/____"});
|
191 |
-
jQuery('#credito_codigo_seguranca').mask("999Z", {placeholder: "999",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
|
192 |
-
|
193 |
-
jQuery('.input-brand-bandeira > li').bind({
|
194 |
-
click: function() {
|
195 |
-
jQuery(this).parent().find('input[type="radio"]').attr('checked', false);
|
196 |
-
jQuery(this).parent().find('img').hide();
|
197 |
-
jQuery(this).find('img').show();
|
198 |
-
jQuery(this).fadeTo(0, 1);
|
199 |
-
jQuery(this).find('input[type="radio"]').attr('checked', true);
|
200 |
-
}
|
201 |
-
});
|
202 |
-
|
203 |
-
jQuery('.input-switcher > li').bind({
|
204 |
-
click: function() {
|
205 |
-
jQuery(this).parent().children('li').fadeTo(300, 0.4);
|
206 |
-
jQuery(this).parent().find('input[type="radio"]').attr('checked', false);
|
207 |
-
jQuery('#checkout-payment-bandeira').hide();
|
208 |
-
jQuery('#checkout-payment-banco').hide();
|
209 |
-
jQuery(this).fadeTo(0, 1);
|
210 |
-
jQuery(this).find('input[type="radio"]').attr('checked', true);
|
211 |
-
}
|
212 |
-
});
|
213 |
-
jQuery('.transparente-payment-methods > li').bind({
|
214 |
-
click: function() {
|
215 |
-
jQuery('.transparente-payment-method-content').not('#' + jQuery(this).attr('data-target')).slideUp();
|
216 |
-
jQuery('#' + jQuery(this).attr('data-target')).slideDown();
|
217 |
-
}
|
218 |
-
});
|
219 |
-
|
220 |
-
jQuery("input.radio.payment_method_handle:checked").live({
|
221 |
-
click: function() {
|
222 |
-
if (jQuery(this).val() == 'moip_transparente_standard') {
|
223 |
-
showBlocks();
|
224 |
-
} else {
|
225 |
-
hideBlocks();
|
226 |
-
}
|
227 |
-
}
|
228 |
-
});
|
229 |
-
|
230 |
<?php if(Mage::getStoreConfig('moipall/config/enable_carrinho')): ?>
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
}
|
236 |
-
if(jQuery("input[name=payment\\[method\\]]:checked").val() == "moip_transparente_standard" && jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val() != ""){
|
237 |
-
jQuery("#cartao_radio").trigger("click");
|
238 |
-
jQuery("#transparente-cartao").css({'display':'block'})
|
239 |
-
} else {
|
240 |
-
jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val();
|
241 |
-
jQuery("#transparente-cartao").css({'display':'none'});
|
242 |
-
}
|
243 |
<?php endif ?>
|
244 |
});
|
245 |
-
|
246 |
-
function showBlocks(){
|
247 |
-
jQuery('ul.transparente-payment-methods li').first().click();
|
248 |
-
jQuery('ul.transparente-payment-methods').css({'display':'block'});
|
249 |
-
jQuery('#transparente-cartao, #transparente-boleto, #transparente-transferencia').children().show();
|
250 |
-
}
|
251 |
-
|
252 |
-
function hideBlocks(){
|
253 |
-
jQuery('.transparente-payment-method-content').css({'display':'none'});
|
254 |
-
jQuery('ul.transparente-payment-methods').css({'display':'none'});
|
255 |
-
jQuery('#transparente-cartao, #transparente-boleto, #transparente-transferencia').children().hide();
|
256 |
-
}
|
257 |
//]]>
|
258 |
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
259 |
|
260 |
-
<
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
<li data-target="transparente-cartao">
|
265 |
-
<img alt="Cartão de Crédito" src="<?php echo $this->getCartaoIcon(); ?>">
|
266 |
-
<input id="cartao_radio" type="radio" name="payment[forma_pagamento]" title="Cartão de Crédito" value="CartaoCredito" class="forma_pg validate-one-required-by-name">
|
267 |
-
</li>
|
268 |
-
<?php endif; ?>
|
269 |
-
<?php if($this->mostraBoleto()): ?>
|
270 |
-
<li data-target="transparente-boleto">
|
271 |
-
<img alt="Boleto Bancário" src="<?php echo $this->getBoletoIcon(); ?>">
|
272 |
-
<input type="radio" name="payment[forma_pagamento]" title="Boleto" <?php if(!$this->boletoDisponivel('valid')): ?>value="BoletoBancario" <?php endif; ?>class="forma_pg<?php if(!$this->boletoDisponivel('valid')): ?> invalid-boleto<?php endif; ?> validate-one-required-by-name">
|
273 |
-
</li>
|
274 |
-
<?php endif; ?>
|
275 |
-
<?php if($this->mostraTransferencia()): ?>
|
276 |
-
<li data-target="transparente-transferencia">
|
277 |
-
<img alt="Transferência Bancária" id="imageboleto" src="<?php echo $this->getTransferenciaIcon(); ?>">
|
278 |
-
<input type="radio" class="forma_pg validate-one-required-by-name" name="payment[forma_pagamento]" value="DebitoBancario" >
|
279 |
-
</li>
|
280 |
-
<?php endif; ?>
|
281 |
-
</ul>
|
282 |
-
|
283 |
-
<div class="transparente-payment-method-content row-fluid" id="transparente-cartao" style="display:none">
|
284 |
-
<h3>Cartão de Crédito</h3>
|
285 |
-
|
286 |
|
287 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
288 |
<li class="wide cc-cvv">
|
289 |
<div class="cc">
|
290 |
-
<label class="required" for="
|
291 |
<div class="input-box">
|
292 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
293 |
</div>
|
294 |
</div>
|
295 |
-
<div class="cvv tooltip-transparente-handler">
|
296 |
-
<label class="required" for="cvv">CVV <i class="icon-question-sign"></i><em>*</em></label>
|
297 |
-
<div class="input-box">
|
298 |
-
<input type="text" name="payment[credito_codigo_seguranca]" onkeyup="countChar(this)" class="input-text required-entry ccv validate-cc-cvn" minlength="3" maxlength="4" id="credito_codigo_seguranca" >
|
299 |
-
<span class="tooltip-transparente">
|
300 |
-
<span class="custom help" style=" width:260px;"><em>Código de segurança:</em></br>Veja no verso do seu cartão.<img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem/codigo-seguranca.png'); ?>" id="imageseguratransparente" border="0"></span>
|
301 |
-
</span>
|
302 |
-
</div>
|
303 |
-
</div>
|
304 |
-
</li>
|
305 |
-
<input type="hidden" name="transparente_cc_type" id="transparente_cc_type" value=""/>
|
306 |
-
<ul class="inline banderias-cartao input-brand-bandeira input-switcher-5">
|
307 |
-
<li>
|
308 |
-
<img src="<?php echo $this->getVisaImage(); ?>" alt="Visa" border="0" onclick="setCcType('VI');">
|
309 |
-
<input type="radio" id="bandeiratransparente" name="payment[credito_instituicao]" value="Visa" onclick="setCcType('VI');" class="Visa-moip validate-one-required-by-name" style="display:none;" >
|
310 |
-
</li>
|
311 |
-
<li>
|
312 |
-
<img src="<?php echo $this->getMastercardImage(); ?>" alt="Mastercard" border="0" onclick="setCcType('MC');">
|
313 |
-
<input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" value="Mastercard" onclick="setCcType('MC');" class="Mastercard-moip validate-one-required-by-name" style="display:none;" >
|
314 |
-
</li>
|
315 |
-
<li>
|
316 |
-
<img src="<?php echo $this->getAmericanExpressImage(); ?>" alt="AmericanExpress" border="0" onclick="setCcType('AE');">
|
317 |
-
<input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" value="AmericanExpress" onclick="setCcType('AE');" class="Amex-moip validate-one-required-by-name" style="display:none;" >
|
318 |
-
</li>
|
319 |
-
<li>
|
320 |
-
<img src="<?php echo $this->getDinersImage(); ?>" alt="Diners" border="0" onclick="setCcType('DI');">
|
321 |
-
<input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" value="Diners" onclick="setCcType('DI');" class="Dinners-moip validate-one-required-by-name" style="display:none;" >
|
322 |
-
</li>
|
323 |
-
<li>
|
324 |
-
<img src="<?php echo $this->getHipercardImage(); ?>" alt="Hipercard" border="0" onclick="setCcType('HI');">
|
325 |
-
<input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" value="Hipercard" onclick="setCcType('HI');" class="Hipercard-moip validate-one-required-by-name" style="display:none;" >
|
326 |
-
</li>
|
327 |
-
</ul>
|
328 |
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
<option value="01">01</option>
|
335 |
-
<option value="02">02</option>
|
336 |
-
<option value="03">03</option>
|
337 |
-
<option value="04">04</option>
|
338 |
-
<option value="05">05</option>
|
339 |
-
<option value="06">06</option>
|
340 |
-
<option value="07">07</option>
|
341 |
-
<option value="08">08</option>
|
342 |
-
<option value="09">09</option>
|
343 |
-
<option value="10">10</option>
|
344 |
-
<option value="11">11</option>
|
345 |
-
<option value="12">12</option>
|
346 |
-
</select>
|
347 |
-
<select name="payment[credito_expiracao_ano]" id="credito_expiracao_ano" class="input-text required-entry" >
|
348 |
-
<option value="">Ano</option>
|
349 |
-
<option value="14">14</option>
|
350 |
-
<option value="15">15</option>
|
351 |
-
<option value="16">16</option>
|
352 |
-
<option value="17">17</option>
|
353 |
-
<option value="18">18</option>
|
354 |
-
<option value="19">19</option>
|
355 |
-
<option value="20">20</option>
|
356 |
-
<option value="21">21</option>
|
357 |
-
<option value="22">22</option>
|
358 |
-
<option value="23">23</option>
|
359 |
-
<option value="24">24</option>
|
360 |
-
<option value="25">25</option>
|
361 |
-
<option value="26">26</option>
|
362 |
-
</select>
|
363 |
</div>
|
364 |
</li>
|
365 |
<li class="wide">
|
366 |
-
<label
|
367 |
-
<
|
368 |
-
|
369 |
-
|
370 |
-
<select name="payment[credito_parcelamento]" id="credito_parcelamento" class="input-text required-entry" >
|
371 |
-
<option value="" select>Selecione as parcelas</option>
|
372 |
-
<?php $parcelas = $this->getParcelamento('parcelas'); ?>
|
373 |
-
<?php foreach ( $parcelas as $key => $value) { ?>
|
374 |
-
<?php echo $parcelas[$key]; ?>
|
375 |
-
<?php } ?>
|
376 |
-
</select>
|
377 |
-
<?php echo $this->getTextoParcelas() ?>
|
378 |
-
</div>
|
379 |
</li>
|
380 |
</ul>
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
</span>
|
391 |
-
</div>
|
392 |
-
</li>
|
393 |
-
<li class="wide">
|
394 |
-
<label class="required" for="credito_parcela"><em>*</em>CPF</label>
|
395 |
<div class="input-box">
|
396 |
-
<input type="text" name="payment[
|
397 |
</div>
|
398 |
-
</
|
399 |
-
<
|
400 |
-
<label class="required" for="
|
401 |
<div class="input-box">
|
402 |
-
<input type="text" name="payment[
|
403 |
-
<span class="tooltip-transparente">
|
404 |
-
<span class="custom help"><em>
|
405 |
</span>
|
406 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
407 |
</li>
|
408 |
-
<li class="wide">
|
409 |
-
<label class="required" for="credito_parcela"><em>*</em>Data nascimento</label>
|
410 |
-
<div class="input-box">
|
411 |
-
<input type="text" name="payment[credito_portador_nascimento]" id="credito_portador_nascimento" value="<?php if ($dn !='') { echo $dn; } ?>" class="input-text required-entry" >
|
412 |
-
</div>
|
413 |
-
</li>
|
414 |
-
</ul>
|
415 |
-
</div>
|
416 |
-
<div class="clearer"></div>
|
417 |
-
</div>
|
418 |
-
<div class="transparente-payment-method-content row-fluid" id="transparente-boleto" style="display:none">
|
419 |
-
<div class="span3 method-image">
|
420 |
-
<img alt="Boleto Bancário" id="imageboleto" src="<?php echo $this->getBoletoImage(); ?>">
|
421 |
-
</div>
|
422 |
-
<div class="span9">
|
423 |
-
<h3>Boleto</h3>
|
424 |
-
<p class="desc"><?php echo $this->getTextoBoleto("texto") ?></p>
|
425 |
-
<p class="method-price"><?php if(!$this->boletoDisponivel('valid')){echo $this->getBoletoPrice();}else{echo $this->boletoDisponivel('text');} ?></p>
|
426 |
-
</div>
|
427 |
-
</div>
|
428 |
-
<div class="transparente-payment-method-content row-fluid" id="transparente-transferencia" style="display:none">
|
429 |
-
<h3>Transferência Online</h3>
|
430 |
-
<div id="pagdebito">
|
431 |
-
Após finalizar o pedido você será redirecionado ao site do seu banco...</br>
|
432 |
-
<?php echo $this->getTextoTranferencia("texto"); ?>
|
433 |
-
<p class="method-price"><?php echo $this->getBoletoPrice(); ?></p>
|
434 |
-
</div>
|
435 |
-
<ul class="inline input-switcher input-switcher-4">
|
436 |
<li>
|
437 |
-
<img
|
438 |
-
<input
|
439 |
</li>
|
440 |
<li>
|
441 |
-
<img
|
442 |
-
<input
|
443 |
</li>
|
444 |
<li>
|
445 |
-
<img src="<?php echo $this->
|
446 |
-
<input
|
447 |
</li>
|
448 |
<li>
|
449 |
-
<img src="<?php echo $this->
|
450 |
-
<input
|
451 |
</li>
|
452 |
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
453 |
|
454 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
455 |
</div>
|
456 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php $cofre = $this->getCofre(); ?>
|
2 |
+
<?php $nome ="" ?>
|
3 |
+
<?php $telefone ="" ?>
|
4 |
+
<?php $cpf ="" ?>
|
5 |
+
<?php $dn ="" ?>
|
|
|
|
|
|
|
6 |
<script type="text/javascript">
|
7 |
//<![CDATA[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
jQuery(document).ready(function() {
|
9 |
+
showBlocks(<?php echo $cofre; ?>);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
<?php if(Mage::getStoreConfig('moipall/config/enable_carrinho')): ?>
|
11 |
+
forceselectMoip();
|
12 |
+
<?php endif ?>
|
13 |
+
<?php if($cofre !="false"): ?>
|
14 |
+
forcecofre();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
<?php endif ?>
|
16 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
//]]>
|
18 |
</script>
|
19 |
+
<link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('MOIP/transparente/css/horizontal_form.css'); ?>"media="all">
|
20 |
+
<div id="payment_form_<?php echo $this->getMethodCode() ?>" style="display:none">
|
21 |
+
<ul class="inline transparente-payment-methods input-switcher">
|
22 |
+
<?php if($this->mostraCartao()): ?>
|
23 |
+
<li data-target="transparente-cartao">
|
24 |
+
<img alt="Cartão de Crédito" src="<?php echo $this->getCartaoIcon(); ?>">
|
25 |
+
<input id="cartao_radio" type="radio" name="payment[forma_pagamento]" title="Cartão de Crédito" value="CartaoCredito" class="forma_pg validate-one-required-by-name">
|
26 |
+
</li>
|
27 |
+
<?php endif; ?>
|
28 |
+
<?php if($this->mostraBoleto()): ?>
|
29 |
+
<li data-target="transparente-boleto">
|
30 |
+
<img alt="Boleto Bancário" src="<?php echo $this->getBoletoIcon(); ?>">
|
31 |
+
<input type="radio" name="payment[forma_pagamento]" title="Boleto" <?php if(!$this->boletoDisponivel('valid')): ?>value="BoletoBancario" <?php endif; ?>class="forma_pg<?php if(!$this->boletoDisponivel('valid')): ?> invalid-boleto<?php endif; ?> validate-one-required-by-name" id="boleto_radio">
|
32 |
+
</li>
|
33 |
+
<?php endif; ?>
|
34 |
+
<?php if($this->mostraTransferencia()): ?>
|
35 |
+
<li data-target="transparente-transferencia">
|
36 |
+
<img alt="Transferência Bancária" id="imageboleto" src="<?php echo $this->getTransferenciaIcon(); ?>">
|
37 |
+
<input type="radio" class="forma_pg validate-one-required-by-name" name="payment[forma_pagamento]" value="DebitoBancario" id="trans_radio" >
|
38 |
+
</li>
|
39 |
+
<?php endif; ?>
|
40 |
+
</ul>
|
41 |
|
42 |
+
<div class="transparente-payment-method-content row-fluid" id="transparente-cartao" style="display:block" >
|
43 |
+
<h3>Cartão de Crédito</h3>
|
44 |
+
<?php if($cofre !="false"): ?>
|
45 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
+
<?php $cofre = Mage::helper('core')->jsonDecode($cofre); ?>
|
48 |
+
<ul class="form-list-cofre">
|
49 |
+
<input type="hidden" id="use_cofre" name="payment[use_cofre]" value="1" >
|
50 |
+
<input type="hidden" id="brand_cofre" name="payment[cofre_brand]" value="" >
|
51 |
+
<input type="hidden" id="cofre_numero" name="payment[cofre_numero]" value="" >
|
52 |
+
<?php foreach ($cofre as $key => $value): ?>
|
53 |
+
<?php $cardBrand = $value['brand_transparente'] ?>
|
54 |
+
<?php $cardNunber = $value['cofre'] ?>
|
55 |
+
<li class="cofre">
|
56 |
+
<label>
|
57 |
+
<div class="radio_cofre">
|
58 |
+
|
59 |
+
<input id="cartao_salvo" class="validate-one-required-by-name" type="radio" name="cofre_select" title="Cartão de Crédito Salvo" onclick="javascript:Cofre('<?php echo $cardBrand ?>','<?php echo $cardNunber ?>');">
|
60 |
+
</div>
|
61 |
+
<div class="image_cofre">
|
62 |
+
<img src="<?php echo $this->imageCofre($value['brand_transparente']); ?>" alt="<?php echo $value['brand_transparente']; ?>" border="0">
|
63 |
+
</div>
|
64 |
+
<div class="cofre_number">
|
65 |
+
<h4 class="brand_title"><?php echo $value['brand_transparente']; ?> </h4>
|
66 |
+
<?php echo $value['first6'] ?> ** **** <?php echo $value['last4'] ?>
|
67 |
+
</div>
|
68 |
+
</label>
|
69 |
+
</li>
|
70 |
+
<?php endforeach; ?>
|
71 |
<li class="wide cc-cvv">
|
72 |
<div class="cc">
|
73 |
+
<label class="required" for="credito_parcela">Parcelas<em>*</em></label>
|
74 |
<div class="input-box">
|
75 |
+
|
76 |
+
|
77 |
+
<select name="payment[cofre_parcelamento]" id="credito_parcelamento" class="validate-select" title="Número de Parcelas" >
|
78 |
+
<option value="" select>Selecione as parcelas</option>
|
79 |
+
<?php $parcelas = $this->getParcelamento('parcelas'); ?>
|
80 |
+
<?php foreach ( $parcelas as $key => $value) { ?>
|
81 |
+
<?php echo $parcelas[$key]; ?>
|
82 |
+
<?php } ?>
|
83 |
+
</select>
|
84 |
+
<?php echo $this->getTextoParcelas() ?>
|
85 |
</div>
|
86 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
|
88 |
+
<div class="cvv">
|
89 |
+
<label class="required" for="cvv">Código de Segurança<i class="icon-question-sign"></i><em>*</em></label>
|
90 |
+
<div class="input-box">
|
91 |
+
<input type="text" name="payment[cofre_cvv]" minlength="3" maxlength="4" id="cofre_cvv" class="input-text required-entry" title="Código de Segurança do Cartão" >
|
92 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
</div>
|
94 |
</li>
|
95 |
<li class="wide">
|
96 |
+
<label>
|
97 |
+
<input type="checkbox" name="payment[new_card]" title="Salvar Cartão para compras futuras?" id="new_card" class="checkbox" onclick="javascript:Novo()"> Comprar com um novo cartão</label>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
</li>
|
99 |
</ul>
|
100 |
+
|
101 |
+
<?php endif; ?>
|
102 |
+
|
103 |
+
|
104 |
+
<ul class="form-list cartao">
|
105 |
+
|
106 |
+
<li class="wide cc-cvv">
|
107 |
+
<div class="cc">
|
108 |
+
<label class="required" for="credito_numero">Número<em>*</em></label>
|
|
|
|
|
|
|
|
|
|
|
109 |
<div class="input-box">
|
110 |
+
<input type="text" name="payment[credito_numero]" id="credito_numero" title="Número do seu Cartão de Crédito" class="input-text required-entry validate-cc-number validate-cc-type validate-number">
|
111 |
</div>
|
112 |
+
</div>
|
113 |
+
<div class="cvv tooltip-transparente-handler">
|
114 |
+
<label class="required" for="cvv">CVV <i class="icon-question-sign"></i><em>*</em></label>
|
115 |
<div class="input-box">
|
116 |
+
<input type="text" name="payment[credito_codigo_seguranca]" onkeyup="countChar(this)" title="Código de Seguranção do Seu Cartão" class="input-text required-entry ccv validate-cc-cvn validate-number" id="credito_codigo_seguranca" >
|
117 |
+
<span class="tooltip-transparente cvv_tooltip">
|
118 |
+
<span class="custom help" style=" width:260px;"><em>Código de segurança: </em> Veja no verso do seu cartão.<img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem/codigo-seguranca.png'); ?>" id="imageseguratransparente" border="0"></span>
|
119 |
</span>
|
120 |
</div>
|
121 |
+
</div>
|
122 |
+
</li>
|
123 |
+
<input type="hidden" name="transparente_cc_type" id="transparente_cc_type" value=""/>
|
124 |
+
<ul class="inline banderias-cartao input-brand-bandeira input-switcher-5">
|
125 |
+
<li>
|
126 |
+
<img src="<?php echo $this->getVisaImage(); ?>" alt="Visa" border="0" onclick="setCcType('VI');">
|
127 |
+
<input type="radio" id="bandeiratransparente" name="payment[credito_instituicao]" value="Visa" onclick="setCcType('VI');" title="Bandeira do seu cartão" class="Visa-moip validate-one-required-by-name" style="display:none;" >
|
128 |
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
<li>
|
130 |
+
<img src="<?php echo $this->getMastercardImage(); ?>" alt="Mastercard" border="0" onclick="setCcType('MC');">
|
131 |
+
<input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" value="Mastercard" onclick="setCcType('MC');" title="Bandeira do seu cartão" class="Mastercard-moip validate-one-required-by-name" style="display:none;" >
|
132 |
</li>
|
133 |
<li>
|
134 |
+
<img src="<?php echo $this->getAmericanExpressImage(); ?>" alt="AmericanExpress" border="0" onclick="setCcType('AE');">
|
135 |
+
<input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" value="AmericanExpress" onclick="setCcType('AE');" title="Bandeira do seu cartão" class="Amex-moip validate-one-required-by-name" style="display:none;" >
|
136 |
</li>
|
137 |
<li>
|
138 |
+
<img src="<?php echo $this->getDinersImage(); ?>" alt="Diners" border="0" onclick="setCcType('DI');">
|
139 |
+
<input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" value="Diners" onclick="setCcType('DI');" title="Bandeira do seu cartão" class="Dinners-moip validate-one-required-by-name" style="display:none;" >
|
140 |
</li>
|
141 |
<li>
|
142 |
+
<img src="<?php echo $this->getHipercardImage(); ?>" alt="Hipercard" border="0" onclick="setCcType('HI');">
|
143 |
+
<input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" value="Hipercard" onclick="setCcType('HI');" title="Bandeira do seu cartão" class="Hipercard-moip validate-one-required-by-name" style="display:none;" >
|
144 |
</li>
|
145 |
</ul>
|
146 |
+
|
147 |
+
<li class="wide cc-validade">
|
148 |
+
<label class="required" for="Validade">Validade<em>*</em></label>
|
149 |
+
<div class="input-box">
|
150 |
+
<select name="payment[credito_expiracao_mes]" id="credito_expiracao_mes" class="validate-select" title="Mês de Vencimento do seu Cartão">
|
151 |
+
<option value="">Mês</option>
|
152 |
+
<option value="01">01</option>
|
153 |
+
<option value="02">02</option>
|
154 |
+
<option value="03">03</option>
|
155 |
+
<option value="04">04</option>
|
156 |
+
<option value="05">05</option>
|
157 |
+
<option value="06">06</option>
|
158 |
+
<option value="07">07</option>
|
159 |
+
<option value="08">08</option>
|
160 |
+
<option value="09">09</option>
|
161 |
+
<option value="10">10</option>
|
162 |
+
<option value="11">11</option>
|
163 |
+
<option value="12">12</option>
|
164 |
+
</select>
|
165 |
+
<select name="payment[credito_expiracao_ano]" id="credito_expiracao_ano" class="validate-select" title="Ano de Vencimento do seu Cartão">
|
166 |
+
<option value="">Ano</option>
|
167 |
+
<option value="14">14</option>
|
168 |
+
<option value="15">15</option>
|
169 |
+
<option value="16">16</option>
|
170 |
+
<option value="17">17</option>
|
171 |
+
<option value="18">18</option>
|
172 |
+
<option value="19">19</option>
|
173 |
+
<option value="20">20</option>
|
174 |
+
<option value="21">21</option>
|
175 |
+
<option value="22">22</option>
|
176 |
+
<option value="23">23</option>
|
177 |
+
<option value="24">24</option>
|
178 |
+
<option value="25">25</option>
|
179 |
+
<option value="26">26</option>
|
180 |
+
</select>
|
181 |
+
</div>
|
182 |
+
</li>
|
183 |
+
<div class="alerta_data"></div>
|
184 |
|
185 |
+
<li class="wide">
|
186 |
+
<label class="required" for="credito_parcela">Opções de pagamento<em>*</em></label>
|
187 |
+
<div class="input-box">
|
188 |
+
|
189 |
+
|
190 |
+
<select name="payment[credito_parcelamento]" id="credito_parcelamento" class="validate-select" title="Número de Parcelas de sua Compra" >
|
191 |
+
<option value="" select>Selecione as parcelas</option>
|
192 |
+
<?php $parcelas = $this->getParcelamento('parcelas'); ?>
|
193 |
+
<?php foreach ( $parcelas as $key => $value) { ?>
|
194 |
+
<?php echo $parcelas[$key]; ?>
|
195 |
+
<?php } ?>
|
196 |
+
</select>
|
197 |
+
<?php echo $this->getTextoParcelas() ?>
|
198 |
+
</div>
|
199 |
+
</li>
|
200 |
+
|
201 |
+
<li class="wide">
|
202 |
+
<label><input type="checkbox" name="payment[save_cart]" title="Salvar Cartão para compras futuras?" id="save_cart" class="checkbox"> Salvar cartão para compras futuras?</label>
|
203 |
+
</li>
|
204 |
+
|
205 |
+
</ul>
|
206 |
+
|
207 |
+
<div id="formcli" style="display:none;">
|
208 |
+
<ul class="form-list dados-titular">
|
209 |
+
<h3>Dados do Titular</h3>
|
210 |
+
<li class="wide tooltip-transparente-handler">
|
211 |
+
<label class="required" for="credito_parcela"><em>*</em>Nome no Cartão</label>
|
212 |
+
<div class="input-box">
|
213 |
+
<input type="text" name="payment[credito_portador_nome]" value="<?php echo $nome; ?>" class="input-text required-entry" title="Nome Impresso em seu Cartão" id="credito_portador_nome" >
|
214 |
+
<span class="tooltip-transparente nome_tooltip">
|
215 |
+
<span class="custom help"><em>Nome do titular</em><br>deverá ser exatamente como está no cartão.</span>
|
216 |
+
</span>
|
217 |
+
</div>
|
218 |
+
</li>
|
219 |
+
<li class="wide">
|
220 |
+
<label class="required" for="credito_parcela"><em>*</em>CPF</label>
|
221 |
+
<div class="input-box">
|
222 |
+
<input type="text" name="payment[credito_portador_cpf]" class="input-text required-entry validar_cpf" title="CPF do Titular de seu Cartão" id="credito_portador_cpf" value="<?php echo $cpf; ?>" >
|
223 |
+
</div>
|
224 |
+
</li>
|
225 |
+
<li class="wide">
|
226 |
+
<label class="required" for="credito_parcela"><em>*</em>Telefone</label>
|
227 |
+
<div class="input-box">
|
228 |
+
<input type="text" name="payment[credito_portador_telefone]" id="credito_portador_telefone" title="Telefone do Titular do Cartão" value="<?php echo $telefone; ?>" class="input-text required-entry">
|
229 |
+
</div>
|
230 |
+
</li>
|
231 |
+
<li class="wide">
|
232 |
+
<label class="required" for="credito_parcela"><em>*</em>Data nascimento</label>
|
233 |
+
<div class="input-box">
|
234 |
+
<input type="text" name="payment[credito_portador_nascimento]" id="credito_portador_nascimento" title="Data de Nascimento do Titular do Cartão" value="<?php if ($dn !='') { echo $dn; } ?>" class="input-text required-entry" >
|
235 |
+
</div>
|
236 |
+
</li>
|
237 |
+
</ul>
|
238 |
+
</div>
|
239 |
+
|
240 |
+
<div class="clearer"></div>
|
241 |
</div>
|
242 |
+
<div class="transparente-payment-method-content row-fluid" id="transparente-boleto" style="display:none">
|
243 |
+
<div class="span3 method-image">
|
244 |
+
<img alt="Boleto Bancário" id="imageboleto" src="<?php echo $this->getBoletoImage(); ?>">
|
245 |
+
</div>
|
246 |
+
<div class="span9">
|
247 |
+
<h3>Boleto</h3>
|
248 |
+
<p class="desc"><?php echo $this->getTextoBoleto("texto") ?></p>
|
249 |
+
<p class="method-price"><?php if(!$this->boletoDisponivel('valid')){echo $this->getBoletoPrice();}else{echo $this->boletoDisponivel('text');} ?></p>
|
250 |
+
</div>
|
251 |
+
</div>
|
252 |
+
<div class="transparente-payment-method-content row-fluid" id="transparente-transferencia" style="display:none">
|
253 |
+
<h3>Transferência Online</h3>
|
254 |
+
<div id="pagdebito">
|
255 |
+
Após finalizar o pedido você será redirecionado ao site do seu banco...</br>
|
256 |
+
<?php echo $this->getTextoTranferencia("texto"); ?>
|
257 |
+
<p class="method-price"><?php echo $this->getBoletoPrice(); ?></p>
|
258 |
+
</div>
|
259 |
+
<ul class="inline input-switcher input-switcher-4">
|
260 |
+
<li>
|
261 |
+
<img src="<?php echo $this->getBBImage(); ?>" alt="Banco do Brasil" id="debbb" >
|
262 |
+
<input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="BancoDoBrasil" title="Banco Para a Transferência" class="validate-one-required-by-name">
|
263 |
+
</li>
|
264 |
+
<li>
|
265 |
+
<img src="<?php echo $this->getBradescoImage(); ?>" id="debbradesco" alt="Bradesco">
|
266 |
+
<input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="Bradesco" title="Banco Para a Transferência" class="validate-one-required-by-name">
|
267 |
+
</li>
|
268 |
+
<li>
|
269 |
+
<img src="<?php echo $this->getItauImage(); ?>" id="debitau" alt="Itaú" >
|
270 |
+
<input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="Itau" title="Banco Para a Transferência" class="validate-one-required-by-name">
|
271 |
+
</li>
|
272 |
+
<li>
|
273 |
+
<img src="<?php echo $this->getBanrisulImage(); ?>" id="Banrisul" alt="Banrisul" >
|
274 |
+
<input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="Banrisul" title="Banco Para a Transferência" class="validate-one-required-by-name">
|
275 |
+
</li>
|
276 |
+
</ul>
|
277 |
+
|
278 |
+
</div>
|
279 |
+
</div>
|
280 |
+
<script type="text/javascript" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS); ?>MOIP/transparente/checkout.js"></script>
|
app/design/frontend/base/default/template/MOIP/transparente/info.phtml
CHANGED
@@ -62,16 +62,16 @@ $css_email_img = "position: absolute !important;left: -70px !important;top: -20p
|
|
62 |
$api = $this->getTransparente();
|
63 |
$resposta_transparente = $info['token'];
|
64 |
if (Mage::getSingleton('transparente/standard')->getConfigData('ambiente') == "teste") {
|
65 |
-
|
66 |
-
|
67 |
}
|
68 |
else {
|
69 |
$url = "https://www.moip.com.br/Instrucao.do?token=";
|
70 |
-
|
71 |
}
|
72 |
?>
|
73 |
-
<script type="text/javascript" charset="ISO-8859-1" src="<?php echo $urljs
|
74 |
-
<div id="
|
75 |
<div class="refaz_pg" style="clear:both;width:100%">
|
76 |
<div>
|
77 |
<button type="button" title="Finalizar compra" style="background:none repeat scroll 0 0 #337baa;margin:10px;border-radius:3px;padding:10px 5px;width:250px;float:left;text-align:center;color:#ffffff;font-weight:normal;font-size:13px;display:block;text-decoration:none;font-family:Arial,Helvetica,sans-serif;border: none;margin-top: 10px !important;" onclick="jQuery('#showXml').modal('toggle')">
|
@@ -90,9 +90,10 @@ $css_email_img = "position: absolute !important;left: -70px !important;top: -20p
|
|
90 |
</div>
|
91 |
<div class="retorno_transparente">
|
92 |
</div>
|
|
|
93 |
<form method="POST" action='<?php echo Mage::getBaseUrl('web', true); ?>transparente/index/Novaforma/' id="refaz_pg_forma">
|
94 |
<input type="hidden" name="forma_de_pagamento" id="forma_de_pagamento" value="" >
|
95 |
-
<input type="hidden" name="transparente_id" value="<?php echo $
|
96 |
<input type="hidden" name="order_id" value="<?php echo $info['realorder_id'] ?>">
|
97 |
|
98 |
|
@@ -101,9 +102,11 @@ $css_email_img = "position: absolute !important;left: -70px !important;top: -20p
|
|
101 |
<li data-target="CartaoCredito" class='transparente-payment-method-line' style="padding: 10px 15px;background: #EEE;border-radius: 5px 5px 0 0;margin-right: 10px;cursor:pointer;">
|
102 |
Cartão de Crédito
|
103 |
</li>
|
104 |
-
|
105 |
-
|
106 |
-
|
|
|
|
|
107 |
<li data-target="DebitoBancario" class='transparente-payment-method-line' style="padding: 10px 15px;background: #EEE;border-radius: 5px 5px 0 0;margin-right: 10px;cursor:pointer;">
|
108 |
Débito Bancário
|
109 |
</li>
|
@@ -117,7 +120,7 @@ $css_email_img = "position: absolute !important;left: -70px !important;top: -20p
|
|
117 |
<div><h4>Selecione o Banco.</h4></div>
|
118 |
<div>
|
119 |
<ul>
|
120 |
-
<li><label><input type="radio" name="instituicao" id="instituicao" value="
|
121 |
<li><label><input type="radio" name="instituicao" id="instituicao" value="Bradesco" onclick="jQuery('.pagar_trans').show()"> Bradesco</label></li>
|
122 |
<li><label><input type="radio" name="instituicao" id="instituicao" value="Itau" onclick="jQuery('.pagar_trans').show()"> Itaú</label></li>
|
123 |
<li><label><input type="radio" name="instituicao" id="instituicao" value="Banrisul" onclick="jQuery('.pagar_trans').show()"> Banrisul</label></li>
|
@@ -174,11 +177,11 @@ $css_email_img = "position: absolute !important;left: -70px !important;top: -20p
|
|
174 |
<li>
|
175 |
<label>Instituição:</label>
|
176 |
<select id="bandeira" name="bandeira">
|
177 |
-
<option value="
|
178 |
-
<option value="
|
179 |
-
<option value="
|
180 |
-
<option value="
|
181 |
-
<option value="
|
182 |
</select>
|
183 |
</li>
|
184 |
<li>
|
@@ -193,8 +196,8 @@ $css_email_img = "position: absolute !important;left: -70px !important;top: -20p
|
|
193 |
</li>
|
194 |
<li>
|
195 |
<label>Expiração:</label>
|
196 |
-
<input type="text" id="Expiracao" name="Expiracao_mes"
|
197 |
-
<input type="text" id="Expiracao" name="Expiracao_ano"
|
198 |
</li>
|
199 |
<li>
|
200 |
<button type="button" id="sendToTransparente2" class="btn-transparente buttontransparente" style="margin-top: 10px !important;" onclick="jQuery('.cartao_dados').hide();jQuery('.pagador_dados_pessoais').show('slow');">Prosseguir</button>
|
@@ -210,15 +213,15 @@ $css_email_img = "position: absolute !important;left: -70px !important;top: -20p
|
|
210 |
</li>
|
211 |
<li>
|
212 |
<label>CPF:</label>
|
213 |
-
<input type="text" id="CPF" name="CPF" class="input-text"
|
214 |
</li>
|
215 |
<li>
|
216 |
<label>Data Nascimento:</label>
|
217 |
-
<input type="text" id="DataNascimento" name="DataNascimento"
|
218 |
</li>
|
219 |
<li>
|
220 |
<label>Telefone:</label>
|
221 |
-
<input type="text" id="Telefone" name="Telefone"
|
222 |
</li>
|
223 |
<li>
|
224 |
<a href="#" style="margin-top: 10px !important; float:left" onclick="jQuery('.cartao_dados').show('slow');jQuery('.pagador_dados_pessoais').hide();">← Voltar</a>
|
@@ -235,6 +238,10 @@ $css_email_img = "position: absolute !important;left: -70px !important;top: -20p
|
|
235 |
<script type="text/javascript">
|
236 |
//<![CDATA[
|
237 |
jQuery(document).ready(function() {
|
|
|
|
|
|
|
|
|
238 |
jQuery('.input-switcher > li').bind({
|
239 |
click: function() {
|
240 |
jQuery(this).parent().children('li').fadeTo(300, 0.4);
|
@@ -307,8 +314,29 @@ jQuery(document).ready(function() {
|
|
307 |
};
|
308 |
}
|
309 |
var erroValidacao = function(data) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
310 |
jQuery(".retorno_transparente").html("Pagamento não pode ser refeito, confira os dados e tente novamente.");
|
311 |
-
jQuery("#refaz_pg_forma").
|
312 |
}
|
313 |
jQuery("#refaz_pg_forma").submit(function(e){
|
314 |
var postData = jQuery(this).serializeArray();
|
@@ -330,7 +358,7 @@ jQuery(document).ready(function() {
|
|
330 |
if(jQuery("#forma_de_pagamento").val() == "DebitoBancario"){
|
331 |
var settings = {
|
332 |
"Forma" : "DebitoBancario",
|
333 |
-
"Instituicao":
|
334 |
};
|
335 |
};
|
336 |
if(jQuery("#forma_de_pagamento").val() == "CartaoCredito")
|
@@ -354,7 +382,7 @@ jQuery(document).ready(function() {
|
|
354 |
}
|
355 |
}
|
356 |
};
|
357 |
-
|
358 |
},
|
359 |
|
360 |
});
|
62 |
$api = $this->getTransparente();
|
63 |
$resposta_transparente = $info['token'];
|
64 |
if (Mage::getSingleton('transparente/standard')->getConfigData('ambiente') == "teste") {
|
65 |
+
$url = "https://desenvolvedor.moip.com.br/sandbox/Instrucao.do?token=";
|
66 |
+
$urljs = "https://desenvolvedor.moip.com.br/sandbox/";
|
67 |
}
|
68 |
else {
|
69 |
$url = "https://www.moip.com.br/Instrucao.do?token=";
|
70 |
+
$urljs = "https://www.moip.com.br/";
|
71 |
}
|
72 |
?>
|
73 |
+
<script type="text/javascript" charset="ISO-8859-1" src="<?php echo $urljs ?>transparente/MoipWidget-v2.js" onerror="erro_mail('erro caiu o transparente widget')" ></script>
|
74 |
+
<div id="MoipWidget" data-token="<?php echo $resposta_transparente ?>" callback-method-error="erroValidacao" callback-method-success="sucesso"></div>
|
75 |
<div class="refaz_pg" style="clear:both;width:100%">
|
76 |
<div>
|
77 |
<button type="button" title="Finalizar compra" style="background:none repeat scroll 0 0 #337baa;margin:10px;border-radius:3px;padding:10px 5px;width:250px;float:left;text-align:center;color:#ffffff;font-weight:normal;font-size:13px;display:block;text-decoration:none;font-family:Arial,Helvetica,sans-serif;border: none;margin-top: 10px !important;" onclick="jQuery('#showXml').modal('toggle')">
|
90 |
</div>
|
91 |
<div class="retorno_transparente">
|
92 |
</div>
|
93 |
+
<div class="erros_transparente"></div>
|
94 |
<form method="POST" action='<?php echo Mage::getBaseUrl('web', true); ?>transparente/index/Novaforma/' id="refaz_pg_forma">
|
95 |
<input type="hidden" name="forma_de_pagamento" id="forma_de_pagamento" value="" >
|
96 |
+
<input type="hidden" name="transparente_id" value="<?php echo $resposta_transparente ?>">
|
97 |
<input type="hidden" name="order_id" value="<?php echo $info['realorder_id'] ?>">
|
98 |
|
99 |
|
102 |
<li data-target="CartaoCredito" class='transparente-payment-method-line' style="padding: 10px 15px;background: #EEE;border-radius: 5px 5px 0 0;margin-right: 10px;cursor:pointer;">
|
103 |
Cartão de Crédito
|
104 |
</li>
|
105 |
+
<?php if($info['result_meio'] == "Boleto Bancário"): ?>
|
106 |
+
<li data-target="BoletoBancario" class='transparente-payment-method-line' style="padding: 10px 15px;background: #EEE;border-radius: 5px 5px 0 0;margin-right: 10px;cursor:pointer;">
|
107 |
+
Boleto Bancário
|
108 |
+
</li>
|
109 |
+
<?php endif; ?>
|
110 |
<li data-target="DebitoBancario" class='transparente-payment-method-line' style="padding: 10px 15px;background: #EEE;border-radius: 5px 5px 0 0;margin-right: 10px;cursor:pointer;">
|
111 |
Débito Bancário
|
112 |
</li>
|
120 |
<div><h4>Selecione o Banco.</h4></div>
|
121 |
<div>
|
122 |
<ul>
|
123 |
+
<li><label><input type="radio" name="instituicao" id="instituicao" value="BancoDoBrasil" onclick="jQuery('.pagar_trans').show()"> Banco do Brasil</label></li>
|
124 |
<li><label><input type="radio" name="instituicao" id="instituicao" value="Bradesco" onclick="jQuery('.pagar_trans').show()"> Bradesco</label></li>
|
125 |
<li><label><input type="radio" name="instituicao" id="instituicao" value="Itau" onclick="jQuery('.pagar_trans').show()"> Itaú</label></li>
|
126 |
<li><label><input type="radio" name="instituicao" id="instituicao" value="Banrisul" onclick="jQuery('.pagar_trans').show()"> Banrisul</label></li>
|
177 |
<li>
|
178 |
<label>Instituição:</label>
|
179 |
<select id="bandeira" name="bandeira">
|
180 |
+
<option value="Visa">Visa</option>
|
181 |
+
<option value="Mastercard">Mastercard</option>
|
182 |
+
<option value="AmericanExpress">AmericanExpress</option>
|
183 |
+
<option value="Hipercard">Hipercard</option>
|
184 |
+
<option value="Diners">Diners</option>
|
185 |
</select>
|
186 |
</li>
|
187 |
<li>
|
196 |
</li>
|
197 |
<li>
|
198 |
<label>Expiração:</label>
|
199 |
+
<input type="text" id="Expiracao" name="Expiracao_mes" maxlength="2" placeholder="Ex. 10/15" size="2" class="input-text" >
|
200 |
+
<input type="text" id="Expiracao" name="Expiracao_ano" maxlength="2" placeholder="Ex. 10/15" size="2" class="input-text" >
|
201 |
</li>
|
202 |
<li>
|
203 |
<button type="button" id="sendToTransparente2" class="btn-transparente buttontransparente" style="margin-top: 10px !important;" onclick="jQuery('.cartao_dados').hide();jQuery('.pagador_dados_pessoais').show('slow');">Prosseguir</button>
|
213 |
</li>
|
214 |
<li>
|
215 |
<label>CPF:</label>
|
216 |
+
<input type="text" id="CPF" name="CPF" class="input-text" maxlength="11">
|
217 |
</li>
|
218 |
<li>
|
219 |
<label>Data Nascimento:</label>
|
220 |
+
<input type="text" id="DataNascimento" name="DataNascimento" maxlength="10" placeholder="Ex. 10/10/1985" class="input-text" ><br>
|
221 |
</li>
|
222 |
<li>
|
223 |
<label>Telefone:</label>
|
224 |
+
<input type="text" id="Telefone" name="Telefone" placeholder="Ex. (11)9999-9999" maxlength="14" class="input-text" ><br>
|
225 |
</li>
|
226 |
<li>
|
227 |
<a href="#" style="margin-top: 10px !important; float:left" onclick="jQuery('.cartao_dados').show('slow');jQuery('.pagador_dados_pessoais').hide();">← Voltar</a>
|
238 |
<script type="text/javascript">
|
239 |
//<![CDATA[
|
240 |
jQuery(document).ready(function() {
|
241 |
+
jQuery('#Telefone').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
|
242 |
+
jQuery('#CPF').mask("000.000.000-00", {placeholder: "___.___.___-__"});
|
243 |
+
jQuery('#DataNascimento').mask("99/99/9999", {placeholder: "__/__/____"});
|
244 |
+
jQuery('#cvv').mask("999Z", {placeholder: "999",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
|
245 |
jQuery('.input-switcher > li').bind({
|
246 |
click: function() {
|
247 |
jQuery(this).parent().children('li').fadeTo(300, 0.4);
|
314 |
};
|
315 |
}
|
316 |
var erroValidacao = function(data) {
|
317 |
+
jQuery("#loading_mask_loader").hide();
|
318 |
+
infosTransparente = '<li class="erro" style="list-style: none;margin-left: 29px;font-weight: bold;">'+data.Mensagem+'</li>';
|
319 |
+
jQuery(".erros_transparente").html("");
|
320 |
+
jQuery(".erros_transparente").append(infosTransparente);
|
321 |
+
var infosTransparente ="";
|
322 |
+
for (i=0; i<data.length; i++) {
|
323 |
+
Transparente = data[i];
|
324 |
+
|
325 |
+
for(j in Transparente)
|
326 |
+
{
|
327 |
+
atributo = j;
|
328 |
+
if(atributo == "Mensagem")
|
329 |
+
{
|
330 |
+
valor = Transparente[j];
|
331 |
+
infosTransparente = '<li class="erro" style="list-style: none;margin-left: 29px;font-weight: bold;">'+valor+'</li>';
|
332 |
+
}
|
333 |
+
}
|
334 |
+
|
335 |
+
jQuery(".erros_transparente").html("");
|
336 |
+
jQuery(".erros_transparente").append(infosTransparente);
|
337 |
+
}
|
338 |
jQuery(".retorno_transparente").html("Pagamento não pode ser refeito, confira os dados e tente novamente.");
|
339 |
+
jQuery("#refaz_pg_forma").hide();
|
340 |
}
|
341 |
jQuery("#refaz_pg_forma").submit(function(e){
|
342 |
var postData = jQuery(this).serializeArray();
|
358 |
if(jQuery("#forma_de_pagamento").val() == "DebitoBancario"){
|
359 |
var settings = {
|
360 |
"Forma" : "DebitoBancario",
|
361 |
+
"Instituicao":jQuery('input[name="instituicao"]:checked').val()
|
362 |
};
|
363 |
};
|
364 |
if(jQuery("#forma_de_pagamento").val() == "CartaoCredito")
|
382 |
}
|
383 |
}
|
384 |
};
|
385 |
+
MoipWidget(settings);
|
386 |
},
|
387 |
|
388 |
});
|
app/design/frontend/base/default/template/MOIP/transparente/redirect.phtml
CHANGED
@@ -1 +1,50 @@
|
|
1 |
-
<?php ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php $session = Mage::getSingleton('checkout/session'); ?>
|
2 |
+
<?php $result_decode = $session->getResult_decode(); ?>
|
3 |
+
<?php $client_array = $session->getClient_array(); ?>
|
4 |
+
<?php $pgtoArraya = $session->getPgtoarry(); ?>
|
5 |
+
<?php $pgtoArray = $this->getOrder_dados($client_array); ?>
|
6 |
+
<?php if(Mage::getSingleton('customer/session')->isLoggedIn()) { $customerData = Mage::getSingleton('customer/session')->getCustomer();} ?>
|
7 |
+
<?php if (!Mage::helper('core/cookie')->isUserNotAllowSaveCookie()): ?>
|
8 |
+
<script type="text/javascript">
|
9 |
+
//<![CDATA[
|
10 |
+
var _gaq = _gaq || [];
|
11 |
+
_gaq.push(['_setAccount', '<?php echo Mage::getStoreConfig("moipall/google/idgoogle") ?>']);
|
12 |
+
<?php echo $this->getTrackingTransparente($client_array); ?>
|
13 |
+
(function() {
|
14 |
+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
15 |
+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
16 |
+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
17 |
+
})();
|
18 |
+
//]]>
|
19 |
+
</script>
|
20 |
+
<?php endif; ?>
|
21 |
+
<?php $order = Mage::getModel('sales/order')->load($pgtoArray['id_transacao']); ?>
|
22 |
+
<?php $this->getSaveDate($pgtoArray['id_transacao'], $result_decode, $customerData, $pgtoArraya, $client_array); ?>
|
23 |
+
|
24 |
+
<script type="text/javascript" charset="ISO-8859-1" src="<?php echo $this->getUrlAmbiente(); ?>transparente/MoipWidget-v2.js" onerror="erro_mail('erro caiu o transparente widget')" ></script>
|
25 |
+
<div id="MoipWidget" data-token="<?php echo $result_decode['token'] ?>" callback-method-error="erroValidacao" callback-method-success="sucesso"></div>
|
26 |
+
|
27 |
+
<div class="grid12-12">
|
28 |
+
<h3>Seu pedido foi enviado com sucesso, <strong><?php echo $client_array['pagador_nome'] ?></strong>!</h3>
|
29 |
+
</div>
|
30 |
+
<?php
|
31 |
+
if($pgtoArraya['forma_pagamento'] == "BoletoBancario")
|
32 |
+
echo $this->getChildHtml('transparente.boleto');
|
33 |
+
elseif ($pgtoArraya['forma_pagamento'] == "DebitoBancario")
|
34 |
+
echo $this->getChildHtml('transparente.transferencia');
|
35 |
+
else
|
36 |
+
echo $this->getChildHtml('transparente.cartao');
|
37 |
+
?>
|
38 |
+
|
39 |
+
<div class="col-md-6 grid12-6 omega">
|
40 |
+
<div class="order-id-wrapper">
|
41 |
+
<p>O número do seu pedido é:</p>
|
42 |
+
<span class="order-id">#<?php echo Mage::getSingleton('checkout/session')->getLastRealOrderId() ?></span>
|
43 |
+
<h4>Seu pedido será enviado por <?php echo $order->getShippingDescription(); ?></h4>
|
44 |
+
</div>
|
45 |
+
<div class="row">
|
46 |
+
<a href="<?php echo Mage::helper('core/url')->getHomeUrl(); ?>" class="back-to-store">Voltar para a home</a>
|
47 |
+
</div>
|
48 |
+
</div>
|
49 |
+
<?php echo Mage::getStoreConfig("moipall/google/outros_funil"); ?>
|
50 |
+
|
app/design/frontend/base/default/template/MOIP/transparente/refaz.phtml
CHANGED
@@ -43,7 +43,7 @@
|
|
43 |
</li>
|
44 |
<li>
|
45 |
<label>Instituição:</label>
|
46 |
-
<select id="
|
47 |
<option value="Visa">Visa</option>
|
48 |
<option value="Mastercard">Mastercard</option>
|
49 |
<option value="AmericanExpress">AmericanExpress</option>
|
@@ -91,5 +91,9 @@
|
|
91 |
</ul>
|
92 |
</div>
|
93 |
</form>
|
94 |
-
|
95 |
-
|
|
|
|
|
|
|
|
43 |
</li>
|
44 |
<li>
|
45 |
<label>Instituição:</label>
|
46 |
+
<select id="bandeira" name="bandeira">
|
47 |
<option value="Visa">Visa</option>
|
48 |
<option value="Mastercard">Mastercard</option>
|
49 |
<option value="AmericanExpress">AmericanExpress</option>
|
91 |
</ul>
|
92 |
</div>
|
93 |
</form>
|
94 |
+
<script type="text/javascript">
|
95 |
+
//<![CDATA[
|
96 |
+
jQuery("#bandeira option[value=<?php echo $dados['credito_instituicao'] ?>]").attr('selected','selected');
|
97 |
+
jQuery("#Parcelas option[value=<?php echo $dados['credito_parcelamento'] ?>]").attr('selected','selected');
|
98 |
+
//]]>
|
99 |
+
</script>
|
app/design/frontend/base/default/template/MOIP/transparente/transferencia.phtml
CHANGED
@@ -1,71 +1,17 @@
|
|
1 |
<?php $session = Mage::getSingleton('checkout/session'); ?>
|
2 |
-
<?php $result_decode = $session->getResult_decode(); ?>
|
3 |
-
<?php $client_array = $session->getClient_array(); ?>
|
4 |
<?php $pgtoArraya = $session->getPgtoarry(); ?>
|
5 |
-
<?php $
|
6 |
-
$customerData = "";
|
7 |
-
if(Mage::getSingleton('customer/session')->isLoggedIn()) {
|
8 |
-
$customerData = Mage::getSingleton('customer/session')->getCustomer();
|
9 |
-
}
|
10 |
-
if (Mage::getSingleton('transparente/standard')->getConfigData('ambiente') == "teste") {
|
11 |
-
$url = "https://desenvolvedor.moip.com.br/sandbox/Instrucao.do?token=";
|
12 |
-
$urljs = "https://desenvolvedor.moip.com.br/sandbox/";
|
13 |
-
}
|
14 |
-
else {
|
15 |
-
$url = "https://www.moip.com.br/Instrucao.do?token=";
|
16 |
-
$urljs = "https://www.moip.com.br/";
|
17 |
-
}
|
18 |
-
?>
|
19 |
-
<?php $order = Mage::getModel('sales/order')->load($pgtoArray['id_transacao']); ?>
|
20 |
-
<?php $this->getSaveDate($pgtoArray['id_transacao'], $result_decode, $customerData, $pgtoArraya, $client_array); ?>
|
21 |
-
<?php if (!Mage::helper('core/cookie')->isUserNotAllowSaveCookie()): ?>
|
22 |
-
<?php $accountId = 'UA-33860171-1' ?>
|
23 |
-
<script type="text/javascript">
|
24 |
-
//<![CDATA[
|
25 |
-
var _gaq = _gaq || [];
|
26 |
-
_gaq.push(['_setAccount', '<?php echo Mage::getStoreConfig("moipall/google/idgoogle") ?>']);
|
27 |
-
<?php echo $this->getTrackingTransparente($client_array); ?>
|
28 |
-
(function() {
|
29 |
-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
30 |
-
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
31 |
-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
32 |
-
})();
|
33 |
-
//]]>
|
34 |
-
</script>
|
35 |
-
<?php endif; ?>
|
36 |
-
<script type="text/javascript" charset="ISO-8859-1" src="<?php echo $urljs ?>transparente/MoipWidget-v2.js" onerror="erro_mail('erro caiu o transparente widget')" ></script>
|
37 |
-
<div id="MoipWidget" data-token="<?php echo $result_decode['token'] ?>" callback-method-error="erroValidacao" callback-method-success="sucesso"></div>
|
38 |
-
<meta http-equiv='Refresh' content='10;URL=<?php echo $url. $result_decode['token'] ?>'>
|
39 |
-
<div class="row grid-full">
|
40 |
-
<div class="section clearer grid12-12 ">
|
41 |
-
<h3>Seu pedido foi enviado com sucesso, <strong><?php echo $client_array['pagador_nome'] ?></strong>!</h3>
|
42 |
-
|
43 |
-
<div class="corpo_transparente grid12-5 alpha">
|
44 |
-
|
45 |
-
<div class="method-type bank-title">
|
46 |
-
<h3>Transferência Bancária</h3>
|
47 |
-
<h4>Você será redirecionado para o seu banco em 10 segundos, caso isto não ocorra, por favor clique no link abaixo para ser redirecionado ao seu banco.</h4>
|
48 |
-
</div>
|
49 |
-
</br>
|
50 |
-
<button type="button" title="Finalizar compra" class="btn-transparente btn-bank" onclick="window.location='<?php echo $url. $result_decode['token'] ?>'"><img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem/bank-icon.png') ?>" alt="" />Ir ao Banco</button>
|
51 |
-
</div>
|
52 |
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
</div>
|
59 |
-
<div class="warning-block">
|
60 |
-
<strong>Atenção:</strong> Você receberá um e-mail com a confirmação do seu pedido.
|
61 |
-
</div>
|
62 |
-
<div class="row">
|
63 |
-
<a href="<?php echo Mage::helper('core/url')->getHomeUrl(); ?>" class="back-to-store">Voltar para a home</a>
|
64 |
-
</div>
|
65 |
-
</div>
|
66 |
</div>
|
|
|
|
|
|
|
67 |
</div>
|
68 |
-
<?php echo Mage::getStoreConfig("moipall/google/outros_funil"); ?>
|
69 |
<script type="text/javascript">
|
70 |
//<![CDATA[
|
71 |
jQuery(document).ready(function(){
|
1 |
<?php $session = Mage::getSingleton('checkout/session'); ?>
|
|
|
|
|
2 |
<?php $pgtoArraya = $session->getPgtoarry(); ?>
|
3 |
+
<?php $result_decode = $session->getResult_decode(); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
+
<div class="corpo_transparente grid12-5 alpha">
|
6 |
+
<meta http-equiv='Refresh' content='10;URL=<?php echo $this->getUrlAmbiente()."Instrucao.do?token=". $result_decode['token'] ?>'>
|
7 |
+
<div class="method-type bank-title">
|
8 |
+
<h3>Transferência Bancária</h3>
|
9 |
+
<h4>Você será redirecionado para o seu banco em 10 segundos, caso isto não ocorra, por favor clique no link abaixo para ser redirecionado ao seu banco.</h4>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
</div>
|
11 |
+
<p>
|
12 |
+
<button type="button" title="Finalizar compra" class="btn-transparente btn-bank" onclick="window.location='<?php echo $this->getUrlAmbiente()."Instrucao.do?token=". $result_decode['token'] ?>'"><img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem/bank-icon.png') ?>" alt="" />Ir ao Banco</button>
|
13 |
+
</p>
|
14 |
</div>
|
|
|
15 |
<script type="text/javascript">
|
16 |
//<![CDATA[
|
17 |
jQuery(document).ready(function(){
|
app/design/frontend/base/default/template/MOIP/transparente/vertical_form.phtml
CHANGED
@@ -1,28 +1,27 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
$dn = "";
|
7 |
-
?>
|
8 |
-
|
9 |
<script type="text/javascript">
|
10 |
-
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
jQuery(document).ready(function() {
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
});
|
20 |
-
jQuery('.transparente-payment-methods > li').not('.transparente-payment-method-content').bind({
|
21 |
-
click: function() {
|
22 |
-
jQuery('.transparente-payment-method-content').not('#' + jQuery(this).attr('data-target')).slideUp();
|
23 |
-
jQuery('#' + jQuery(this).attr('data-target')).slideDown();
|
24 |
-
}
|
25 |
-
});
|
26 |
if(jQuery("input[name=payment\\[method\\]]:checked").val() == "moip_transparente_standard" && jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val() != ""){
|
27 |
jQuery("#cartao_radio").trigger("click");
|
28 |
jQuery("#transparente-cartao").css({'display':'block'})
|
@@ -30,16 +29,22 @@ jQuery(document).ready(function() {
|
|
30 |
jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val();
|
31 |
jQuery("#transparente-cartao").css({'display':'none'});
|
32 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
});
|
|
|
34 |
</script>
|
35 |
-
|
36 |
-
<link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('MOIP/transparente/css/formulario_horizontal.css'); ?>"media="all">
|
37 |
-
<div id="checkoutmoip">
|
38 |
<div id="payment_form_<?php echo $this->getMethodCode() ?>" style="display:none">
|
39 |
<ul class="inline input-switcher transparente-payment-methods">
|
40 |
<?php if($this->mostraCartao()): ?>
|
41 |
<li data-target="transparente-cartao" class='transparente-payment-method-line'>
|
42 |
-
<input id="cartao_radio" type="radio" name="payment[forma_pagamento]" title="Cartão de Crédito" value="CartaoCredito" class="forma_pg">
|
43 |
<img alt="Cartão de Crédito" src="<?php echo $this->getCartaoIcon(); ?>">
|
44 |
<div class="middle-method">
|
45 |
<div class="chamada">Cartão de Crédito</div>
|
@@ -51,94 +56,152 @@ jQuery(document).ready(function() {
|
|
51 |
</div>
|
52 |
</li>
|
53 |
<li class="transparente-payment-method-content row-fluid" id="transparente-cartao" style="display:none">
|
54 |
-
|
55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
<input type="hidden" name="transparente_cc_type" id="transparente_cc_type" value=""/>
|
57 |
-
<
|
58 |
-
<ul class="inline banderias-cartao input-switcher input-switcher-5">
|
59 |
<li>
|
60 |
<img src="<?php echo $this->getVisaImage(); ?>" alt="Visa" border="0" onclick="setCcType('VI');">
|
61 |
-
<input type="radio" name="payment[credito_instituicao]" value="Visa" onclick="setCcType('VI');" class="validate-one-required-by-name" >
|
62 |
</li>
|
63 |
<li>
|
64 |
<img src="<?php echo $this->getMastercardImage(); ?>" alt="Mastercard" border="0" onclick="setCcType('MC');">
|
65 |
-
<input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" value="Mastercard" onclick="setCcType('MC');" class="validate-one-required-by-name" >
|
66 |
</li>
|
67 |
<li>
|
68 |
<img src="<?php echo $this->getAmericanExpressImage(); ?>" alt="AmericanExpress" border="0" onclick="setCcType('AE');">
|
69 |
-
<input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" value="AmericanExpress" onclick="setCcType('AE');" class="validate-one-required-by-name" >
|
70 |
</li>
|
71 |
<li>
|
72 |
-
<img
|
73 |
-
<input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" value="Diners" onclick="setCcType('DI');" class="validate-one-required-by-name" >
|
74 |
</li>
|
75 |
<li>
|
76 |
-
<img
|
77 |
-
<input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" value="Hipercard" onclick="setCcType('HI');" class="validate-one-required-by-name" >
|
78 |
</li>
|
79 |
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
|
81 |
-
<
|
82 |
-
<ul class="form-list">
|
83 |
-
<li class="wide cc-cvv">
|
84 |
-
<div class="cc">
|
85 |
-
<label class="required" for="credito_numero">Número:<em>*</em></label>
|
86 |
-
<div class="input-box">
|
87 |
-
<input type="text" name="payment[credito_numero]" id="credito_numero" class="input-text required-entry validate-cc-number validate-cc-type">
|
88 |
-
</div>
|
89 |
-
</div>
|
90 |
-
<div class="cvv tooltip-transparente-handler">
|
91 |
-
<label class="required" for="cvv">CVV: <i class="icon-question-sign"></i><em>*</em></label>
|
92 |
-
<div class="input-box">
|
93 |
-
<input type="text" name="payment[credito_codigo_seguranca]" onkeyup="countChar(this)" class="input-text required-entry ccv validate-cc-cvn" minlength="3" maxlength="4" id="credito_codigo_seguranca">
|
94 |
-
<span class="tooltip-transparente">
|
95 |
-
<span class="custom help" style=" width:260px;"><em>Código de segurança:</em></br>Veja no verso do seu cartão.<img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem/codigo-seguranca.png'); ?>" id="imageseguratransparente" border="0"></span>
|
96 |
-
</span>
|
97 |
-
</div>
|
98 |
-
</div>
|
99 |
-
</li>
|
100 |
-
<li class="wide cc-validade">
|
101 |
-
<label class="required" for="Validade">Validade:<em>*</em></label>
|
102 |
-
<div class="input-box">
|
103 |
-
<select name="payment[credito_expiracao_mes]" id="credito_expiracao_mes" class="input-text required-entry" >
|
104 |
-
<option value="">Mês</option>
|
105 |
-
<option value="01">01</option>
|
106 |
-
<option value="02">02</option>
|
107 |
-
<option value="03">03</option>
|
108 |
-
<option value="04">04</option>
|
109 |
-
<option value="05">05</option>
|
110 |
-
<option value="06">06</option>
|
111 |
-
<option value="07">07</option>
|
112 |
-
<option value="08">08</option>
|
113 |
-
<option value="09">09</option>
|
114 |
-
<option value="10">10</option>
|
115 |
-
<option value="11">11</option>
|
116 |
-
<option value="12">12</option>
|
117 |
-
</select>
|
118 |
-
<select name="payment[credito_expiracao_ano]" id="credito_expiracao_ano" class="input-text required-entry" >
|
119 |
-
<option value="">Ano</option>
|
120 |
-
<option value="13">13</option>
|
121 |
-
<option value="14">14</option>
|
122 |
-
<option value="15">15</option>
|
123 |
-
<option value="16">16</option>
|
124 |
-
<option value="17">17</option>
|
125 |
-
<option value="18">18</option>
|
126 |
-
<option value="19">19</option>
|
127 |
-
<option value="20">20</option>
|
128 |
-
<option value="21">21</option>
|
129 |
-
<option value="22">22</option>
|
130 |
-
<option value="23">23</option>
|
131 |
-
<option value="24">24</option>
|
132 |
-
<option value="25">25</option>
|
133 |
-
</select>
|
134 |
-
</div>
|
135 |
-
</li>
|
136 |
-
<li class="wide">
|
137 |
<label class="required" for="credito_parcela">Opções de pagamento<em>*</em></label>
|
138 |
<div class="input-box">
|
139 |
|
140 |
|
141 |
-
<select name="payment[credito_parcelamento]" id="credito_parcelamento" class="input-text required-entry" >
|
142 |
<option value="" select>Selecione as parcelas</option>
|
143 |
<?php $parcelas = $this->getParcelamento('parcelas'); ?>
|
144 |
<?php foreach ( $parcelas as $key => $value) { ?>
|
@@ -148,16 +211,21 @@ jQuery(document).ready(function() {
|
|
148 |
<?php echo $this->getTextoParcelas() ?>
|
149 |
</div>
|
150 |
</li>
|
151 |
-
</ul>
|
152 |
|
153 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
<ul class="form-list dados-titular">
|
155 |
<h3>Dados do Titular</h3>
|
156 |
<li class="wide tooltip-transparente-handler">
|
157 |
<label class="required" for="credito_parcela"><em>*</em>Nome no Cartão</label>
|
158 |
<div class="input-box">
|
159 |
-
<input type="text" name="payment[credito_portador_nome]" value="<?php echo $nome; ?>" class="input-text required-entry" id="credito_portador_nome" >
|
160 |
-
<span class="tooltip-transparente">
|
161 |
<span class="custom help"><em>Nome do titular</em><br>deverá ser exatamente como está no cartão.</span>
|
162 |
</span>
|
163 |
</div>
|
@@ -165,33 +233,32 @@ jQuery(document).ready(function() {
|
|
165 |
<li class="wide">
|
166 |
<label class="required" for="credito_parcela"><em>*</em>CPF</label>
|
167 |
<div class="input-box">
|
168 |
-
<input type="text" name="payment[credito_portador_cpf]" class="input-text required-entry validar_cpf"
|
169 |
</div>
|
170 |
</li>
|
171 |
-
<li class="wide
|
172 |
<label class="required" for="credito_parcela"><em>*</em>Telefone</label>
|
173 |
<div class="input-box">
|
174 |
-
<input type="text" name="payment[credito_portador_telefone]" id="credito_portador_telefone"
|
175 |
-
<span class="tooltip-transparente">
|
176 |
-
<span class="custom help"><em>Telefone de contato</em><br>Muitas vezes é necessária a confirmação manual de seus dados por nossa equipe de crédito, por favor informe um telefone em que seja fácil te localizar.</span>
|
177 |
-
</span>
|
178 |
</div>
|
179 |
</li>
|
180 |
<li class="wide">
|
181 |
<label class="required" for="credito_parcela"><em>*</em>Data nascimento</label>
|
182 |
<div class="input-box">
|
183 |
-
<input type="text" name="payment[credito_portador_nascimento]" id="credito_portador_nascimento"
|
184 |
</div>
|
185 |
</li>
|
186 |
</ul>
|
187 |
</div>
|
188 |
-
|
|
|
|
|
189 |
|
190 |
</li>
|
191 |
<?php endif; ?>
|
192 |
<?php if($this->mostraBoleto()): ?>
|
193 |
<li data-target="transparente-boleto" class='transparente-payment-method-line'>
|
194 |
-
<input type="radio" name="payment[forma_pagamento]" title="Boleto" <?php if(!$this->boletoDisponivel('valid')): ?>value="BoletoBancario" <?php endif; ?>class="forma_pg<?php if(!$this->boletoDisponivel('valid')): ?> invalid-boleto<?php endif; ?>">
|
195 |
<img alt="Boleto Bancário" src="<?php echo $this->getBoletoIcon(); ?>">
|
196 |
<div class="middle-method">
|
197 |
<div class="chamada">Boleto</div>
|
@@ -222,7 +289,7 @@ jQuery(document).ready(function() {
|
|
222 |
<?php endif; ?>
|
223 |
<?php if($this->mostraTransferencia()): ?>
|
224 |
<li data-target="transparente-transferencia" class='transparente-payment-method-line'>
|
225 |
-
<input type="radio" class="forma_pg" name="payment[forma_pagamento]" value="DebitoBancario" >
|
226 |
<img alt="Transferência Bancária" id="imageboleto" src="<?php echo $this->getTransferenciaIcon(); ?>">
|
227 |
<div class="middle-method">
|
228 |
<div class="chamada">Transferência</div>
|
@@ -244,23 +311,24 @@ jQuery(document).ready(function() {
|
|
244 |
<ul class="inline input-switcher input-switcher-4">
|
245 |
<li>
|
246 |
<img src="<?php echo $this->getBBImage(); ?>" alt="Banco do Brasil" id="debbb" >
|
247 |
-
<input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="BancoDoBrasil" class="validate-one-required-by-name">
|
248 |
</li>
|
249 |
<li>
|
250 |
<img src="<?php echo $this->getBradescoImage(); ?>" id="debbradesco" alt="Bradesco">
|
251 |
-
<input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="Bradesco" class="validate-one-required-by-name">
|
252 |
</li>
|
253 |
<li>
|
254 |
<img src="<?php echo $this->getItauImage(); ?>" id="debitau" alt="Itaú" >
|
255 |
-
<input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="Itau" class="validate-one-required-by-name">
|
256 |
</li>
|
257 |
<li>
|
258 |
<img src="<?php echo $this->getBanrisulImage(); ?>" id="Banrisul" alt="Banrisul" >
|
259 |
-
<input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="Banrisul" class="validate-one-required-by-name">
|
260 |
</li>
|
261 |
</ul>
|
|
|
262 |
</li>
|
263 |
<?php endif; ?>
|
264 |
</ul>
|
265 |
</div>
|
266 |
-
|
1 |
+
<?php $cofre = $this->getCofre(); ?>
|
2 |
+
<?php $nome ="" ?>
|
3 |
+
<?php $telefone ="" ?>
|
4 |
+
<?php $cpf ="" ?>
|
5 |
+
<?php $dn ="" ?>
|
|
|
|
|
|
|
6 |
<script type="text/javascript">
|
7 |
+
//<![CDATA[
|
8 |
+
function showBlocks(){
|
9 |
+
jQuery('ul.transparente-payment-methods li').first().click();
|
10 |
+
jQuery('ul.transparente-payment-methods').css({'display':'block'});
|
11 |
+
<?php if($cofre =="false"): ?>
|
12 |
+
jQuery('#transparente-cartao, #transparente-boleto, #transparente-transferencia').children().show();
|
13 |
+
<?php else: ?>
|
14 |
+
jQuery('#transparente-boleto, #transparente-transferencia').children().show();
|
15 |
+
jQuery('#transparente-cartao, .form-list-cofre').show();
|
16 |
+
<?php endif; ?>
|
17 |
+
}
|
18 |
jQuery(document).ready(function() {
|
19 |
+
<?php if(Mage::getStoreConfig('moipall/config/enable_carrinho')): ?>
|
20 |
+
if(jQuery("input.radio.payment_method_handle:checked").val() == "moip_transparente_standard"){
|
21 |
+
showBlocks();
|
22 |
+
} else {
|
23 |
+
hideBlocks();
|
24 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
if(jQuery("input[name=payment\\[method\\]]:checked").val() == "moip_transparente_standard" && jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val() != ""){
|
26 |
jQuery("#cartao_radio").trigger("click");
|
27 |
jQuery("#transparente-cartao").css({'display':'block'})
|
29 |
jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val();
|
30 |
jQuery("#transparente-cartao").css({'display':'none'});
|
31 |
}
|
32 |
+
<?php endif ?>
|
33 |
+
<?php if($cofre !="false"): ?>
|
34 |
+
jQuery(document).ready(function() {
|
35 |
+
jQuery(".cartao").hide();
|
36 |
+
jQuery(".formcli").hide();
|
37 |
+
});
|
38 |
+
<?php endif ?>
|
39 |
});
|
40 |
+
//]]>
|
41 |
</script>
|
42 |
+
<link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('MOIP/transparente/css/vertical_form.css'); ?>"media="all">
|
|
|
|
|
43 |
<div id="payment_form_<?php echo $this->getMethodCode() ?>" style="display:none">
|
44 |
<ul class="inline input-switcher transparente-payment-methods">
|
45 |
<?php if($this->mostraCartao()): ?>
|
46 |
<li data-target="transparente-cartao" class='transparente-payment-method-line'>
|
47 |
+
<input id="cartao_radio" type="radio" name="payment[forma_pagamento]" title="Cartão de Crédito" value="CartaoCredito" class="forma_pg input-text validate-one-required-by-name">
|
48 |
<img alt="Cartão de Crédito" src="<?php echo $this->getCartaoIcon(); ?>">
|
49 |
<div class="middle-method">
|
50 |
<div class="chamada">Cartão de Crédito</div>
|
56 |
</div>
|
57 |
</li>
|
58 |
<li class="transparente-payment-method-content row-fluid" id="transparente-cartao" style="display:none">
|
59 |
+
<h3>Cartão de Crédito</h3>
|
60 |
+
<?php if($cofre !="false"): ?>
|
61 |
+
<?php $cofre = Mage::helper('core')->jsonDecode($cofre); ?>
|
62 |
+
<ul class="form-list-cofre">
|
63 |
+
<input type="hidden" id="use_cofre" name="payment[use_cofre]" value="1" >
|
64 |
+
<input type="hidden" id="brand_cofre" name="payment[cofre_brand]" value="" >
|
65 |
+
<input type="hidden" id="cofre_numero" name="payment[cofre_numero]" value="" >
|
66 |
+
<?php foreach ($cofre as $key => $value): ?>
|
67 |
+
<?php $cardBrand = $value['brand_transparente'] ?>
|
68 |
+
<?php $cardNunber = $value['cofre'] ?>
|
69 |
+
<li class="cofre">
|
70 |
+
<label>
|
71 |
+
<div class="radio_cofre">
|
72 |
+
|
73 |
+
<input id="cartao_salvo" class="validate-one-required-by-name" type="radio" name="cofre_select" title="Cartão de Crédito Salvo" onclick="javascript:Cofre('<?php echo $cardBrand ?>','<?php echo $cardNunber ?>');">
|
74 |
+
</div>
|
75 |
+
<div class="image_cofre">
|
76 |
+
<img src="<?php echo $this->imageCofre($value['brand_transparente']); ?>" alt="<?php echo $value['brand_transparente']; ?>" border="0">
|
77 |
+
</div>
|
78 |
+
<div class="cofre_number">
|
79 |
+
<h4 class="brand_title"><?php echo $value['brand_transparente']; ?> </h4>
|
80 |
+
<?php echo $value['first6'] ?> ** **** <?php echo $value['last4'] ?>
|
81 |
+
</div>
|
82 |
+
</label>
|
83 |
+
</li>
|
84 |
+
<?php endforeach; ?>
|
85 |
+
<li class="wide cc-cvv">
|
86 |
+
<div class="cc">
|
87 |
+
<label class="required" for="credito_parcela">Parcelas<em>*</em></label>
|
88 |
+
<div class="input-box">
|
89 |
+
|
90 |
+
|
91 |
+
<select name="payment[cofre_parcelamento]" id="credito_parcelamento" class="input-text required-entry" title="Número de Parcelas" >
|
92 |
+
<option value="" select>Selecione as parcelas</option>
|
93 |
+
<?php $parcelas = $this->getParcelamento('parcelas'); ?>
|
94 |
+
<?php foreach ( $parcelas as $key => $value) { ?>
|
95 |
+
<?php echo $parcelas[$key]; ?>
|
96 |
+
<?php } ?>
|
97 |
+
</select>
|
98 |
+
<?php echo $this->getTextoParcelas() ?>
|
99 |
+
</div>
|
100 |
+
</div>
|
101 |
+
|
102 |
+
<div class="cvv tooltip-transparente-handler">
|
103 |
+
<label class="required" for="cvv">Código de Segurança<i class="icon-question-sign"></i><em>*</em></label>
|
104 |
+
<div class="input-box">
|
105 |
+
<input type="text" name="payment[cofre_cvv]" minlength="3" maxlength="4" id="cofre_cvv" class="input-text required-entry" title="Código de Segurança do Cartão" >
|
106 |
+
</div>
|
107 |
+
</div>
|
108 |
+
</li>
|
109 |
+
<li class="wide">
|
110 |
+
<label>
|
111 |
+
<input type="checkbox" name="payment[new_card]" title="Salvar Cartão para compras futuras?" id="new_card" class="checkbox" onclick="javascript:Novo()"> Comprar com um novo cartão</label>
|
112 |
+
</li>
|
113 |
+
</ul>
|
114 |
+
|
115 |
+
<?php endif; ?>
|
116 |
+
|
117 |
+
|
118 |
+
<ul class="form-list cartao">
|
119 |
+
|
120 |
+
<li class="wide cc-cvv">
|
121 |
+
<div class="cc">
|
122 |
+
<label class="required" for="credito_numero">Número<em>*</em></label>
|
123 |
+
<div class="input-box">
|
124 |
+
<input type="text" name="payment[credito_numero]" id="credito_numero" title="Número do seu Cartão de Crédito" class="input-text required-entry validate-cc-number validate-cc-type validate-number">
|
125 |
+
</div>
|
126 |
+
</div>
|
127 |
+
<div class="cvv tooltip-transparente-handler">
|
128 |
+
<label class="required" for="cvv">CVV <i class="icon-question-sign"></i><em>*</em></label>
|
129 |
+
<div class="input-box">
|
130 |
+
<input type="text" name="payment[credito_codigo_seguranca]" onkeyup="countChar(this)" title="Código de Seguranção do Seu Cartão" class="input-text required-entry ccv validate-cc-cvn validate-number" id="credito_codigo_seguranca" >
|
131 |
+
<span class="tooltip-transparente cvv_tooltip">
|
132 |
+
<span class="custom help" style=" width:260px;"><em>Código de segurança: </em> Veja no verso do seu cartão.<img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem/codigo-seguranca.png'); ?>" id="imageseguratransparente" border="0"></span>
|
133 |
+
</span>
|
134 |
+
</div>
|
135 |
+
</div>
|
136 |
+
</li>
|
137 |
<input type="hidden" name="transparente_cc_type" id="transparente_cc_type" value=""/>
|
138 |
+
<ul class="inline banderias-cartao input-brand-bandeira input-switcher-5">
|
|
|
139 |
<li>
|
140 |
<img src="<?php echo $this->getVisaImage(); ?>" alt="Visa" border="0" onclick="setCcType('VI');">
|
141 |
+
<input type="radio" id="bandeiratransparente" name="payment[credito_instituicao]" value="Visa" onclick="setCcType('VI');" title="Bandeira do seu cartão" class="Visa-moip validate-one-required-by-name" style="display:none;" >
|
142 |
</li>
|
143 |
<li>
|
144 |
<img src="<?php echo $this->getMastercardImage(); ?>" alt="Mastercard" border="0" onclick="setCcType('MC');">
|
145 |
+
<input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" value="Mastercard" onclick="setCcType('MC');" title="Bandeira do seu cartão" class="Mastercard-moip validate-one-required-by-name" style="display:none;" >
|
146 |
</li>
|
147 |
<li>
|
148 |
<img src="<?php echo $this->getAmericanExpressImage(); ?>" alt="AmericanExpress" border="0" onclick="setCcType('AE');">
|
149 |
+
<input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" value="AmericanExpress" onclick="setCcType('AE');" title="Bandeira do seu cartão" class="Amex-moip validate-one-required-by-name" style="display:none;" >
|
150 |
</li>
|
151 |
<li>
|
152 |
+
<img src="<?php echo $this->getDinersImage(); ?>" alt="Diners" border="0" onclick="setCcType('DI');">
|
153 |
+
<input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" value="Diners" onclick="setCcType('DI');" title="Bandeira do seu cartão" class="Dinners-moip validate-one-required-by-name" style="display:none;" >
|
154 |
</li>
|
155 |
<li>
|
156 |
+
<img src="<?php echo $this->getHipercardImage(); ?>" alt="Hipercard" border="0" onclick="setCcType('HI');">
|
157 |
+
<input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" value="Hipercard" onclick="setCcType('HI');" title="Bandeira do seu cartão" class="Hipercard-moip validate-one-required-by-name" style="display:none;" >
|
158 |
</li>
|
159 |
</ul>
|
160 |
+
|
161 |
+
<li class="wide cc-validade">
|
162 |
+
<label class="required" for="Validade">Validade<em>*</em></label>
|
163 |
+
<div class="input-box">
|
164 |
+
<select name="payment[credito_expiracao_mes]" id="credito_expiracao_mes" class="input-text required-entry" title="Mês de Vencimento do seu Cartão">
|
165 |
+
<option value="">Mês</option>
|
166 |
+
<option value="01">01</option>
|
167 |
+
<option value="02">02</option>
|
168 |
+
<option value="03">03</option>
|
169 |
+
<option value="04">04</option>
|
170 |
+
<option value="05">05</option>
|
171 |
+
<option value="06">06</option>
|
172 |
+
<option value="07">07</option>
|
173 |
+
<option value="08">08</option>
|
174 |
+
<option value="09">09</option>
|
175 |
+
<option value="10">10</option>
|
176 |
+
<option value="11">11</option>
|
177 |
+
<option value="12">12</option>
|
178 |
+
</select>
|
179 |
+
<select name="payment[credito_expiracao_ano]" id="credito_expiracao_ano" class="input-text required-entry" title="Ano de Vencimento do seu Cartão">
|
180 |
+
<option value="">Ano</option>
|
181 |
+
<option value="14">14</option>
|
182 |
+
<option value="15">15</option>
|
183 |
+
<option value="16">16</option>
|
184 |
+
<option value="17">17</option>
|
185 |
+
<option value="18">18</option>
|
186 |
+
<option value="19">19</option>
|
187 |
+
<option value="20">20</option>
|
188 |
+
<option value="21">21</option>
|
189 |
+
<option value="22">22</option>
|
190 |
+
<option value="23">23</option>
|
191 |
+
<option value="24">24</option>
|
192 |
+
<option value="25">25</option>
|
193 |
+
<option value="26">26</option>
|
194 |
+
</select>
|
195 |
+
</div>
|
196 |
+
</li>
|
197 |
+
<div class="alerta_data"></div>
|
198 |
|
199 |
+
<li class="wide">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
<label class="required" for="credito_parcela">Opções de pagamento<em>*</em></label>
|
201 |
<div class="input-box">
|
202 |
|
203 |
|
204 |
+
<select name="payment[credito_parcelamento]" id="credito_parcelamento" class="input-text required-entry" title="Número de Parcelas de sua Compra" >
|
205 |
<option value="" select>Selecione as parcelas</option>
|
206 |
<?php $parcelas = $this->getParcelamento('parcelas'); ?>
|
207 |
<?php foreach ( $parcelas as $key => $value) { ?>
|
211 |
<?php echo $this->getTextoParcelas() ?>
|
212 |
</div>
|
213 |
</li>
|
|
|
214 |
|
215 |
+
<li class="wide">
|
216 |
+
<label><input type="checkbox" name="payment[save_cart]" title="Salvar Cartão para compras futuras?" id="save_cart" class="checkbox"> Salvar cartão para compras futuras?</label>
|
217 |
+
</li>
|
218 |
+
|
219 |
+
</ul>
|
220 |
+
|
221 |
+
<div id="formcli" style="display:none;">
|
222 |
<ul class="form-list dados-titular">
|
223 |
<h3>Dados do Titular</h3>
|
224 |
<li class="wide tooltip-transparente-handler">
|
225 |
<label class="required" for="credito_parcela"><em>*</em>Nome no Cartão</label>
|
226 |
<div class="input-box">
|
227 |
+
<input type="text" name="payment[credito_portador_nome]" value="<?php echo $nome; ?>" class="input-text required-entry" title="Nome Impresso em seu Cartão" id="credito_portador_nome" >
|
228 |
+
<span class="tooltip-transparente nome_tooltip">
|
229 |
<span class="custom help"><em>Nome do titular</em><br>deverá ser exatamente como está no cartão.</span>
|
230 |
</span>
|
231 |
</div>
|
233 |
<li class="wide">
|
234 |
<label class="required" for="credito_parcela"><em>*</em>CPF</label>
|
235 |
<div class="input-box">
|
236 |
+
<input type="text" name="payment[credito_portador_cpf]" class="input-text required-entry validar_cpf" title="CPF do Titular de seu Cartão" id="credito_portador_cpf" value="<?php echo $cpf; ?>" >
|
237 |
</div>
|
238 |
</li>
|
239 |
+
<li class="wide">
|
240 |
<label class="required" for="credito_parcela"><em>*</em>Telefone</label>
|
241 |
<div class="input-box">
|
242 |
+
<input type="text" name="payment[credito_portador_telefone]" id="credito_portador_telefone" title="Telefone do Titular do Cartão" value="<?php echo $telefone; ?>" class="input-text required-entry">
|
|
|
|
|
|
|
243 |
</div>
|
244 |
</li>
|
245 |
<li class="wide">
|
246 |
<label class="required" for="credito_parcela"><em>*</em>Data nascimento</label>
|
247 |
<div class="input-box">
|
248 |
+
<input type="text" name="payment[credito_portador_nascimento]" id="credito_portador_nascimento" title="Data de Nascimento do Titular do Cartão" value="<?php if ($dn !='') { echo $dn; } ?>" class="input-text required-entry" >
|
249 |
</div>
|
250 |
</li>
|
251 |
</ul>
|
252 |
</div>
|
253 |
+
|
254 |
+
|
255 |
+
|
256 |
|
257 |
</li>
|
258 |
<?php endif; ?>
|
259 |
<?php if($this->mostraBoleto()): ?>
|
260 |
<li data-target="transparente-boleto" class='transparente-payment-method-line'>
|
261 |
+
<input type="radio" name="payment[forma_pagamento]" id="boleto_option" title="Boleto" <?php if(!$this->boletoDisponivel('valid')): ?>value="BoletoBancario" <?php endif; ?>class="forma_pg<?php if(!$this->boletoDisponivel('valid')): ?> invalid-boleto<?php endif; ?> input-text validate-one-required-by-name">
|
262 |
<img alt="Boleto Bancário" src="<?php echo $this->getBoletoIcon(); ?>">
|
263 |
<div class="middle-method">
|
264 |
<div class="chamada">Boleto</div>
|
289 |
<?php endif; ?>
|
290 |
<?php if($this->mostraTransferencia()): ?>
|
291 |
<li data-target="transparente-transferencia" class='transparente-payment-method-line'>
|
292 |
+
<input type="radio" class="forma_pg input-text validate-one-required-by-name" id="ted" name="payment[forma_pagamento]" value="DebitoBancario" >
|
293 |
<img alt="Transferência Bancária" id="imageboleto" src="<?php echo $this->getTransferenciaIcon(); ?>">
|
294 |
<div class="middle-method">
|
295 |
<div class="chamada">Transferência</div>
|
311 |
<ul class="inline input-switcher input-switcher-4">
|
312 |
<li>
|
313 |
<img src="<?php echo $this->getBBImage(); ?>" alt="Banco do Brasil" id="debbb" >
|
314 |
+
<input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="BancoDoBrasil" title="Banco Para a Transferência" class="validate-one-required-by-name">
|
315 |
</li>
|
316 |
<li>
|
317 |
<img src="<?php echo $this->getBradescoImage(); ?>" id="debbradesco" alt="Bradesco">
|
318 |
+
<input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="Bradesco" title="Banco Para a Transferência" class="validate-one-required-by-name">
|
319 |
</li>
|
320 |
<li>
|
321 |
<img src="<?php echo $this->getItauImage(); ?>" id="debitau" alt="Itaú" >
|
322 |
+
<input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="Itau" title="Banco Para a Transferência" class="validate-one-required-by-name">
|
323 |
</li>
|
324 |
<li>
|
325 |
<img src="<?php echo $this->getBanrisulImage(); ?>" id="Banrisul" alt="Banrisul" >
|
326 |
+
<input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="Banrisul" title="Banco Para a Transferência" class="validate-one-required-by-name">
|
327 |
</li>
|
328 |
</ul>
|
329 |
+
|
330 |
</li>
|
331 |
<?php endif; ?>
|
332 |
</ul>
|
333 |
</div>
|
334 |
+
<script type="text/javascript" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS); ?>MOIP/transparente/checkout.js"></script>
|
app/etc/modules/MOIP_Onestepcheckout.xml
CHANGED
@@ -6,4 +6,4 @@
|
|
6 |
<codePool>local</codePool>
|
7 |
</MOIP_Onestepcheckout>
|
8 |
</modules>
|
9 |
-
</config>
|
6 |
<codePool>local</codePool>
|
7 |
</MOIP_Onestepcheckout>
|
8 |
</modules>
|
9 |
+
</config>
|
js/MOIP/jquery.mask.min.js
CHANGED
@@ -392,4 +392,4 @@
|
|
392 |
input.mask(input.attr('data-mask'), options);
|
393 |
});
|
394 |
|
395 |
-
}));
|
392 |
input.mask(input.attr('data-mask'), options);
|
393 |
});
|
394 |
|
395 |
+
}));
|
js/MOIP/jquery_noconflict.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery.noConflict();
|
1 |
+
jQuery.noConflict();
|
js/MOIP/onestepcheckout/billing.js
CHANGED
@@ -1,25 +1,7 @@
|
|
1 |
jQuery(function() {
|
2 |
|
3 |
|
4 |
-
|
5 |
-
var val_pass=jQuery('#billing\\:customer_password').val();
|
6 |
-
var val_pass2=jQuery('#billing\\:confirm_password').val();
|
7 |
-
if(val_pass != val_pass2){
|
8 |
-
jQuery("#senha_invalida").html('');
|
9 |
-
jQuery(".senha_invalida").removeClass('validation-advice');
|
10 |
-
jQuery('#billing\\:confirm_password').after('<div class="validation-advice senha_invalida" id="senha_invalida">As Senhas não são iguais</div>');}
|
11 |
-
else{
|
12 |
-
jQuery("#senha_invalida").html('');
|
13 |
-
jQuery(".senha_invalida").removeClass('validation-advice');
|
14 |
-
}
|
15 |
-
});
|
16 |
-
jQuery('#billing\\:taxvat').focusout(function() {
|
17 |
-
var cpf = jQuery('#billing\\:taxvat').val();
|
18 |
-
var cpf = cpf.replace(/\./g, "");
|
19 |
-
var cpf = cpf.replace(/\-/g, "");
|
20 |
-
if(cpf>0)
|
21 |
-
TestaCPF(cpf);
|
22 |
-
});
|
23 |
|
24 |
jQuery('#billing\\:email').focusout(function() {
|
25 |
jQuery('#advice-validate-email-billing\\:email').html("");
|
@@ -32,24 +14,11 @@ jQuery(function() {
|
|
32 |
updateEmailmsg(val);
|
33 |
}
|
34 |
else{
|
35 |
-
|
36 |
-
jQuery('#billing\\:email').after('<div class="validation-advice email_invalido" id="advice-validate-email-billing:email">Informe um endereço de email válido. Por exemplo seunome@gmail.com.</div>');
|
37 |
}
|
38 |
}
|
39 |
});
|
40 |
|
41 |
-
var counter = 0;
|
42 |
-
jQuery('.form-list').find('.field').each(function(){
|
43 |
-
if(counter%2==0){
|
44 |
-
jQuery(this).addClass('even');
|
45 |
-
if(jQuery(this).next().is('.wide')){
|
46 |
-
counter++;
|
47 |
-
}
|
48 |
-
}else{
|
49 |
-
jQuery(this).addClass('odd');
|
50 |
-
}
|
51 |
-
counter++;
|
52 |
-
})
|
53 |
|
54 |
});
|
55 |
|
@@ -103,4 +72,4 @@ function TestaCPF(strCPF) {
|
|
103 |
jQuery('#billing\\:taxvat').after('<div class="validation-advice advice-validar_cpf" id="advice-validar_cpf" style="display: block;position:absolute;">CPF inválido, o seu cpf será mantido em sigílo, porém é necessário para a emissão da Nota Fiscal.</div>');
|
104 |
}
|
105 |
return true;
|
106 |
-
}
|
1 |
jQuery(function() {
|
2 |
|
3 |
|
4 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
jQuery('#billing\\:email').focusout(function() {
|
7 |
jQuery('#advice-validate-email-billing\\:email').html("");
|
14 |
updateEmailmsg(val);
|
15 |
}
|
16 |
else{
|
17 |
+
|
|
|
18 |
}
|
19 |
}
|
20 |
});
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
});
|
24 |
|
72 |
jQuery('#billing\\:taxvat').after('<div class="validation-advice advice-validar_cpf" id="advice-validar_cpf" style="display: block;position:absolute;">CPF inválido, o seu cpf será mantido em sigílo, porém é necessário para a emissão da Nota Fiscal.</div>');
|
73 |
}
|
74 |
return true;
|
75 |
+
}
|
js/MOIP/onestepcheckout/change-events.js
CHANGED
@@ -1,5 +1,37 @@
|
|
1 |
jQuery(function() {
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
jQuery('[id="shipping:same_as_billing"]').click(function() {
|
4 |
jQuery('#shipping_show').hide();
|
5 |
jQuery("#moip-osc-p2").removeClass('onestepcheckout-numbers onestepcheckout-numbers-3').addClass('onestepcheckout-numbers onestepcheckout-numbers-2');
|
@@ -22,6 +54,7 @@ jQuery(function() {
|
|
22 |
jQuery("#moip-osc-p4").removeClass('onestepcheckout-numbers onestepcheckout-numbers-4').addClass('onestepcheckout-numbers onestepcheckout-numbers-5');
|
23 |
flag = 0;
|
24 |
jQuery("#shipping_show").show();
|
|
|
25 |
jQuery("#ship_to_same_address").val(0);
|
26 |
} else {
|
27 |
jQuery('#shipping_show').hide();
|
@@ -69,4 +102,12 @@ jQuery(function() {
|
|
69 |
}
|
70 |
}
|
71 |
});
|
72 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
jQuery(function() {
|
2 |
+
jQuery("#billing-address-select").change(function(){
|
3 |
+
flag=1 ;
|
4 |
+
if(flag==1){
|
5 |
+
change_select=0;
|
6 |
+
if(this.value==""){
|
7 |
+
updateBillingForm(this.value,flag);
|
8 |
+
}
|
9 |
+
else{
|
10 |
+
updateBillingForm(this.value) ;
|
11 |
+
}
|
12 |
+
}
|
13 |
+
else{
|
14 |
+
updateBillingForm(this.value);
|
15 |
+
change_select=1;
|
16 |
+
}
|
17 |
+
});
|
18 |
+
jQuery("#shipping-address-select").change(function(){
|
19 |
+
flag=1 ;
|
20 |
+
if(flag==1){
|
21 |
+
change_select=0;
|
22 |
+
if(this.value==""){
|
23 |
+
|
24 |
+
updateShippingForm(this.value,flag);
|
25 |
+
}
|
26 |
+
else{
|
27 |
+
updateShippingForm(this.value);
|
28 |
+
}
|
29 |
+
}
|
30 |
+
else{
|
31 |
+
updateShippingForm(this.value);
|
32 |
+
change_select=1;
|
33 |
+
}
|
34 |
+
});
|
35 |
jQuery('[id="shipping:same_as_billing"]').click(function() {
|
36 |
jQuery('#shipping_show').hide();
|
37 |
jQuery("#moip-osc-p2").removeClass('onestepcheckout-numbers onestepcheckout-numbers-3').addClass('onestepcheckout-numbers onestepcheckout-numbers-2');
|
54 |
jQuery("#moip-osc-p4").removeClass('onestepcheckout-numbers onestepcheckout-numbers-4').addClass('onestepcheckout-numbers onestepcheckout-numbers-5');
|
55 |
flag = 0;
|
56 |
jQuery("#shipping_show").show();
|
57 |
+
jQuery("#shipping-new-address-form").show();
|
58 |
jQuery("#ship_to_same_address").val(0);
|
59 |
} else {
|
60 |
jQuery('#shipping_show').hide();
|
102 |
}
|
103 |
}
|
104 |
});
|
105 |
+
if (window.console){
|
106 |
+
if(window.clear){
|
107 |
+
var estilo = "color:red;font-size:24px";
|
108 |
+
console.log("%cParabéns desenvolvedor!", estilo);
|
109 |
+
console.log("Este é o primeiro passo para corrigirmos o funcionamento do seu magento.");
|
110 |
+
console.log("Por favor consulte a documentação: http://suporte.o2ti.com");
|
111 |
+
}
|
112 |
+
}
|
113 |
+
});
|
js/MOIP/script_mask.js
CHANGED
@@ -16,4 +16,4 @@ jQuery(document).ready(function(){
|
|
16 |
jQuery('#credito_portador_telefone').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
|
17 |
jQuery('#telephone').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
|
18 |
jQuery('#fax').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
|
19 |
-
});
|
16 |
jQuery('#credito_portador_telefone').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
|
17 |
jQuery('#telephone').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
|
18 |
jQuery('#fax').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
|
19 |
+
});
|
js/MOIP/transparente/bootstrap.min.js
CHANGED
@@ -3,4 +3,4 @@
|
|
3 |
* Copyright 2012 Twitter, Inc.
|
4 |
* http://www.apache.org/licenses/LICENSE-2.0.txt
|
5 |
*/
|
6 |
-
!function(a){a(function(){"use strict",a.support.transition=function(){var b=document.body||document.documentElement,c=b.style,d=c.transition!==undefined||c.WebkitTransition!==undefined||c.MozTransition!==undefined||c.MsTransition!==undefined||c.OTransition!==undefined;return d&&{end:function(){var b="TransitionEnd";return a.browser.webkit?b="webkitTransitionEnd":a.browser.mozilla?b="transitionend":a.browser.opera&&(b="oTransitionEnd"),b}()}}()})}(window.jQuery),!function(a){"use strict";var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.prototype={constructor:c,close:function(b){function f(){e.trigger("closed").remove()}var c=a(this),d=c.attr("data-target"),e;d||(d=c.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),e=a(d),e.trigger("close"),b&&b.preventDefault(),e.length||(e=c.hasClass("alert")?c:c.parent()),e.trigger("close").removeClass("in"),a.support.transition&&e.hasClass("fade")?e.on(a.support.transition.end,f):f()}},a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("alert");e||d.data("alert",e=new c(this)),typeof b=="string"&&e[b].call(d)})},a.fn.alert.Constructor=c,a(function(){a("body").on("click.alert.data-api",b,c.prototype.close)})}(window.jQuery),!function(a){"use strict";var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.button.defaults,c)};b.prototype={constructor:b,setState:function(a){var b="disabled",c=this.$element,d=c.data(),e=c.is("input")?"val":"html";a+="Text",d.resetText||c.data("resetText",c[e]()),c[e](d[a]||this.options[a]),setTimeout(function(){a=="loadingText"?c.addClass(b).attr(b,b):c.removeClass(b).removeAttr(b)},0)},toggle:function(){var a=this.$element.parent('[data-toggle="buttons-radio"]');a&&a.find(".active").removeClass("active"),this.$element.toggleClass("active")}},a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data("button"),f=typeof c=="object"&&c;e||d.data("button",e=new b(this,f)),c=="toggle"?e.toggle():c&&e.setState(c)})},a.fn.button.defaults={loadingText:"loading..."},a.fn.button.Constructor=b,a(function(){a("body").on("click.button.data-api","[data-toggle^=button]",function(b){var c=a(b.target);c.hasClass("btn")||(c=c.closest(".btn")),c.button("toggle")})})}(window.jQuery),!function(a){"use strict";var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.carousel.defaults,c),this.options.slide&&this.slide(this.options.slide),this.options.pause=="hover"&&this.$element.on("mouseenter",a.proxy(this.pause,this)).on("mouseleave",a.proxy(this.cycle,this))};b.prototype={cycle:function(){return this.interval=setInterval(a.proxy(this.next,this),this.options.interval),this},to:function(b){var c=this.$element.find(".active"),d=c.parent().children(),e=d.index(c),f=this;if(b>d.length-1||b<0)return;return this.sliding?this.$element.one("slid",function(){f.to(b)}):e==b?this.pause().cycle():this.slide(b>e?"next":"prev",a(d[b]))},pause:function(){return clearInterval(this.interval),this.interval=null,this},next:function(){if(this.sliding)return;return this.slide("next")},prev:function(){if(this.sliding)return;return this.slide("prev")},slide:function(b,c){var d=this.$element.find(".active"),e=c||d[b](),f=this.interval,g=b=="next"?"left":"right",h=b=="next"?"first":"last",i=this;this.sliding=!0,f&&this.pause(),e=e.length?e:this.$element.find(".item")[h]();if(e.hasClass("active"))return;return!a.support.transition&&this.$element.hasClass("slide")?(this.$element.trigger("slide"),d.removeClass("active"),e.addClass("active"),this.sliding=!1,this.$element.trigger("slid")):(e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),this.$element.trigger("slide"),this.$element.one(a.support.transition.end,function(){e.removeClass([b,g].join(" ")).addClass("active"),d.removeClass(["active",g].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger("slid")},0)})),f&&this.cycle(),this}},a.fn.carousel=function(c){return this.each(function(){var d=a(this),e=d.data("carousel"),f=typeof c=="object"&&c;e||d.data("carousel",e=new b(this,f)),typeof c=="number"?e.to(c):typeof c=="string"||(c=f.slide)?e[c]():e.cycle()})},a.fn.carousel.defaults={interval:5e3,pause:"hover"},a.fn.carousel.Constructor=b,a(function(){a("body").on("click.carousel.data-api","[data-slide]",function(b){var c=a(this),d,e=a(c.attr("data-target")||(d=c.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,"")),f=!e.data("modal")&&a.extend({},e.data(),c.data());e.carousel(f),b.preventDefault()})})}(window.jQuery),!function(a){"use strict";var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.collapse.defaults,c),this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.prototype={constructor:b,dimension:function(){var a=this.$element.hasClass("width");return a?"width":"height"},show:function(){var b=this.dimension(),c=a.camelCase(["scroll",b].join("-")),d=this.$parent&&this.$parent.find(".in"),e;d&&d.length&&(e=d.data("collapse"),d.collapse("hide"),e||d.data("collapse",null)),this.$element[b](0),this.transition("addClass","show","shown"),this.$element[b](this.$element[0][c])},hide:function(){var a=this.dimension();this.reset(this.$element[a]()),this.transition("removeClass","hide","hidden"),this.$element[a](0)},reset:function(a){var b=this.dimension();return this.$element.removeClass("collapse")[b](a||"auto")[0].offsetWidth,this.$element[a?"addClass":"removeClass"]("collapse"),this},transition:function(b,c,d){var e=this,f=function(){c=="show"&&e.reset(),e.$element.trigger(d)};this.$element.trigger(c)[b]("in"),a.support.transition&&this.$element.hasClass("collapse")?this.$element.one(a.support.transition.end,f):f()},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}},a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("collapse"),f=typeof c=="object"&&c;e||d.data("collapse",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.collapse.defaults={toggle:!0},a.fn.collapse.Constructor=b,a(function(){a("body").on("click.collapse.data-api","[data-toggle=collapse]",function(b){var c=a(this),d,e=c.attr("data-target")||b.preventDefault()||(d=c.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""),f=a(e).data("collapse")?"toggle":c.data();a(e).collapse(f)})})}(window.jQuery),!function(a){function d(){a(b).parent().removeClass("open")}"use strict";var b='[data-toggle="dropdown"]',c=function(b){var c=a(b).on("click.dropdown.data-api",this.toggle);a("html").on("click.dropdown.data-api",function(){c.parent().removeClass("open")})};c.prototype={constructor:c,toggle:function(b){var c=a(this),e=c.attr("data-target"),f,g;return e||(e=c.attr("href"),e=e&&e.replace(/.*(?=#[^\s]*$)/,"")),f=a(e),f.length||(f=c.parent()),g=f.hasClass("open"),d(),!g&&f.toggleClass("open"),!1}},a.fn.dropdown=function(b){return this.each(function(){var d=a(this),e=d.data("dropdown");e||d.data("dropdown",e=new c(this)),typeof b=="string"&&e[b].call(d)})},a.fn.dropdown.Constructor=c,a(function(){a("html").on("click.dropdown.data-api",d),a("body").on("click.dropdown.data-api",b,c.prototype.toggle)})}(window.jQuery),!function(a){function c(){var b=this,c=setTimeout(function(){b.$element.off(a.support.transition.end),d.call(b)},500);this.$element.one(a.support.transition.end,function(){clearTimeout(c),d.call(b)})}function d(a){this.$element.hide().trigger("hidden"),e.call(this)}function e(b){var c=this,d=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var e=a.support.transition&&d;this.$backdrop=a('<div class="modal-backdrop '+d+'" />').appendTo(document.body),this.options.backdrop!="static"&&this.$backdrop.click(a.proxy(this.hide,this)),e&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),e?this.$backdrop.one(a.support.transition.end,b):b()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(a.support.transition.end,a.proxy(f,this)):f.call(this)):b&&b()}function f(){this.$backdrop.remove(),this.$backdrop=null}function g(){var b=this;this.isShown&&this.options.keyboard?a(document).on("keyup.dismiss.modal",function(a){a.which==27&&b.hide()}):this.isShown||a(document).off("keyup.dismiss.modal")}"use strict";var b=function(b,c){this.options=c,this.$element=a(b).delegate('[data-dismiss="modal"]',"click.dismiss.modal",a.proxy(this.hide,this))};b.prototype={constructor:b,toggle:function(){return this[this.isShown?"hide":"show"]()},show:function(){var b=this;if(this.isShown)return;a("body").addClass("modal-open"),this.isShown=!0,this.$element.trigger("show"),g.call(this),e.call(this,function(){var c=a.support.transition&&b.$element.hasClass("fade");!b.$element.parent().length&&b.$element.appendTo(document.body),b.$element.show(),c&&b.$element[0].offsetWidth,b.$element.addClass("in"),c?b.$element.one(a.support.transition.end,function(){b.$element.trigger("shown")}):b.$element.trigger("shown")})},hide:function(b){b&&b.preventDefault();if(!this.isShown)return;var e=this;this.isShown=!1,a("body").removeClass("modal-open"),g.call(this),this.$element.trigger("hide").removeClass("in"),a.support.transition&&this.$element.hasClass("fade")?c.call(this):d.call(this)}},a.fn.modal=function(c){return this.each(function(){var d=a(this),e=d.data("modal"),f=a.extend({},a.fn.modal.defaults,d.data(),typeof c=="object"&&c);e||d.data("modal",e=new b(this,f)),typeof c=="string"?e[c]():f.show&&e.show()})},a.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},a.fn.modal.Constructor=b,a(function(){a("body").on("click.modal.data-api",'[data-toggle="modal"]',function(b){var c=a(this),d,e=a(c.attr("data-target")||(d=c.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,"")),f=e.data("modal")?"toggle":a.extend({},e.data(),c.data());b.preventDefault(),e.modal(f)})})}(window.jQuery),!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.enabled=!0,this.options.trigger!="manual"&&(e=this.options.trigger=="hover"?"mouseenter":"focus",f=this.options.trigger=="hover"?"mouseleave":"blur",this.$element.on(e,this.options.selector,a.proxy(this.enter,this)),this.$element.on(f,this.options.selector,a.proxy(this.leave,this))),this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(b){return b=a.extend({},a.fn[this.type].defaults,b,this.$element.data()),b.delay&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay}),b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);!c.options.delay||!c.options.delay.show?c.show():(c.hoverState="in",setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show))},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);!c.options.delay||!c.options.delay.hide?c.hide():(c.hoverState="out",setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide))},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip(),this.setContent(),this.options.animation&&a.addClass("fade"),f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement,b=/in/.test(f),a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body),c=this.getPosition(b),d=a[0].offsetWidth,e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).addClass("in")}},setContent:function(){var a=this.tip();a.find(".tooltip-inner").html(this.getTitle()),a.removeClass("fade in top bottom left right")},hide:function(){function d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b),c.remove()})}var b=this,c=this.tip();c.removeClass("in"),a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&a.attr("data-original-title",a.attr("title")||"").removeAttr("title")},hasContent:function(){return this.getTitle()},getPosition:function(b){return a.extend({},b?{top:0,left:0}:this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight})},getTitle:function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title),a=(a||"").toString().replace(/(^\s*|\s*$)/,""),a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(){this[this.tip().hasClass("in")?"hide":"show"]()}},a.fn.tooltip=function(c){return this.each(function(){var d=a(this),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.tooltip.Constructor=b,a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'}}(window.jQuery),!function(a){"use strict";var b=function(a,b){this.init("popover",a,b)};b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype,{constructor:b,setContent:function(){var b=this.tip(),c=this.getTitle(),d=this.getContent();b.find(".popover-title")[a.type(c)=="object"?"append":"html"](c),b.find(".popover-content > *")[a.type(d)=="object"?"append":"html"](d),b.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var a,b=this.$element,c=this.options;return a=b.attr("data-content")||(typeof c.content=="function"?c.content.call(b[0]):c.content),a=a.toString().replace(/(^\s*|\s*$)/,""),a},tip:function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip}}),a.fn.popover=function(c){return this.each(function(){var d=a(this),e=d.data("popover"),f=typeof c=="object"&&c;e||d.data("popover",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.popover.Constructor=b,a.fn.popover.defaults=a.extend({},a.fn.tooltip.defaults,{placement:"right",content:"",template:'<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"><p></p></div></div></div>'})}(window.jQuery),!function(a){function b(b,c){var d=a.proxy(this.process,this),e=a(b).is("body")?a(window):a(b),f;this.options=a.extend({},a.fn.scrollspy.defaults,c),this.$scrollElement=e.on("scroll.scroll.data-api",d),this.selector=(this.options.target||(f=a(b).attr("href"))&&f.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.$body=a("body").on("click.scroll.data-api",this.selector,d),this.refresh(),this.process()}"use strict",b.prototype={constructor:b,refresh:function(){this.targets=this.$body.find(this.selector).map(function(){var b=a(this).attr("href");return/^#\w/.test(b)&&a(b).length?b:null}),this.offsets=a.map(this.targets,function(b){return a(b).position().top})},process:function(){var a=this.$scrollElement.scrollTop()+this.options.offset,b=this.offsets,c=this.targets,d=this.activeTarget,e;for(e=b.length;e--;)d!=c[e]&&a>=b[e]&&(!b[e+1]||a<=b[e+1])&&this.activate(c[e])},activate:function(a){var b;this.activeTarget=a,this.$body.find(this.selector).parent(".active").removeClass("active"),b=this.$body.find(this.selector+'[href="'+a+'"]').parent("li").addClass("active"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active")}},a.fn.scrollspy=function(c){return this.each(function(){var d=a(this),e=d.data("scrollspy"),f=typeof c=="object"&&c;e||d.data("scrollspy",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.scrollspy.Constructor=b,a.fn.scrollspy.defaults={offset:10},a(function(){a('[data-spy="scroll"]').each(function(){var b=a(this);b.scrollspy(b.data())})})}(window.jQuery),!function(a){"use strict";var b=function(b){this.element=a(b)};b.prototype={constructor:b,show:function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.attr("data-target"),e,f;d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,""));if(b.parent("li").hasClass("active"))return;e=c.find(".active a").last()[0],b.trigger({type:"show",relatedTarget:e}),f=a(d),this.activate(b.parent("li"),c),this.activate(f,f.parent(),function(){b.trigger({type:"shown",relatedTarget:e})})},activate:function(b,c,d){function g(){e.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),b.addClass("active"),f?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active"),d&&d()}var e=c.find("> .active"),f=d&&a.support.transition&&e.hasClass("fade");f?e.one(a.support.transition.end,g):g(),e.removeClass("in")}},a.fn.tab=function(c){return this.each(function(){var d=a(this),e=d.data("tab");e||d.data("tab",e=new b(this)),typeof c=="string"&&e[c]()})},a.fn.tab.Constructor=b,a(function(){a("body").on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(b){b.preventDefault(),a(this).tab("show")})})}(window.jQuery),!function(a){"use strict";var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.typeahead.defaults,c),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.highlighter=this.options.highlighter||this.highlighter,this.$menu=a(this.options.menu).appendTo("body"),this.source=this.options.source,this.shown=!1,this.listen()};b.prototype={constructor:b,select:function(){var a=this.$menu.find(".active").attr("data-value");return this.$element.val(a),this.$element.change(),this.hide()},show:function(){var b=a.extend({},this.$element.offset(),{height:this.$element[0].offsetHeight});return this.$menu.css({top:b.top+b.height,left:b.left}),this.$menu.show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(b){var c=this,d,e;return this.query=this.$element.val(),this.query?(d=a.grep(this.source,function(a){if(c.matcher(a))return a}),d=this.sorter(d),d.length?this.render(d.slice(0,this.options.items)).show():this.shown?this.hide():this):this.shown?this.hide():this},matcher:function(a){return~a.toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(a){var b=[],c=[],d=[],e;while(e=a.shift())e.toLowerCase().indexOf(this.query.toLowerCase())?~e.indexOf(this.query)?c.push(e):d.push(e):b.push(e);return b.concat(c,d)},highlighter:function(a){return a.replace(new RegExp("("+this.query+")","ig"),function(a,b){return"<strong>"+b+"</strong>"})},render:function(b){var c=this;return b=a(b).map(function(b,d){return b=a(c.options.item).attr("data-value",d),b.find("a").html(c.highlighter(d)),b[0]}),b.first().addClass("active"),this.$menu.html(b),this},next:function(b){var c=this.$menu.find(".active").removeClass("active"),d=c.next();d.length||(d=a(this.$menu.find("li")[0])),d.addClass("active")},prev:function(a){var b=this.$menu.find(".active").removeClass("active"),c=b.prev();c.length||(c=this.$menu.find("li").last()),c.addClass("active")},listen:function(){this.$element.on("blur",a.proxy(this.blur,this)).on("keypress",a.proxy(this.keypress,this)).on("keyup",a.proxy(this.keyup,this)),(a.browser.webkit||a.browser.msie)&&this.$element.on("keydown",a.proxy(this.keypress,this)),this.$menu.on("click",a.proxy(this.click,this)).on("mouseenter","li",a.proxy(this.mouseenter,this))},keyup:function(a){switch(a.keyCode){case 40:case 38:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.lookup()}a.stopPropagation(),a.preventDefault()},keypress:function(a){if(!this.shown)return;switch(a.keyCode){case 9:case 13:case 27:a.preventDefault();break;case 38:a.preventDefault(),this.prev();break;case 40:a.preventDefault(),this.next()}a.stopPropagation()},blur:function(a){var b=this;setTimeout(function(){b.hide()},150)},click:function(a){a.stopPropagation(),a.preventDefault(),this.select()},mouseenter:function(b){this.$menu.find(".active").removeClass("active"),a(b.currentTarget).addClass("active")}},a.fn.typeahead=function(c){return this.each(function(){var d=a(this),e=d.data("typeahead"),f=typeof c=="object"&&c;e||d.data("typeahead",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.typeahead.defaults={source:[],items:8,menu:'<ul class="typeahead dropdown-menu"></ul>',item:'<li><a href="#"></a></li>'},a.fn.typeahead.Constructor=b,a(function(){a("body").on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(b){var c=a(this);if(c.data("typeahead"))return;b.preventDefault(),c.typeahead(c.data())})})}(window.jQuery);
|
3 |
* Copyright 2012 Twitter, Inc.
|
4 |
* http://www.apache.org/licenses/LICENSE-2.0.txt
|
5 |
*/
|
6 |
+
!function(a){a(function(){"use strict",a.support.transition=function(){var b=document.body||document.documentElement,c=b.style,d=c.transition!==undefined||c.WebkitTransition!==undefined||c.MozTransition!==undefined||c.MsTransition!==undefined||c.OTransition!==undefined;return d&&{end:function(){var b="TransitionEnd";return a.browser.webkit?b="webkitTransitionEnd":a.browser.mozilla?b="transitionend":a.browser.opera&&(b="oTransitionEnd"),b}()}}()})}(window.jQuery),!function(a){"use strict";var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.prototype={constructor:c,close:function(b){function f(){e.trigger("closed").remove()}var c=a(this),d=c.attr("data-target"),e;d||(d=c.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),e=a(d),e.trigger("close"),b&&b.preventDefault(),e.length||(e=c.hasClass("alert")?c:c.parent()),e.trigger("close").removeClass("in"),a.support.transition&&e.hasClass("fade")?e.on(a.support.transition.end,f):f()}},a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("alert");e||d.data("alert",e=new c(this)),typeof b=="string"&&e[b].call(d)})},a.fn.alert.Constructor=c,a(function(){a("body").on("click.alert.data-api",b,c.prototype.close)})}(window.jQuery),!function(a){"use strict";var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.button.defaults,c)};b.prototype={constructor:b,setState:function(a){var b="disabled",c=this.$element,d=c.data(),e=c.is("input")?"val":"html";a+="Text",d.resetText||c.data("resetText",c[e]()),c[e](d[a]||this.options[a]),setTimeout(function(){a=="loadingText"?c.addClass(b).attr(b,b):c.removeClass(b).removeAttr(b)},0)},toggle:function(){var a=this.$element.parent('[data-toggle="buttons-radio"]');a&&a.find(".active").removeClass("active"),this.$element.toggleClass("active")}},a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data("button"),f=typeof c=="object"&&c;e||d.data("button",e=new b(this,f)),c=="toggle"?e.toggle():c&&e.setState(c)})},a.fn.button.defaults={loadingText:"loading..."},a.fn.button.Constructor=b,a(function(){a("body").on("click.button.data-api","[data-toggle^=button]",function(b){var c=a(b.target);c.hasClass("btn")||(c=c.closest(".btn")),c.button("toggle")})})}(window.jQuery),!function(a){"use strict";var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.carousel.defaults,c),this.options.slide&&this.slide(this.options.slide),this.options.pause=="hover"&&this.$element.on("mouseenter",a.proxy(this.pause,this)).on("mouseleave",a.proxy(this.cycle,this))};b.prototype={cycle:function(){return this.interval=setInterval(a.proxy(this.next,this),this.options.interval),this},to:function(b){var c=this.$element.find(".active"),d=c.parent().children(),e=d.index(c),f=this;if(b>d.length-1||b<0)return;return this.sliding?this.$element.one("slid",function(){f.to(b)}):e==b?this.pause().cycle():this.slide(b>e?"next":"prev",a(d[b]))},pause:function(){return clearInterval(this.interval),this.interval=null,this},next:function(){if(this.sliding)return;return this.slide("next")},prev:function(){if(this.sliding)return;return this.slide("prev")},slide:function(b,c){var d=this.$element.find(".active"),e=c||d[b](),f=this.interval,g=b=="next"?"left":"right",h=b=="next"?"first":"last",i=this;this.sliding=!0,f&&this.pause(),e=e.length?e:this.$element.find(".item")[h]();if(e.hasClass("active"))return;return!a.support.transition&&this.$element.hasClass("slide")?(this.$element.trigger("slide"),d.removeClass("active"),e.addClass("active"),this.sliding=!1,this.$element.trigger("slid")):(e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),this.$element.trigger("slide"),this.$element.one(a.support.transition.end,function(){e.removeClass([b,g].join(" ")).addClass("active"),d.removeClass(["active",g].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger("slid")},0)})),f&&this.cycle(),this}},a.fn.carousel=function(c){return this.each(function(){var d=a(this),e=d.data("carousel"),f=typeof c=="object"&&c;e||d.data("carousel",e=new b(this,f)),typeof c=="number"?e.to(c):typeof c=="string"||(c=f.slide)?e[c]():e.cycle()})},a.fn.carousel.defaults={interval:5e3,pause:"hover"},a.fn.carousel.Constructor=b,a(function(){a("body").on("click.carousel.data-api","[data-slide]",function(b){var c=a(this),d,e=a(c.attr("data-target")||(d=c.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,"")),f=!e.data("modal")&&a.extend({},e.data(),c.data());e.carousel(f),b.preventDefault()})})}(window.jQuery),!function(a){"use strict";var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.collapse.defaults,c),this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.prototype={constructor:b,dimension:function(){var a=this.$element.hasClass("width");return a?"width":"height"},show:function(){var b=this.dimension(),c=a.camelCase(["scroll",b].join("-")),d=this.$parent&&this.$parent.find(".in"),e;d&&d.length&&(e=d.data("collapse"),d.collapse("hide"),e||d.data("collapse",null)),this.$element[b](0),this.transition("addClass","show","shown"),this.$element[b](this.$element[0][c])},hide:function(){var a=this.dimension();this.reset(this.$element[a]()),this.transition("removeClass","hide","hidden"),this.$element[a](0)},reset:function(a){var b=this.dimension();return this.$element.removeClass("collapse")[b](a||"auto")[0].offsetWidth,this.$element[a?"addClass":"removeClass"]("collapse"),this},transition:function(b,c,d){var e=this,f=function(){c=="show"&&e.reset(),e.$element.trigger(d)};this.$element.trigger(c)[b]("in"),a.support.transition&&this.$element.hasClass("collapse")?this.$element.one(a.support.transition.end,f):f()},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}},a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("collapse"),f=typeof c=="object"&&c;e||d.data("collapse",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.collapse.defaults={toggle:!0},a.fn.collapse.Constructor=b,a(function(){a("body").on("click.collapse.data-api","[data-toggle=collapse]",function(b){var c=a(this),d,e=c.attr("data-target")||b.preventDefault()||(d=c.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""),f=a(e).data("collapse")?"toggle":c.data();a(e).collapse(f)})})}(window.jQuery),!function(a){function d(){a(b).parent().removeClass("open")}"use strict";var b='[data-toggle="dropdown"]',c=function(b){var c=a(b).on("click.dropdown.data-api",this.toggle);a("html").on("click.dropdown.data-api",function(){c.parent().removeClass("open")})};c.prototype={constructor:c,toggle:function(b){var c=a(this),e=c.attr("data-target"),f,g;return e||(e=c.attr("href"),e=e&&e.replace(/.*(?=#[^\s]*$)/,"")),f=a(e),f.length||(f=c.parent()),g=f.hasClass("open"),d(),!g&&f.toggleClass("open"),!1}},a.fn.dropdown=function(b){return this.each(function(){var d=a(this),e=d.data("dropdown");e||d.data("dropdown",e=new c(this)),typeof b=="string"&&e[b].call(d)})},a.fn.dropdown.Constructor=c,a(function(){a("html").on("click.dropdown.data-api",d),a("body").on("click.dropdown.data-api",b,c.prototype.toggle)})}(window.jQuery),!function(a){function c(){var b=this,c=setTimeout(function(){b.$element.off(a.support.transition.end),d.call(b)},500);this.$element.one(a.support.transition.end,function(){clearTimeout(c),d.call(b)})}function d(a){this.$element.hide().trigger("hidden"),e.call(this)}function e(b){var c=this,d=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var e=a.support.transition&&d;this.$backdrop=a('<div class="modal-backdrop '+d+'" />').appendTo(document.body),this.options.backdrop!="static"&&this.$backdrop.click(a.proxy(this.hide,this)),e&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),e?this.$backdrop.one(a.support.transition.end,b):b()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(a.support.transition.end,a.proxy(f,this)):f.call(this)):b&&b()}function f(){this.$backdrop.remove(),this.$backdrop=null}function g(){var b=this;this.isShown&&this.options.keyboard?a(document).on("keyup.dismiss.modal",function(a){a.which==27&&b.hide()}):this.isShown||a(document).off("keyup.dismiss.modal")}"use strict";var b=function(b,c){this.options=c,this.$element=a(b).delegate('[data-dismiss="modal"]',"click.dismiss.modal",a.proxy(this.hide,this))};b.prototype={constructor:b,toggle:function(){return this[this.isShown?"hide":"show"]()},show:function(){var b=this;if(this.isShown)return;a("body").addClass("modal-open"),this.isShown=!0,this.$element.trigger("show"),g.call(this),e.call(this,function(){var c=a.support.transition&&b.$element.hasClass("fade");!b.$element.parent().length&&b.$element.appendTo(document.body),b.$element.show(),c&&b.$element[0].offsetWidth,b.$element.addClass("in"),c?b.$element.one(a.support.transition.end,function(){b.$element.trigger("shown")}):b.$element.trigger("shown")})},hide:function(b){b&&b.preventDefault();if(!this.isShown)return;var e=this;this.isShown=!1,a("body").removeClass("modal-open"),g.call(this),this.$element.trigger("hide").removeClass("in"),a.support.transition&&this.$element.hasClass("fade")?c.call(this):d.call(this)}},a.fn.modal=function(c){return this.each(function(){var d=a(this),e=d.data("modal"),f=a.extend({},a.fn.modal.defaults,d.data(),typeof c=="object"&&c);e||d.data("modal",e=new b(this,f)),typeof c=="string"?e[c]():f.show&&e.show()})},a.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},a.fn.modal.Constructor=b,a(function(){a("body").on("click.modal.data-api",'[data-toggle="modal"]',function(b){var c=a(this),d,e=a(c.attr("data-target")||(d=c.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,"")),f=e.data("modal")?"toggle":a.extend({},e.data(),c.data());b.preventDefault(),e.modal(f)})})}(window.jQuery),!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.enabled=!0,this.options.trigger!="manual"&&(e=this.options.trigger=="hover"?"mouseenter":"focus",f=this.options.trigger=="hover"?"mouseleave":"blur",this.$element.on(e,this.options.selector,a.proxy(this.enter,this)),this.$element.on(f,this.options.selector,a.proxy(this.leave,this))),this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(b){return b=a.extend({},a.fn[this.type].defaults,b,this.$element.data()),b.delay&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay}),b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);!c.options.delay||!c.options.delay.show?c.show():(c.hoverState="in",setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show))},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);!c.options.delay||!c.options.delay.hide?c.hide():(c.hoverState="out",setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide))},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip(),this.setContent(),this.options.animation&&a.addClass("fade"),f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement,b=/in/.test(f),a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body),c=this.getPosition(b),d=a[0].offsetWidth,e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).addClass("in")}},setContent:function(){var a=this.tip();a.find(".tooltip-inner").html(this.getTitle()),a.removeClass("fade in top bottom left right")},hide:function(){function d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b),c.remove()})}var b=this,c=this.tip();c.removeClass("in"),a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&a.attr("data-original-title",a.attr("title")||"").removeAttr("title")},hasContent:function(){return this.getTitle()},getPosition:function(b){return a.extend({},b?{top:0,left:0}:this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight})},getTitle:function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title),a=(a||"").toString().replace(/(^\s*|\s*$)/,""),a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(){this[this.tip().hasClass("in")?"hide":"show"]()}},a.fn.tooltip=function(c){return this.each(function(){var d=a(this),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.tooltip.Constructor=b,a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'}}(window.jQuery),!function(a){"use strict";var b=function(a,b){this.init("popover",a,b)};b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype,{constructor:b,setContent:function(){var b=this.tip(),c=this.getTitle(),d=this.getContent();b.find(".popover-title")[a.type(c)=="object"?"append":"html"](c),b.find(".popover-content > *")[a.type(d)=="object"?"append":"html"](d),b.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var a,b=this.$element,c=this.options;return a=b.attr("data-content")||(typeof c.content=="function"?c.content.call(b[0]):c.content),a=a.toString().replace(/(^\s*|\s*$)/,""),a},tip:function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip}}),a.fn.popover=function(c){return this.each(function(){var d=a(this),e=d.data("popover"),f=typeof c=="object"&&c;e||d.data("popover",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.popover.Constructor=b,a.fn.popover.defaults=a.extend({},a.fn.tooltip.defaults,{placement:"right",content:"",template:'<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"><p></p></div></div></div>'})}(window.jQuery),!function(a){function b(b,c){var d=a.proxy(this.process,this),e=a(b).is("body")?a(window):a(b),f;this.options=a.extend({},a.fn.scrollspy.defaults,c),this.$scrollElement=e.on("scroll.scroll.data-api",d),this.selector=(this.options.target||(f=a(b).attr("href"))&&f.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.$body=a("body").on("click.scroll.data-api",this.selector,d),this.refresh(),this.process()}"use strict",b.prototype={constructor:b,refresh:function(){this.targets=this.$body.find(this.selector).map(function(){var b=a(this).attr("href");return/^#\w/.test(b)&&a(b).length?b:null}),this.offsets=a.map(this.targets,function(b){return a(b).position().top})},process:function(){var a=this.$scrollElement.scrollTop()+this.options.offset,b=this.offsets,c=this.targets,d=this.activeTarget,e;for(e=b.length;e--;)d!=c[e]&&a>=b[e]&&(!b[e+1]||a<=b[e+1])&&this.activate(c[e])},activate:function(a){var b;this.activeTarget=a,this.$body.find(this.selector).parent(".active").removeClass("active"),b=this.$body.find(this.selector+'[href="'+a+'"]').parent("li").addClass("active"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active")}},a.fn.scrollspy=function(c){return this.each(function(){var d=a(this),e=d.data("scrollspy"),f=typeof c=="object"&&c;e||d.data("scrollspy",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.scrollspy.Constructor=b,a.fn.scrollspy.defaults={offset:10},a(function(){a('[data-spy="scroll"]').each(function(){var b=a(this);b.scrollspy(b.data())})})}(window.jQuery),!function(a){"use strict";var b=function(b){this.element=a(b)};b.prototype={constructor:b,show:function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.attr("data-target"),e,f;d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,""));if(b.parent("li").hasClass("active"))return;e=c.find(".active a").last()[0],b.trigger({type:"show",relatedTarget:e}),f=a(d),this.activate(b.parent("li"),c),this.activate(f,f.parent(),function(){b.trigger({type:"shown",relatedTarget:e})})},activate:function(b,c,d){function g(){e.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),b.addClass("active"),f?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active"),d&&d()}var e=c.find("> .active"),f=d&&a.support.transition&&e.hasClass("fade");f?e.one(a.support.transition.end,g):g(),e.removeClass("in")}},a.fn.tab=function(c){return this.each(function(){var d=a(this),e=d.data("tab");e||d.data("tab",e=new b(this)),typeof c=="string"&&e[c]()})},a.fn.tab.Constructor=b,a(function(){a("body").on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(b){b.preventDefault(),a(this).tab("show")})})}(window.jQuery),!function(a){"use strict";var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.typeahead.defaults,c),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.highlighter=this.options.highlighter||this.highlighter,this.$menu=a(this.options.menu).appendTo("body"),this.source=this.options.source,this.shown=!1,this.listen()};b.prototype={constructor:b,select:function(){var a=this.$menu.find(".active").attr("data-value");return this.$element.val(a),this.$element.change(),this.hide()},show:function(){var b=a.extend({},this.$element.offset(),{height:this.$element[0].offsetHeight});return this.$menu.css({top:b.top+b.height,left:b.left}),this.$menu.show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(b){var c=this,d,e;return this.query=this.$element.val(),this.query?(d=a.grep(this.source,function(a){if(c.matcher(a))return a}),d=this.sorter(d),d.length?this.render(d.slice(0,this.options.items)).show():this.shown?this.hide():this):this.shown?this.hide():this},matcher:function(a){return~a.toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(a){var b=[],c=[],d=[],e;while(e=a.shift())e.toLowerCase().indexOf(this.query.toLowerCase())?~e.indexOf(this.query)?c.push(e):d.push(e):b.push(e);return b.concat(c,d)},highlighter:function(a){return a.replace(new RegExp("("+this.query+")","ig"),function(a,b){return"<strong>"+b+"</strong>"})},render:function(b){var c=this;return b=a(b).map(function(b,d){return b=a(c.options.item).attr("data-value",d),b.find("a").html(c.highlighter(d)),b[0]}),b.first().addClass("active"),this.$menu.html(b),this},next:function(b){var c=this.$menu.find(".active").removeClass("active"),d=c.next();d.length||(d=a(this.$menu.find("li")[0])),d.addClass("active")},prev:function(a){var b=this.$menu.find(".active").removeClass("active"),c=b.prev();c.length||(c=this.$menu.find("li").last()),c.addClass("active")},listen:function(){this.$element.on("blur",a.proxy(this.blur,this)).on("keypress",a.proxy(this.keypress,this)).on("keyup",a.proxy(this.keyup,this)),(a.browser.webkit||a.browser.msie)&&this.$element.on("keydown",a.proxy(this.keypress,this)),this.$menu.on("click",a.proxy(this.click,this)).on("mouseenter","li",a.proxy(this.mouseenter,this))},keyup:function(a){switch(a.keyCode){case 40:case 38:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.lookup()}a.stopPropagation(),a.preventDefault()},keypress:function(a){if(!this.shown)return;switch(a.keyCode){case 9:case 13:case 27:a.preventDefault();break;case 38:a.preventDefault(),this.prev();break;case 40:a.preventDefault(),this.next()}a.stopPropagation()},blur:function(a){var b=this;setTimeout(function(){b.hide()},150)},click:function(a){a.stopPropagation(),a.preventDefault(),this.select()},mouseenter:function(b){this.$menu.find(".active").removeClass("active"),a(b.currentTarget).addClass("active")}},a.fn.typeahead=function(c){return this.each(function(){var d=a(this),e=d.data("typeahead"),f=typeof c=="object"&&c;e||d.data("typeahead",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.typeahead.defaults={source:[],items:8,menu:'<ul class="typeahead dropdown-menu"></ul>',item:'<li><a href="#"></a></li>'},a.fn.typeahead.Constructor=b,a(function(){a("body").on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(b){var c=a(this);if(c.data("typeahead"))return;b.preventDefault(),c.typeahead(c.data())})})}(window.jQuery);
|
js/MOIP/transparente/checkout.js
CHANGED
@@ -1,149 +1,184 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
}
|
4 |
-
|
5 |
-
{
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
26 |
}
|
27 |
-
}
|
28 |
-
function
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
}
|
46 |
}
|
47 |
-
|
48 |
-
jQuery(
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
{
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
{
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
}
|
110 |
-
|
111 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
}
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
var el = this;
|
148 |
setTimeout(function(){
|
149 |
var card = jQuery(el).val().replace(/[^0-9]/g,'');
|
@@ -172,5 +207,109 @@ jQuery(document).ready(function() {
|
|
172 |
}
|
173 |
});
|
174 |
},0);
|
175 |
-
|
176 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery('#credito_portador_telefone').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
|
2 |
+
jQuery('#credito_portador_cpf').mask("000.000.000-00", {placeholder: "___.___.___-__"});
|
3 |
+
jQuery('#credito_portador_nascimento').mask("99/99/9999", {placeholder: "__/__/____"});
|
4 |
+
jQuery('.input-brand-bandeira > li').bind({
|
5 |
+
click: function() {
|
6 |
+
jQuery(this).parent().find('input[type="radio"]').prop('checked',false);
|
7 |
+
jQuery(this).parent().find('img').hide();
|
8 |
+
jQuery(this).find('img').show();
|
9 |
+
jQuery(this).fadeTo(0, 1);
|
10 |
+
jQuery(this).find('input[type="radio"]').prop('checked',true);
|
11 |
+
}
|
12 |
+
});
|
13 |
+
|
14 |
+
jQuery('.input-switcher > li').not('.transparente-payment-method-content').bind({
|
15 |
+
click: function() {
|
16 |
+
jQuery(this).parent().find('input[type="radio"]').prop('checked',false);
|
17 |
+
jQuery('#checkout-payment-bandeira').hide();
|
18 |
+
jQuery('#checkout-payment-banco').hide();
|
19 |
+
jQuery(this).find('input[type="radio"]').prop('checked',true);
|
20 |
+
}
|
21 |
+
});
|
22 |
|
23 |
+
jQuery('.transparente-payment-methods > li').not('.transparente-payment-method-content').bind({
|
24 |
+
click: function() {
|
25 |
+
jQuery('.transparente-payment-method-content').not('#' + jQuery(this).attr('data-target')).slideUp();
|
26 |
+
jQuery('#' + jQuery(this).attr('data-target')).slideDown();
|
27 |
+
}
|
28 |
+
});
|
29 |
+
|
30 |
+
|
31 |
+
jQuery("input.radio.payment_method_handle:checked").on({
|
32 |
+
click: function() {
|
33 |
+
if (jQuery(this).val() == 'moip_transparente_standard') {
|
34 |
+
showBlocks();
|
35 |
+
} else {
|
36 |
+
hideBlocks();
|
37 |
+
}
|
38 |
}
|
39 |
+
});
|
40 |
+
jQuery("#credito_expiracao_ano").change(function() {
|
41 |
+
var d = new Date();
|
42 |
+
var m = d.getMonth()+1;
|
43 |
+
var str= d.getFullYear()+'';
|
44 |
+
y_atual= str.match(/\d{2}$/);
|
45 |
+
var select_y = jQuery(this).val();
|
46 |
+
var select_m = jQuery("#credito_expiracao_mes").val();
|
47 |
+
|
48 |
+
if(select_y == y_atual){
|
49 |
+
if(select_m < m ){
|
50 |
+
jQuery(".alerta_data").show();
|
51 |
+
jQuery(".alerta_data").html('<ul class="messages"><li class="error-msg"><ul><li><span>Seu cartão está expirado ou com data incorreta. Sua transação não será aceita, por favor corriga o dado.</span></li></ul></li></ul>');
|
52 |
+
jQuery("#checkout-onepage-buttom").attr("disabled","disabled");
|
53 |
+
}
|
54 |
+
else{
|
55 |
+
jQuery(".alerta_data").hide();
|
56 |
+
jQuery("#checkout-onepage-buttom").attr("disabled");
|
57 |
}
|
58 |
}
|
59 |
+
else{
|
60 |
+
jQuery(".alerta_data").hide();
|
61 |
+
jQuery("#checkout-onepage-buttom").removeAttr("disabled");
|
62 |
+
}
|
63 |
+
});
|
64 |
+
jQuery("#credito_expiracao_mes").change(function() {
|
65 |
+
var d = new Date();
|
66 |
+
var m = d.getMonth()+1;
|
67 |
+
var str= d.getFullYear()+'';
|
68 |
+
y_atual= str.match(/\d{2}$/);
|
69 |
+
var select_m = jQuery(this).val();
|
70 |
+
var select_y = jQuery("#credito_expiracao_ano").val();
|
71 |
+
if(select_y == y_atual && select_y != ""){
|
72 |
+
if(select_m < m ){
|
73 |
+
jQuery(".alerta_data").show();
|
74 |
+
jQuery(".alerta_data").html('<ul class="messages"><li class="error-msg"><ul><li><span>Seu cartão está expirado ou com data incorreta. Sua transação não será aceita, por favor corriga o dado.</span></li></ul></li></ul>');
|
75 |
+
}
|
76 |
+
else{
|
77 |
+
jQuery(".alerta_data").hide();
|
78 |
+
}
|
79 |
+
}
|
80 |
+
else{
|
81 |
+
jQuery(".alerta_data").hide();
|
82 |
+
}
|
83 |
+
});
|
84 |
+
var creditcards = {
|
85 |
+
list:[
|
86 |
+
{
|
87 |
+
brand: 'American Express',
|
88 |
+
value_brand: 'Amex-moip',
|
89 |
+
verification: '^3[47][0-9]',
|
90 |
+
separation: '^([0-9]{4})([0-9]{6})?(?:([0-9]{6})([0-9]{5}))?$',
|
91 |
+
hidden: '**** ****** *[0-9][0-9][0-9][0-9]',
|
92 |
+
accepted: true,
|
93 |
+
length: 15
|
94 |
+
},
|
95 |
+
{
|
96 |
+
brand: 'MasterCard',
|
97 |
+
value_brand: 'Mastercard-moip',
|
98 |
+
verification: '^5[1-5][0-9]',
|
99 |
+
separation: '^([0-9]{4})([0-9]{4})?([0-9]{4})?([0-9]{4})?$',
|
100 |
+
hidden: '**** **** **** [0-9][0-9][0-9][0-9]',
|
101 |
+
accepted: true,
|
102 |
+
length: 16
|
103 |
+
},
|
104 |
+
{
|
105 |
+
brand: 'Visa',
|
106 |
+
value_brand: 'Visa-moip',
|
107 |
+
verification: '^4[0-9]',
|
108 |
+
separation: '^([0-9]{4})([0-9]{4})?([0-9]{4})?([0-9]{4})?$',
|
109 |
+
hidden: '**** **** **** [0-9][0-9][0-9][0-9]',
|
110 |
+
accepted: true,
|
111 |
+
length: 16
|
112 |
+
},
|
113 |
+
{
|
114 |
+
brand: 'Hipercard',
|
115 |
+
value_brand: 'Hipercard-moip',
|
116 |
+
verification: '^606282|3841(?:0[0-9])[0-9]',
|
117 |
+
separation: '^([0-9]{19})?$',
|
118 |
+
hidden: '*****************',
|
119 |
+
accepted: true,
|
120 |
+
length: 19
|
121 |
+
},
|
122 |
+
{
|
123 |
+
brand: 'Diners Club',
|
124 |
+
value_brand: 'Dinners-moip',
|
125 |
+
verification: '^3(?:0[0-5]|[68][0-9])[0-9]',
|
126 |
+
separation: '^([0-9]{4})([0-9]{4})?([0-9]{4})?(?:([0-9]{4})([0-9]{4})([0-9]{2}))?$',
|
127 |
+
hidden: '**** **** **[0-9][0-9] [0-9][0-9]',
|
128 |
+
accepted: true,
|
129 |
+
length: 14
|
130 |
}
|
131 |
+
|
132 |
+
],
|
133 |
+
active:null
|
134 |
+
};
|
135 |
+
jQuery('#credito_numero').keydown(function(e){
|
136 |
+
var card = jQuery(this).val().replace(/[^0-9]/g,''),
|
137 |
+
trim = jQuery.trim( jQuery(this).val().slice(0,-1) );
|
138 |
+
for( var i=0; i<creditcards.list.length; i++ ){
|
139 |
+
if(card.match( new RegExp(creditcards.list[i].verification) )){
|
140 |
+
creditcards.active = i;
|
141 |
+
if( jQuery(this).next('img').length == 0 ){
|
142 |
+
jQuery(this).next('small').remove();
|
143 |
+
jQuery("."+creditcards.list[i].value_brand).trigger('click');
|
144 |
+
}
|
145 |
+
if( !creditcards.list[i].accepted && jQuery(this).nextAll('small').length == 0 ){
|
146 |
+
|
147 |
+
}
|
148 |
+
break;
|
149 |
+
}
|
150 |
+
}
|
151 |
+
if( creditcards.active == null && card.length > 4 && jQuery(this).nextAll('small').length == 0 ){
|
152 |
+
jQuery(this).after('<small style="margin-left:5px; color:#F00;">'+'Cartão Inválido'+'</small>');
|
153 |
+
jQuery('.input-brand-bandeira > li').find('img').show();
|
154 |
+
}
|
155 |
+
key = creditcards.active !== null? creditcards.active : 1 ;
|
156 |
+
if( e.keyCode == 8 && trim != jQuery(this).val().slice(0,-1) ){
|
157 |
+
jQuery(this).val( trim );
|
158 |
+
e.preventDefault();
|
159 |
+
return;
|
160 |
+
}
|
161 |
+
if( card.length >= creditcards.list[ key ].length && jQuery.inArray(e.keyCode, [37, 38, 39, 40, 46, 8, 9, 27, 13, 110, 190]) === -1 && !e.metaKey && !e.ctrlKey ){
|
162 |
+
e.preventDefault();
|
163 |
+
return;
|
164 |
+
}
|
165 |
+
if( new RegExp(creditcards.list[ key ].separation).exec( card ) && e.keyCode >= 48 && e.keyCode <= 57 ){
|
166 |
+
jQuery(this).val( jQuery(this).val() + ' ' );
|
167 |
+
}
|
168 |
+
return;
|
169 |
+
});
|
170 |
+
jQuery('#credito_numero').keyup(function(e){
|
171 |
+
var card = jQuery(this).val().replace(/[^0-9]/,'');
|
172 |
+
if( creditcards.active !== null && !card.match( new RegExp(creditcards.list[ creditcards.active ].verification) ) ){
|
173 |
+
jQuery(this).nextAll('small').remove();
|
174 |
+
jQuery(this).next('img').remove();
|
175 |
+
creditcards.active = null;
|
176 |
+
}else
|
177 |
+
if( card.length < 4 ){
|
178 |
+
jQuery(this).next('small').remove();
|
179 |
+
}
|
180 |
+
});
|
181 |
+
jQuery('#credito_numero').on('paste',function(e){
|
182 |
var el = this;
|
183 |
setTimeout(function(){
|
184 |
var card = jQuery(el).val().replace(/[^0-9]/g,'');
|
207 |
}
|
208 |
});
|
209 |
},0);
|
210 |
+
});
|
211 |
+
|
212 |
+
jQuery('#onestep_form :input').blur(function() {
|
213 |
+
if(jQuery(this).attr('id') != "billing:day" && jQuery(this).attr('id') != "billing:month"){
|
214 |
+
Validation.validate(jQuery(this).attr('id'));
|
215 |
+
}
|
216 |
+
});
|
217 |
+
jQuery('.tooltip-transparente-handler').hover(function() {
|
218 |
+
var hover_class = jQuery(this).parent().find('.tooltip-transparente').attr('class').split(' ').pop();
|
219 |
+
jQuery('.'+hover_class).addClass('tooltip-transparente-visible');
|
220 |
+
setTimeout(function(){jQuery('.'+hover_class).removeClass('tooltip-transparente-visible');}, 5000);
|
221 |
+
},function() {
|
222 |
+
jQuery('.tooltip-transparente').removeClass('tooltip-transparente-visible');
|
223 |
+
});
|
224 |
+
function setCcType(ccType)
|
225 |
+
{
|
226 |
+
if(ccType != 'HI'){
|
227 |
+
jQuery('#transparente_cc_type').val(ccType);
|
228 |
+
jQuery('#credito_numero').addClass('validate-cc-number');
|
229 |
+
jQuery('#credito_numero').addClass('validate-cc-type');
|
230 |
+
jQuery('#credito_codigo_seguranca').mask("ZZZ", {placeholder: "999",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
|
231 |
+
} else {
|
232 |
+
jQuery('#credito_numero').removeClass('validate-cc-number');
|
233 |
+
jQuery('#credito_numero').removeClass('validate-cc-type');
|
234 |
+
jQuery('#credito_codigo_seguranca').mask("999Z", {placeholder: "9999",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
|
235 |
+
}
|
236 |
+
|
237 |
+
}
|
238 |
+
if(Validation) {
|
239 |
+
if($H != 'HI'){
|
240 |
+
Validation.creditCartTypes = $H({
|
241 |
+
'VI': [new RegExp('^4[0-9]{12}([0-9]{3})?$'), new RegExp('^[0-9]{3}$'), true],
|
242 |
+
'MC': [new RegExp('^5[1-5][0-9]{14}$'), new RegExp('^[0-9]{3}$'), true],
|
243 |
+
'AE': [new RegExp('^3[47][0-9]{13}$'), new RegExp('^[0-9]{4}$'), true],
|
244 |
+
'HI': [new RegExp('/^(606282\d{10}(\d{3})?)|(3841\d{15})$/'), new RegExp('^[0-9]{3}$'), true],
|
245 |
+
'DI': [false, new RegExp('^[0-9]+'), true]
|
246 |
+
});
|
247 |
+
}
|
248 |
+
}
|
249 |
+
function countChar(val) {
|
250 |
+
var cvv = val.value.length;
|
251 |
+
if (cvv > 2) {
|
252 |
+
jQuery(".dados-titular").slideDown("slow");
|
253 |
+
jQuery("#formcli").slideDown("slow");
|
254 |
+
|
255 |
+
jQuery('.dados-titular').css({
|
256 |
+
display: "block"
|
257 |
+
});
|
258 |
+
jQuery("#formcli").css({
|
259 |
+
display: "block"
|
260 |
+
});
|
261 |
+
document.getElementById('credito_portador_nome').value = document.getElementById('billing:firstname').value + ' ' + document.getElementById('billing:lastname').value;
|
262 |
+
document.getElementById('credito_portador_telefone').value = document.getElementById('billing:telephone').value;
|
263 |
+
document.getElementById('credito_portador_cpf').value = document.getElementById('billing:taxvat').value;
|
264 |
+
if (document.getElementById('billing:year').value) {
|
265 |
+
document.getElementById('credito_portador_nascimento').value = document.getElementById('billing:day').value + '/' + document.getElementById('billing:month').value + '/' + document.getElementById('billing:year').value
|
266 |
+
}
|
267 |
+
}
|
268 |
+
};
|
269 |
+
|
270 |
+
function hideBlocks(){
|
271 |
+
jQuery('.transparente-payment-method-content').css({'display':'none'});
|
272 |
+
jQuery('ul.transparente-payment-methods').css({'display':'none'});
|
273 |
+
jQuery('#transparente-cartao, #transparente-boleto, #transparente-transferencia').children().hide();
|
274 |
+
}
|
275 |
+
function Cofre(cofre_brand, numero_cofre){
|
276 |
+
jQuery("#brand_cofre").val(cofre_brand);
|
277 |
+
jQuery("#cofre_numero").val(numero_cofre);
|
278 |
+
|
279 |
+
}
|
280 |
+
function Novo(){
|
281 |
+
if(jQuery("#new_card").is(":checked")){
|
282 |
+
jQuery(".form-list-cofre").hide();
|
283 |
+
jQuery(".cartao").show();
|
284 |
+
jQuery(".formcli").show();
|
285 |
+
jQuery("#use_cofre").val('0');
|
286 |
+
}
|
287 |
+
}
|
288 |
+
function showBlocks(cofre){
|
289 |
+
jQuery('ul.transparente-payment-methods li').first().click();
|
290 |
+
jQuery('ul.transparente-payment-methods').css({'display':'block'});
|
291 |
+
if(cofre =="false"){
|
292 |
+
jQuery('#transparente-cartao, #transparente-boleto, #transparente-transferencia').children().show();
|
293 |
+
} else {
|
294 |
+
jQuery('#transparente-boleto, #transparente-transferencia').children().show();
|
295 |
+
jQuery('#transparente-cartao, .form-list-cofre').show();
|
296 |
+
}
|
297 |
+
}
|
298 |
+
function forcecofre(){
|
299 |
+
jQuery(".cartao").hide();
|
300 |
+
jQuery(".formcli").hide();
|
301 |
+
}
|
302 |
+
function forceselectMoip(){
|
303 |
+
if(jQuery("input.radio.payment_method_handle:checked").val() == "moip_transparente_standard"){
|
304 |
+
showBlocks();
|
305 |
+
} else {
|
306 |
+
hideBlocks();
|
307 |
+
}
|
308 |
+
if(jQuery("input[name=payment\\[method\\]]:checked").val() == "moip_transparente_standard" && jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val() != ""){
|
309 |
+
jQuery("#cartao_radio").trigger("click");
|
310 |
+
jQuery("#transparente-cartao").css({'display':'block'})
|
311 |
+
} else {
|
312 |
+
jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val();
|
313 |
+
jQuery("#transparente-cartao").css({'display':'none'});
|
314 |
+
}
|
315 |
+
}
|
js/MOIP/validacao.js
CHANGED
@@ -12,4 +12,4 @@ return((mControle1*10)+mControle);}
|
|
12 |
function checkCPF(vCPF){var mControle=""
|
13 |
var mContIni=2,mContFim=10,mDigito=0;for(j=1;j<=2;j++){mSoma=0;for(i=mContIni;i<=mContFim;i++)
|
14 |
mSoma=mSoma+(vCPF.substring((i-j-1),(i-j))*(mContFim+1+j-i));if(j==2)mSoma=mSoma+(2*mDigito);mDigito=(mSoma*10)%11;if(mDigito==10)mDigito=0;mControle1=mControle;mControle=mDigito;mContIni=3;mContFim=11;}
|
15 |
-
return((mControle1*10)+mControle);}
|
12 |
function checkCPF(vCPF){var mControle=""
|
13 |
var mContIni=2,mContFim=10,mDigito=0;for(j=1;j<=2;j++){mSoma=0;for(i=mContIni;i<=mContFim;i++)
|
14 |
mSoma=mSoma+(vCPF.substring((i-j-1),(i-j))*(mContFim+1+j-i));if(j==2)mSoma=mSoma+(2*mDigito);mDigito=(mSoma*10)%11;if(mDigito==10)mDigito=0;mControle1=mControle;mControle=mDigito;mContIni=3;mContFim=11;}
|
15 |
+
return((mControle1*10)+mControle);}
|
package.xml
CHANGED
@@ -1,12 +1,14 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>o2ti_moip</name>
|
4 |
-
<version>1.3.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://moip.com/licensa_checkout_transparente.txt">Free to use with TRANSPARENTE</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>
|
|
|
|
|
10 |
<description>Moip and Onestepcheckout
|
11 |
Check out the Features:
|
12 |

|
@@ -31,11 +33,11 @@ Repayment, if you customer input wrong date he can try repaying it without have
|
|
31 |
Multi store split rates
|
32 |
Store terms and conditions (Mandatory in all stores following the federal law (http://legislacao.planalto.gov.br/legisla/legislacao.nsf/Viw_Identificacao/DEC%207.962-2013?OpenDocument) Nº 7.962, DE 15 DE MARÇO DE 2013</a>)
|
33 |
</ul></description>
|
34 |
-
<notes>
|
35 |
<authors><author><name>MOIP</name><user>moip</user><email>contato@moip.com</email></author></authors>
|
36 |
-
<date>2014-
|
37 |
-
<time>
|
38 |
-
<contents><target name="magelocal"><dir name="MOIP"><dir name="All"><dir name="Helper"><file name="Data.php" hash="10b776758585cb50355c0d6d0a5fdd5b"/></dir><dir name="etc"><file name="config.xml" hash="e04476923699975e6aad811230da5f50"/><file name="system.xml" hash="825545991621cd6e0fc34a19476d78cc"/></dir></dir><dir name="Onestepcheckout"><dir name="Block"><dir name="Adminhtml"><dir name="Form"><dir name="Renderer"><dir name="Config"><file name="Createfield.php" hash="eb94f83fce11018b5c9c82cbb5042b22"/></dir></dir></dir><dir name="Onestepcheckout"><dir name="Edit"><file name="Form.php" hash="0edd5c334c916c23feeaa7cb94822098"/><dir name="Tab"><file name="Form.php" hash="5abffe1372fb08beacd7747c4d95974b"/></dir><file name="Tabs.php" hash="58948fc037fc67bde3679e9c0de9d1a9"/></dir><file name="Edit.php" hash="2b4262c7a34c892b338693fbeff98cb9"/><file name="Grid.php" hash="82ff4b5fc692feaff2d441a6034f4031"/><dir name="Sales"><dir name="Order"><file name="Grid.php" hash="44b075f1acd3cefcf80b17672b7e3e4e"/><dir name="View"><dir name="Tab"><dir name="Info"><file name="Customermessages.php" hash="27970d8a771aa3e2bb33bd689133ee43"/><file name="Deliverydate.php" hash="1e20b440cff1da88bebd1464d1a5684e"/></dir></dir></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Addtimerange.php" hash="b2fe364d60208b05d4451e9a7c8187f0"/></dir></dir></dir></dir></dir><file name="Onestepcheckout.php" hash="d6b14d1f1a44f1d0e1c00295ae285030"/></dir><dir name="Checkout"><dir name="Onepage"><dir name="Billing"><file name="Sortbilling.php" hash="0a6069d37fbaf4f3be834ce465a0f4a4"/></dir><file name="Billing.php" hash="b8a5bfd5711f404b01f0ae0e47c25f61"/><dir name="Review"><file name="Options.php" hash="1a3d145e1f1081c625e59e4ffcac3fe5"/></dir><dir name="Shipping"><file name="Sortshipping.php" hash="bf84653fe3c87201061431b6ac569816"/></dir><file name="Shipping.php" hash="10c86ee0506bfed608f04419dee1da4f"/></dir><file name="Top.php" hash="7a2a329b7d63bf59f142e385c4f0dac3"/></dir><file name="Onestepcheckout.php" hash="6f34e0f80592894638869ca65e40574d"/><dir name="Sales"><dir name="Info"><file name="Deliverydate.php" hash="e9a19b853615ef601fa41ecdc92bc17e"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="5c19376368e6b2f744b448f0012f693e"/></dir><dir name="Model"><dir name="Customer"><file name="Customer.php" hash="c74a795ed1c64c62ff3dd8931a254aea"/></dir><dir name="Entity"><file name="Tipopessoa.php" hash="fd88583af9847289c889f0bf51bd1c2a"/></dir><dir name="Mysql4"><dir name="Onestepcheckout"><file name="Collection.php" hash="fc9252ebe14579fddf160e301a938e77"/></dir><file name="Onestepcheckout.php" hash="4ff78174ad64bc17c5263ce0fcf77402"/></dir><file name="Observer.php" hash="e8b37e9fb11cf2f47eb61d1629927ed1"/><file name="Onestepcheckout.php" hash="90db8eeb14fc762e79098edfac0684f8"/><dir name="Sales"><dir name="Quote"><file name="Address.php" hash="985ca5f6722a571a10d708e230647511"/></dir></dir><dir name="Shipping"><file name="Allowedmethods.php" hash="62c004be6a716a204b4d7810641418ec"/></dir><file name="Status.php" hash="cd2132bb22a1992e6ea762586391733b"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Checkuncheck.php" hash="febcb4b243d5e09ae7b77d603af45d63"/><file name="Disablefield.php" hash="196dcdb92863dbe110a8edc0be4cf953"/><file name="Formatdate.php" hash="8866b2675e0b0cb8807ad0339c779761"/><file name="Optionaddfield.php" hash="574f6f8d27245ab4f0d0362372f5082d"/><file name="Optionhidefield.php" hash="0cf65ef82933d93293eaada3125c3b1d"/><file name="Pagelayout.php" hash="23bb1780490da71206c8b45c4bda0362"/><dir name="Payment"><file name="Allowedmethods.php" hash="ebdb9c1d23e4ac2a566f39d5b15e43bd"/></dir><dir name="Shipping"><file name="Allowedmethods.php" hash="62c004be6a716a204b4d7810641418ec"/></dir><file name="Subscribenewletter.php" hash="a4c99e4f5417aa1b6d42364f4c83258c"/><dir name="form"><file name="Createfield.php" hash="a2cc83e3e48cab1c09f1d2c09b3f270c"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="OnestepcheckoutController.php" hash="481f6291fd10ee4ac80e3eed9ba1e878"/></dir><file name="IndexController.php" hash="f970f7e91b47a1b07022f379b12838ea"/><file name="TestController.php" hash="e551e63e2ae010e8b8b75cf7b31ef483"/></dir><dir name="etc"><file name="config.xml" hash="d257ed44d78d1c1a626b4d26efa4ac7f"/><file name="system.xml" hash="db0195cabfe0eb3525a4cae5eaa34282"/></dir><dir name="sql"><dir name="moip_onestepcheckout_setup"><file name="mysql4-install-0.1.0.php" hash="ca03016b7dc2a6c84e258b9e7248e5ff"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></dir><dir name="Transparente"><dir name="Block"><dir name="Adminhtml"><dir name="moip"><dir name="Info"><file name="Customermessages.php" hash="27970d8a771aa3e2bb33bd689133ee43"/><file name="Info.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></dir><file name="Info.php" hash="c875546525a1df60a862e86e4403b385"/><dir name="Standard"><file name="Form.php" hash="2b4832c0959ed0a3186f44c9421e6571"/><file name="Novaforma.php" hash="af0c33eaa1e297cbbec71a7eaada79ad"/><file name="Redirect.php" hash="0ce40fc7bf9a966a980c8c7384a490a2"/></dir></dir><dir name="Helper"><file name="Data.php" hash="dbbda1e77e2eefb38c1a96611646ed64"/></dir><dir name="Model"><file name="Api.php" hash="c138aa08a583588955a25f5ac0dbad85"/><dir name="Mysql4"><file name="Collection.php" hash="13a0788b3698b05607c8e48d45b712c2"/><file name="Write.php" hash="cd2a86f89b5e6ee6f8d37add67a88d76"/></dir><file name="Observer.php" hash="f44e87a19386b27a9fbbc8535c81be12"/><file name="Orders.php" hash="8de01cfc16794f2ded44c7a04be987a3"/><dir name="Source"><file name="Ambiente.php" hash="76749ed0937e4882357b23ac74ee22a0"/><file name="FormasPagamento.php" hash="9edf4a675cd6340a5fabd19996361eb4"/><file name="Layout.php" hash="212b1597bdbc653a2c7c0ad94e710474"/></dir><file name="Standard.php" hash="b6fe595397a6ea9b35a30e36b5288dca"/><file name="Write.php" hash="a18bda4c386668478d48a2c45a566c47"/><file name=".ftpquota" hash="bd9db78914b33cca442f35848cc680b5"/></dir><dir name="controllers"><file name="IndexController.php" hash="142377583c2ac0cd3ba8ee9741d8b9cb"/><file name="StandardController.php" hash="0a8cab2d1044df63559af732da723aa7"/></dir><dir name="etc"><file name="adminhtml.xml" hash="75bde86c187ceb24042233abde0f88b0"/><file name="config.xml" hash="a7c8cd2a37e87d6c39f5dc3fc0ffdea9"/><file name="system.xml" hash="a1ffeda8b358a8ca0b4fe11de0d9606c"/></dir><dir name="sql"><dir name="transparente_setup"><file name="mysql4-install-0.1.0.php" hash="103be1acccc73c2b4f70fc31e00cab17"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="1be7a66f09d08cf7e2897939d88e616e"/></dir></dir></dir><file name=".DS_Store" hash="15bd3b937c85e0f1c2cc079dcd2daa34"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="moip_transparente.xml" hash="96ca4692968a42aba19c9564388b3cdf"/><file name="moip_onestepcheckout.xml" hash="a02815d9aa2e1637af4c7921254382dc"/></dir><dir name="template"><dir name="MOIP"><dir name="customer"><dir name="address"><file name="book.phtml" hash="07747e72a21de6cc5ba6afa9ccc3aed1"/><file name="edit.phtml" hash="9ea60abf23fd6d0ca04c528d75f67e35"/></dir><dir name="widget"><file name="dob.phtml" hash="fc4646c6f8f786e2e72e473bbdaf94bc"/><file name="taxvat.phtml" hash="67333f779d3c7503209ce057a3b44c34"/></dir></dir><dir name="onestepcheckout"><dir name="daskboard"><dir name="onepage"><file name="agreements.phtml" hash="5b762aa76287b160fcbec8fed8b789e8"/><dir name="billing"><file name="billing_form.phtml" hash="2f612b9d5675bd71761d330bee70e0f2"/></dir><file name="billing.phtml" hash="c0b38ba3a92104a5261992c31aff79cc"/><file name="correio.phtml" hash="461b88fcbf6adffc4f23c5905932bafa"/><file name="coupon.phtml" hash="d1f926f184918ef20d6f6f3696ee9fdb"/><file name="forgotpassword.phtml" hash="6cf942b971460bfd82cbc587a08e8a39"/><file name="local.xml" hash="08c7ce351c502056fb9ee3a14a9b065a"/><file name="login.phtml" hash="11d6dccc3cbc34e5fbb48a3156f25e38"/><dir name="payment"><file name="methods.phtml" hash="b3d73a82dd363b403ef3a87cbddc7141"/></dir><file name="payment.phtml" hash="3501af6f3b4c108f11bc2bc6d58a9d87"/><dir name="review"><file name="button.phtml" hash="4d5c7c5a2d70f85ec324e79c7e81946b"/><file name="info.phtml" hash="59347e7f31f6c67e87d6a9bad9bd55de"/><file name="item.phtml" hash="25f02e1cf5fa04dfd59ac385c7bd6649"/><dir name="options"><file name="additional.phtml" hash="a915a8c848316dbe901c39f41bcfbdd2"/></dir><file name="options.phtml" hash="35d426f28c2b87a853f811ab7a18e544"/><file name="totals.phtml" hash="6e857d144768ed8faa0be977b547b32f"/></dir><file name="review.phtml" hash="9ea18ce3771f50dbe18bbc5d90db7e2b"/><dir name="shipping"><file name="shipping_form.phtml" hash="635244008f365b04eb88c254cf5492b4"/></dir><file name="shipping.phtml" hash="b8a0d2bcc61521c81ce333d4d02d5a5f"/><dir name="shipping_method"><file name="available.phtml" hash="a97013a6be2e0f33bcaad4d33ad34b1a"/></dir><file name="shipping_method.phtml" hash="478c97837904227e4cfcdd5cae00e696"/></dir></dir><file name="daskboard.phtml" hash="c2b4ce966d65351a76a13a6aa3272995"/><file name="emptyupdate.phtml" hash="7bf34446254428a5c42740731127b435"/><file name="onepage.phtml" hash="149f7077a5a959968afc0da9a0d952db"/><dir name="sales"><dir name="order"><dir name="info"><file name="customermessages.phtml" hash="813c6150e0e309612f40c9aee0d63c84"/><file name="customermessages.phtml~" hash="aa6199bb564edbf6d950fa154b624c02"/><file name="deliverydate.phtml" hash="a188cdefd8c346c28dbe2737097b208e"/><file name="deliverydate.phtml~" hash="75709e72398a0df41305dee259dc3de2"/></dir><file name="info.phtml" hash="a5b6b9223ec3d5da923e04f8becc84f3"/><dir name="view"><dir name="tab"><dir name="info"><file name="customermessages.phtml" hash="7de74c4598eceef2d17215585252f740"/><file name="deliverydate.phtml" hash="6e1260a32a1f6801ac185ef38a33114c"/></dir><file name="info.phtml" hash="57f4718dbfaa448976954368c1932b2b"/></dir></dir></dir></dir></dir><dir name="transparente"><file name="Novaforma.phtml" hash="49d046daa42bae37c1c5e80ff88c3e0d"/><file name="boleto.phtml" hash="cc66d2c01eb82259d0a4eddab45ded7e"/><file name="cartao.phtml" hash="587c3000f59f32365ecf27510ea619a1"/><file name="emptyupdate.phtml" hash="5504d0197f33a3db19ae9f75b5a43b86"/><file name="form.phtml" hash="c8d5626d1586aee99fed59decd55e9d4"/><file name="horizontal_form.phtml" hash="339f3bb119755968c3cd166f4025629c"/><file name="info.phtml" hash="d51bb066d8feddc10c2417abd5f64aaa"/><file name="layout_boleto.phtml" hash="8d91c7873e692648a7c1d9bd29091793"/><file name="redirect.phtml" hash="4a778e5e9f9b391182cca210239cb18a"/><file name="refaz.phtml" hash="21f6ac063f75c8ad7a07d17f753e28d8"/><file name="transferencia.phtml" hash="980961b551427deedb3aa5bece6bc429"/><file name="vertical_form.phtml" hash="e9196c626b0e916d01dc848ab3be81bd"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="MOIP"><dir name="onestepcheckout"><dir name="sales"><dir name="order"><dir name="view"><dir name="tab"><dir name="info"><file name="Customermessages.phtml" hash="336f1612d37946b870e3ac5e18e52dc1"/><file name="Deliverydate.phtml" hash="bdc0efab3d915de73f77a9db7d4a7ce6"/></dir><file name="info.phtml" hash="1b6b38d40668d878487f1710a28c1e69"/></dir></dir></dir></dir></dir><dir name="sales"><dir name="order"><dir name="view"><file name="info.phtml" hash="c6aa8255f5c494857c557a21a59e3367"/></dir></dir></dir><dir name="transparente"><file name="form.phtml" hash="2085219ca42621f5ab0172cba283ee1a"/><file name="info.phtml" hash="f1005b2874544d196842c96cd7c3a183"/><file name="redirect.phtml" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></dir><dir name="layout"><file name="moip_onestepcheckout.xml" hash="965904abd39a5a3d70a48cb1eeead421"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MOIP_All.xml" hash="5b4232633c10117c66c4054b95984c0d"/><file name="MOIP_Transparente.xml" hash="4a329e338fbbc0382234859c509e4178"/><file name="MOIP_Onestepcheckout.xml" hash="043133137c189e17b46afbda53b222f0"/></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="MOIP_Onestepcheckout.csv" hash="d7fd83d1c115af767311368be3b3a2e4"/></dir><dir name="pt_BR"><file name="MOIP_Onestepcheckout.csv" hash="d7fd83d1c115af767311368be3b3a2e4"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="MOIP"><dir name="onestepcheckout"><dir name="css"><file name="960grid_onestepcheckout.css" hash="aa451eb73128fd83916aa7f76fdba615"/><dir name="images"><file name="blank.gif" hash="325472601571f31e1bf00674c368d335"/><file name="fancy_close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="fancy_loading.png" hash="b1d54c240cf06e7f41e372d56919b738"/><file name="fancy_nav_left.png" hash="3f3e406102152cd8236383568a40ba35"/><file name="fancy_nav_right.png" hash="216e4bde5bddeeaa60dc3d692890a68e"/><file name="fancy_overlay.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="fancy_shadow_e.png" hash="fd4f491080d29fade5080877f1ba4c8b"/><file name="fancy_shadow_n.png" hash="18cde16379b2ceadef714d9b346d09ec"/><file name="fancy_shadow_ne.png" hash="63adf788acf193d4e4f3642d7d793125"/><file name="fancy_shadow_nw.png" hash="c820c878aedb7a7f9ebd7135a58e7c65"/><file name="fancy_shadow_s.png" hash="9b9e5c888028aaef40fe5b6a363f1e29"/><file name="fancy_shadow_se.png" hash="a8afd5a008884380ee712d177105268f"/><file name="fancy_shadow_sw.png" hash="f81cc0fee5581d76ad3cebe47e7e791b"/><file name="fancy_shadow_w.png" hash="59b0e63eb059e58d932cfd53da4d87e6"/><file name="fancy_title_left.png" hash="1582ac2d3bef6a6445bf02ceca2741cd"/><file name="fancy_title_main.png" hash="38dad6c1ed4bdc81c0bec721b2deb8c2"/><file name="fancy_title_over.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="fancy_title_right.png" hash="6cbe0c935511e7f9a2555ccb6a7324c4"/><file name="fancybox-x.png" hash="168696d8a694214090ef90e029cdf393"/><file name="fancybox-y.png" hash="36a58859beb9a6b19322a37466b9f78e"/><file name="fancybox.png" hash="f6ccaf1eda8a79a2bd44643e5a346990"/><file name="ui-bg_diagonals-thick_18_b81900_40x40.png" hash="95f9cceeb9d742dd3e917ec16ed754f8"/><file name="ui-bg_diagonals-thick_20_666666_40x40.png" hash="f040b255ca13e693da34ab33c7d6b554"/><file name="ui-bg_flat_10_000000_40x100.png" hash="c18cd01623c7fed23c80d53e2f5e7c78"/><file name="ui-bg_glass_100_f6f6f6_1x400.png" hash="5f1847175ba18c41322cb9cb0581e0fb"/><file name="ui-bg_glass_100_fdf5ce_1x400.png" hash="d26e8f463195a7b86f86b7d550cfc114"/><file name="ui-bg_glass_65_ffffff_1x400.png" hash="e5a8f32e28fd5c27bf0fed33c8a8b9b5"/><file name="ui-bg_gloss-wave_35_000_500x100.png" hash="5038a7d5d5bc3c3a565c585079798dca"/><file name="ui-bg_gloss-wave_35_f6a828_500x100.png" hash="5038a7d5d5bc3c3a565c585079798dca"/><file name="ui-bg_highlight-soft_100_eeeeee_1x100.png" hash="384c3f17709ba0f809b023b6e7b10b84"/><file name="ui-bg_highlight-soft_75_ffe45c_1x100.png" hash="b806658954cb4d16ade8977af737f486"/><file name="ui-icons_222222_256x240.png" hash="ebe6b6902a408fbf9cac6379a1477525"/><file name="ui-icons_228ef1_256x240.png" hash="ff1768bb6731566603303d106e298bec"/><file name="ui-icons_ef8c08_256x240.png" hash="ef9a6ccfe3b14041928ddc708665b226"/><file name="ui-icons_ffd27a_256x240.png" hash="ab8c30acc0e3608fb79e01fccf832c70"/><file name="ui-icons_ffffff_256x240.png" hash="342bc03f6264c75d3f1d7f99e34295b9"/></dir><file name="jquery.fancybox-1.3.1.css" hash="d97fbbe1ab67a487738e8121c79a5021"/><file name="onestepcheckout.css" hash="2696f183c7a47c02f667709f078b5a8d"/></dir><dir name="images"><file name="01.png" hash="89fcfa0fa3fe73b65ca2420269c26158"/><file name="02.png" hash="dab59c7515b3366465a4dd57d2d9deb2"/><file name="03.png" hash="dcaf4232529a8f9ac304db7553397450"/><file name="04.png" hash="68ae3a414c70c12f340e7c801d854c53"/><file name="05.png" hash="6e8fe636f0593ed3cf00d140e68d2308"/><file name="2_clock.png" hash="bb35645e06d8687f818a583202ad1615"/><file name="ajax-loader-tr.gif" hash="7a46575a4d543082fd6174c593aa762a"/><file name="bkg-giftmessage.png" hash="e0dc9f84c687af088bcc04e3ea200e0b"/><file name="bkg-step-review.png" hash="589914598419e9625c9358df8f68d49c"/><file name="bkg_form-search.gif" hash="2ca36eb80ea705e063409153f3821f78"/><file name="fancy_close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="fancy_loading.png" hash="b1d54c240cf06e7f41e372d56919b738"/><file name="fancy_nav_left.png" hash="3f3e406102152cd8236383568a40ba35"/><file name="fancy_nav_right.png" hash="216e4bde5bddeeaa60dc3d692890a68e"/><file name="fancy_overlay.png" hash="7a46575a4d543082fd6174c593aa762a"/><file name="fancy_shadow_e.png" hash="fd4f491080d29fade5080877f1ba4c8b"/><file name="fancy_shadow_n.png" hash="18cde16379b2ceadef714d9b346d09ec"/><file name="fancy_shadow_ne.png" hash="63adf788acf193d4e4f3642d7d793125"/><file name="fancy_shadow_nw.png" hash="c820c878aedb7a7f9ebd7135a58e7c65"/><file name="fancy_shadow_s.png" hash="9b9e5c888028aaef40fe5b6a363f1e29"/><file name="fancy_shadow_se.png" hash="a8afd5a008884380ee712d177105268f"/><file name="fancy_shadow_sw.png" hash="f81cc0fee5581d76ad3cebe47e7e791b"/><file name="fancy_shadow_w.png" hash="59b0e63eb059e58d932cfd53da4d87e6"/><file name="fancy_title_left.png" hash="1582ac2d3bef6a6445bf02ceca2741cd"/><file name="fancy_title_main.png" hash="38dad6c1ed4bdc81c0bec721b2deb8c2"/><file name="fancy_title_over.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="fancy_title_right.png" hash="6cbe0c935511e7f9a2555ccb6a7324c4"/><file name="fancybox-x.png" hash="168696d8a694214090ef90e029cdf393"/><file name="fancybox-y.png" hash="36a58859beb9a6b19322a37466b9f78e"/><file name="fancybox.png" hash="11e57e492ee0311540967cc7a1e6e3e2"/><file name="grid-cal.gif" hash="b1468e5239504974c689eea5d93f86d4"/><file name="line-gradient.gif" hash="bef9df2d426124dbe3d496407219190b"/><file name="loja_segura.jpg" hash="5e65fd40952db665746dc485d67fdf35"/><file name="opc-ajax-loader.gif" hash="e805ea7eca1f34c75ba0f93780d32d38"/><file name="validation_advice_bg.gif" hash="b85432906de8985a8b14eeb2dc652d3c"/></dir></dir><dir name="transparente"><dir name="css"><file name="bootstrap.css" hash="fba99415be28e6b3e49ddac177bab038"/><file name="formulario.css" hash="de729a6e94b8c285a6418a86a99d6351"/><file name="formulario_horizontal.css" hash="9158e09a3b888728338eb56a877111e5"/><file name="prettify.css" hash="ecd4a5d6c0cbee10b168f6aa000c64ea"/></dir><dir name="imagem"><file name="AmericanExpress.png" hash="40ea216476033961d50f452bf4bca4df"/><file name="BancoDoBrasil.png" hash="572914d1e4b635dc56cd507c6c46b023"/><file name="Banrisul.png" hash="d4ac02772b3f521a92542b849e679092"/><file name="Bradesco.png" hash="ceb6a2aaf263fc359fabaf6f102cb8db"/><file name="Diners.png" hash="0f4264379e7b8ba6b1a30a3d69240ae2"/><file name="Hipercard.png" hash="c25430ddd8e441cc2fc3ef68219e7668"/><file name="Itau.png" hash="40d639fe4b14d063d810589577f0eb7d"/><file name="Mastercard.png" hash="836466c092121163320e9e6279f11f8b"/><file name="Visa.png" hash="cc0709d50773fa2815f7bfeb741a4219"/><file name="ababoleto.png" hash="47e3ede4db46d5938a68f126bb68bcfe"/><file name="abacartao.png" hash="667954485c4082bafa84920073288453"/><file name="abatransf.png" hash="0623c4cf50653b9c13d12cca5eed43f6"/><file name="ajax-loader.gif" hash="57ca1a2085d82f0574e3ef740b9a5ead"/><dir name="azul"><file name="ababoleto.png" hash="47e3ede4db46d5938a68f126bb68bcfe"/><file name="abacartao.png" hash="667954485c4082bafa84920073288453"/><file name="abatransf.png" hash="0623c4cf50653b9c13d12cca5eed43f6"/></dir><file name="bank-icon.png" hash="3f73473ce94841328abffa85fe314f3e"/><file name="bank-title.png" hash="3d33028c41f80b1042ef5500ea05c0d1"/><file name="bb.png" hash="572914d1e4b635dc56cd507c6c46b023"/><file name="boleto-icon.png" hash="c4560588cb6e12ca7756788648493ad3"/><file name="boleto.png" hash="fe1b591868a937c40e1a095b1313e3ed"/><dir name="branco"><file name="ababoleto.png" hash="f3baeeaf41a6528905b97d825ac67cf7"/><file name="abacartao.png" hash="684d8a48644f55f2c3504da1f51a350b"/><file name="abatransf.png" hash="ea6f42607620ea8f8dca34c1fc98b42b"/><file name="e-sedex.gif" hash="9d0af24408b3798ab687094ab9b76199"/><file name="e-sedex.png" hash="19c04d68032987d594c4da51e3b66094"/><file name="pac.gif" hash="fc1373622266269e8b0986b637e93851"/><file name="pac.png" hash="17aaff70f9924a8e37166429ceae549e"/><file name="sedex.gif" hash="9b6771f2d93f8f73dbbc8f5584a7f580"/><file name="sedex.png" hash="15e2831cad72756b9a9bf99a6e2af5e5"/></dir><file name="cc-title.png" hash="f3064bbd55a468c5bb717762e93a8a3b"/><file name="codigo-seguranca.png" hash="b1cdecab044511593083ff18033d4e4f"/><file name="flatrate_flatrate.gif" hash="a27796835310fe5e57ed11b5792d5530"/><file name="freeshipping_freeshipping.gif" hash="80af8e1da4c9cf03b1856f47bf7e27a4"/><file name="info.png" hash="051e3f3601ab034ba27615e42dd5cfdf"/><file name="logomoip.png" hash="0f09942428d649b8aa6b8999f0c60c0b"/><file name="logomoipck.png" hash="684da020f45d07cbee27cc231920d72a"/><file name="moip.png" hash="14273d22979881d4a57c960b952866e3"/><file name="moipamerican.png" hash="40ea216476033961d50f452bf4bca4df"/><file name="moipbanner2.png" hash="1c24f42b0cbb05f00ea779d3a719ebe1"/><file name="moipdiners.png" hash="0f4264379e7b8ba6b1a30a3d69240ae2"/><file name="moiphiper.png" hash="c25430ddd8e441cc2fc3ef68219e7668"/><file name="moipmaster.png" hash="836466c092121163320e9e6279f11f8b"/><file name="moipvisa.png" hash="cc0709d50773fa2815f7bfeb741a4219"/><file name="pedroteixeira_correios_40010.gif" hash="e260acafdeaf0f493350cfa5c34b8be1"/><file name="pedroteixeira_correios_40096.gif" hash="9d0af24408b3798ab687094ab9b76199"/><file name="pedroteixeira_correios_41068.gif" hash="fc1373622266269e8b0986b637e93851"/><file name="pedroteixeira_correios_41106.gif" hash="dcb56e6f42c1730736b44363d7c01e11"/><file name="pedroteixeira_correios_81019.gif" hash="9b6771f2d93f8f73dbbc8f5584a7f580"/><dir name="preto"><file name="ababoleto.png" hash="a728ac886e7e57744e62bba2c7b0b969"/><file name="abacartao.png" hash="50b6103cb5b7e51a27f3c26eaa7411d0"/><file name="abatransf.png" hash="61eec388356aea3230fc5d811ef996ea"/></dir><file name="printer.png" hash="f4bfc0849dceba778a6e7f252b7a3b9c"/><dir name="verde"><file name="ababoleto.png" hash="3c3e047acb513328ebdfd6bfc9c339fa"/><file name="abacartao.png" hash="809d7e21263b3474d1685087a91ca18a"/><file name="abatransf.png" hash="0e3e6bdba002a69be78e126f3e7e775f"/></dir><dir name="vermelho"><file name="ababoleto.png" hash="0d84f05b75c8e964122c4f087268bd1c"/><file name="abacartao.png" hash="63b85e98d5b77c6a373bc351080e60f4"/><file name="abatransf.png" hash="0bef9fec6108a914ebc108f3c600c013"/></dir><file name="warning.png" hash="3fbeef48124ccb146e082a9d20977b3e"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="MOIP"><dir name="onestepcheckout"><dir name="css"><file name="960grid_onestepcheckout.css" hash="49257f08c5e41cca8748c3c0ff3d3cc2"/><dir name="images"><file name="blank.gif" hash="325472601571f31e1bf00674c368d335"/><file name="fancy_close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="fancy_loading.png" hash="b1d54c240cf06e7f41e372d56919b738"/><file name="fancy_nav_left.png" hash="3f3e406102152cd8236383568a40ba35"/><file name="fancy_nav_right.png" hash="216e4bde5bddeeaa60dc3d692890a68e"/><file name="fancy_overlay.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="fancy_shadow_e.png" hash="fd4f491080d29fade5080877f1ba4c8b"/><file name="fancy_shadow_n.png" hash="18cde16379b2ceadef714d9b346d09ec"/><file name="fancy_shadow_ne.png" hash="63adf788acf193d4e4f3642d7d793125"/><file name="fancy_shadow_nw.png" hash="c820c878aedb7a7f9ebd7135a58e7c65"/><file name="fancy_shadow_s.png" hash="9b9e5c888028aaef40fe5b6a363f1e29"/><file name="fancy_shadow_se.png" hash="a8afd5a008884380ee712d177105268f"/><file name="fancy_shadow_sw.png" hash="f81cc0fee5581d76ad3cebe47e7e791b"/><file name="fancy_shadow_w.png" hash="59b0e63eb059e58d932cfd53da4d87e6"/><file name="fancy_title_left.png" hash="1582ac2d3bef6a6445bf02ceca2741cd"/><file name="fancy_title_main.png" hash="38dad6c1ed4bdc81c0bec721b2deb8c2"/><file name="fancy_title_over.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="fancy_title_right.png" hash="6cbe0c935511e7f9a2555ccb6a7324c4"/><file name="fancybox-x.png" hash="168696d8a694214090ef90e029cdf393"/><file name="fancybox-y.png" hash="36a58859beb9a6b19322a37466b9f78e"/><file name="fancybox.png" hash="f6ccaf1eda8a79a2bd44643e5a346990"/><file name="ui-bg_diagonals-thick_18_b81900_40x40.png" hash="95f9cceeb9d742dd3e917ec16ed754f8"/><file name="ui-bg_diagonals-thick_20_666666_40x40.png" hash="f040b255ca13e693da34ab33c7d6b554"/><file name="ui-bg_flat_10_000000_40x100.png" hash="c18cd01623c7fed23c80d53e2f5e7c78"/><file name="ui-bg_glass_100_f6f6f6_1x400.png" hash="5f1847175ba18c41322cb9cb0581e0fb"/><file name="ui-bg_glass_100_fdf5ce_1x400.png" hash="d26e8f463195a7b86f86b7d550cfc114"/><file name="ui-bg_glass_65_ffffff_1x400.png" hash="e5a8f32e28fd5c27bf0fed33c8a8b9b5"/><file name="ui-bg_gloss-wave_35_000_500x100.png" hash="5038a7d5d5bc3c3a565c585079798dca"/><file name="ui-bg_gloss-wave_35_f6a828_500x100.png" hash="5038a7d5d5bc3c3a565c585079798dca"/><file name="ui-bg_highlight-soft_100_eeeeee_1x100.png" hash="384c3f17709ba0f809b023b6e7b10b84"/><file name="ui-bg_highlight-soft_75_ffe45c_1x100.png" hash="b806658954cb4d16ade8977af737f486"/><file name="ui-icons_222222_256x240.png" hash="ebe6b6902a408fbf9cac6379a1477525"/><file name="ui-icons_228ef1_256x240.png" hash="ff1768bb6731566603303d106e298bec"/><file name="ui-icons_ef8c08_256x240.png" hash="ef9a6ccfe3b14041928ddc708665b226"/><file name="ui-icons_ffd27a_256x240.png" hash="ab8c30acc0e3608fb79e01fccf832c70"/><file name="ui-icons_ffffff_256x240.png" hash="342bc03f6264c75d3f1d7f99e34295b9"/></dir><file name="jquery.fancybox-1.3.1.css" hash="d1e24fb0bfbd1f97b23edc75904b90d4"/><file name="onestepcheckout.css" hash="4f4a6534b37ef582f5aa8ff4a694017d"/></dir><dir name="images"><file name="01.png" hash="89fcfa0fa3fe73b65ca2420269c26158"/><file name="02.png" hash="dab59c7515b3366465a4dd57d2d9deb2"/><file name="03.png" hash="dcaf4232529a8f9ac304db7553397450"/><file name="04.png" hash="68ae3a414c70c12f340e7c801d854c53"/><file name="05.png" hash="6e8fe636f0593ed3cf00d140e68d2308"/><file name="2_clock.png" hash="bb35645e06d8687f818a583202ad1615"/><file name="ajax-loader-tr.gif" hash="7a46575a4d543082fd6174c593aa762a"/><file name="bkg-giftmessage.png" hash="e0dc9f84c687af088bcc04e3ea200e0b"/><file name="bkg-step-review.png" hash="589914598419e9625c9358df8f68d49c"/><file name="bkg_form-search.gif" hash="2ca36eb80ea705e063409153f3821f78"/><file name="bkg_header.jpg" hash="0211c47be1493bd0ec72949c47932b81"/><file name="blank.gif" hash="325472601571f31e1bf00674c368d335"/><file name="btn_checkout.gif" hash="d2060501e14e86c29e28137130e5726e"/><file name="clock.gif" hash="c6d5badd40d31d332470c32a03d2e98c"/><file name="clock.png" hash="73f0648c150bde4ef647db7e9c14ca3e"/><file name="demo-large_03.png" hash="86628bc4358a1c1f655534d4ae15be45"/><file name="demo-large_04.png" hash="0d5f289d2bf808165be000b318a50591"/><file name="demo-large_05.png" hash="5fd1386a147ea4768553c3990d9db804"/><file name="demo-large_051.png" hash="452556661a99a8fb20c6d507ce9506f0"/><file name="demo-large_06.png" hash="247e5412b0e70bf164a428374b15a82d"/><file name="demo-large_07.png" hash="9deac604cfb692b2e17f0f53c3aebbf4"/><file name="fancy_close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="fancy_loading.png" hash="b1d54c240cf06e7f41e372d56919b738"/><file name="fancy_nav_left.png" hash="3f3e406102152cd8236383568a40ba35"/><file name="fancy_nav_right.png" hash="216e4bde5bddeeaa60dc3d692890a68e"/><file name="fancy_overlay.png" hash="7a46575a4d543082fd6174c593aa762a"/><file name="fancy_shadow_e.png" hash="fd4f491080d29fade5080877f1ba4c8b"/><file name="fancy_shadow_n.png" hash="18cde16379b2ceadef714d9b346d09ec"/><file name="fancy_shadow_ne.png" hash="63adf788acf193d4e4f3642d7d793125"/><file name="fancy_shadow_nw.png" hash="c820c878aedb7a7f9ebd7135a58e7c65"/><file name="fancy_shadow_s.png" hash="9b9e5c888028aaef40fe5b6a363f1e29"/><file name="fancy_shadow_se.png" hash="a8afd5a008884380ee712d177105268f"/><file name="fancy_shadow_sw.png" hash="f81cc0fee5581d76ad3cebe47e7e791b"/><file name="fancy_shadow_w.png" hash="59b0e63eb059e58d932cfd53da4d87e6"/><file name="fancy_title_left.png" hash="1582ac2d3bef6a6445bf02ceca2741cd"/><file name="fancy_title_main.png" hash="38dad6c1ed4bdc81c0bec721b2deb8c2"/><file name="fancy_title_over.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="fancy_title_right.png" hash="6cbe0c935511e7f9a2555ccb6a7324c4"/><file name="fancybox-x.png" hash="168696d8a694214090ef90e029cdf393"/><file name="fancybox-y.png" hash="36a58859beb9a6b19322a37466b9f78e"/><file name="fancybox.png" hash="11e57e492ee0311540967cc7a1e6e3e2"/><file name="grid-cal.gif" hash="b1468e5239504974c689eea5d93f86d4"/><file name="line-gradient.gif" hash="bef9df2d426124dbe3d496407219190b"/><file name="loja_segura.jpg" hash="5e65fd40952db665746dc485d67fdf35"/><file name="opc-ajax-loader.gif" hash="e805ea7eca1f34c75ba0f93780d32d38"/><file name="validation_advice_bg.gif" hash="b85432906de8985a8b14eeb2dc652d3c"/></dir></dir><dir name="transparente"><dir name="css"><file name="bootstrap.css" hash="75c28a5ed4bf7d4c9a6eda4808438943"/><file name="formulario.css" hash="87e267ea81daca8c9aa4a528c63f5eb2"/><file name="formulario_horizontal.css" hash="502050c298a58cf25440950fb5127105"/><file name="prettify.css" hash="ecd4a5d6c0cbee10b168f6aa000c64ea"/></dir><dir name="imagem"><file name="AmericanExpress.png" hash="40ea216476033961d50f452bf4bca4df"/><file name="BancoDoBrasil.png" hash="572914d1e4b635dc56cd507c6c46b023"/><file name="Banrisul.png" hash="d4ac02772b3f521a92542b849e679092"/><file name="Bradesco.png" hash="ceb6a2aaf263fc359fabaf6f102cb8db"/><file name="Diners.png" hash="0f4264379e7b8ba6b1a30a3d69240ae2"/><file name="Hipercard.png" hash="c25430ddd8e441cc2fc3ef68219e7668"/><file name="Itau.png" hash="40d639fe4b14d063d810589577f0eb7d"/><file name="Mastercard.png" hash="836466c092121163320e9e6279f11f8b"/><file name="Visa.png" hash="cc0709d50773fa2815f7bfeb741a4219"/><file name="ababoleto.png" hash="47e3ede4db46d5938a68f126bb68bcfe"/><file name="abacartao.png" hash="667954485c4082bafa84920073288453"/><file name="abatransf.png" hash="0623c4cf50653b9c13d12cca5eed43f6"/><file name="ajax-loader.gif" hash="57ca1a2085d82f0574e3ef740b9a5ead"/><dir name="azul"><file name="ababoleto.png" hash="47e3ede4db46d5938a68f126bb68bcfe"/><file name="abacartao.png" hash="667954485c4082bafa84920073288453"/><file name="abatransf.png" hash="0623c4cf50653b9c13d12cca5eed43f6"/></dir><file name="bank-icon.png" hash="3f73473ce94841328abffa85fe314f3e"/><file name="bank-title.png" hash="3d33028c41f80b1042ef5500ea05c0d1"/><file name="bb.png" hash="572914d1e4b635dc56cd507c6c46b023"/><file name="boleto-icon.png" hash="c4560588cb6e12ca7756788648493ad3"/><file name="boleto.png" hash="fe1b591868a937c40e1a095b1313e3ed"/><dir name="branco"><file name="ababoleto.png" hash="f3baeeaf41a6528905b97d825ac67cf7"/><file name="abacartao.png" hash="684d8a48644f55f2c3504da1f51a350b"/><file name="abatransf.png" hash="ea6f42607620ea8f8dca34c1fc98b42b"/><file name="e-sedex.gif" hash="9d0af24408b3798ab687094ab9b76199"/><file name="e-sedex.png" hash="19c04d68032987d594c4da51e3b66094"/><file name="pac.gif" hash="fc1373622266269e8b0986b637e93851"/><file name="pac.png" hash="17aaff70f9924a8e37166429ceae549e"/><file name="sedex.gif" hash="9b6771f2d93f8f73dbbc8f5584a7f580"/><file name="sedex.png" hash="15e2831cad72756b9a9bf99a6e2af5e5"/></dir><file name="cc-title.png" hash="f3064bbd55a468c5bb717762e93a8a3b"/><file name="codigo-seguranca.png" hash="b1cdecab044511593083ff18033d4e4f"/><file name="flatrate_flatrate.gif" hash="a27796835310fe5e57ed11b5792d5530"/><file name="freeshipping_freeshipping.gif" hash="80af8e1da4c9cf03b1856f47bf7e27a4"/><file name="info.png" hash="051e3f3601ab034ba27615e42dd5cfdf"/><file name="logomoip.png" hash="0f09942428d649b8aa6b8999f0c60c0b"/><file name="logomoipck.png" hash="684da020f45d07cbee27cc231920d72a"/><file name="moip.png" hash="14273d22979881d4a57c960b952866e3"/><file name="moipamerican.png" hash="40ea216476033961d50f452bf4bca4df"/><file name="moipbanner2.png" hash="1c24f42b0cbb05f00ea779d3a719ebe1"/><file name="moipdiners.png" hash="0f4264379e7b8ba6b1a30a3d69240ae2"/><file name="moiphiper.png" hash="c25430ddd8e441cc2fc3ef68219e7668"/><file name="moipmaster.png" hash="836466c092121163320e9e6279f11f8b"/><file name="moipvisa.png" hash="cc0709d50773fa2815f7bfeb741a4219"/><file name="pedroteixeira_correios_40010.gif" hash="e260acafdeaf0f493350cfa5c34b8be1"/><file name="pedroteixeira_correios_40096.gif" hash="9d0af24408b3798ab687094ab9b76199"/><file name="pedroteixeira_correios_41068.gif" hash="fc1373622266269e8b0986b637e93851"/><file name="pedroteixeira_correios_41106.gif" hash="dcb56e6f42c1730736b44363d7c01e11"/><file name="pedroteixeira_correios_81019.gif" hash="9b6771f2d93f8f73dbbc8f5584a7f580"/><dir name="preto"><file name="ababoleto.png" hash="a728ac886e7e57744e62bba2c7b0b969"/><file name="abacartao.png" hash="50b6103cb5b7e51a27f3c26eaa7411d0"/><file name="abatransf.png" hash="61eec388356aea3230fc5d811ef996ea"/></dir><file name="printer.png" hash="f4bfc0849dceba778a6e7f252b7a3b9c"/><dir name="verde"><file name="ababoleto.png" hash="3c3e047acb513328ebdfd6bfc9c339fa"/><file name="abacartao.png" hash="809d7e21263b3474d1685087a91ca18a"/><file name="abatransf.png" hash="0e3e6bdba002a69be78e126f3e7e775f"/></dir><dir name="vermelho"><file name="ababoleto.png" hash="0d84f05b75c8e964122c4f087268bd1c"/><file name="abacartao.png" hash="63b85e98d5b77c6a373bc351080e60f4"/><file name="abatransf.png" hash="0bef9fec6108a914ebc108f3c600c013"/></dir><file name="warning.png" hash="3fbeef48124ccb146e082a9d20977b3e"/></dir></dir></dir></dir></dir></dir></target><target name="magemedia"><dir name="MOIP"><dir name="all"><file name="logo.png" hash="c08692c7e53617ad2a6d5f1449d04e96"/></dir></dir></target><target name="mageweb"><dir name="js"><dir name="MOIP"><file name="jquery.js" hash="f8e2833ce2f57ec673b178be7eefbd82"/><file name="jquery.mask.min.js" hash="c248ef809617dde36e1fa71e5a8a434f"/><file name="jquery_noconflict.js" hash="afdd9b4ecb226d898fe655136f849752"/><dir name="onestepcheckout"><file name="billing.js" hash="09f4109801826bb2023bd5e67cb3ec38"/><file name="change-events.js" hash="fb6cbfef1f186259b008d7d94cb593f8"/><file name="jquery.fancybox-1.3.1.js" hash="74be2c172f49740a6962de8baf0d1d68"/><file name="shipping.js" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><file name="script_mask.js" hash="8f741c8ca9a7786bb0b9faaa364fb3c9"/><dir name="transparente"><file name="bootstrap-modal.js" hash="3a3af727bfc923a064aad1b02681ffce"/><file name="bootstrap.min.js" hash="5eb1cb055ddcf2f7b2b662f73f56cf1f"/><file name="checkout.js" hash="90087361700c3efc739b2b995a79c159"/></dir><file name="validacao.js" hash="73cb3aaf10be38fda611e8cff9abd550"/></dir></dir></target></contents>
|
39 |
<compatible/>
|
40 |
<dependencies><required><php><min>4.0.0</min><max>15.5.5</max></php><extension><name>openssl</name><min>1</min><max>1</max></extension><extension><name>PDO</name><min>1</min><max>1</max></extension><extension><name>mcrypt</name><min>1</min><max>1</max></extension></required></dependencies>
|
41 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>o2ti_moip</name>
|
4 |
+
<version>1.3.10</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://moip.com/licensa_checkout_transparente.txt">Free to use with TRANSPARENTE</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>Moip Transparente - OFICIAL da empresa Moip Pagamentos S/A.
|
10 |
+
Pagamentos por cartão de crédito, boleto e transferência.
|
11 |
+
Checkout On Page by Moip S/A</summary>
|
12 |
<description>Moip and Onestepcheckout
|
13 |
Check out the Features:
|
14 |

|
33 |
Multi store split rates
|
34 |
Store terms and conditions (Mandatory in all stores following the federal law (http://legislacao.planalto.gov.br/legisla/legislacao.nsf/Viw_Identificacao/DEC%207.962-2013?OpenDocument) Nº 7.962, DE 15 DE MARÇO DE 2013</a>)
|
35 |
</ul></description>
|
36 |
+
<notes>Form select-valid</notes>
|
37 |
<authors><author><name>MOIP</name><user>moip</user><email>contato@moip.com</email></author></authors>
|
38 |
+
<date>2014-09-17</date>
|
39 |
+
<time>15:30:11</time>
|
40 |
+
<contents><target name="magelocal"><dir name="MOIP"><dir name="All"><dir name="Helper"><file name="Data.php" hash="10b776758585cb50355c0d6d0a5fdd5b"/></dir><dir name="etc"><file name="config.xml" hash="e04476923699975e6aad811230da5f50"/><file name="system.xml" hash="825545991621cd6e0fc34a19476d78cc"/></dir></dir><dir name="Onestepcheckout"><dir name="Block"><dir name="Adminhtml"><dir name="Onestepcheckout"><file name="Edit.php" hash="9e001824c65a6166eca5f6bdf93ac8ed"/><dir name="Sales"><dir name="Order"><dir name="View"><dir name="Tab"><dir name="Info"><file name="Customermessages.php" hash="ddb3c364bb288b2e48f5ca20dbaf262b"/></dir></dir></dir></dir></dir></dir><file name="Onestepcheckout.php" hash="d5fbd26cb253990509285dafec80765d"/></dir><dir name="Checkout"><dir name="Onepage"><dir name="Billing"><file name="Sortbilling.php" hash="aac00cf619be021d627bc6d6e0632247"/></dir><file name="Billing.php" hash="38b37d46b1f509546eea2f80f2b3c1e0"/><dir name="Review"><file name="Options.php" hash="f01528af1e9ea241ca836a05c58b810e"/></dir><file name="Shipping.php" hash="10c86ee0506bfed608f04419dee1da4f"/></dir></dir><file name="Onestepcheckout.php" hash="f6a3bc3e394fbadd34985586f71ee782"/></dir><dir name="Helper"><file name="Data.php" hash="5c19376368e6b2f744b448f0012f693e"/></dir><dir name="Model"><dir name="Customer"><file name="Customer.php" hash="f038378053e082fea387c16056624540"/></dir><dir name="Mysql4"><dir name="Onestepcheckout"><file name="Collection.php" hash="cb452401f753d3cd63196488d2985e09"/></dir><file name="Onestepcheckout.php" hash="370e27b4bdd3d450fff995f94bc74ad3"/></dir><file name="Observer.php" hash="e8b37e9fb11cf2f47eb61d1629927ed1"/><file name="Onestepcheckout.php" hash="90db8eeb14fc762e79098edfac0684f8"/><dir name="Sales"><dir name="Quote"><file name="Address.php" hash="904bdc6b5836ccdbb91810dba55b4a4b"/></dir></dir><file name="Status.php" hash="cd2132bb22a1992e6ea762586391733b"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Checkuncheck.php" hash="febcb4b243d5e09ae7b77d603af45d63"/><file name="Disablefield.php" hash="196dcdb92863dbe110a8edc0be4cf953"/><file name="Formatdate.php" hash="8866b2675e0b0cb8807ad0339c779761"/><file name="Optionaddfield.php" hash="574f6f8d27245ab4f0d0362372f5082d"/><file name="Optionhidefield.php" hash="0cf65ef82933d93293eaada3125c3b1d"/><file name="Pagelayout.php" hash="23bb1780490da71206c8b45c4bda0362"/><dir name="Payment"><file name="Allowedmethods.php" hash="ebdb9c1d23e4ac2a566f39d5b15e43bd"/></dir><file name="Subscribenewletter.php" hash="a4c99e4f5417aa1b6d42364f4c83258c"/></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="d6638d0e307af852942c910b150541d0"/><file name="TestController.php" hash="0ee82be0e1607d92fb4afa2bc6886b57"/></dir><dir name="etc"><file name="config.xml" hash="d257ed44d78d1c1a626b4d26efa4ac7f"/><file name="system.xml" hash="db0195cabfe0eb3525a4cae5eaa34282"/></dir><dir name="sql"><dir name="moip_onestepcheckout_setup"><file name="mysql4-install-0.1.0.php" hash="ca03016b7dc2a6c84e258b9e7248e5ff"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></dir><dir name="Transparente"><dir name="Block"><dir name="Adminhtml"><dir name="moip"><dir name="Info"><file name="Customermessages.php" hash="ddb3c364bb288b2e48f5ca20dbaf262b"/><file name="Info.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></dir><file name="Info.php" hash="c875546525a1df60a862e86e4403b385"/><dir name="Standard"><file name="CartSave.php" hash="0de0eb7007ef3aac2d1dde84ad3fb341"/><file name="Form.php" hash="f1693297162ab739142c545844dc7619"/><file name="Novaforma.php" hash="bb3d5b10530e42aaaf0512b1256ef520"/><file name="Redirect.php" hash="0062127f0844ff229851acffa83f7daf"/></dir></dir><dir name="Helper"><file name="Data.php" hash="e9499ad4765cdc49dd2700e88f37beb8"/></dir><dir name="Model"><file name="Api.php" hash="e53124d580e6855c21fbf3da7072cab1"/><dir name="Mysql4"><file name="Collection.php" hash="97a5f80b4f89f83884481284785e2eeb"/><file name="Write.php" hash="2f68ff14daed62d3af9992b949f38733"/></dir><file name="Observer.php" hash="3881f8da503128ffe9da5219bf06886b"/><file name="Orders.php" hash="8de01cfc16794f2ded44c7a04be987a3"/><dir name="Resource"><file name="Custommodel.php" hash="660a4b13ed53781dca0776830d2f44ed"/></dir><dir name="Source"><file name="Ambiente.php" hash="76749ed0937e4882357b23ac74ee22a0"/><file name="FormasPagamento.php" hash="9edf4a675cd6340a5fabd19996361eb4"/><file name="Layout.php" hash="212b1597bdbc653a2c7c0ad94e710474"/></dir><file name="Standard.php" hash="d024bd41fd69711c34248c06a39d9540"/><file name="Write.php" hash="2fa2858e62c781d368e9f53faa578dc5"/></dir><dir name="controllers"><file name="IndexController.php" hash="e7dbfec5101de06d44fd7f6c2339b4f6"/><file name="StandardController.php" hash="7ab8f6554797ae7432282501d737db9c"/></dir><dir name="etc"><file name="adminhtml.xml" hash="1a54627d1dd35f685aa9fa2068ad7336"/><file name="config.xml" hash="93f609b59faf5cfebf77dac66c6eba52"/><file name="system.xml" hash="94cf9493ee4c418794c6423d1115c03f"/></dir><dir name="sql"><dir name="transparente_setup"><file name="mysql4-install-0.1.0.php" hash="103be1acccc73c2b4f70fc31e00cab17"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="1be7a66f09d08cf7e2897939d88e616e"/><file name="mysql4-upgrade-0.2.0-0.2.1.php" hash="74dbd6488a8cd3ca500ae937279bb625"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="moip_transparente.xml" hash="a2f9c883a11fc4e60c3c496e4f452083"/><file name="moip_onestepcheckout.xml" hash="53aca57e2c4b219086cb88b84cdf9cde"/></dir><dir name="template"><dir name="MOIP"><dir name="customer"><dir name="address"><file name="book.phtml" hash="07747e72a21de6cc5ba6afa9ccc3aed1"/><file name="edit.phtml" hash="9ea60abf23fd6d0ca04c528d75f67e35"/></dir><dir name="widget"><file name="dob.phtml" hash="fc4646c6f8f786e2e72e473bbdaf94bc"/><file name="taxvat.phtml" hash="67333f779d3c7503209ce057a3b44c34"/></dir></dir><dir name="onestepcheckout"><dir name="daskboard"><dir name="onepage"><file name="agreements.phtml" hash="5b762aa76287b160fcbec8fed8b789e8"/><dir name="billing"><file name="billingform.phtml" hash="c2784f0f99372fd93ba64f11cfb77e68"/></dir><file name="billing.phtml" hash="df5e8b7d933b23a92ad1a04c709b901a"/><file name="correio.phtml" hash="461b88fcbf6adffc4f23c5905932bafa"/><file name="coupon.phtml" hash="dea6ab4dd695425e8331b2e6e3392e36"/><file name="forgotpassword.phtml" hash="6d1edd4874f2c8176c57354e27bef533"/><file name="local.xml" hash="08c7ce351c502056fb9ee3a14a9b065a"/><file name="login.phtml" hash="144091af79bf7c5242647fb6c1787cd3"/><dir name="payment"><file name="methods.phtml" hash="ae177a186a0195c1f475e953e7fea22d"/></dir><file name="payment.phtml" hash="e3cdf283d4fb720f2734d99aa3d4ad01"/><dir name="review"><file name="button.phtml" hash="4d5c7c5a2d70f85ec324e79c7e81946b"/><file name="info.phtml" hash="4f9b5ff55782c6f5f5104700fedf8c40"/><file name="item.phtml" hash="25f02e1cf5fa04dfd59ac385c7bd6649"/><dir name="options"><file name="additional.phtml" hash="a915a8c848316dbe901c39f41bcfbdd2"/></dir><file name="options.phtml" hash="35d426f28c2b87a853f811ab7a18e544"/><file name="totals.phtml" hash="6e857d144768ed8faa0be977b547b32f"/></dir><file name="review.phtml" hash="647c57e5a50e1532d676529994bdddae"/><dir name="shipping"><file name="shipping_form.phtml" hash="054aac0830f442ef4caef98c19d94561"/></dir><file name="shipping.phtml" hash="b8a0d2bcc61521c81ce333d4d02d5a5f"/><dir name="shipping_method"><file name="available.phtml" hash="eb0ce43c52182c2bc89fb611cfe10a9b"/></dir><file name="shipping_method.phtml" hash="0471efc82f2daeb543f1739a8fc3a5da"/></dir></dir><file name="daskboard.phtml" hash="3817f78167e9d267ff71ac52240bceb3"/><file name="emptyupdate.phtml" hash="7bf34446254428a5c42740731127b435"/><file name="onepage.phtml" hash="56d1f25b4a22746034b134a69f74c265"/><dir name="sales"><dir name="order"><dir name="info"><file name="customermessages.phtml" hash="813c6150e0e309612f40c9aee0d63c84"/><file name="customermessages.phtml~" hash="aa6199bb564edbf6d950fa154b624c02"/><file name="deliverydate.phtml" hash="a188cdefd8c346c28dbe2737097b208e"/><file name="deliverydate.phtml~" hash="75709e72398a0df41305dee259dc3de2"/></dir><file name="info.phtml" hash="a5b6b9223ec3d5da923e04f8becc84f3"/><dir name="view"><dir name="tab"><dir name="info"><file name="customermessages.phtml" hash="7de74c4598eceef2d17215585252f740"/><file name="deliverydate.phtml" hash="6e1260a32a1f6801ac185ef38a33114c"/></dir><file name="info.phtml" hash="57f4718dbfaa448976954368c1932b2b"/></dir></dir></dir></dir></dir><dir name="transparente"><file name="Novaforma.phtml" hash="49d046daa42bae37c1c5e80ff88c3e0d"/><file name="boleto.phtml" hash="7a3ba0fca192265ca085bd70257ddef4"/><file name="cartao.phtml" hash="2af8e3b3a4ecbd1d2e70e11fb7432a23"/><file name="cartoes_my_account.phtml" hash="82db91eba146f4905ce59e8d28be36a6"/><file name="emptyupdate.phtml" hash="5504d0197f33a3db19ae9f75b5a43b86"/><file name="horizontal_form.phtml" hash="e8dca964473a0995b922cf483f04a516"/><file name="info.phtml" hash="818d61ffa82df1ed705f1f541dccb84c"/><file name="layout_boleto.phtml" hash="8d91c7873e692648a7c1d9bd29091793"/><file name="redirect.phtml" hash="89331532d0b06660a4838b877599195e"/><file name="refaz.phtml" hash="4e28662ad936fd970ca12e81a86c3be8"/><file name="transferencia.phtml" hash="899b637450983e3aba627b42b010e8c8"/><file name="vertical_form.phtml" hash="25b6b190edba1748ebe6f15f76872eca"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="MOIP"><dir name="onestepcheckout"><dir name="sales"><dir name="order"><dir name="view"><dir name="tab"><dir name="info"><file name="Customermessages.phtml" hash="336f1612d37946b870e3ac5e18e52dc1"/></dir><file name="info.phtml" hash="1b6b38d40668d878487f1710a28c1e69"/></dir></dir></dir></dir></dir><dir name="sales"><dir name="order"><dir name="view"><file name="info.phtml" hash="c6aa8255f5c494857c557a21a59e3367"/></dir></dir></dir><dir name="transparente"><file name="form.phtml" hash="2085219ca42621f5ab0172cba283ee1a"/><file name="info.phtml" hash="f1005b2874544d196842c96cd7c3a183"/><file name="redirect.phtml" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></dir><dir name="layout"><file name="moip_onestepcheckout.xml" hash="965904abd39a5a3d70a48cb1eeead421"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MOIP_All.xml" hash="5b4232633c10117c66c4054b95984c0d"/><file name="MOIP_Transparente.xml" hash="4a329e338fbbc0382234859c509e4178"/><file name="MOIP_Onestepcheckout.xml" hash="07ae6f8ec3e1bccc5001ae9a8386c3fc"/></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="MOIP_Onestepcheckout.csv" hash="d7fd83d1c115af767311368be3b3a2e4"/></dir><dir name="pt_BR"><file name="MOIP_Onestepcheckout.csv" hash="d7fd83d1c115af767311368be3b3a2e4"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="MOIP"><dir name="onestepcheckout"><dir name="css"><file name="960grid_onestepcheckout.css" hash="aa451eb73128fd83916aa7f76fdba615"/><dir name="images"><file name="blank.gif" hash="325472601571f31e1bf00674c368d335"/><file name="fancy_close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="fancy_loading.png" hash="b1d54c240cf06e7f41e372d56919b738"/><file name="fancy_nav_left.png" hash="3f3e406102152cd8236383568a40ba35"/><file name="fancy_nav_right.png" hash="216e4bde5bddeeaa60dc3d692890a68e"/><file name="fancy_overlay.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="fancy_shadow_e.png" hash="fd4f491080d29fade5080877f1ba4c8b"/><file name="fancy_shadow_n.png" hash="18cde16379b2ceadef714d9b346d09ec"/><file name="fancy_shadow_ne.png" hash="63adf788acf193d4e4f3642d7d793125"/><file name="fancy_shadow_nw.png" hash="c820c878aedb7a7f9ebd7135a58e7c65"/><file name="fancy_shadow_s.png" hash="9b9e5c888028aaef40fe5b6a363f1e29"/><file name="fancy_shadow_se.png" hash="a8afd5a008884380ee712d177105268f"/><file name="fancy_shadow_sw.png" hash="f81cc0fee5581d76ad3cebe47e7e791b"/><file name="fancy_shadow_w.png" hash="59b0e63eb059e58d932cfd53da4d87e6"/><file name="fancy_title_left.png" hash="1582ac2d3bef6a6445bf02ceca2741cd"/><file name="fancy_title_main.png" hash="38dad6c1ed4bdc81c0bec721b2deb8c2"/><file name="fancy_title_over.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="fancy_title_right.png" hash="6cbe0c935511e7f9a2555ccb6a7324c4"/><file name="fancybox-x.png" hash="168696d8a694214090ef90e029cdf393"/><file name="fancybox-y.png" hash="36a58859beb9a6b19322a37466b9f78e"/><file name="fancybox.png" hash="f6ccaf1eda8a79a2bd44643e5a346990"/><file name="ui-bg_diagonals-thick_18_b81900_40x40.png" hash="95f9cceeb9d742dd3e917ec16ed754f8"/><file name="ui-bg_diagonals-thick_20_666666_40x40.png" hash="f040b255ca13e693da34ab33c7d6b554"/><file name="ui-bg_flat_10_000000_40x100.png" hash="c18cd01623c7fed23c80d53e2f5e7c78"/><file name="ui-bg_glass_100_f6f6f6_1x400.png" hash="5f1847175ba18c41322cb9cb0581e0fb"/><file name="ui-bg_glass_100_fdf5ce_1x400.png" hash="d26e8f463195a7b86f86b7d550cfc114"/><file name="ui-bg_glass_65_ffffff_1x400.png" hash="e5a8f32e28fd5c27bf0fed33c8a8b9b5"/><file name="ui-bg_gloss-wave_35_000_500x100.png" hash="5038a7d5d5bc3c3a565c585079798dca"/><file name="ui-bg_gloss-wave_35_f6a828_500x100.png" hash="5038a7d5d5bc3c3a565c585079798dca"/><file name="ui-bg_highlight-soft_100_eeeeee_1x100.png" hash="384c3f17709ba0f809b023b6e7b10b84"/><file name="ui-bg_highlight-soft_75_ffe45c_1x100.png" hash="b806658954cb4d16ade8977af737f486"/><file name="ui-icons_222222_256x240.png" hash="ebe6b6902a408fbf9cac6379a1477525"/><file name="ui-icons_228ef1_256x240.png" hash="ff1768bb6731566603303d106e298bec"/><file name="ui-icons_ef8c08_256x240.png" hash="ef9a6ccfe3b14041928ddc708665b226"/><file name="ui-icons_ffd27a_256x240.png" hash="ab8c30acc0e3608fb79e01fccf832c70"/><file name="ui-icons_ffffff_256x240.png" hash="342bc03f6264c75d3f1d7f99e34295b9"/></dir><file name="jquery.fancybox-1.3.1.css" hash="d97fbbe1ab67a487738e8121c79a5021"/><file name="onestepcheckout.css" hash="c05af813aba90f0733bc508dfafb2bda"/></dir><dir name="images"><file name="01.png" hash="89fcfa0fa3fe73b65ca2420269c26158"/><file name="02.png" hash="dab59c7515b3366465a4dd57d2d9deb2"/><file name="03.png" hash="dcaf4232529a8f9ac304db7553397450"/><file name="04.png" hash="68ae3a414c70c12f340e7c801d854c53"/><file name="05.png" hash="6e8fe636f0593ed3cf00d140e68d2308"/><file name="2_clock.png" hash="bb35645e06d8687f818a583202ad1615"/><file name="ajax-loader-tr.gif" hash="7a46575a4d543082fd6174c593aa762a"/><file name="bkg-giftmessage.png" hash="e0dc9f84c687af088bcc04e3ea200e0b"/><file name="bkg-step-review.png" hash="589914598419e9625c9358df8f68d49c"/><file name="bkg_form-search.gif" hash="2ca36eb80ea705e063409153f3821f78"/><file name="error-icon.jpg" hash="45f1cf37752f8493b84f69b845bf23da"/><file name="fancy_close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="fancy_loading.png" hash="b1d54c240cf06e7f41e372d56919b738"/><file name="fancy_nav_left.png" hash="3f3e406102152cd8236383568a40ba35"/><file name="fancy_nav_right.png" hash="216e4bde5bddeeaa60dc3d692890a68e"/><file name="fancy_overlay.png" hash="7a46575a4d543082fd6174c593aa762a"/><file name="fancy_shadow_e.png" hash="fd4f491080d29fade5080877f1ba4c8b"/><file name="fancy_shadow_n.png" hash="18cde16379b2ceadef714d9b346d09ec"/><file name="fancy_shadow_ne.png" hash="63adf788acf193d4e4f3642d7d793125"/><file name="fancy_shadow_nw.png" hash="c820c878aedb7a7f9ebd7135a58e7c65"/><file name="fancy_shadow_s.png" hash="9b9e5c888028aaef40fe5b6a363f1e29"/><file name="fancy_shadow_se.png" hash="a8afd5a008884380ee712d177105268f"/><file name="fancy_shadow_sw.png" hash="f81cc0fee5581d76ad3cebe47e7e791b"/><file name="fancy_shadow_w.png" hash="59b0e63eb059e58d932cfd53da4d87e6"/><file name="fancy_title_left.png" hash="1582ac2d3bef6a6445bf02ceca2741cd"/><file name="fancy_title_main.png" hash="38dad6c1ed4bdc81c0bec721b2deb8c2"/><file name="fancy_title_over.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="fancy_title_right.png" hash="6cbe0c935511e7f9a2555ccb6a7324c4"/><file name="fancybox-x.png" hash="168696d8a694214090ef90e029cdf393"/><file name="fancybox-y.png" hash="36a58859beb9a6b19322a37466b9f78e"/><file name="fancybox.png" hash="11e57e492ee0311540967cc7a1e6e3e2"/><file name="grid-cal.gif" hash="b1468e5239504974c689eea5d93f86d4"/><file name="line-gradient.gif" hash="bef9df2d426124dbe3d496407219190b"/><file name="loja_segura.jpg" hash="5e65fd40952db665746dc485d67fdf35"/><file name="opc-ajax-loader.gif" hash="e805ea7eca1f34c75ba0f93780d32d38"/><file name="passed-icon.jpg" hash="2e0563fb8b85a59f8146825930b18272"/><file name="validation_advice_bg.gif" hash="b85432906de8985a8b14eeb2dc652d3c"/></dir></dir><dir name="transparente"><dir name="css"><file name="bootstrap.css" hash="9c9b533891f67adac6bbc64d0bf2d44b"/><file name="cartao_save.css" hash="eb154654514b7e1445a915ffa28802e6"/><file name="horizontal_form.css" hash="761b8afc73f902f91d7050c0cc942027"/><file name="prettify.css" hash="ecd4a5d6c0cbee10b168f6aa000c64ea"/><file name="vertical_form.css" hash="bfe42578f247e443ace21a29d8a50e97"/></dir><dir name="imagem"><file name="AmericanExpress.png" hash="40ea216476033961d50f452bf4bca4df"/><file name="BancoDoBrasil.png" hash="572914d1e4b635dc56cd507c6c46b023"/><file name="Banrisul.png" hash="d4ac02772b3f521a92542b849e679092"/><file name="Bradesco.png" hash="ceb6a2aaf263fc359fabaf6f102cb8db"/><file name="Diners.png" hash="0f4264379e7b8ba6b1a30a3d69240ae2"/><file name="Hipercard.png" hash="c25430ddd8e441cc2fc3ef68219e7668"/><file name="Itau.png" hash="40d639fe4b14d063d810589577f0eb7d"/><file name="Mastercard.png" hash="836466c092121163320e9e6279f11f8b"/><file name="Visa.png" hash="cc0709d50773fa2815f7bfeb741a4219"/><file name="ababoleto.png" hash="47e3ede4db46d5938a68f126bb68bcfe"/><file name="abacartao.png" hash="667954485c4082bafa84920073288453"/><file name="abatransf.png" hash="0623c4cf50653b9c13d12cca5eed43f6"/><file name="ajax-loader.gif" hash="57ca1a2085d82f0574e3ef740b9a5ead"/><dir name="azul"><file name="ababoleto.png" hash="47e3ede4db46d5938a68f126bb68bcfe"/><file name="abacartao.png" hash="667954485c4082bafa84920073288453"/><file name="abatransf.png" hash="0623c4cf50653b9c13d12cca5eed43f6"/></dir><file name="bank-icon.png" hash="3f73473ce94841328abffa85fe314f3e"/><file name="bank-title.png" hash="3d33028c41f80b1042ef5500ea05c0d1"/><file name="bb.png" hash="572914d1e4b635dc56cd507c6c46b023"/><file name="boleto-icon.png" hash="c4560588cb6e12ca7756788648493ad3"/><file name="boleto.png" hash="fe1b591868a937c40e1a095b1313e3ed"/><dir name="branco"><file name="ababoleto.png" hash="f3baeeaf41a6528905b97d825ac67cf7"/><file name="abacartao.png" hash="684d8a48644f55f2c3504da1f51a350b"/><file name="abatransf.png" hash="ea6f42607620ea8f8dca34c1fc98b42b"/><file name="e-sedex.gif" hash="9d0af24408b3798ab687094ab9b76199"/><file name="e-sedex.png" hash="19c04d68032987d594c4da51e3b66094"/><file name="pac.gif" hash="fc1373622266269e8b0986b637e93851"/><file name="pac.png" hash="17aaff70f9924a8e37166429ceae549e"/><file name="sedex.gif" hash="9b6771f2d93f8f73dbbc8f5584a7f580"/><file name="sedex.png" hash="15e2831cad72756b9a9bf99a6e2af5e5"/></dir><file name="cc-title.png" hash="f3064bbd55a468c5bb717762e93a8a3b"/><file name="codigo-seguranca.png" hash="b1cdecab044511593083ff18033d4e4f"/><file name="correios_40010.gif" hash="e260acafdeaf0f493350cfa5c34b8be1"/><file name="correios_41106.gif" hash="fc1373622266269e8b0986b637e93851"/><file name="correios_81019.gif" hash="9d0af24408b3798ab687094ab9b76199"/><file name="flatrate_flatrate.gif" hash="a27796835310fe5e57ed11b5792d5530"/><file name="freeshipping_freeshipping.gif" hash="80af8e1da4c9cf03b1856f47bf7e27a4"/><file name="info.png" hash="051e3f3601ab034ba27615e42dd5cfdf"/><file name="logomoip.png" hash="0f09942428d649b8aa6b8999f0c60c0b"/><file name="logomoipck.png" hash="684da020f45d07cbee27cc231920d72a"/><file name="moip.png" hash="14273d22979881d4a57c960b952866e3"/><file name="moipamerican.png" hash="40ea216476033961d50f452bf4bca4df"/><file name="moipbanner2.png" hash="1c24f42b0cbb05f00ea779d3a719ebe1"/><file name="moipdiners.png" hash="0f4264379e7b8ba6b1a30a3d69240ae2"/><file name="moiphiper.png" hash="c25430ddd8e441cc2fc3ef68219e7668"/><file name="moipmaster.png" hash="836466c092121163320e9e6279f11f8b"/><file name="moipvisa.png" hash="cc0709d50773fa2815f7bfeb741a4219"/><file name="pedroteixeira_correios_40010.gif" hash="e260acafdeaf0f493350cfa5c34b8be1"/><file name="pedroteixeira_correios_40096.gif" hash="9d0af24408b3798ab687094ab9b76199"/><file name="pedroteixeira_correios_41068.gif" hash="fc1373622266269e8b0986b637e93851"/><file name="pedroteixeira_correios_41106.gif" hash="dcb56e6f42c1730736b44363d7c01e11"/><file name="pedroteixeira_correios_81019.gif" hash="9b6771f2d93f8f73dbbc8f5584a7f580"/><dir name="preto"><file name="ababoleto.png" hash="a728ac886e7e57744e62bba2c7b0b969"/><file name="abacartao.png" hash="50b6103cb5b7e51a27f3c26eaa7411d0"/><file name="abatransf.png" hash="61eec388356aea3230fc5d811ef996ea"/></dir><file name="printer.png" hash="f4bfc0849dceba778a6e7f252b7a3b9c"/><dir name="verde"><file name="ababoleto.png" hash="3c3e047acb513328ebdfd6bfc9c339fa"/><file name="abacartao.png" hash="809d7e21263b3474d1685087a91ca18a"/><file name="abatransf.png" hash="0e3e6bdba002a69be78e126f3e7e775f"/></dir><dir name="vermelho"><file name="ababoleto.png" hash="0d84f05b75c8e964122c4f087268bd1c"/><file name="abacartao.png" hash="63b85e98d5b77c6a373bc351080e60f4"/><file name="abatransf.png" hash="0bef9fec6108a914ebc108f3c600c013"/></dir><file name="warning.png" hash="3fbeef48124ccb146e082a9d20977b3e"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="MOIP"><dir name="onestepcheckout"><dir name="css"><file name="960grid_onestepcheckout.css" hash="49257f08c5e41cca8748c3c0ff3d3cc2"/><dir name="images"><file name="blank.gif" hash="325472601571f31e1bf00674c368d335"/><file name="fancy_close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="fancy_loading.png" hash="b1d54c240cf06e7f41e372d56919b738"/><file name="fancy_nav_left.png" hash="3f3e406102152cd8236383568a40ba35"/><file name="fancy_nav_right.png" hash="216e4bde5bddeeaa60dc3d692890a68e"/><file name="fancy_overlay.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="fancy_shadow_e.png" hash="fd4f491080d29fade5080877f1ba4c8b"/><file name="fancy_shadow_n.png" hash="18cde16379b2ceadef714d9b346d09ec"/><file name="fancy_shadow_ne.png" hash="63adf788acf193d4e4f3642d7d793125"/><file name="fancy_shadow_nw.png" hash="c820c878aedb7a7f9ebd7135a58e7c65"/><file name="fancy_shadow_s.png" hash="9b9e5c888028aaef40fe5b6a363f1e29"/><file name="fancy_shadow_se.png" hash="a8afd5a008884380ee712d177105268f"/><file name="fancy_shadow_sw.png" hash="f81cc0fee5581d76ad3cebe47e7e791b"/><file name="fancy_shadow_w.png" hash="59b0e63eb059e58d932cfd53da4d87e6"/><file name="fancy_title_left.png" hash="1582ac2d3bef6a6445bf02ceca2741cd"/><file name="fancy_title_main.png" hash="38dad6c1ed4bdc81c0bec721b2deb8c2"/><file name="fancy_title_over.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="fancy_title_right.png" hash="6cbe0c935511e7f9a2555ccb6a7324c4"/><file name="fancybox-x.png" hash="168696d8a694214090ef90e029cdf393"/><file name="fancybox-y.png" hash="36a58859beb9a6b19322a37466b9f78e"/><file name="fancybox.png" hash="f6ccaf1eda8a79a2bd44643e5a346990"/><file name="ui-bg_diagonals-thick_18_b81900_40x40.png" hash="95f9cceeb9d742dd3e917ec16ed754f8"/><file name="ui-bg_diagonals-thick_20_666666_40x40.png" hash="f040b255ca13e693da34ab33c7d6b554"/><file name="ui-bg_flat_10_000000_40x100.png" hash="c18cd01623c7fed23c80d53e2f5e7c78"/><file name="ui-bg_glass_100_f6f6f6_1x400.png" hash="5f1847175ba18c41322cb9cb0581e0fb"/><file name="ui-bg_glass_100_fdf5ce_1x400.png" hash="d26e8f463195a7b86f86b7d550cfc114"/><file name="ui-bg_glass_65_ffffff_1x400.png" hash="e5a8f32e28fd5c27bf0fed33c8a8b9b5"/><file name="ui-bg_gloss-wave_35_000_500x100.png" hash="5038a7d5d5bc3c3a565c585079798dca"/><file name="ui-bg_gloss-wave_35_f6a828_500x100.png" hash="5038a7d5d5bc3c3a565c585079798dca"/><file name="ui-bg_highlight-soft_100_eeeeee_1x100.png" hash="384c3f17709ba0f809b023b6e7b10b84"/><file name="ui-bg_highlight-soft_75_ffe45c_1x100.png" hash="b806658954cb4d16ade8977af737f486"/><file name="ui-icons_222222_256x240.png" hash="ebe6b6902a408fbf9cac6379a1477525"/><file name="ui-icons_228ef1_256x240.png" hash="ff1768bb6731566603303d106e298bec"/><file name="ui-icons_ef8c08_256x240.png" hash="ef9a6ccfe3b14041928ddc708665b226"/><file name="ui-icons_ffd27a_256x240.png" hash="ab8c30acc0e3608fb79e01fccf832c70"/><file name="ui-icons_ffffff_256x240.png" hash="342bc03f6264c75d3f1d7f99e34295b9"/></dir><file name="jquery.fancybox-1.3.1.css" hash="d1e24fb0bfbd1f97b23edc75904b90d4"/><file name="onestepcheckout.css" hash="4f4a6534b37ef582f5aa8ff4a694017d"/></dir><dir name="images"><file name="01.png" hash="89fcfa0fa3fe73b65ca2420269c26158"/><file name="02.png" hash="dab59c7515b3366465a4dd57d2d9deb2"/><file name="03.png" hash="dcaf4232529a8f9ac304db7553397450"/><file name="04.png" hash="68ae3a414c70c12f340e7c801d854c53"/><file name="05.png" hash="6e8fe636f0593ed3cf00d140e68d2308"/><file name="2_clock.png" hash="bb35645e06d8687f818a583202ad1615"/><file name="ajax-loader-tr.gif" hash="7a46575a4d543082fd6174c593aa762a"/><file name="bkg-giftmessage.png" hash="e0dc9f84c687af088bcc04e3ea200e0b"/><file name="bkg-step-review.png" hash="589914598419e9625c9358df8f68d49c"/><file name="bkg_form-search.gif" hash="2ca36eb80ea705e063409153f3821f78"/><file name="bkg_header.jpg" hash="0211c47be1493bd0ec72949c47932b81"/><file name="blank.gif" hash="325472601571f31e1bf00674c368d335"/><file name="btn_checkout.gif" hash="d2060501e14e86c29e28137130e5726e"/><file name="clock.gif" hash="c6d5badd40d31d332470c32a03d2e98c"/><file name="clock.png" hash="73f0648c150bde4ef647db7e9c14ca3e"/><file name="demo-large_03.png" hash="86628bc4358a1c1f655534d4ae15be45"/><file name="demo-large_04.png" hash="0d5f289d2bf808165be000b318a50591"/><file name="demo-large_05.png" hash="5fd1386a147ea4768553c3990d9db804"/><file name="demo-large_051.png" hash="452556661a99a8fb20c6d507ce9506f0"/><file name="demo-large_06.png" hash="247e5412b0e70bf164a428374b15a82d"/><file name="demo-large_07.png" hash="9deac604cfb692b2e17f0f53c3aebbf4"/><file name="fancy_close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="fancy_loading.png" hash="b1d54c240cf06e7f41e372d56919b738"/><file name="fancy_nav_left.png" hash="3f3e406102152cd8236383568a40ba35"/><file name="fancy_nav_right.png" hash="216e4bde5bddeeaa60dc3d692890a68e"/><file name="fancy_overlay.png" hash="7a46575a4d543082fd6174c593aa762a"/><file name="fancy_shadow_e.png" hash="fd4f491080d29fade5080877f1ba4c8b"/><file name="fancy_shadow_n.png" hash="18cde16379b2ceadef714d9b346d09ec"/><file name="fancy_shadow_ne.png" hash="63adf788acf193d4e4f3642d7d793125"/><file name="fancy_shadow_nw.png" hash="c820c878aedb7a7f9ebd7135a58e7c65"/><file name="fancy_shadow_s.png" hash="9b9e5c888028aaef40fe5b6a363f1e29"/><file name="fancy_shadow_se.png" hash="a8afd5a008884380ee712d177105268f"/><file name="fancy_shadow_sw.png" hash="f81cc0fee5581d76ad3cebe47e7e791b"/><file name="fancy_shadow_w.png" hash="59b0e63eb059e58d932cfd53da4d87e6"/><file name="fancy_title_left.png" hash="1582ac2d3bef6a6445bf02ceca2741cd"/><file name="fancy_title_main.png" hash="38dad6c1ed4bdc81c0bec721b2deb8c2"/><file name="fancy_title_over.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="fancy_title_right.png" hash="6cbe0c935511e7f9a2555ccb6a7324c4"/><file name="fancybox-x.png" hash="168696d8a694214090ef90e029cdf393"/><file name="fancybox-y.png" hash="36a58859beb9a6b19322a37466b9f78e"/><file name="fancybox.png" hash="11e57e492ee0311540967cc7a1e6e3e2"/><file name="grid-cal.gif" hash="b1468e5239504974c689eea5d93f86d4"/><file name="line-gradient.gif" hash="bef9df2d426124dbe3d496407219190b"/><file name="loja_segura.jpg" hash="5e65fd40952db665746dc485d67fdf35"/><file name="opc-ajax-loader.gif" hash="e805ea7eca1f34c75ba0f93780d32d38"/><file name="validation_advice_bg.gif" hash="b85432906de8985a8b14eeb2dc652d3c"/></dir></dir><dir name="transparente"><dir name="css"><file name="bootstrap.css" hash="75c28a5ed4bf7d4c9a6eda4808438943"/><file name="formulario.css" hash="87e267ea81daca8c9aa4a528c63f5eb2"/><file name="formulario_horizontal.css" hash="502050c298a58cf25440950fb5127105"/><file name="prettify.css" hash="ecd4a5d6c0cbee10b168f6aa000c64ea"/></dir><dir name="imagem"><file name="AmericanExpress.png" hash="40ea216476033961d50f452bf4bca4df"/><file name="BancoDoBrasil.png" hash="572914d1e4b635dc56cd507c6c46b023"/><file name="Banrisul.png" hash="d4ac02772b3f521a92542b849e679092"/><file name="Bradesco.png" hash="ceb6a2aaf263fc359fabaf6f102cb8db"/><file name="Diners.png" hash="0f4264379e7b8ba6b1a30a3d69240ae2"/><file name="Hipercard.png" hash="c25430ddd8e441cc2fc3ef68219e7668"/><file name="Itau.png" hash="40d639fe4b14d063d810589577f0eb7d"/><file name="Mastercard.png" hash="836466c092121163320e9e6279f11f8b"/><file name="Visa.png" hash="cc0709d50773fa2815f7bfeb741a4219"/><file name="ababoleto.png" hash="47e3ede4db46d5938a68f126bb68bcfe"/><file name="abacartao.png" hash="667954485c4082bafa84920073288453"/><file name="abatransf.png" hash="0623c4cf50653b9c13d12cca5eed43f6"/><file name="ajax-loader.gif" hash="57ca1a2085d82f0574e3ef740b9a5ead"/><dir name="azul"><file name="ababoleto.png" hash="47e3ede4db46d5938a68f126bb68bcfe"/><file name="abacartao.png" hash="667954485c4082bafa84920073288453"/><file name="abatransf.png" hash="0623c4cf50653b9c13d12cca5eed43f6"/></dir><file name="bank-icon.png" hash="3f73473ce94841328abffa85fe314f3e"/><file name="bank-title.png" hash="3d33028c41f80b1042ef5500ea05c0d1"/><file name="bb.png" hash="572914d1e4b635dc56cd507c6c46b023"/><file name="boleto-icon.png" hash="c4560588cb6e12ca7756788648493ad3"/><file name="boleto.png" hash="fe1b591868a937c40e1a095b1313e3ed"/><dir name="branco"><file name="ababoleto.png" hash="f3baeeaf41a6528905b97d825ac67cf7"/><file name="abacartao.png" hash="684d8a48644f55f2c3504da1f51a350b"/><file name="abatransf.png" hash="ea6f42607620ea8f8dca34c1fc98b42b"/><file name="e-sedex.gif" hash="9d0af24408b3798ab687094ab9b76199"/><file name="e-sedex.png" hash="19c04d68032987d594c4da51e3b66094"/><file name="pac.gif" hash="fc1373622266269e8b0986b637e93851"/><file name="pac.png" hash="17aaff70f9924a8e37166429ceae549e"/><file name="sedex.gif" hash="9b6771f2d93f8f73dbbc8f5584a7f580"/><file name="sedex.png" hash="15e2831cad72756b9a9bf99a6e2af5e5"/></dir><file name="cc-title.png" hash="f3064bbd55a468c5bb717762e93a8a3b"/><file name="codigo-seguranca.png" hash="b1cdecab044511593083ff18033d4e4f"/><file name="flatrate_flatrate.gif" hash="a27796835310fe5e57ed11b5792d5530"/><file name="freeshipping_freeshipping.gif" hash="80af8e1da4c9cf03b1856f47bf7e27a4"/><file name="info.png" hash="051e3f3601ab034ba27615e42dd5cfdf"/><file name="logomoip.png" hash="0f09942428d649b8aa6b8999f0c60c0b"/><file name="logomoipck.png" hash="684da020f45d07cbee27cc231920d72a"/><file name="moip.png" hash="14273d22979881d4a57c960b952866e3"/><file name="moipamerican.png" hash="40ea216476033961d50f452bf4bca4df"/><file name="moipbanner2.png" hash="1c24f42b0cbb05f00ea779d3a719ebe1"/><file name="moipdiners.png" hash="0f4264379e7b8ba6b1a30a3d69240ae2"/><file name="moiphiper.png" hash="c25430ddd8e441cc2fc3ef68219e7668"/><file name="moipmaster.png" hash="836466c092121163320e9e6279f11f8b"/><file name="moipvisa.png" hash="cc0709d50773fa2815f7bfeb741a4219"/><file name="pedroteixeira_correios_40010.gif" hash="e260acafdeaf0f493350cfa5c34b8be1"/><file name="pedroteixeira_correios_40096.gif" hash="9d0af24408b3798ab687094ab9b76199"/><file name="pedroteixeira_correios_41068.gif" hash="fc1373622266269e8b0986b637e93851"/><file name="pedroteixeira_correios_41106.gif" hash="dcb56e6f42c1730736b44363d7c01e11"/><file name="pedroteixeira_correios_81019.gif" hash="9b6771f2d93f8f73dbbc8f5584a7f580"/><dir name="preto"><file name="ababoleto.png" hash="a728ac886e7e57744e62bba2c7b0b969"/><file name="abacartao.png" hash="50b6103cb5b7e51a27f3c26eaa7411d0"/><file name="abatransf.png" hash="61eec388356aea3230fc5d811ef996ea"/></dir><file name="printer.png" hash="f4bfc0849dceba778a6e7f252b7a3b9c"/><dir name="verde"><file name="ababoleto.png" hash="3c3e047acb513328ebdfd6bfc9c339fa"/><file name="abacartao.png" hash="809d7e21263b3474d1685087a91ca18a"/><file name="abatransf.png" hash="0e3e6bdba002a69be78e126f3e7e775f"/></dir><dir name="vermelho"><file name="ababoleto.png" hash="0d84f05b75c8e964122c4f087268bd1c"/><file name="abacartao.png" hash="63b85e98d5b77c6a373bc351080e60f4"/><file name="abatransf.png" hash="0bef9fec6108a914ebc108f3c600c013"/></dir><file name="warning.png" hash="3fbeef48124ccb146e082a9d20977b3e"/></dir></dir></dir></dir></dir></dir></target><target name="magemedia"><dir name="MOIP"><dir name="all"><file name="logo.png" hash="c08692c7e53617ad2a6d5f1449d04e96"/></dir></dir></target><target name="mageweb"><dir name="js"><dir name="MOIP"><file name="jquery.js" hash="f8e2833ce2f57ec673b178be7eefbd82"/><file name="jquery.mask.min.js" hash="595577f781056bce7b8b34cabfaa4385"/><file name="jquery_noconflict.js" hash="780e293983141f504e479679f2dacc7f"/><dir name="onestepcheckout"><file name="billing.js" hash="9d5f468c9e8d10e32781d347f2b8e41b"/><file name="change-events.js" hash="5e14783950d731f70d8941aedada34ca"/><file name="jquery.fancybox-1.3.1.js" hash="74be2c172f49740a6962de8baf0d1d68"/><file name="shipping.js" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><file name="script_mask.js" hash="3a2eabecd6408702bb4ccb308de47c11"/><dir name="transparente"><file name="bootstrap-modal.js" hash="3a3af727bfc923a064aad1b02681ffce"/><file name="bootstrap.min.js" hash="303931dd29c65caff16f6a220ed4910d"/><file name="checkout.js" hash="23ba0d1807ff1fc32911957b79a27e65"/></dir><file name="validacao.js" hash="3ec385edb6d6215c680970bdcf1974a5"/></dir></dir></target></contents>
|
41 |
<compatible/>
|
42 |
<dependencies><required><php><min>4.0.0</min><max>15.5.5</max></php><extension><name>openssl</name><min>1</min><max>1</max></extension><extension><name>PDO</name><min>1</min><max>1</max></extension><extension><name>mcrypt</name><min>1</min><max>1</max></extension></required></dependencies>
|
43 |
</package>
|
skin/frontend/base/default/MOIP/onestepcheckout/css/onestepcheckout.css
CHANGED
@@ -1,22 +1,26 @@
|
|
1 |
/* page blocks */
|
2 |
-
.moip-osc-checkoutcontainer { display: block;
|
|
|
3 |
.moip-osc-checkoutcontainer .moip-osc-column-left { display: block; float: left; }
|
4 |
.moip-osc-checkoutcontainer .moip-osc-column-2 { display: block; width: 65%; margin-left: 2%; float: left; }
|
5 |
.moip-osc-checkoutcontainer .moip-osc-column-2 .moip-osc-column-middle { display: block; width: 47%; float: left; min-width: 280px !important; }
|
6 |
.moip-osc-checkoutcontainer .moip-osc-column-2 .moip-osc-column-right { display: block; width: 48%; float: left; margin-left: 2%; min-width: 280px !important; }
|
7 |
.moip-osc-checkoutcontainer .moip-osc-block-title h3 { margin: 0; padding: 5px; line-height: 1.50; }
|
8 |
.moip-osc-checkoutcontainer .moip-osc-block-content { border: 1px solid #ccc; border-radius: 0 0 5px 5px; padding: 15px; }
|
9 |
-
.moip-osc-checkoutcontainer .review { float: left; width: 97%;
|
10 |
-
.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment { width: 45%; float: left; min-width: 280px !important; }
|
11 |
-
.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment .moip-osc-column { width: 100%; margin: 0 0 15px 0; }
|
12 |
-
.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review { width:
|
13 |
-
.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review .moip-osc-column-middle { width: 100%;
|
14 |
-
.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review .moip-osc-column-middle #id_comments { width: 100%; border-radius: 5px;
|
15 |
-
.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review .moip-osc-column-right { width: 100%;
|
16 |
.coluna_1_checkout.span4.grid12-4 {
|
17 |
float: left;
|
18 |
width: 35%;
|
19 |
}
|
|
|
|
|
|
|
20 |
.checkbox {z-index: 9;}
|
21 |
.coluna_2_checkout.span8.grid12-8 {
|
22 |
float: left;
|
@@ -29,16 +33,19 @@ width: 65%;
|
|
29 |
.onestepcheckout-numbers-4{background-image:url("../images/04.png") !important;background-repeat: no-repeat !important;}
|
30 |
.onestepcheckout-numbers-5{background-image:url("../images/05.png") !important;background-repeat: no-repeat !important;}
|
31 |
.onestepcheckout-numbers-6{background-image:url("../images/bkg-step-review.png") !important;background-repeat: no-repeat !important;}
|
|
|
|
|
32 |
|
33 |
/* form list */
|
34 |
-
|
|
|
35 |
.form-list .field.odd { margin-left: 5%; }
|
36 |
.form-list .wide,
|
37 |
.form-list .fields { width: 100%; clear: both; }
|
38 |
.form-list label em { position: absolute; top: 0; right: 0; color: red; }
|
39 |
-
.form-list .input-box { width:
|
40 |
.form-list .input-box input,
|
41 |
-
.form-list .input-box select { width:
|
42 |
.form-list .input-box input[type="checkbox"],
|
43 |
.form-list .input-box input[type="radio"] { width: auto !important; float: left; clear: none; margin-right: 5px; }
|
44 |
.dados-pj { display: none }
|
@@ -46,8 +53,8 @@ width: 65%;
|
|
46 |
.customer-dob .dob-month { margin: 0; max-width: 26px !important; }
|
47 |
#loading-mask { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.5) }
|
48 |
#loading-mask #loading_mask_loader { position: absolute; top: 50%; left: 50%; width: 230px; height: auto; background: #fff; border: 1px solid #ccc; border-radius: 10px; box-shadow: 0 0 10px #000; margin-left: -115px; display: block; text-align: center; padding: 20px; margin-top: -39px; }
|
49 |
-
#loginbox { background: #000000; padding: 10px 0px !important; color: #fff; text-decoration: none; border-radius: 5px; margin-bottom: 10px; float: left;
|
50 |
-
#co-billing-form {
|
51 |
.update_shipping,
|
52 |
.update_payment { width: 100%; text-align: center; font-size: 14px; min-height: 115px; padding-top: 50px; }
|
53 |
#co-payment-form { min-height: 150px !important; }
|
@@ -57,6 +64,7 @@ width: 65%;
|
|
57 |
.moip-osc-block { min-width: 280px !important; }
|
58 |
#shipping_show {
|
59 |
margin-top: 10px !important;
|
|
|
60 |
}
|
61 |
.checkout-onepage-index .col-main {
|
62 |
width: 100% !important;
|
@@ -73,9 +81,7 @@ display: none;
|
|
73 |
.erro_frete, .erro_frete_sem_cep {
|
74 |
display: none;
|
75 |
}
|
76 |
-
|
77 |
-
margin-top: 20px;
|
78 |
-
}
|
79 |
|
80 |
.moip-osc-page-tittle {
|
81 |
margin-top: 43px;
|
@@ -95,8 +101,19 @@ font-weight: bold;
|
|
95 |
color: red;
|
96 |
padding: 10px;
|
97 |
}
|
98 |
-
|
99 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
position: relative;
|
101 |
min-width: 191px;
|
102 |
}
|
@@ -135,33 +152,52 @@ float: left;
|
|
135 |
bottom: 0;
|
136 |
display: none;
|
137 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
|
139 |
|
140 |
|
141 |
/* Css para estilo diferente no shipping */
|
|
|
|
|
|
|
|
|
|
|
142 |
#checkout-shipping-method-loadding > dd > ul > li {
|
143 |
border-color: #ccc !important;
|
144 |
-
border: 1px solid; border-radius: 4px;
|
|
|
145 |
}
|
146 |
|
147 |
-
|
148 |
-
float: left;
|
149 |
-
padding: 3px;
|
150 |
-
max-height: 30px;}
|
151 |
-
#checkout-shipping-method-loadding > dd > ul > li > span {
|
152 |
-
float: left;
|
153 |
-
background: #ccc;
|
154 |
-
padding: 9px;
|
155 |
-
border-radius: 4px 0 0 4px;
|
156 |
-
width: 6%;
|
157 |
-
}
|
158 |
#checkout-shipping-method-loadding > dd > ul > li > label {
|
159 |
-
|
160 |
-
width: 85%;
|
161 |
}
|
162 |
.sp-methods .price {
|
163 |
font-weight: bold;
|
164 |
-
float: left;
|
165 |
}
|
166 |
|
167 |
.sp-methods dd {
|
@@ -169,26 +205,7 @@ margin: 3px 0 0px !important;
|
|
169 |
}
|
170 |
|
171 |
|
172 |
-
.title_shipping, .image_shipping {
|
173 |
-
float: left;
|
174 |
-
}
|
175 |
-
|
176 |
.image_shipping {
|
177 |
-
width:
|
178 |
-
|
179 |
-
|
180 |
-
.title_shipping {
|
181 |
-
width: 64%;
|
182 |
-
}
|
183 |
-
.sp-methods .price {
|
184 |
-
float: left;
|
185 |
-
width: 100% !important;
|
186 |
-
}
|
187 |
-
|
188 |
-
.form-list .customer-dob .dob-year {
|
189 |
-
width: 50px !important;
|
190 |
}
|
191 |
-
.form-list .customer-dob .dob-day, .form-list .customer-dob .dob-month {
|
192 |
-
width: 22px !important;
|
193 |
-
margin-right: 10px !important;
|
194 |
-
}
|
1 |
/* page blocks */
|
2 |
+
.moip-osc-checkoutcontainer { display: block; width: 100%; float: left; }
|
3 |
+
.moip-osc-column {float: left;}
|
4 |
.moip-osc-checkoutcontainer .moip-osc-column-left { display: block; float: left; }
|
5 |
.moip-osc-checkoutcontainer .moip-osc-column-2 { display: block; width: 65%; margin-left: 2%; float: left; }
|
6 |
.moip-osc-checkoutcontainer .moip-osc-column-2 .moip-osc-column-middle { display: block; width: 47%; float: left; min-width: 280px !important; }
|
7 |
.moip-osc-checkoutcontainer .moip-osc-column-2 .moip-osc-column-right { display: block; width: 48%; float: left; margin-left: 2%; min-width: 280px !important; }
|
8 |
.moip-osc-checkoutcontainer .moip-osc-block-title h3 { margin: 0; padding: 5px; line-height: 1.50; }
|
9 |
.moip-osc-checkoutcontainer .moip-osc-block-content { border: 1px solid #ccc; border-radius: 0 0 5px 5px; padding: 15px; }
|
10 |
+
.moip-osc-checkoutcontainer .review { float: left; width: 97%; margin-top: 20px; }
|
11 |
+
.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment { width: 45%; float: left; min-width: 280px !important; float: left;}
|
12 |
+
.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment .moip-osc-column { width: 100%; margin: 0 0 15px 0; float: left;}
|
13 |
+
.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review { width: 50%; clear: none !important; margin-left: 1%; margin-top: 0; }
|
14 |
+
.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review .moip-osc-column-middle { float: left;width: 100%; margin: 0; }
|
15 |
+
.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review .moip-osc-column-middle #id_comments { float: left;width: 100%; border-radius: 5px; margin: 0; }
|
16 |
+
.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review .moip-osc-column-right { float: left;width: 100%; margin: 0; }''
|
17 |
.coluna_1_checkout.span4.grid12-4 {
|
18 |
float: left;
|
19 |
width: 35%;
|
20 |
}
|
21 |
+
textarea#gift-message-whole-message {
|
22 |
+
width: 250px;
|
23 |
+
}
|
24 |
.checkbox {z-index: 9;}
|
25 |
.coluna_2_checkout.span8.grid12-8 {
|
26 |
float: left;
|
33 |
.onestepcheckout-numbers-4{background-image:url("../images/04.png") !important;background-repeat: no-repeat !important;}
|
34 |
.onestepcheckout-numbers-5{background-image:url("../images/05.png") !important;background-repeat: no-repeat !important;}
|
35 |
.onestepcheckout-numbers-6{background-image:url("../images/bkg-step-review.png") !important;background-repeat: no-repeat !important;}
|
36 |
+
input.validation-passed{background-image:url("../images/passed-icon.jpg") !important;background-repeat: no-repeat !important; background-position: right !important;}
|
37 |
+
input.validation-failed{background-image:url("../images/error-icon.jpg") !important;background-repeat: no-repeat !important; background-position: right !important;}
|
38 |
|
39 |
/* form list */
|
40 |
+
fieldset {border: 0;clear: both;}
|
41 |
+
.form-list .field { float: left !important; width: 48% !important;margin-right: 2%;}
|
42 |
.form-list .field.odd { margin-left: 5%; }
|
43 |
.form-list .wide,
|
44 |
.form-list .fields { width: 100%; clear: both; }
|
45 |
.form-list label em { position: absolute; top: 0; right: 0; color: red; }
|
46 |
+
.form-list .input-box { width: 93% !important; }
|
47 |
.form-list .input-box input,
|
48 |
+
.form-list .input-box select { width: 100% !important; border-radius: 3px; padding: 5px; }
|
49 |
.form-list .input-box input[type="checkbox"],
|
50 |
.form-list .input-box input[type="radio"] { width: auto !important; float: left; clear: none; margin-right: 5px; }
|
51 |
.dados-pj { display: none }
|
53 |
.customer-dob .dob-month { margin: 0; max-width: 26px !important; }
|
54 |
#loading-mask { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.5) }
|
55 |
#loading-mask #loading_mask_loader { position: absolute; top: 50%; left: 50%; width: 230px; height: auto; background: #fff; border: 1px solid #ccc; border-radius: 10px; box-shadow: 0 0 10px #000; margin-left: -115px; display: block; text-align: center; padding: 20px; margin-top: -39px; }
|
56 |
+
#loginbox { background: #000000; padding: 10px 0px !important; color: #fff; text-decoration: none; border-radius: 5px; margin-bottom: 10px; float: left; width: 100%; text-align: center; }
|
57 |
+
#co-billing-form { }
|
58 |
.update_shipping,
|
59 |
.update_payment { width: 100%; text-align: center; font-size: 14px; min-height: 115px; padding-top: 50px; }
|
60 |
#co-payment-form { min-height: 150px !important; }
|
64 |
.moip-osc-block { min-width: 280px !important; }
|
65 |
#shipping_show {
|
66 |
margin-top: 10px !important;
|
67 |
+
float: left
|
68 |
}
|
69 |
.checkout-onepage-index .col-main {
|
70 |
width: 100% !important;
|
81 |
.erro_frete, .erro_frete_sem_cep {
|
82 |
display: none;
|
83 |
}
|
84 |
+
|
|
|
|
|
85 |
|
86 |
.moip-osc-page-tittle {
|
87 |
margin-top: 43px;
|
101 |
color: red;
|
102 |
padding: 10px;
|
103 |
}
|
104 |
+
input.radio.validation-failed {
|
105 |
+
-webkit-appearance: none;
|
106 |
+
background: none !important;
|
107 |
+
border-radius: 100%;
|
108 |
+
border: 4px solid #FF0000 !important;
|
109 |
+
display: inline-block;
|
110 |
+
height: 10px;
|
111 |
+
margin-bottom: 0;
|
112 |
+
position: relative;
|
113 |
+
padding: 5px;
|
114 |
+
width: 12px;
|
115 |
+
}
|
116 |
+
#advice-validate-one-required-by-name-debito_instituicao, #advice-validate-one-required-by-name-cartao_salvo {
|
117 |
position: relative;
|
118 |
min-width: 191px;
|
119 |
}
|
152 |
bottom: 0;
|
153 |
display: none;
|
154 |
}
|
155 |
+
.busca_end_label{
|
156 |
+
clear: both;
|
157 |
+
width: 100%;
|
158 |
+
float: left
|
159 |
+
}
|
160 |
+
.form-list .wide {
|
161 |
+
float: left;
|
162 |
+
clear: both;
|
163 |
+
width: 102%;
|
164 |
+
}
|
165 |
+
.form-list .customer-dob .dob-year {
|
166 |
+
width: 50px !important;
|
167 |
+
}
|
168 |
+
.form-list .customer-dob .dob-day, .form-list .customer-dob .dob-month {
|
169 |
+
width: 22px !important;
|
170 |
+
margin-right: 10px !important;
|
171 |
+
}
|
172 |
+
|
173 |
+
ul.erros_cadastro_valores {
|
174 |
+
text-align: left;
|
175 |
+
color: red;
|
176 |
+
}
|
177 |
+
h2.endereco_title, h3.como_comprar_title, h3.dados_pessoais {
|
178 |
+
clear: both;
|
179 |
+
}
|
180 |
|
181 |
|
182 |
|
183 |
/* Css para estilo diferente no shipping */
|
184 |
+
input.shipping_method_handle {
|
185 |
+
float: left;
|
186 |
+
margin: 5px;
|
187 |
+
}
|
188 |
+
|
189 |
#checkout-shipping-method-loadding > dd > ul > li {
|
190 |
border-color: #ccc !important;
|
191 |
+
border: 1px solid; border-radius: 4px;
|
192 |
+
padding: 5px;
|
193 |
}
|
194 |
|
195 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
#checkout-shipping-method-loadding > dd > ul > li > label {
|
197 |
+
width: 100%;
|
|
|
198 |
}
|
199 |
.sp-methods .price {
|
200 |
font-weight: bold;
|
|
|
201 |
}
|
202 |
|
203 |
.sp-methods dd {
|
205 |
}
|
206 |
|
207 |
|
|
|
|
|
|
|
|
|
208 |
.image_shipping {
|
209 |
+
width: 25%;
|
210 |
+
float: none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
211 |
}
|
|
|
|
|
|
|
|
skin/frontend/base/default/MOIP/onestepcheckout/images/error-icon.jpg
ADDED
Binary file
|
skin/frontend/base/default/MOIP/onestepcheckout/images/passed-icon.jpg
ADDED
Binary file
|
skin/frontend/base/default/MOIP/transparente/css/bootstrap.css
CHANGED
@@ -34,7 +34,7 @@
|
|
34 |
.repay-form li > div label{display: block; float:left;padding-right: 11px}
|
35 |
|
36 |
/* layout */
|
37 |
-
|
38 |
.col-md-6{width: 48.5%;float:left;display: block;clear: none;margin-left:3%}
|
39 |
.row .col-md-6:first-child{margin:0;}
|
40 |
|
34 |
.repay-form li > div label{display: block; float:left;padding-right: 11px}
|
35 |
|
36 |
/* layout */
|
37 |
+
|
38 |
.col-md-6{width: 48.5%;float:left;display: block;clear: none;margin-left:3%}
|
39 |
.row .col-md-6:first-child{margin:0;}
|
40 |
|
skin/frontend/base/default/MOIP/transparente/css/cartao_save.css
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
li.cofre {
|
2 |
+
width: 30%;
|
3 |
+
float: left;
|
4 |
+
border: 1px solid #ccc;
|
5 |
+
border-radius: 5px;
|
6 |
+
margin-right: 2%;
|
7 |
+
}
|
8 |
+
.image_cofre {
|
9 |
+
width: 30%;
|
10 |
+
float: left;
|
11 |
+
margin-right: 5%;
|
12 |
+
margin-top: 5px;
|
13 |
+
}
|
14 |
+
.image_cofre > img{
|
15 |
+
width: 70%;
|
16 |
+
float: left;
|
17 |
+
padding: 10%;
|
18 |
+
padding-top: 5px;
|
19 |
+
}
|
20 |
+
.cofre_number {
|
21 |
+
padding-top: 5px;
|
22 |
+
width: 55%;
|
23 |
+
float: left;
|
24 |
+
border-radius: 3px 0 0 3px;
|
25 |
+
}
|
26 |
+
|
27 |
+
.radio_cofre {
|
28 |
+
float: left;
|
29 |
+
width: 10%;
|
30 |
+
background: #ccc;
|
31 |
+
min-height: 50px
|
32 |
+
}
|
33 |
+
input#cartao_salvo {
|
34 |
+
margin-top: 20px;
|
35 |
+
margin-left: 6px;
|
36 |
+
}
|
37 |
+
ul.form-list-cofre {
|
38 |
+
width: 100%;
|
39 |
+
float: left;
|
40 |
+
}
|
41 |
+
input#cartao_remove {
|
42 |
+
margin: 16%;
|
43 |
+
float: left;
|
44 |
+
min-height: 40px;
|
45 |
+
}
|
46 |
+
.action_remove {
|
47 |
+
width: 100%;
|
48 |
+
text-align: right;
|
49 |
+
border-top: 1px solid #ccc;
|
50 |
+
margin-top: 10px;
|
51 |
+
padding-top: 10px;
|
52 |
+
float: left;
|
53 |
+
}
|
skin/frontend/base/default/MOIP/transparente/css/{formulario.css → horizontal_form.css}
RENAMED
@@ -3,8 +3,8 @@ ul.form-list .wide > div.input-box > select{width: 100% !important;}
|
|
3 |
ul.form-list .wide.cc-cvv > div{display: block;float: left;}
|
4 |
ul.form-list .wide.cc-cvv > div.cc{width: 60% !important;}
|
5 |
ul.form-list .wide.cc-cvv > div.cvv{width: 20% !important;margin-left: 10% !important;}
|
6 |
-
ul.form-list .wide.cc-validade > div > select{ margin: 0 !important;width: 35% !important;margin-left: 5% !important;
|
7 |
-
ul.form-list .wide.cc-validade > div > select#credito_expiracao_mes{margin: 0 !important;}
|
8 |
|
9 |
ul.form-list.dados-titular > li > label{clear: none !important; width: 105px;float: left !important;padding-top: 5px;}
|
10 |
ul.form-list.dados-titular > li > div{ width: 50% !important;clear: none !important; float: left;}
|
@@ -19,7 +19,43 @@ ul.inline.input-switcher-5 > li {width: 12%;cursor: pointer;opacity: 0.4;}
|
|
19 |
|
20 |
.tooltip-transparente-handler{position: relative !important;}
|
21 |
.tooltip-transparente{display: none;position: absolute; right: 0px;top: auto;background: #cccccc;padding: 20px;border-radius: 10px;min-width: 245px;box-shadow: 0 0 10px #000;z-index:999;}
|
22 |
-
.tooltip-transparente-
|
23 |
.span3.method-image > img {float: right;margin-right: 15px;margin-top: 25px;}
|
24 |
-
#advice-required-entry-credito_expiracao_ano {max-width: 84px;
|
25 |
-
#advice-required-entry-credito_expiracao_mes {position: absolute;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
ul.form-list .wide.cc-cvv > div{display: block;float: left;}
|
4 |
ul.form-list .wide.cc-cvv > div.cc{width: 60% !important;}
|
5 |
ul.form-list .wide.cc-cvv > div.cvv{width: 20% !important;margin-left: 10% !important;}
|
6 |
+
ul.form-list .wide.cc-validade > div > select{ margin: 0 !important;width: 35% !important;margin-left: 5% !important;}
|
7 |
+
ul.form-list .wide.cc-validade > div > select#credito_expiracao_mes{margin: 0 !important; clear: both;}
|
8 |
|
9 |
ul.form-list.dados-titular > li > label{clear: none !important; width: 105px;float: left !important;padding-top: 5px;}
|
10 |
ul.form-list.dados-titular > li > div{ width: 50% !important;clear: none !important; float: left;}
|
19 |
|
20 |
.tooltip-transparente-handler{position: relative !important;}
|
21 |
.tooltip-transparente{display: none;position: absolute; right: 0px;top: auto;background: #cccccc;padding: 20px;border-radius: 10px;min-width: 245px;box-shadow: 0 0 10px #000;z-index:999;}
|
22 |
+
.tooltip-transparente-visible{display: block;}
|
23 |
.span3.method-image > img {float: right;margin-right: 15px;margin-top: 25px;}
|
24 |
+
#advice-required-entry-credito_expiracao_ano {max-width: 84px;position: absolute; display:none;clear: both !important.}
|
25 |
+
#advice-required-entry-credito_expiracao_mes {position: absolute; clear: both !important; }
|
26 |
+
li.cofre {
|
27 |
+
width: 100%;
|
28 |
+
clear: both;
|
29 |
+
float: left;
|
30 |
+
border: 1px solid #ccc;
|
31 |
+
border-radius: 5px;
|
32 |
+
}
|
33 |
+
.image_cofre {
|
34 |
+
width: 30%;
|
35 |
+
float: left;
|
36 |
+
margin-right: 5%;
|
37 |
+
margin-top: 5px;
|
38 |
+
}
|
39 |
+
.image_cofre > img{
|
40 |
+
width: 70%;
|
41 |
+
float: left;
|
42 |
+
padding: 10%;
|
43 |
+
padding-top: 5px;
|
44 |
+
}
|
45 |
+
.cofre_number {
|
46 |
+
padding-top: 5px;
|
47 |
+
width: 55%;
|
48 |
+
float: left;
|
49 |
+
border-radius: 3px 0 0 3px;
|
50 |
+
}
|
51 |
+
|
52 |
+
.radio_cofre {
|
53 |
+
float: left;
|
54 |
+
width: 10%;
|
55 |
+
background: #ccc;
|
56 |
+
min-height: 50px
|
57 |
+
}
|
58 |
+
input#cartao_salvo {
|
59 |
+
margin-top: 20px;
|
60 |
+
margin-left: 6px;
|
61 |
+
}
|
skin/frontend/base/default/MOIP/transparente/css/{formulario_horizontal.css → vertical_form.css}
RENAMED
@@ -41,4 +41,34 @@ li > .method-price{float:left; display:block;width: 10%;margin-left:10px}
|
|
41 |
|
42 |
.transparente-payment-method-content .form-list label{float:left !important;}
|
43 |
|
44 |
-
#formcli{clear: both;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
|
42 |
.transparente-payment-method-content .form-list label{float:left !important;}
|
43 |
|
44 |
+
#formcli{clear: both;}
|
45 |
+
li.cofre {
|
46 |
+
width: 100%;
|
47 |
+
clear: both;
|
48 |
+
float: left;
|
49 |
+
border-bottom: 1px solid #ccc;
|
50 |
+
padding-bottom: 10px;
|
51 |
+
}
|
52 |
+
.image_cofre {
|
53 |
+
width: 30%;
|
54 |
+
float: left;
|
55 |
+
margin-right: 5%;
|
56 |
+
}
|
57 |
+
.image_cofre > img{
|
58 |
+
width: 70%;
|
59 |
+
float: left;
|
60 |
+
padding: 10%;
|
61 |
+
}
|
62 |
+
.cofre_number {
|
63 |
+
width: 55%;
|
64 |
+
float: left;
|
65 |
+
}
|
66 |
+
|
67 |
+
.radio_cofre {
|
68 |
+
float: left;
|
69 |
+
width: 10%;
|
70 |
+
}
|
71 |
+
input#cartao_salvo {
|
72 |
+
margin-top: 15px;
|
73 |
+
margin-left: 5px;
|
74 |
+
}
|
skin/frontend/base/default/MOIP/transparente/imagem/correios_40010.gif
ADDED
Binary file
|
skin/frontend/base/default/MOIP/transparente/imagem/correios_41106.gif
ADDED
Binary file
|
skin/frontend/base/default/MOIP/transparente/imagem/correios_81019.gif
ADDED
Binary file
|