Version Notes
Cron para Cancelamento de pagamentos não autorizados após tempo de vencimento da transação.
Alterações importantes nos códigos html, php, css, js e inclusão de arquivos scss.
Download this release
Release Info
Developer | MOIP |
Extension | o2ti_moip |
Version | 1.3.11 |
Comparing to | |
See all releases |
Code changes from version 1.3.10 to 1.3.11
- app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/Onestepcheckout.php +0 -12
- app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Edit.php +0 -45
- app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/System/Config/Editor.php +8 -0
- app/code/local/MOIP/Onestepcheckout/Block/Checkout/Onepage/Billing.php +50 -17
- app/code/local/MOIP/Onestepcheckout/Block/Checkout/Onepage/Review/Info.php +49 -0
- app/code/local/MOIP/Onestepcheckout/Block/Checkout/Onepage/Review/Options.php +3 -3
- app/code/local/MOIP/Onestepcheckout/Model/System/Config/Source/Formatdate.php +0 -12
- app/code/local/MOIP/Onestepcheckout/Model/System/Config/Source/Pagelayout.php +7 -6
- app/code/local/MOIP/Onestepcheckout/controllers/IndexController.php +304 -196
- app/code/local/MOIP/Onestepcheckout/etc/config.xml +15 -19
- app/code/local/MOIP/Onestepcheckout/etc/system.xml +71 -105
- app/code/local/MOIP/Transparente/Block/Info.php +23 -6
- app/code/local/MOIP/Transparente/Block/Product/List.php +73 -0
- app/code/local/MOIP/Transparente/Block/Product/View.php +73 -0
- app/code/local/MOIP/Transparente/Block/Standard/CartSave.php +1 -3
- app/code/local/MOIP/Transparente/Block/Standard/Form.php +112 -56
- app/code/local/MOIP/Transparente/Block/Standard/Redirect.php +60 -40
- app/code/local/MOIP/Transparente/Block/Standard/SuccessDetails.php +25 -0
- app/code/local/MOIP/Transparente/Model/Api.php +52 -59
- app/code/local/MOIP/Transparente/Model/Observer.php +172 -3
- app/code/local/MOIP/Transparente/Model/Standard.php +7 -3
- app/code/local/MOIP/Transparente/controllers/StandardController.php +67 -44
- app/code/local/MOIP/Transparente/etc/config.xml +52 -11
- app/code/local/MOIP/Transparente/etc/system.xml +22 -43
- app/design/adminhtml/default/default/layout/moip_onestepcheckout.xml +5 -10
- app/design/adminhtml/default/default/template/MOIP/transparente/info.phtml +41 -30
- app/design/adminhtml/default/default/template/MOIP/transparente/info/pdf.phtml +22 -0
- app/design/frontend/base/default/layout/moip_onestepcheckout.xml +174 -160
- app/design/frontend/base/default/layout/moip_transparente.xml +62 -62
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard.phtml +284 -164
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/billing.phtml +48 -72
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/billing/billingform.phtml +270 -209
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/coupon.phtml +16 -16
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/forgotpassword.phtml +6 -15
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/login-pre.phtml +98 -0
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/login.phtml +21 -18
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/payment.phtml +80 -1
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/payment/methods.phtml +3 -3
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/review.phtml +3 -63
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/review/info.phtml +7 -41
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/review/item.phtml +214 -203
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/review/totals.phtml +2 -1
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/shipping.phtml +10 -12
- app/design/frontend/base/default/template/MOIP/onestepcheckout/onepage.phtml +203 -158
- app/design/frontend/base/default/template/MOIP/product/view/parcelas.phtml +54 -0
- app/design/frontend/base/default/template/MOIP/transparente/SuccessDetails.phtml +100 -0
- app/design/frontend/base/default/template/MOIP/transparente/boleto.phtml +27 -39
- app/design/frontend/base/default/template/MOIP/transparente/cartao.phtml +40 -36
- app/design/frontend/base/default/template/MOIP/transparente/horizontal_form.phtml +241 -221
- app/design/frontend/base/default/template/MOIP/transparente/info.phtml +21 -370
- app/design/frontend/base/default/template/MOIP/transparente/redirect.phtml +7 -17
- app/design/frontend/base/default/template/MOIP/transparente/refaz.phtml +71 -52
- app/design/frontend/base/default/template/MOIP/transparente/script.phtml +156 -0
- app/design/frontend/base/default/template/MOIP/transparente/transferencia.phtml +23 -12
- app/design/frontend/base/default/template/MOIP/transparente/vertical_form.phtml +36 -32
- js/MOIP/bootstrap-modal.js +1951 -0
- js/MOIP/jquery_noconflict.js +2 -1
- js/MOIP/script_mask.js +4 -4
- js/MOIP/transparente/bootstrap-modal.js +0 -218
- js/MOIP/transparente/bootstrap-tab.js +144 -0
- js/MOIP/transparente/bootstrap.min.js +0 -6
- js/MOIP/transparente/checkout.js +116 -282
- js/MOIP/transparente/valide.js +3 -0
- js/MOIP/validacao.js +1 -1
- media/MOIP/all/logo.png +0 -0
- package.xml +16 -34
- skin/frontend/base/default/MOIP/onestepcheckout/css/bootstrap-modal.css +112 -0
- skin/frontend/base/default/MOIP/onestepcheckout/css/images/fancy_shadow_s.png +0 -0
- skin/frontend/base/default/MOIP/onestepcheckout/css/images/fancy_shadow_sw.png +0 -0
- skin/frontend/base/default/MOIP/onestepcheckout/css/onestepcheckout.css +244 -145
- skin/frontend/base/default/MOIP/onestepcheckout/images/01.png +0 -0
- skin/frontend/base/default/MOIP/onestepcheckout/images/02.png +0 -0
- skin/frontend/base/default/MOIP/onestepcheckout/images/03.png +0 -0
- skin/frontend/base/default/MOIP/onestepcheckout/images/bkg-step-review.png +0 -0
- 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-modal.css +112 -0
- skin/frontend/base/default/MOIP/transparente/css/bootstrap-tabs.css +736 -0
- skin/frontend/base/default/MOIP/transparente/css/bootstrap.css +143 -74
- skin/frontend/base/default/MOIP/transparente/css/horizontal_form.css +9 -4
- skin/frontend/base/default/MOIP/transparente/css/product_view.css +53 -0
app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/Onestepcheckout.php
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class MOIP_Onestepcheckout_Block_Adminhtml_Onestepcheckout extends Mage_Adminhtml_Block_Widget_Grid_Container
|
3 |
-
{
|
4 |
-
public function __construct()
|
5 |
-
{
|
6 |
-
$this->_controller = 'adminhtml_onestepcheckout';
|
7 |
-
$this->_blockGroup = 'onestepcheckout';
|
8 |
-
$this->_headerText = Mage::helper('onestepcheckout')->__('Item Manager');
|
9 |
-
$this->_addButtonLabel = Mage::helper('onestepcheckout')->__('Add Item');
|
10 |
-
parent::__construct();
|
11 |
-
}
|
12 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Edit.php
DELETED
@@ -1,45 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class MOIP_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
|
4 |
-
{
|
5 |
-
public function __construct()
|
6 |
-
{
|
7 |
-
parent::__construct();
|
8 |
-
|
9 |
-
$this->_objectId = 'id';
|
10 |
-
$this->_blockGroup = 'onestepcheckout';
|
11 |
-
$this->_controller = 'adminhtml_onestepcheckout';
|
12 |
-
|
13 |
-
$this->_updateButton('save', 'label', Mage::helper('onestepcheckout')->__('Save Item'));
|
14 |
-
$this->_updateButton('delete', 'label', Mage::helper('onestepcheckout')->__('Delete Item'));
|
15 |
-
|
16 |
-
$this->_addButton('saveandcontinue', array(
|
17 |
-
'label' => Mage::helper('adminhtml')->__('Save And Continue Edit'),
|
18 |
-
'onclick' => 'saveAndContinueEdit()',
|
19 |
-
'class' => 'save',
|
20 |
-
), -100);
|
21 |
-
|
22 |
-
$this->_formScripts[] = "
|
23 |
-
function toggleEditor() {
|
24 |
-
if (tinyMCE.getInstanceById('onestepcheckout_content') == null) {
|
25 |
-
tinyMCE.execCommand('mceAddControl', false, 'onestepcheckout_content');
|
26 |
-
} else {
|
27 |
-
tinyMCE.execCommand('mceRemoveControl', false, 'onestepcheckout_content');
|
28 |
-
}
|
29 |
-
}
|
30 |
-
|
31 |
-
function saveAndContinueEdit(){
|
32 |
-
editForm.submit($('edit_form').action+'back/edit/');
|
33 |
-
}
|
34 |
-
";
|
35 |
-
}
|
36 |
-
|
37 |
-
public function getHeaderText()
|
38 |
-
{
|
39 |
-
if( Mage::registry('onestepcheckout_data') && Mage::registry('onestepcheckout_data')->getId() ) {
|
40 |
-
return Mage::helper('onestepcheckout')->__("Edit Item '%s'", $this->htmlEscape(Mage::registry('onestepcheckout_data')->getTitle()));
|
41 |
-
} else {
|
42 |
-
return Mage::helper('onestepcheckout')->__('Add Item');
|
43 |
-
}
|
44 |
-
}
|
45 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Onestepcheckout/Block/Adminhtml/System/Config/Editor.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class MOIP_Onestepcheckout_Block_Adminhtml_System_Config_Editor extends Mage_Adminhtml_Block_System_Config_Form_Field implements Varien_Data_Form_Element_Renderer_Interface{
|
3 |
+
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element){
|
4 |
+
$element->setWysiwyg(true);
|
5 |
+
$element->setConfig(Mage::getSingleton('cms/wysiwyg_config')->getConfig());
|
6 |
+
return parent::_getElementHtml($element);
|
7 |
+
}
|
8 |
+
}
|
app/code/local/MOIP/Onestepcheckout/Block/Checkout/Onepage/Billing.php
CHANGED
@@ -4,22 +4,16 @@ class MOIP_Onestepcheckout_Block_Checkout_Onepage_Billing extends Mage_Checkout_
|
|
4 |
|
5 |
public function getCountryHtmlSelect($type)
|
6 |
{
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
->setTitle(Mage::helper('checkout')->__('Country'))
|
15 |
-
->setClass('validate-select billing_country')
|
16 |
-
->setValue("BR")
|
17 |
-
->setOptions($this->getCountryOptions());
|
18 |
-
|
19 |
return $select->getHtml();
|
20 |
-
|
21 |
}
|
22 |
-
|
23 |
public function getAddressesHtmlSelect22($type)
|
24 |
{
|
25 |
|
@@ -28,7 +22,8 @@ class MOIP_Onestepcheckout_Block_Checkout_Onepage_Billing extends Mage_Checkout_
|
|
28 |
foreach ($this->getCustomer()->getAddresses() as $address) {
|
29 |
$options[] = array(
|
30 |
'value'=>$address->getId(),
|
31 |
-
'label'=>$address->format('oneline')
|
|
|
32 |
);
|
33 |
}
|
34 |
|
@@ -48,6 +43,7 @@ class MOIP_Onestepcheckout_Block_Checkout_Onepage_Billing extends Mage_Checkout_
|
|
48 |
->setName($type.'_address_id')
|
49 |
->setId($type.'-address-select')
|
50 |
->setClass('address-select')
|
|
|
51 |
->setExtraParams('')
|
52 |
->setValue($addressId)
|
53 |
->setOptions($options);
|
@@ -58,6 +54,43 @@ class MOIP_Onestepcheckout_Block_Checkout_Onepage_Billing extends Mage_Checkout_
|
|
58 |
}
|
59 |
return '';
|
60 |
}
|
61 |
-
|
62 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
}
|
4 |
|
5 |
public function getCountryHtmlSelect($type)
|
6 |
{
|
7 |
+
$select = $this->getLayout()->createBlock('core/html_select')
|
8 |
+
->setName($type.'[country_id]')
|
9 |
+
->setId($type.':country_id')
|
10 |
+
->setTitle(Mage::helper('checkout')->__('Country'))
|
11 |
+
->setClass('validate-select billing_country')
|
12 |
+
->setValue("BR")
|
13 |
+
->setOptions($this->getCountryOptions());
|
|
|
|
|
|
|
|
|
|
|
14 |
return $select->getHtml();
|
|
|
15 |
}
|
16 |
+
|
17 |
public function getAddressesHtmlSelect22($type)
|
18 |
{
|
19 |
|
22 |
foreach ($this->getCustomer()->getAddresses() as $address) {
|
23 |
$options[] = array(
|
24 |
'value'=>$address->getId(),
|
25 |
+
'label'=>$address->format('oneline'),
|
26 |
+
'title' => 'Selecione o endereço de envio',
|
27 |
);
|
28 |
}
|
29 |
|
43 |
->setName($type.'_address_id')
|
44 |
->setId($type.'-address-select')
|
45 |
->setClass('address-select')
|
46 |
+
->setTitle('Selecione seu endereço')
|
47 |
->setExtraParams('')
|
48 |
->setValue($addressId)
|
49 |
->setOptions($options);
|
54 |
}
|
55 |
return '';
|
56 |
}
|
57 |
+
public function MyStatus(){
|
58 |
+
return Mage::getSingleton('customer/session')->isLoggedIn();
|
59 |
+
}
|
60 |
+
public function Data(){
|
61 |
+
if (Mage::getSingleton('customer/session')->isLoggedIn()) {
|
62 |
+
$customer = Mage::getSingleton('customer/session')->getCustomer();
|
63 |
+
$firstname = $customer->getFirstname();
|
64 |
+
$lastname = $customer->getLastname();
|
65 |
+
$taxvat = $customer->getTaxvat();
|
66 |
+
$exibe_email = 0;
|
67 |
+
} else {
|
68 |
+
$fullname = "";
|
69 |
+
$firstname = "";
|
70 |
+
$lastname = "";
|
71 |
+
$taxvat = "";
|
72 |
+
$exibe_email = 1;
|
73 |
+
}
|
74 |
+
if($this->getAddress()){
|
75 |
+
$firstname = $this->getAddress()->getFirstname();
|
76 |
+
$lastname = $this->getAddress()->getLastname();
|
77 |
+
}
|
78 |
+
$_dob = $this->getLayout()->createBlock('customer/widget_dob');
|
79 |
+
$_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat');
|
80 |
+
$_gender = $this->getLayout()->createBlock('customer/widget_gender');
|
81 |
+
$data = array(
|
82 |
+
'customer' => $customer,
|
83 |
+
'firstname' => $firstname,
|
84 |
+
'lastname' => $lastname,
|
85 |
+
'region_select' => $region_select,
|
86 |
+
'taxvat' => $taxvat,
|
87 |
+
'exibe_email' => $exibe_email,
|
88 |
+
'_dob' => $_dob,
|
89 |
+
'_taxvat' => $_taxvat,
|
90 |
+
'_gender' => $_gender
|
91 |
+
);
|
92 |
+
return $data;
|
93 |
+
|
94 |
+
}
|
95 |
+
|
96 |
}
|
app/code/local/MOIP/Onestepcheckout/Block/Checkout/Onepage/Review/Info.php
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category Mage
|
22 |
+
* @package Mage_Checkout
|
23 |
+
* @copyright Copyright (c) 2006-2014 X.commerce, Inc. (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
+
*/
|
26 |
+
|
27 |
+
/**
|
28 |
+
* One page checkout order review
|
29 |
+
*
|
30 |
+
* @category Mage
|
31 |
+
* @package Mage_Checkout
|
32 |
+
* @author Magento Core Team <core@magentocommerce.com>
|
33 |
+
*/
|
34 |
+
class MOIP_Onestepcheckout_Block_Checkout_Review_Info extends Mage_Sales_Block_Items_Abstract
|
35 |
+
{
|
36 |
+
public function _prepareLayout()
|
37 |
+
{
|
38 |
+
return parent::_prepareLayout();
|
39 |
+
}
|
40 |
+
public function getItems()
|
41 |
+
{
|
42 |
+
return Mage::getSingleton('checkout/session')->getQuote()->getAllVisibleItems();
|
43 |
+
}
|
44 |
+
|
45 |
+
public function getTotals()
|
46 |
+
{
|
47 |
+
return Mage::getSingleton('checkout/session')->getQuote()->getTotals();
|
48 |
+
}
|
49 |
+
}
|
app/code/local/MOIP/Onestepcheckout/Block/Checkout/Onepage/Review/Options.php
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
<?php
|
2 |
-
class MOIP_Onestepcheckout_Block_Checkout_Onepage_Review_Options extends
|
3 |
{
|
4 |
public function _prepareLayout()
|
5 |
{
|
6 |
return parent::_prepareLayout();
|
7 |
}
|
8 |
-
|
9 |
-
|
10 |
}
|
1 |
<?php
|
2 |
+
class MOIP_Onestepcheckout_Block_Checkout_Onepage_Review_Options extends Mage_Checkout_Block_Onepage_Abstract
|
3 |
{
|
4 |
public function _prepareLayout()
|
5 |
{
|
6 |
return parent::_prepareLayout();
|
7 |
}
|
8 |
+
|
9 |
+
|
10 |
}
|
app/code/local/MOIP/Onestepcheckout/Model/System/Config/Source/Formatdate.php
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class MOIP_Onestepcheckout_Model_System_Config_Source_Formatdate
|
3 |
-
{
|
4 |
-
public function toOptionArray()
|
5 |
-
{
|
6 |
-
return array(
|
7 |
-
array('value'=>'m/d/Y', 'label'=>Mage::helper('adminhtml')->__('mm/dd/aaaa')),
|
8 |
-
array('value'=>'d/m/Y', 'label'=>Mage::helper('adminhtml')->__('dd/mm/aaaa')),
|
9 |
-
);
|
10 |
-
}
|
11 |
-
|
12 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Onestepcheckout/Model/System/Config/Source/Pagelayout.php
CHANGED
@@ -1,13 +1,14 @@
|
|
1 |
-
<?php
|
2 |
class MOIP_Onestepcheckout_Model_System_Config_Source_Pagelayout
|
3 |
{
|
4 |
public function toOptionArray()
|
5 |
{
|
6 |
-
return array(
|
7 |
-
|
8 |
-
|
9 |
-
|
|
|
10 |
);
|
11 |
}
|
12 |
-
|
13 |
}
|
1 |
+
<?php
|
2 |
class MOIP_Onestepcheckout_Model_System_Config_Source_Pagelayout
|
3 |
{
|
4 |
public function toOptionArray()
|
5 |
{
|
6 |
+
return array(
|
7 |
+
array('value'=>2, 'label'=>Mage::helper('onestepcheckout')->__('2 Colunas')),
|
8 |
+
array('value'=>3, 'label'=>Mage::helper('onestepcheckout')->__('3 Colunas')),
|
9 |
+
array('value'=>4, 'label'=>Mage::helper('onestepcheckout')->__('3 Colunas - revisão do pedido na lateral')),
|
10 |
+
array('value'=>5, 'label'=>Mage::helper('onestepcheckout')->__('Pre Cadastro em 1 Coluna')),
|
11 |
);
|
12 |
}
|
13 |
+
|
14 |
}
|
app/code/local/MOIP/Onestepcheckout/controllers/IndexController.php
CHANGED
@@ -16,7 +16,7 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
16 |
return Mage::getSingleton('checkout/cart')->getQuote();
|
17 |
}
|
18 |
public function indexAction() {
|
19 |
-
|
20 |
if (!Mage::getStoreConfig('onestepcheckout/config/allowguestcheckout')) {
|
21 |
if (!Mage::getSingleton('customer/session')->isLoggedIn()) {
|
22 |
$this->_redirect('customer/account/login');
|
@@ -24,11 +24,11 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
24 |
}
|
25 |
}
|
26 |
if ($this->_initAction()) {
|
27 |
-
|
28 |
if ($blocks=$this->getLayout()->getBlock('checkout.onepage')) {
|
29 |
$blocks=$this->getLayout()->getBlock('checkout.onepage')->unsetChildren();
|
30 |
}
|
31 |
-
|
32 |
$this->renderLayout();
|
33 |
}
|
34 |
else
|
@@ -54,7 +54,7 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
54 |
Mage::getSingleton('customer/session')->setBeforeAuthUrl(Mage::getUrl('*/*/*', array('_secure'=>true)));
|
55 |
$this->initInfoaddress();
|
56 |
$this->getOnepage()->initCheckout();
|
57 |
-
|
58 |
$defaultpaymentmethod=$this->initpaymentmethod();
|
59 |
if ($defaultpaymentmethod) {
|
60 |
try{
|
@@ -64,20 +64,19 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
64 |
}catch(Exception $e) {
|
65 |
}
|
66 |
}
|
67 |
-
|
68 |
$applyrule=$this->getQuote()->getAppliedRuleIds();
|
69 |
$applyaction=Mage::getModel('salesrule/rule')->load($applyrule)->getSimpleAction();
|
70 |
|
71 |
if ($applyaction!='cart_fixed') {
|
72 |
-
Mage::getSingleton('checkout/session')->getQuote()->setTotalsCollectedFlag(
|
73 |
}
|
74 |
$this->loadLayout();
|
75 |
$this->_initLayoutMessages('customer/session');
|
76 |
$this->_initLayoutMessages('checkout/session');
|
77 |
$this->_initLayoutMessages('catalog/session');
|
78 |
-
|
79 |
-
|
80 |
-
$this->getLayout()->getBlock('head')->setTitle($this->__('Checkout'));
|
81 |
|
82 |
return true;
|
83 |
}
|
@@ -156,13 +155,14 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
156 |
}
|
157 |
return;
|
158 |
}catch (Exception $e) {
|
159 |
-
|
|
|
160 |
}
|
161 |
}
|
162 |
public function initInfoaddress() {
|
163 |
$coutryid='';$postcode='';$region='';$regionid='';$city='';$customerAddressId='';
|
164 |
$coutryid = 'BR';
|
165 |
-
|
166 |
$postData=array(
|
167 |
'address_id'=>'',
|
168 |
'firstname'=>'',
|
@@ -185,13 +185,13 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
185 |
|
186 |
$postData = $this->filterdata($postData);
|
187 |
if (version_compare(Mage::getVersion(), '1.4.0.1', '>=')){
|
188 |
-
if (isset($postData['email']))
|
189 |
$postData['email'] = trim($postData['email']);
|
190 |
$data = $this->_filterPostData($postData);
|
191 |
}
|
192 |
-
|
193 |
else{
|
194 |
-
if (isset($postData['email']))
|
195 |
$postData['email'] = trim($postData['email']);
|
196 |
$data=$postData;
|
197 |
}
|
@@ -201,7 +201,7 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
201 |
$this->saveShipping($data, $customerAddressId);
|
202 |
}
|
203 |
else {
|
204 |
-
|
205 |
$this->_getQuote()->getShippingAddress()
|
206 |
->setCountryId('')
|
207 |
->setPostcode('')
|
@@ -210,7 +210,7 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
210 |
$this->loadLayout()->renderLayout();
|
211 |
return;
|
212 |
}
|
213 |
-
|
214 |
}
|
215 |
public function saveShipping($data, $customerAddressId) {
|
216 |
if (empty($data)) {
|
@@ -276,7 +276,7 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
276 |
if ($this->getQuote()->getCheckoutMethod()=='register') {
|
277 |
$customer = Mage::getModel('customer/customer');
|
278 |
$this->getQuote()->setPasswordHash($customer->encryptPassword($address->getCustomerPassword()));
|
279 |
-
|
280 |
'firstname' => 'firstname',
|
281 |
'lastname' => 'lastname',
|
282 |
'email' => 'email',
|
@@ -284,7 +284,8 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
284 |
'confirmation' => 'confirm_password',
|
285 |
'taxvat' => 'taxvat',
|
286 |
'gender' => 'gender',
|
287 |
-
)
|
|
|
288 |
$customer->setData($key, $address->getData($dataKey));
|
289 |
}
|
290 |
if ($dob) {
|
@@ -311,25 +312,53 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
311 |
public function updateshippingmethodAction() {
|
312 |
$data = $this->getRequest()->getPost('shipping_method', '');
|
313 |
$result = $this->getOnepage()->saveShippingMethod($data);
|
314 |
-
|
|
|
315 |
Mage::dispatchEvent('checkout_controller_onepage_save_shipping_method',
|
316 |
array('request'=>$this->getRequest(),
|
317 |
'quote'=>$this->getOnepage()->getQuote()));
|
318 |
$this->getOnepage()->getQuote()->collectTotals();
|
319 |
-
$this->
|
320 |
}
|
|
|
321 |
$this->getOnepage()->getQuote()->collectTotals()->save();
|
322 |
-
$this->
|
|
|
323 |
}
|
324 |
public function updatepaymentmethodAction() {
|
325 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
326 |
try{
|
327 |
$this->getOnepage()->savePayment($data);
|
|
|
|
|
|
|
|
|
328 |
}
|
329 |
-
|
330 |
-
|
331 |
-
|
|
|
|
|
|
|
|
|
332 |
$this->loadLayout()->renderLayout();
|
|
|
|
|
333 |
}
|
334 |
public function updateemailmsgAction() {
|
335 |
$email = (string) $this->getRequest()->getParam('email');
|
@@ -340,10 +369,10 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
340 |
$customer->setStore($store);
|
341 |
$customer->loadByEmail($email);
|
342 |
if ($customer->getId()) {
|
343 |
-
|
344 |
}
|
345 |
else {
|
346 |
-
|
347 |
}
|
348 |
return;
|
349 |
}
|
@@ -375,16 +404,31 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
375 |
}
|
376 |
}
|
377 |
}
|
378 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
379 |
public function updatecouponAction() {
|
380 |
$this->_initLayoutMessages('checkout/session');
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
return;
|
385 |
-
}
|
386 |
-
$couponCode = (string) $this->getRequest()->getParam('coupon_code');
|
387 |
-
if ($this->getRequest()->getParam('remove') == 1) {
|
388 |
$couponCode = '';
|
389 |
}
|
390 |
$oldCouponCode = $this->_getQuote()->getCouponCode();
|
@@ -393,7 +437,16 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
393 |
return;
|
394 |
}
|
395 |
try {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
396 |
$this->_getQuote()->getShippingAddress()->setCollectShippingRates(true);
|
|
|
397 |
$this->_getQuote()->setCouponCode(strlen($couponCode) ? $couponCode : '')
|
398 |
->collectTotals()
|
399 |
->save();
|
@@ -429,7 +482,7 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
429 |
$update->load('checkout_onepage_index');
|
430 |
$layout->generateXml();
|
431 |
$layout->generateBlocks();
|
432 |
-
$output=$layout->getBlock('
|
433 |
return $output;
|
434 |
}
|
435 |
public function renderCoupon() {
|
@@ -452,12 +505,9 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
452 |
return $output;
|
453 |
}
|
454 |
public function updatepaymenttypeAction() {
|
455 |
-
|
456 |
$this->loadLayout()->renderLayout();
|
457 |
-
|
458 |
-
else {
|
459 |
-
$this->updateshippingtypeAction();
|
460 |
-
}
|
461 |
}
|
462 |
public function updateshippingtypeAction() {
|
463 |
$this->notshiptype=1;
|
@@ -471,7 +521,7 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
471 |
}
|
472 |
$postData=$this->getRequest()->getPost($isbilling, array());
|
473 |
$customerAddressId = $this->getRequest()->getPost($isbilling.'_address_id', false);
|
474 |
-
|
475 |
if (($postData['country_id']!='') or $customerAddressId) {
|
476 |
|
477 |
$postData = $this->filterdata($postData);
|
@@ -488,19 +538,69 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
488 |
else
|
489 |
$result = $this->getOnepage()->saveShipping($data, '');
|
490 |
}
|
491 |
-
|
492 |
}
|
493 |
-
|
494 |
-
|
495 |
-
->
|
496 |
-
|
|
|
|
|
|
|
|
|
497 |
$this->_getQuote()->save();
|
498 |
$this->loadLayout()->renderLayout();
|
499 |
}
|
500 |
-
|
501 |
public function _getSession() {
|
502 |
Mage::getSingleton('customer/session');
|
503 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
504 |
public function updateloginAction() {
|
505 |
$email=$this->getRequest()->getPost('email');
|
506 |
$password=$this->getRequest()->getPost('password');
|
@@ -518,10 +618,10 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
518 |
}
|
519 |
}
|
520 |
if (Mage::getSingleton('customer/session')->isLoggedIn()) {
|
521 |
-
|
522 |
}
|
523 |
else {
|
524 |
-
|
525 |
}
|
526 |
}
|
527 |
public function forgotpassAction() {
|
@@ -531,8 +631,8 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
531 |
if (!Zend_Validate::is($email, 'EmailAddress')) {
|
532 |
$this->_getSession()->setForgottenEmail($email);
|
533 |
$emailerror="0";
|
534 |
-
|
535 |
-
|
536 |
}
|
537 |
$customer = Mage::getModel('customer/customer')
|
538 |
->setWebsiteId(Mage::app()->getStore()->getWebsiteId())
|
@@ -543,8 +643,7 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
543 |
$customer->changePassword($newPassword, false);
|
544 |
$customer->sendPasswordReminderEmail();
|
545 |
$emailerror="1";
|
546 |
-
|
547 |
-
return $emailerror;
|
548 |
}
|
549 |
catch (Exception $e) {
|
550 |
}
|
@@ -552,84 +651,99 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
552 |
else {
|
553 |
$emailerror="2";
|
554 |
Mage::getSingleton('customer/session')->setForgottenEmail($email);
|
555 |
-
|
556 |
-
return;
|
557 |
}
|
558 |
} else {
|
559 |
$emailerror="0";
|
560 |
-
|
561 |
-
return $emailerror;
|
562 |
}
|
563 |
}
|
564 |
public function updateordermethodAction() {
|
565 |
if (!$this->isCustomerLoggedIn()) {
|
566 |
$result_save_method = $this->getOnepage()->saveCheckoutMethod('register');
|
567 |
}
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
if ($_taxvat->isEnabled()) {
|
587 |
-
$taxvat = $postData['taxvat'];
|
588 |
-
$customer->setTaxvat($taxvat);
|
589 |
-
}
|
590 |
-
|
591 |
-
|
592 |
-
if (isset($postData['suffix']) && $customer->getSuffix()=='' ) {
|
593 |
-
$suffix = $postData['suffix'];
|
594 |
-
$customer->setSuffix($suffix);
|
595 |
-
}
|
596 |
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
}
|
601 |
-
if (isset($postData['middlename']) && $customer->getMiddlename()=='' ) {
|
602 |
-
$middle = $postData['middlename'];
|
603 |
-
$customer->setMiddlename($middle);
|
604 |
-
}
|
605 |
-
$customer->save();
|
606 |
}
|
607 |
-
|
608 |
-
$data_save_billing = $this->getRequest()->getPost('billing', array());
|
609 |
|
610 |
-
|
611 |
-
|
|
|
|
|
612 |
}
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
$
|
617 |
-
|
618 |
-
|
619 |
-
if (isset($data_save_billing['email'])) {
|
620 |
-
$data_save_billing['email'] = trim($data_save_billing['email']);
|
621 |
}
|
622 |
-
if ($
|
623 |
-
|
624 |
-
|
625 |
-
$customer->setIsSubscribed(1);
|
626 |
-
}else {
|
627 |
-
$this->savesubscibe($data_save_billing['email']);
|
628 |
-
}
|
629 |
}
|
630 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
631 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
632 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
633 |
$isclick=$this->getRequest()->getPost('ship_to_same_address');
|
634 |
$ship="billing";
|
635 |
if (!$isclick=='1') {
|
@@ -650,43 +764,63 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
650 |
if ($isclick || ($this->getRequest()->getPost('shipping_address_id') != "")) {
|
651 |
$customeraddressid = "";
|
652 |
}
|
653 |
-
|
654 |
$result_save_shipping = $this->getonepage()->saveshipping($data_save_shipping, $customeraddressid);
|
655 |
}
|
656 |
-
if ($this->getRequest()->isPost()) {
|
657 |
$data_save_shipping_method = $this->getRequest()->getPost('shipping_method', '');
|
658 |
$result_save_shipping_method = $this->getOnepage()->saveShippingMethod($data_save_shipping_method);
|
659 |
if (!$result_save_shipping_method) {
|
660 |
Mage::dispatchEvent('checkout_controller_onepage_save_shipping_method', array('request'=>$this->getRequest(), 'quote'=>$this->getOnepage()->getQuote()));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
661 |
}
|
|
|
662 |
}
|
|
|
663 |
$result_savepayment = array();
|
664 |
$data_savepayment = $this->getRequest()->getPost('payment', array());
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
$redirectUrl = $this->getOnepage()->getQuote()->getPayment()->getCheckoutRedirectUrl();
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
$result_order = array();
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
690 |
$session = $this->getOnepage()->getCheckout();
|
691 |
$lastOrderId = $session->getLastOrderId();
|
692 |
$data_customercomment ="";
|
@@ -695,17 +829,21 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
695 |
$order=Mage::getModel('onestepcheckout/onestepcheckout');
|
696 |
$order->setSalesOrderId($lastOrderId);
|
697 |
$order->setMoipCustomercommentInfo($data_customercomment);
|
698 |
-
|
699 |
$order->save();
|
700 |
}
|
701 |
$redirectUrl = $this->getOnepage()->getCheckout()->getRedirectUrl();
|
702 |
$result_order['success'] = true;
|
703 |
$result_order['error'] = false;
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
|
|
|
|
|
|
|
|
709 |
if (isset($redirectUrl)) {
|
710 |
$this->_redirectUrl($redirectUrl);
|
711 |
return;
|
@@ -713,6 +851,7 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
713 |
$this->_redirect('checkout/onepage/success');
|
714 |
}
|
715 |
|
|
|
716 |
protected function filterdata($data, $filter="true") {
|
717 |
|
718 |
$arrayname=array('address_id', 'firstname', 'lastname', 'company', 'email', 'city', 'region_id', 'region', 'postcode', 'country_id', 'telephone', 'fax','tipopessoa','nomefantasia','razaosocial','cnpj','insestadual', 'save_in_address_book');
|
@@ -825,7 +964,7 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
825 |
}
|
826 |
else {
|
827 |
$street=$value;
|
828 |
-
|
829 |
if (isset($street[0])){
|
830 |
|
831 |
if(isset($street[1]) || $street[1] =="."){
|
@@ -845,10 +984,10 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
845 |
$street_3 = "";
|
846 |
}
|
847 |
|
848 |
-
|
849 |
$filterdata[$item]=array($street[0], $street_1,$street_2,$street_3);
|
850 |
}
|
851 |
-
|
852 |
}
|
853 |
}
|
854 |
return $filterdata;
|
@@ -858,7 +997,7 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
858 |
return Mage::getSingleton('customer/session')->isLoggedIn();
|
859 |
}
|
860 |
|
861 |
-
|
862 |
public function savesubscibe($mail) {
|
863 |
if ($mail) {
|
864 |
if (version_compare(Mage::getVersion(), '1.3.2.4', '>')) {
|
@@ -956,7 +1095,7 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
956 |
$this->loadLayout()->renderLayout();
|
957 |
|
958 |
}
|
959 |
-
|
960 |
|
961 |
public function updatebillingform() {
|
962 |
if ($this->getRequest()->isPost()) {
|
@@ -973,27 +1112,21 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
973 |
}
|
974 |
$this->loadLayout()->renderLayout();
|
975 |
}
|
976 |
-
|
977 |
}
|
978 |
public function saveAddress($type,$data)
|
979 |
-
|
980 |
-
|
981 |
$addressId = $this->getRequest()->getPost($type.'_address_id');
|
982 |
-
|
983 |
$save_address = $this->getRequest()->getPost('save_in_address_book');
|
984 |
-
|
985 |
-
$customer = Mage::getSingleton('customer/session')->getCustomer();
|
986 |
$address = Mage::getModel('customer/address');
|
987 |
|
988 |
-
if(!Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling())
|
989 |
-
{
|
990 |
-
|
991 |
-
// Save data
|
992 |
-
|
993 |
-
|
994 |
-
|
995 |
-
$errors = array();
|
996 |
-
/* @var $addressForm Mage_Customer_Model_Form */
|
997 |
$addressForm = Mage::getModel('customer/form');
|
998 |
$addressForm->setFormCode('customer_address_edit')
|
999 |
->setEntity($address);
|
@@ -1001,39 +1134,14 @@ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
|
|
1001 |
try {
|
1002 |
$addressForm->compactData($addressData);
|
1003 |
$address->setCustomerId($customer->getId())
|
1004 |
-
->setIsDefaultBilling(
|
1005 |
-
->setIsDefaultShipping(
|
1006 |
-
|
1007 |
-
|
1008 |
-
|
1009 |
-
|
1010 |
$address->save();
|
1011 |
-
|
1012 |
-
|
1013 |
} catch (Mage_Core_Exception $e) {
|
1014 |
-
|
1015 |
}
|
1016 |
-
}
|
1017 |
-
|
1018 |
-
|
1019 |
-
if(Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling() && $save_address) {
|
1020 |
-
|
1021 |
-
|
1022 |
-
$customer = Mage::getSingleton('customer/session')->getCustomer();
|
1023 |
-
$customAddress = Mage::getModel('customer/address');
|
1024 |
-
$addressData = $this->getRequest()->getPost($type, array());
|
1025 |
-
$customAddress->setData($addressData)
|
1026 |
-
->setCustomerId($customer->getId())
|
1027 |
-
->setIsDefaultBilling($this->getRequest()->getParam('default_billing', false))
|
1028 |
-
->setIsDefaultShipping($this->getRequest()->getParam('default_shipping', false))
|
1029 |
-
->setSaveInAddressBook('1');
|
1030 |
-
try {
|
1031 |
-
$customAddress->save();
|
1032 |
-
}
|
1033 |
-
catch (Exception $ex) {
|
1034 |
-
Zend_Debug::dump($ex->getMessage());
|
1035 |
-
}
|
1036 |
-
|
1037 |
}
|
|
|
|
|
1038 |
}
|
1039 |
}
|
16 |
return Mage::getSingleton('checkout/cart')->getQuote();
|
17 |
}
|
18 |
public function indexAction() {
|
19 |
+
|
20 |
if (!Mage::getStoreConfig('onestepcheckout/config/allowguestcheckout')) {
|
21 |
if (!Mage::getSingleton('customer/session')->isLoggedIn()) {
|
22 |
$this->_redirect('customer/account/login');
|
24 |
}
|
25 |
}
|
26 |
if ($this->_initAction()) {
|
27 |
+
|
28 |
if ($blocks=$this->getLayout()->getBlock('checkout.onepage')) {
|
29 |
$blocks=$this->getLayout()->getBlock('checkout.onepage')->unsetChildren();
|
30 |
}
|
31 |
+
|
32 |
$this->renderLayout();
|
33 |
}
|
34 |
else
|
54 |
Mage::getSingleton('customer/session')->setBeforeAuthUrl(Mage::getUrl('*/*/*', array('_secure'=>true)));
|
55 |
$this->initInfoaddress();
|
56 |
$this->getOnepage()->initCheckout();
|
57 |
+
|
58 |
$defaultpaymentmethod=$this->initpaymentmethod();
|
59 |
if ($defaultpaymentmethod) {
|
60 |
try{
|
64 |
}catch(Exception $e) {
|
65 |
}
|
66 |
}
|
67 |
+
|
68 |
$applyrule=$this->getQuote()->getAppliedRuleIds();
|
69 |
$applyaction=Mage::getModel('salesrule/rule')->load($applyrule)->getSimpleAction();
|
70 |
|
71 |
if ($applyaction!='cart_fixed') {
|
72 |
+
Mage::getSingleton('checkout/session')->getQuote()->setTotalsCollectedFlag(true);
|
73 |
}
|
74 |
$this->loadLayout();
|
75 |
$this->_initLayoutMessages('customer/session');
|
76 |
$this->_initLayoutMessages('checkout/session');
|
77 |
$this->_initLayoutMessages('catalog/session');
|
78 |
+
|
79 |
+
$this->getLayout()->getBlock('head')->setTitle($this->__(Mage::getStoreConfig('onestepcheckout/layout/page_titulo')));
|
|
|
80 |
|
81 |
return true;
|
82 |
}
|
155 |
}
|
156 |
return;
|
157 |
}catch (Exception $e) {
|
158 |
+
|
159 |
+
return $this->getResponse()->setBody($e->getMessage());
|
160 |
}
|
161 |
}
|
162 |
public function initInfoaddress() {
|
163 |
$coutryid='';$postcode='';$region='';$regionid='';$city='';$customerAddressId='';
|
164 |
$coutryid = 'BR';
|
165 |
+
|
166 |
$postData=array(
|
167 |
'address_id'=>'',
|
168 |
'firstname'=>'',
|
185 |
|
186 |
$postData = $this->filterdata($postData);
|
187 |
if (version_compare(Mage::getVersion(), '1.4.0.1', '>=')){
|
188 |
+
if (isset($postData['email']))
|
189 |
$postData['email'] = trim($postData['email']);
|
190 |
$data = $this->_filterPostData($postData);
|
191 |
}
|
192 |
+
|
193 |
else{
|
194 |
+
if (isset($postData['email']))
|
195 |
$postData['email'] = trim($postData['email']);
|
196 |
$data=$postData;
|
197 |
}
|
201 |
$this->saveShipping($data, $customerAddressId);
|
202 |
}
|
203 |
else {
|
204 |
+
|
205 |
$this->_getQuote()->getShippingAddress()
|
206 |
->setCountryId('')
|
207 |
->setPostcode('')
|
210 |
$this->loadLayout()->renderLayout();
|
211 |
return;
|
212 |
}
|
213 |
+
|
214 |
}
|
215 |
public function saveShipping($data, $customerAddressId) {
|
216 |
if (empty($data)) {
|
276 |
if ($this->getQuote()->getCheckoutMethod()=='register') {
|
277 |
$customer = Mage::getModel('customer/customer');
|
278 |
$this->getQuote()->setPasswordHash($customer->encryptPassword($address->getCustomerPassword()));
|
279 |
+
$customer_data = array(
|
280 |
'firstname' => 'firstname',
|
281 |
'lastname' => 'lastname',
|
282 |
'email' => 'email',
|
284 |
'confirmation' => 'confirm_password',
|
285 |
'taxvat' => 'taxvat',
|
286 |
'gender' => 'gender',
|
287 |
+
) ;
|
288 |
+
foreach ($customer_data as $key => $dataKey) {
|
289 |
$customer->setData($key, $address->getData($dataKey));
|
290 |
}
|
291 |
if ($dob) {
|
312 |
public function updateshippingmethodAction() {
|
313 |
$data = $this->getRequest()->getPost('shipping_method', '');
|
314 |
$result = $this->getOnepage()->saveShippingMethod($data);
|
315 |
+
|
316 |
+
if (!isset($result['error'])) {
|
317 |
Mage::dispatchEvent('checkout_controller_onepage_save_shipping_method',
|
318 |
array('request'=>$this->getRequest(),
|
319 |
'quote'=>$this->getOnepage()->getQuote()));
|
320 |
$this->getOnepage()->getQuote()->collectTotals();
|
321 |
+
$this->getOnePage()->getQuote()->getShippingAddress()->setShippingMethod($data)->save();
|
322 |
}
|
323 |
+
|
324 |
$this->getOnepage()->getQuote()->collectTotals()->save();
|
325 |
+
$this->updatereviewmethodAction();
|
326 |
+
|
327 |
}
|
328 |
public function updatepaymentmethodAction() {
|
329 |
+
$shipping = $this->getRequest()->getPost('shipping_method', '');
|
330 |
+
|
331 |
+
$data=$this->getRequest()->getPost('payment','');
|
332 |
+
|
333 |
+
$result = $this->getOnepage()->saveShippingMethod($shipping);
|
334 |
+
|
335 |
+
if (!isset($result['error'])) {
|
336 |
+
Mage::dispatchEvent('checkout_controller_onepage_save_shipping_method',
|
337 |
+
array('request'=>$this->getRequest(),
|
338 |
+
'quote'=>$this->getOnepage()->getQuote()));
|
339 |
+
|
340 |
+
$this->getOnePage()->getQuote()->getShippingAddress()->setShippingMethod($shipping)->save();
|
341 |
+
}
|
342 |
+
|
343 |
+
$this->getOnepage()->getQuote()->collectTotals()->save();
|
344 |
+
|
345 |
try{
|
346 |
$this->getOnepage()->savePayment($data);
|
347 |
+
|
348 |
+
}
|
349 |
+
catch (Exception $e) {
|
350 |
+
$this->_getQuote()->save();
|
351 |
}
|
352 |
+
|
353 |
+
$this->updatereviewmethodAction();
|
354 |
+
}
|
355 |
+
|
356 |
+
public function updatereviewmethodAction() {
|
357 |
+
|
358 |
+
|
359 |
$this->loadLayout()->renderLayout();
|
360 |
+
|
361 |
+
|
362 |
}
|
363 |
public function updateemailmsgAction() {
|
364 |
$email = (string) $this->getRequest()->getParam('email');
|
369 |
$customer->setStore($store);
|
370 |
$customer->loadByEmail($email);
|
371 |
if ($customer->getId()) {
|
372 |
+
return $this->getResponse()->setBody(0);
|
373 |
}
|
374 |
else {
|
375 |
+
return $this->getResponse()->setBody(1);
|
376 |
}
|
377 |
return;
|
378 |
}
|
404 |
}
|
405 |
}
|
406 |
}
|
407 |
+
public function updateqtyAction() {
|
408 |
+
|
409 |
+
$datacart = $this->getRequest()->getParam('cartControl');
|
410 |
+
|
411 |
+
$filter = new Zend_Filter_LocalizedToNormalized(
|
412 |
+
array('locale' => Mage::app()->getLocale()->getLocaleCode())
|
413 |
+
);
|
414 |
+
foreach ($datacart as $index => $data) {
|
415 |
+
if (isset($data['qty'])) {
|
416 |
+
$datacart[$index]['qty'] = $filter->filter($data['qty']);
|
417 |
+
}
|
418 |
+
}
|
419 |
+
$cart = Mage::getSingleton('checkout/cart');
|
420 |
+
|
421 |
+
$cart->updateItems($datacart)
|
422 |
+
->save();
|
423 |
+
|
424 |
+
Mage::getSingleton('checkout/session')->setCartWasUpdated(true);
|
425 |
+
|
426 |
+
}
|
427 |
public function updatecouponAction() {
|
428 |
$this->_initLayoutMessages('checkout/session');
|
429 |
+
$data = $this->getRequest()->getPost('shipping_method', '');
|
430 |
+
$couponCode = (string) $this->getRequest()->getPost('coupon_code');
|
431 |
+
if ($this->getRequest()->getPost('remove') == 1) {
|
|
|
|
|
|
|
|
|
432 |
$couponCode = '';
|
433 |
}
|
434 |
$oldCouponCode = $this->_getQuote()->getCouponCode();
|
437 |
return;
|
438 |
}
|
439 |
try {
|
440 |
+
$result = $this->getOnepage()->saveShippingMethod($data);
|
441 |
+
if (!$result) {
|
442 |
+
Mage::dispatchEvent('checkout_controller_onepage_save_shipping_method',
|
443 |
+
array('request'=>$this->getRequest(),
|
444 |
+
'quote'=>$this->getOnepage()->getQuote()));
|
445 |
+
$this->getOnepage()->getQuote()->collectTotals();
|
446 |
+
$this->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));
|
447 |
+
}
|
448 |
$this->_getQuote()->getShippingAddress()->setCollectShippingRates(true);
|
449 |
+
$this->getOnePage()->getQuote()->getShippingAddress()->setShippingMethod($data)->save();
|
450 |
$this->_getQuote()->setCouponCode(strlen($couponCode) ? $couponCode : '')
|
451 |
->collectTotals()
|
452 |
->save();
|
482 |
$update->load('checkout_onepage_index');
|
483 |
$layout->generateXml();
|
484 |
$layout->generateBlocks();
|
485 |
+
$output=$layout->getBlock('root')->toHtml();
|
486 |
return $output;
|
487 |
}
|
488 |
public function renderCoupon() {
|
505 |
return $output;
|
506 |
}
|
507 |
public function updatepaymenttypeAction() {
|
508 |
+
|
509 |
$this->loadLayout()->renderLayout();
|
510 |
+
|
|
|
|
|
|
|
511 |
}
|
512 |
public function updateshippingtypeAction() {
|
513 |
$this->notshiptype=1;
|
521 |
}
|
522 |
$postData=$this->getRequest()->getPost($isbilling, array());
|
523 |
$customerAddressId = $this->getRequest()->getPost($isbilling.'_address_id', false);
|
524 |
+
|
525 |
if (($postData['country_id']!='') or $customerAddressId) {
|
526 |
|
527 |
$postData = $this->filterdata($postData);
|
538 |
else
|
539 |
$result = $this->getOnepage()->saveShipping($data, '');
|
540 |
}
|
541 |
+
|
542 |
}
|
543 |
+
|
544 |
+
|
545 |
+
$this->_getQuote()->getShippingAddress()
|
546 |
+
->setCountryId('BR')
|
547 |
+
->setPostcode($postData['postcode'])
|
548 |
+
->collectTotals()
|
549 |
+
->setCollectShippingRates(true)
|
550 |
+
->collectShippingRates();
|
551 |
$this->_getQuote()->save();
|
552 |
$this->loadLayout()->renderLayout();
|
553 |
}
|
554 |
+
|
555 |
public function _getSession() {
|
556 |
Mage::getSingleton('customer/session');
|
557 |
}
|
558 |
+
public function CreataAccountInitAction(){
|
559 |
+
$this->getOnepage()->getQuote()->setCheckoutMethod('register');
|
560 |
+
$postData = $this->getRequest()->getPost('billing', array());
|
561 |
+
$postData['email'] = trim($postData['email']);
|
562 |
+
$dob = Mage::app()->getLocale()->date($postData['dob'], null, null, false)->toString('yyyy-MM-dd');
|
563 |
+
$websiteId = Mage::app()->getWebsite()->getId();
|
564 |
+
$store = Mage::app()->getStore();
|
565 |
+
$customer = Mage::getModel("customer/customer");
|
566 |
+
$customer ->setWebsiteId($websiteId)
|
567 |
+
->setStore($store)
|
568 |
+
->setFirstname($postData['firstname'])
|
569 |
+
->setLastname($postData['lastname'])
|
570 |
+
->setEmail($postData['email'])
|
571 |
+
->setTaxvat($postData['taxvat'])
|
572 |
+
->setDob($dob)
|
573 |
+
->setGender($postData['gender'])
|
574 |
+
->setTipopessoa($postData['tipopessoa'])
|
575 |
+
->setCnpj($postData['cnpj'])
|
576 |
+
->setinsestadual($postData['insestadual'])
|
577 |
+
->setNomefantasia($postData['nomefantasia'])
|
578 |
+
->setRazaosocial($postData['razaosocial'])
|
579 |
+
->setPassword($postData['confirm_password']);
|
580 |
+
$customer->save();
|
581 |
+
|
582 |
+
try{
|
583 |
+
|
584 |
+
|
585 |
+
Mage::getSingleton('customer/session')->loginById($customer->getId());
|
586 |
+
$this->saveAddress('billing', $postData);
|
587 |
+
try {
|
588 |
+
$this->_redirect('checkout/onepage/');
|
589 |
+
return;
|
590 |
+
} catch (Exception $e) {
|
591 |
+
$this->_redirect('checkout/onepage/');
|
592 |
+
return;
|
593 |
+
}
|
594 |
+
|
595 |
+
|
596 |
+
|
597 |
+
}
|
598 |
+
catch (Exception $e) {
|
599 |
+
$this->_redirect('checkout/onepage/');
|
600 |
+
return;
|
601 |
+
}
|
602 |
+
|
603 |
+
}
|
604 |
public function updateloginAction() {
|
605 |
$email=$this->getRequest()->getPost('email');
|
606 |
$password=$this->getRequest()->getPost('password');
|
618 |
}
|
619 |
}
|
620 |
if (Mage::getSingleton('customer/session')->isLoggedIn()) {
|
621 |
+
return $this->getResponse()->setBody(1);
|
622 |
}
|
623 |
else {
|
624 |
+
return $this->getResponse()->setBody(0);
|
625 |
}
|
626 |
}
|
627 |
public function forgotpassAction() {
|
631 |
if (!Zend_Validate::is($email, 'EmailAddress')) {
|
632 |
$this->_getSession()->setForgottenEmail($email);
|
633 |
$emailerror="0";
|
634 |
+
return $this->getResponse()->setBody($emailerror);
|
635 |
+
|
636 |
}
|
637 |
$customer = Mage::getModel('customer/customer')
|
638 |
->setWebsiteId(Mage::app()->getStore()->getWebsiteId())
|
643 |
$customer->changePassword($newPassword, false);
|
644 |
$customer->sendPasswordReminderEmail();
|
645 |
$emailerror="1";
|
646 |
+
return $this->getResponse()->setBody($emailerror);
|
|
|
647 |
}
|
648 |
catch (Exception $e) {
|
649 |
}
|
651 |
else {
|
652 |
$emailerror="2";
|
653 |
Mage::getSingleton('customer/session')->setForgottenEmail($email);
|
654 |
+
return $this->getResponse()->setBody($emailerror);
|
|
|
655 |
}
|
656 |
} else {
|
657 |
$emailerror="0";
|
658 |
+
return $this->getResponse()->setBody($emailerror);
|
|
|
659 |
}
|
660 |
}
|
661 |
public function updateordermethodAction() {
|
662 |
if (!$this->isCustomerLoggedIn()) {
|
663 |
$result_save_method = $this->getOnepage()->saveCheckoutMethod('register');
|
664 |
}
|
665 |
+
$data_save_billing = $this->getRequest()->getPost('billing', array());
|
666 |
+
$data_save_billing['email'] = trim($data_save_billing['email']);
|
667 |
+
if ($this->isCustomerLoggedIn()) {
|
668 |
+
$postData = $this->getRequest()->getPost('billing', array());
|
669 |
+
$_dob = $this->getLayout()->createBlock('customer/widget_dob');
|
670 |
+
$_gender = $this->getLayout()->createBlock('customer/widget_gender');
|
671 |
+
$_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat');
|
672 |
+
$customer = Mage::getSingleton('customer/session')->getCustomer();
|
673 |
+
$customerForm = Mage::getModel('customer/form');
|
674 |
+
$customerForm->setFormCode('customer_account_edit')->setEntity($customer);
|
675 |
+
if ($_dob->isEnabled()) {
|
676 |
+
$dob = $postData['dob'];
|
677 |
+
$customer->setDob($dob);
|
678 |
+
}
|
679 |
+
if ($_gender->isEnabled()) {
|
680 |
+
$gender = $postData['gender'];
|
681 |
+
$customer->setGender($gender);
|
682 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
683 |
|
684 |
+
if ($_taxvat->isEnabled()) {
|
685 |
+
$taxvat = $postData['taxvat'];
|
686 |
+
$customer->setTaxvat($taxvat);
|
|
|
|
|
|
|
|
|
|
|
|
|
687 |
}
|
|
|
|
|
688 |
|
689 |
+
|
690 |
+
if (isset($postData['suffix']) && $customer->getSuffix()=='' ) {
|
691 |
+
$suffix = $postData['suffix'];
|
692 |
+
$customer->setSuffix($suffix);
|
693 |
}
|
694 |
+
|
695 |
+
if (isset($postData['prefix']) && $customer->getPrefix()=='' ) {
|
696 |
+
$prefix = $postData['prefix'];
|
697 |
+
$customer->setPrefix($prefix);
|
|
|
|
|
|
|
|
|
698 |
}
|
699 |
+
if (isset($postData['middlename']) && $customer->getMiddlename()=='' ) {
|
700 |
+
$middle = $postData['middlename'];
|
701 |
+
$customer->setMiddlename($middle);
|
|
|
|
|
|
|
|
|
702 |
}
|
703 |
+
$customer->save();
|
704 |
+
$this->saveAddress('billing', $data_save_billing);
|
705 |
+
} else {
|
706 |
+
$this->getOnepage()->getQuote()->setCheckoutMethod('register');
|
707 |
+
$postData = $this->getRequest()->getPost('billing', array());
|
708 |
+
$dob = Mage::app()->getLocale()->date($postData['dob'], null, null, false)->toString('yyyy-MM-dd');
|
709 |
+
$websiteId = Mage::app()->getWebsite()->getId();
|
710 |
+
$store = Mage::app()->getStore();
|
711 |
+
$customer = Mage::getModel("customer/customer");
|
712 |
+
|
713 |
+
$customer ->setWebsiteId($websiteId)
|
714 |
+
->setStore($store)
|
715 |
+
->setFirstname($postData['firstname'])
|
716 |
+
->setLastname($postData['lastname'])
|
717 |
+
->setEmail($postData['email'])
|
718 |
+
->setTaxvat($postData['taxvat'])
|
719 |
+
->setDob($dob)
|
720 |
+
->setGender($postData['gender'])
|
721 |
+
->setTipopessoa($postData['tipopessoa'])
|
722 |
+
->setRazaosocial($postData['razaosocial'])
|
723 |
+
->setNomefantasia($postData['nomefantasia'])
|
724 |
+
->setcnpj($postData['cnpj'])
|
725 |
+
->setinsestadual($postData['insestadual'])
|
726 |
+
->setPassword($postData['confirm_password']);
|
727 |
|
728 |
+
|
729 |
+
try{
|
730 |
+
|
731 |
+
$customer->save();
|
732 |
+
Mage::getSingleton('customer/session')->loginById($customer->getId());
|
733 |
+
$this->saveAddress('billing', $data_save_billing);
|
734 |
+
}
|
735 |
+
catch (Exception $e) {
|
736 |
+
$this->getResponse()->setBody($e->getMessage());
|
737 |
+
}
|
738 |
}
|
739 |
+
|
740 |
+
$customerAddressId = "";
|
741 |
+
|
742 |
+
|
743 |
+
|
744 |
+
|
745 |
+
$result_save_billing = $this->getOnepage()->saveBilling($data_save_billing, $customerAddressId);
|
746 |
+
|
747 |
$isclick=$this->getRequest()->getPost('ship_to_same_address');
|
748 |
$ship="billing";
|
749 |
if (!$isclick=='1') {
|
764 |
if ($isclick || ($this->getRequest()->getPost('shipping_address_id') != "")) {
|
765 |
$customeraddressid = "";
|
766 |
}
|
|
|
767 |
$result_save_shipping = $this->getonepage()->saveshipping($data_save_shipping, $customeraddressid);
|
768 |
}
|
769 |
+
if ($this->getRequest()->isPost('shipping_method')) {
|
770 |
$data_save_shipping_method = $this->getRequest()->getPost('shipping_method', '');
|
771 |
$result_save_shipping_method = $this->getOnepage()->saveShippingMethod($data_save_shipping_method);
|
772 |
if (!$result_save_shipping_method) {
|
773 |
Mage::dispatchEvent('checkout_controller_onepage_save_shipping_method', array('request'=>$this->getRequest(), 'quote'=>$this->getOnepage()->getQuote()));
|
774 |
+
$this->getOnePage()->getQuote()->getShippingAddress()->setShippingMethod($data_save_shipping_method)->save();
|
775 |
+
}
|
776 |
+
try{
|
777 |
+
$this->getOnePage()->getQuote()->getShippingAddress()->setShippingMethod($data_save_shipping_method)->save();
|
778 |
+
} catch(Exception $e) {
|
779 |
+
$message = $e->getMessage();
|
780 |
+
Mage::getSingleton('checkout/session')->addError($this->__($message));
|
781 |
+
$this->_redirect('checkout/onepage/');
|
782 |
+
return;
|
783 |
}
|
784 |
+
|
785 |
}
|
786 |
+
|
787 |
$result_savepayment = array();
|
788 |
$data_savepayment = $this->getRequest()->getPost('payment', array());
|
789 |
+
try{
|
790 |
+
$result_savepayment = $this->getOnepage()->savePayment($data_savepayment);
|
791 |
+
} catch(Exception $e) {
|
792 |
+
$message = $e->getMessage();
|
793 |
+
Mage::getSingleton('checkout/session')->addError($this->__($message));
|
794 |
+
$this->_redirect('checkout/onepage/');
|
795 |
+
return;
|
796 |
+
}
|
797 |
$redirectUrl = $this->getOnepage()->getQuote()->getPayment()->getCheckoutRedirectUrl();
|
798 |
+
if (isset($redirectUrl)) {
|
799 |
+
$this->_redirectUrl($redirectUrl);
|
800 |
+
return;
|
801 |
+
}
|
802 |
$result_order = array();
|
803 |
+
if ($data_order = $this->getRequest()->getPost('payment', false)) {
|
804 |
+
$this->getOnepage()->getQuote()->getPayment()->importData($data_order);
|
805 |
+
}
|
806 |
+
try{
|
807 |
+
$this->getOnepage()->saveOrder();
|
808 |
+
if ($this->getRequest()->getPost('subscribe_newsletter')=='1') {
|
809 |
+
if ($this->isCustomerLoggedIn()) {
|
810 |
+
$customer = Mage::getSingleton('customer/session')->getCustomer();
|
811 |
+
$customer->setIsSubscribed(1);
|
812 |
+
}else {
|
813 |
+
$this->savesubscibe($data_save_billing['email']);
|
814 |
+
}
|
815 |
+
}
|
816 |
+
|
817 |
+
}
|
818 |
+
catch (Exception $e) {
|
819 |
+
$message = $e->getMessage();
|
820 |
+
Mage::getSingleton('checkout/session')->addError($this->__($message));
|
821 |
+
$this->_redirect('checkout/onepage/');
|
822 |
+
return;
|
823 |
+
}
|
824 |
$session = $this->getOnepage()->getCheckout();
|
825 |
$lastOrderId = $session->getLastOrderId();
|
826 |
$data_customercomment ="";
|
829 |
$order=Mage::getModel('onestepcheckout/onestepcheckout');
|
830 |
$order->setSalesOrderId($lastOrderId);
|
831 |
$order->setMoipCustomercommentInfo($data_customercomment);
|
832 |
+
|
833 |
$order->save();
|
834 |
}
|
835 |
$redirectUrl = $this->getOnepage()->getCheckout()->getRedirectUrl();
|
836 |
$result_order['success'] = true;
|
837 |
$result_order['error'] = false;
|
838 |
+
$quote = Mage::getSingleton('checkout/session')->getQuote();
|
839 |
+
$allQuoteItems = $quote->getAllItems();
|
840 |
+
foreach ($allQuoteItems as $_item) {
|
841 |
+
$_product = $_item->getProduct();
|
842 |
+
if ($_product->getIsPreparedToDelete()) {
|
843 |
+
$quote->removeItem($_item->getId());
|
844 |
+
}
|
845 |
+
}
|
846 |
+
$quote->save();
|
847 |
if (isset($redirectUrl)) {
|
848 |
$this->_redirectUrl($redirectUrl);
|
849 |
return;
|
851 |
$this->_redirect('checkout/onepage/success');
|
852 |
}
|
853 |
|
854 |
+
|
855 |
protected function filterdata($data, $filter="true") {
|
856 |
|
857 |
$arrayname=array('address_id', 'firstname', 'lastname', 'company', 'email', 'city', 'region_id', 'region', 'postcode', 'country_id', 'telephone', 'fax','tipopessoa','nomefantasia','razaosocial','cnpj','insestadual', 'save_in_address_book');
|
964 |
}
|
965 |
else {
|
966 |
$street=$value;
|
967 |
+
|
968 |
if (isset($street[0])){
|
969 |
|
970 |
if(isset($street[1]) || $street[1] =="."){
|
984 |
$street_3 = "";
|
985 |
}
|
986 |
|
987 |
+
|
988 |
$filterdata[$item]=array($street[0], $street_1,$street_2,$street_3);
|
989 |
}
|
990 |
+
|
991 |
}
|
992 |
}
|
993 |
return $filterdata;
|
997 |
return Mage::getSingleton('customer/session')->isLoggedIn();
|
998 |
}
|
999 |
|
1000 |
+
|
1001 |
public function savesubscibe($mail) {
|
1002 |
if ($mail) {
|
1003 |
if (version_compare(Mage::getVersion(), '1.3.2.4', '>')) {
|
1095 |
$this->loadLayout()->renderLayout();
|
1096 |
|
1097 |
}
|
1098 |
+
|
1099 |
|
1100 |
public function updatebillingform() {
|
1101 |
if ($this->getRequest()->isPost()) {
|
1112 |
}
|
1113 |
$this->loadLayout()->renderLayout();
|
1114 |
}
|
1115 |
+
|
1116 |
}
|
1117 |
public function saveAddress($type,$data)
|
1118 |
+
{
|
1119 |
+
|
1120 |
$addressId = $this->getRequest()->getPost($type.'_address_id');
|
1121 |
+
|
1122 |
$save_address = $this->getRequest()->getPost('save_in_address_book');
|
1123 |
+
|
1124 |
+
$customer = Mage::getSingleton('customer/session')->getCustomer();
|
1125 |
$address = Mage::getModel('customer/address');
|
1126 |
|
1127 |
+
if(!Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling() || $save_address)
|
1128 |
+
{
|
1129 |
+
$errors = array();
|
|
|
|
|
|
|
|
|
|
|
|
|
1130 |
$addressForm = Mage::getModel('customer/form');
|
1131 |
$addressForm->setFormCode('customer_address_edit')
|
1132 |
->setEntity($address);
|
1134 |
try {
|
1135 |
$addressForm->compactData($addressData);
|
1136 |
$address->setCustomerId($customer->getId())
|
1137 |
+
->setIsDefaultBilling(1)
|
1138 |
+
->setIsDefaultShipping(1)->setSaveInAddressBook('1');
|
|
|
|
|
|
|
|
|
1139 |
$address->save();
|
|
|
|
|
1140 |
} catch (Mage_Core_Exception $e) {
|
1141 |
+
$this->getResponse()->setBody($e->getMessage());
|
1142 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1143 |
}
|
1144 |
+
|
1145 |
+
|
1146 |
}
|
1147 |
}
|
app/code/local/MOIP/Onestepcheckout/etc/config.xml
CHANGED
@@ -47,8 +47,8 @@
|
|
47 |
</routers>
|
48 |
</admin>
|
49 |
<adminhtml>
|
50 |
-
|
51 |
-
|
52 |
<acl>
|
53 |
<resources>
|
54 |
<all>
|
@@ -60,7 +60,7 @@
|
|
60 |
<title>Onestepcheckout Module</title>
|
61 |
<sort_order>10</sort_order>
|
62 |
</MOIP_Onestepcheckout>
|
63 |
-
|
64 |
<system>
|
65 |
<children>
|
66 |
<config>
|
@@ -92,7 +92,7 @@
|
|
92 |
</MOIP_Onestepcheckout>
|
93 |
</modules>
|
94 |
</translate>
|
95 |
-
</adminhtml>
|
96 |
<global>
|
97 |
<rewrite>
|
98 |
<moip_onestepcheckout_index>
|
@@ -118,11 +118,7 @@
|
|
118 |
<quote_address>MOIP_Onestepcheckout_Model_Sales_Quote_Address</quote_address>
|
119 |
</rewrite>
|
120 |
</sales>
|
121 |
-
|
122 |
-
<rewrite>
|
123 |
-
<customer>MOIP_Onestepcheckout_Model_Customer_Customer</customer>
|
124 |
-
</rewrite>
|
125 |
-
</customer>
|
126 |
</models>
|
127 |
<resources>
|
128 |
<moip_onestepcheckout_setup>
|
@@ -148,7 +144,7 @@
|
|
148 |
<onestepcheckout>
|
149 |
<class>MOIP_Onestepcheckout_Block</class>
|
150 |
</onestepcheckout>
|
151 |
-
|
152 |
</blocks>
|
153 |
<helpers>
|
154 |
<onestepcheckout>
|
@@ -164,7 +160,7 @@
|
|
164 |
<method>checkout_cart_add_product_complete</method>
|
165 |
</onstepcheckout>
|
166 |
</observers>
|
167 |
-
</checkout_cart_add_product_complete>
|
168 |
</events>
|
169 |
<fieldsets>
|
170 |
<checkout_onepage_quote>
|
@@ -183,6 +179,7 @@
|
|
183 |
<customer_insestadual>
|
184 |
<to_customer>insestadual</to_customer>
|
185 |
</customer_insestadual>
|
|
|
186 |
</checkout_onepage_quote>
|
187 |
<customer_account>
|
188 |
<tipopessoa>
|
@@ -193,23 +190,22 @@
|
|
193 |
</nomefantasia>
|
194 |
<razaosocial>
|
195 |
<to_quote>customer_razaosocial</to_quote>
|
196 |
-
</razaosocial>
|
197 |
<cnpj>
|
198 |
<to_quote>customer_cnpj</to_quote>
|
199 |
</cnpj>
|
200 |
<insestadual>
|
201 |
<to_quote>customer_insestadual</to_quote>
|
202 |
</insestadual>
|
203 |
-
</customer_account>
|
204 |
-
|
205 |
-
<fieldsets>
|
206 |
<customer_account>
|
207 |
<tipopessoa><create>1</create><update>1</update><name>1</name></tipopessoa>
|
208 |
<nomefantasia><create>1</create><update>1</update><name>1</name></nomefantasia>
|
209 |
<razaosocial><create>1</create><update>1</update><name>1</name></razaosocial>
|
210 |
<cnpj><create>1</create><update>1</update><name>1</name></cnpj>
|
211 |
<insestadual><create>1</create><update>1</update><name>1</name></insestadual>
|
212 |
-
</customer_account>
|
213 |
</fieldsets>
|
214 |
</global>
|
215 |
<default>
|
@@ -219,7 +215,7 @@
|
|
219 |
<default_paymentmethod>moip_transparente_standard</default_paymentmethod>
|
220 |
<allowshippingotheraddress>1</allowshippingotheraddress>
|
221 |
<allowguestcheckout>1</allowguestcheckout>
|
222 |
-
<allowregister>1</allowregister>
|
223 |
<enable_buscacep>1</enable_buscacep>
|
224 |
<enable_pj>1</enable_pj>
|
225 |
<create_account>1</create_account>
|
@@ -240,8 +236,8 @@
|
|
240 |
</layout>
|
241 |
<addfield>
|
242 |
<street_lines>4</street_lines>
|
243 |
-
<addressbook>1</addressbook>
|
244 |
-
<allowcoupon>1</allowcoupon>
|
245 |
<showimageproduct>1</showimageproduct>
|
246 |
<enable_giftmessage>0</enable_giftmessage>
|
247 |
</addfield>
|
47 |
</routers>
|
48 |
</admin>
|
49 |
<adminhtml>
|
50 |
+
|
51 |
+
|
52 |
<acl>
|
53 |
<resources>
|
54 |
<all>
|
60 |
<title>Onestepcheckout Module</title>
|
61 |
<sort_order>10</sort_order>
|
62 |
</MOIP_Onestepcheckout>
|
63 |
+
|
64 |
<system>
|
65 |
<children>
|
66 |
<config>
|
92 |
</MOIP_Onestepcheckout>
|
93 |
</modules>
|
94 |
</translate>
|
95 |
+
</adminhtml>
|
96 |
<global>
|
97 |
<rewrite>
|
98 |
<moip_onestepcheckout_index>
|
118 |
<quote_address>MOIP_Onestepcheckout_Model_Sales_Quote_Address</quote_address>
|
119 |
</rewrite>
|
120 |
</sales>
|
121 |
+
|
|
|
|
|
|
|
|
|
122 |
</models>
|
123 |
<resources>
|
124 |
<moip_onestepcheckout_setup>
|
144 |
<onestepcheckout>
|
145 |
<class>MOIP_Onestepcheckout_Block</class>
|
146 |
</onestepcheckout>
|
147 |
+
|
148 |
</blocks>
|
149 |
<helpers>
|
150 |
<onestepcheckout>
|
160 |
<method>checkout_cart_add_product_complete</method>
|
161 |
</onstepcheckout>
|
162 |
</observers>
|
163 |
+
</checkout_cart_add_product_complete>
|
164 |
</events>
|
165 |
<fieldsets>
|
166 |
<checkout_onepage_quote>
|
179 |
<customer_insestadual>
|
180 |
<to_customer>insestadual</to_customer>
|
181 |
</customer_insestadual>
|
182 |
+
|
183 |
</checkout_onepage_quote>
|
184 |
<customer_account>
|
185 |
<tipopessoa>
|
190 |
</nomefantasia>
|
191 |
<razaosocial>
|
192 |
<to_quote>customer_razaosocial</to_quote>
|
193 |
+
</razaosocial>
|
194 |
<cnpj>
|
195 |
<to_quote>customer_cnpj</to_quote>
|
196 |
</cnpj>
|
197 |
<insestadual>
|
198 |
<to_quote>customer_insestadual</to_quote>
|
199 |
</insestadual>
|
200 |
+
</customer_account>
|
201 |
+
|
|
|
202 |
<customer_account>
|
203 |
<tipopessoa><create>1</create><update>1</update><name>1</name></tipopessoa>
|
204 |
<nomefantasia><create>1</create><update>1</update><name>1</name></nomefantasia>
|
205 |
<razaosocial><create>1</create><update>1</update><name>1</name></razaosocial>
|
206 |
<cnpj><create>1</create><update>1</update><name>1</name></cnpj>
|
207 |
<insestadual><create>1</create><update>1</update><name>1</name></insestadual>
|
208 |
+
</customer_account>
|
209 |
</fieldsets>
|
210 |
</global>
|
211 |
<default>
|
215 |
<default_paymentmethod>moip_transparente_standard</default_paymentmethod>
|
216 |
<allowshippingotheraddress>1</allowshippingotheraddress>
|
217 |
<allowguestcheckout>1</allowguestcheckout>
|
218 |
+
<allowregister>1</allowregister>
|
219 |
<enable_buscacep>1</enable_buscacep>
|
220 |
<enable_pj>1</enable_pj>
|
221 |
<create_account>1</create_account>
|
236 |
</layout>
|
237 |
<addfield>
|
238 |
<street_lines>4</street_lines>
|
239 |
+
<addressbook>1</addressbook>
|
240 |
+
<allowcoupon>1</allowcoupon>
|
241 |
<showimageproduct>1</showimageproduct>
|
242 |
<enable_giftmessage>0</enable_giftmessage>
|
243 |
</addfield>
|
app/code/local/MOIP/Onestepcheckout/etc/system.xml
CHANGED
@@ -10,20 +10,20 @@
|
|
10 |
<!-- Headers Tabs has a number of sections. -->
|
11 |
<sections>
|
12 |
<onestepcheckout translate="label" module="onestepcheckout">
|
13 |
-
<label><![CDATA[ <div style="height: 33px; "><img src="
|
14 |
<tab>moip</tab>
|
15 |
<frontend_type>text</frontend_type>
|
16 |
-
<sort_order>100</sort_order>
|
17 |
<show_in_default>1</show_in_default>
|
18 |
<show_in_website>1</show_in_website>
|
19 |
<show_in_store>1</show_in_store>
|
20 |
-
|
21 |
-
<groups>
|
22 |
<config translate="label">
|
23 |
<comment>
|
24 |
<![CDATA[
|
25 |
<div>
|
26 |
-
<a style="float: left;text-decoration:none;width:100%" href="http://www.moip.com/magento.php" target="_blank" style="float: left;"><img src="
|
27 |
</a>
|
28 |
<div style="float: left; color:#2f3850">
|
29 |
<label style="font-size: 34px">Versão: <strong>Gratuita para uso com o MoIP Transparente</strong></label>
|
@@ -41,17 +41,9 @@
|
|
41 |
<sort_order>1</sort_order>
|
42 |
<show_in_default>1</show_in_default>
|
43 |
<show_in_website>1</show_in_website>
|
44 |
-
<show_in_store>1</show_in_store>
|
45 |
-
<fields>
|
46 |
-
|
47 |
-
<label>Habilitar Checkout:</label>
|
48 |
-
<frontend_type>select</frontend_type>
|
49 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
50 |
-
<sort_order>1</sort_order>
|
51 |
-
<show_in_default>1</show_in_default>
|
52 |
-
<show_in_website>1</show_in_website>
|
53 |
-
<show_in_store>1</show_in_store>
|
54 |
-
</enabled>
|
55 |
<default_country translate="label">
|
56 |
<label>País Padrão</label>
|
57 |
<frontend_type>select</frontend_type>
|
@@ -60,7 +52,7 @@
|
|
60 |
<show_in_default>1</show_in_default>
|
61 |
<show_in_website>1</show_in_website>
|
62 |
<show_in_store>1</show_in_store>
|
63 |
-
</default_country>
|
64 |
<enable_buscacep translate="label">
|
65 |
<label>Buscar Endereço pelo CEP?</label>
|
66 |
<frontend_type>select</frontend_type>
|
@@ -91,7 +83,7 @@
|
|
91 |
<allowshippingotheraddress translate="label">
|
92 |
<label>Permitir envio para outro endereço</label>
|
93 |
<frontend_type>select</frontend_type>
|
94 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
95 |
<sort_order>6</sort_order>
|
96 |
<show_in_default>1</show_in_default>
|
97 |
<show_in_website>1</show_in_website>
|
@@ -100,7 +92,7 @@
|
|
100 |
<allowguestcheckout translate="label">
|
101 |
<label>Permitir acesso sem estar logado</label>
|
102 |
<frontend_type>select</frontend_type>
|
103 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
104 |
<sort_order>7</sort_order>
|
105 |
<show_in_default>1</show_in_default>
|
106 |
<show_in_website>1</show_in_website>
|
@@ -109,7 +101,7 @@
|
|
109 |
<allowregister translate="label">
|
110 |
<label>Registrar cliente no checkout</label>
|
111 |
<frontend_type>select</frontend_type>
|
112 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
113 |
<sort_order>8</sort_order>
|
114 |
<show_in_default>1</show_in_default>
|
115 |
<show_in_website>1</show_in_website>
|
@@ -118,13 +110,13 @@
|
|
118 |
<create_account translate="label">
|
119 |
<label>Criar conta obrigatoriamente</label>
|
120 |
<frontend_type>select</frontend_type>
|
121 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
122 |
<sort_order>9</sort_order>
|
123 |
<show_in_default>1</show_in_default>
|
124 |
<show_in_website>1</show_in_website>
|
125 |
<show_in_store>1</show_in_store>
|
126 |
<comment>Deixe marcado como SIM para criar conta obrigatoriamente.</comment>
|
127 |
-
</create_account>
|
128 |
<disable_shop_cart translate="label">
|
129 |
<label>Redirecionar botão comprar direto para o checkout</label>
|
130 |
<frontend_type>select</frontend_type>
|
@@ -134,7 +126,7 @@
|
|
134 |
<show_in_website>1</show_in_website>
|
135 |
<show_in_store>1</show_in_store>
|
136 |
</disable_shop_cart>
|
137 |
-
|
138 |
</fields>
|
139 |
</config>
|
140 |
<layout translate="label">
|
@@ -145,15 +137,15 @@
|
|
145 |
<show_in_website>1</show_in_website>
|
146 |
<show_in_store>1</show_in_store>
|
147 |
<fields>
|
148 |
-
|
149 |
-
<label>Titulo da Página</label>
|
150 |
<frontend_type>text</frontend_type>
|
151 |
<sort_order>1</sort_order>
|
152 |
<show_in_default>1</show_in_default>
|
153 |
<show_in_website>1</show_in_website>
|
154 |
<show_in_store>1</show_in_store>
|
155 |
<comment>Título da página</comment>
|
156 |
-
</page_titulo>
|
157 |
<page_layout translate="label">
|
158 |
<label>Layout do Checkout</label>
|
159 |
<frontend_type>select</frontend_type>
|
@@ -167,7 +159,7 @@
|
|
167 |
<site_response>
|
168 |
<label>Seu Site é Responsivo?</label>
|
169 |
<frontend_type>select</frontend_type>
|
170 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
171 |
<sort_order>3</sort_order>
|
172 |
<show_in_default>1</show_in_default>
|
173 |
<show_in_website>1</show_in_website>
|
@@ -175,7 +167,7 @@
|
|
175 |
<comment>Se o site é responsivel coloque sim, isto corrigirá o layout de nosso modulo.</comment>
|
176 |
</site_response>
|
177 |
|
178 |
-
<style_cor translate="label">
|
179 |
<label>Cor do Checkout</label>
|
180 |
<frontend_type>text</frontend_type>
|
181 |
<sort_order>4</sort_order>
|
@@ -184,7 +176,7 @@
|
|
184 |
<show_in_store>1</show_in_store>
|
185 |
<comment>Default do checkout: 000. Não usar o "#", apenas o número.</comment>
|
186 |
</style_cor>
|
187 |
-
<botao_cor translate="label">
|
188 |
<label>Cor dos Botões</label>
|
189 |
<frontend_type>text</frontend_type>
|
190 |
<sort_order>5</sort_order>
|
@@ -192,55 +184,19 @@
|
|
192 |
<show_in_website>1</show_in_website>
|
193 |
<show_in_store>1</show_in_store>
|
194 |
<comment>Default dos Cor dos Botões: 000. Não usar o "#", apenas o número.</comment>
|
195 |
-
</botao_cor>
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
<sort_order>6</sort_order>
|
200 |
-
<show_in_default>1</show_in_default>
|
201 |
-
<show_in_website>1</show_in_website>
|
202 |
-
<show_in_store>1</show_in_store>
|
203 |
-
</page_conteudo>
|
204 |
-
<use_secure>
|
205 |
-
<label>Exibir Modal Loja segura?</label>
|
206 |
-
<frontend_type>select</frontend_type>
|
207 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
208 |
-
<sort_order>7</sort_order>
|
209 |
-
<show_in_default>1</show_in_default>
|
210 |
-
<show_in_website>1</show_in_website>
|
211 |
-
<show_in_store>1</show_in_store>
|
212 |
-
<comment>Coloque o seu testo de porque o site é seguro.</comment>
|
213 |
-
</use_secure>
|
214 |
-
<secure>
|
215 |
-
<label>Conteúdo Loja Segura:</label>
|
216 |
-
<depends>
|
217 |
-
<use_secure>1</use_secure>
|
218 |
-
</depends>
|
219 |
-
<frontend_type>textarea</frontend_type>
|
220 |
-
<sort_order>8</sort_order>
|
221 |
-
<show_in_default>1</show_in_default>
|
222 |
-
<show_in_website>1</show_in_website>
|
223 |
-
<show_in_store>1</show_in_store>
|
224 |
-
<comment>Link próximo ao botão comprar para loja segura.</comment>
|
225 |
-
</secure>
|
226 |
-
<allowremoveproduct translate="label">
|
227 |
<label>Permitir remover produto</label>
|
228 |
<frontend_type>select</frontend_type>
|
229 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
230 |
<sort_order>17</sort_order>
|
231 |
<show_in_default>1</show_in_default>
|
232 |
<show_in_website>1</show_in_website>
|
233 |
<show_in_store>1</show_in_store>
|
234 |
</allowremoveproduct>
|
235 |
-
|
236 |
-
<label>Inscrição em Newsletter</label>
|
237 |
-
<frontend_type>select</frontend_type>
|
238 |
-
<source_model>onestepcheckout/system_config_source_subscribenewletter </source_model>
|
239 |
-
<sort_order>18</sort_order>
|
240 |
-
<show_in_default>1</show_in_default>
|
241 |
-
<show_in_website>1</show_in_website>
|
242 |
-
<show_in_store>1</show_in_store>
|
243 |
-
</allowsubscribenewsletter>
|
244 |
<enable_quicklogin translate="label">
|
245 |
<label>Habilitar login por ajax?</label>
|
246 |
<frontend_type>select</frontend_type>
|
@@ -251,7 +207,7 @@
|
|
251 |
<show_in_store>1</show_in_store>
|
252 |
</enable_quicklogin>
|
253 |
</fields>
|
254 |
-
</layout>
|
255 |
<addfield translate="label">
|
256 |
<label>Habilitar Campos</label>
|
257 |
<frontend_type>text</frontend_type>
|
@@ -260,17 +216,17 @@
|
|
260 |
<show_in_website>1</show_in_website>
|
261 |
<show_in_store>1</show_in_store>
|
262 |
<fields>
|
263 |
-
|
264 |
<street_lines translate="label comment">
|
265 |
<label>Número de linhas do endereço </label>
|
266 |
<sort_order>2</sort_order>
|
267 |
<show_in_default>1</show_in_default>
|
268 |
<show_in_website>1</show_in_website>
|
269 |
<show_in_store>0</show_in_store>
|
270 |
-
<backend_model>adminhtml/system_config_backend_customer_address_street</backend_model>
|
271 |
<comment>Obrigatóriamente 4</comment>
|
272 |
</street_lines>
|
273 |
-
|
274 |
<enable_messagetosystem translate="label">
|
275 |
<label>Comentários nos pedidos</label>
|
276 |
<frontend_type>select</frontend_type>
|
@@ -281,19 +237,11 @@
|
|
281 |
<show_in_store>1</show_in_store>
|
282 |
<comment>Usado pelo cliente para comentar o pedido</comment>
|
283 |
</enable_messagetosystem>
|
284 |
-
|
285 |
-
<label>Inscrição em Newsletter</label>
|
286 |
-
<frontend_type>select</frontend_type>
|
287 |
-
<source_model>onestepcheckout/system_config_source_subscribenewletter </source_model>
|
288 |
-
<sort_order>15</sort_order>
|
289 |
-
<show_in_default>1</show_in_default>
|
290 |
-
<show_in_website>1</show_in_website>
|
291 |
-
<show_in_store>1</show_in_store>
|
292 |
-
</allowsubscribenewsletter>
|
293 |
<allowcoupon translate="label">
|
294 |
<label>Coupom de desconto</label>
|
295 |
<frontend_type>select</frontend_type>
|
296 |
-
<source_model>onestepcheckout/system_config_source_disablefield</source_model>
|
297 |
<sort_order>16</sort_order>
|
298 |
<show_in_default>1</show_in_default>
|
299 |
<show_in_website>1</show_in_website>
|
@@ -302,7 +250,7 @@
|
|
302 |
<showimageproduct translate="label">
|
303 |
<label>Imagem do produto</label>
|
304 |
<frontend_type>select</frontend_type>
|
305 |
-
<source_model>onestepcheckout/system_config_source_disablefield</source_model>
|
306 |
<sort_order>17</sort_order>
|
307 |
<show_in_default>1</show_in_default>
|
308 |
<show_in_website>1</show_in_website>
|
@@ -318,9 +266,18 @@
|
|
318 |
<show_in_store>1</show_in_store>
|
319 |
<comment>Configure as opções de embalagem em configuracoes/vendas/embalagens!</comment>
|
320 |
</enable_giftmessage>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
321 |
</fields>
|
322 |
</addfield>
|
323 |
-
<
|
324 |
<label>Box Modal</label>
|
325 |
<frontend_type>text</frontend_type>
|
326 |
<sort_order>6</sort_order>
|
@@ -328,7 +285,7 @@
|
|
328 |
<show_in_website>1</show_in_website>
|
329 |
<show_in_store>1</show_in_store>
|
330 |
<fields>
|
331 |
-
<
|
332 |
<label>Habilitar Modal de termos e condições</label>
|
333 |
<frontend_type>select</frontend_type>
|
334 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
@@ -336,37 +293,46 @@
|
|
336 |
<show_in_default>1</show_in_default>
|
337 |
<show_in_website>1</show_in_website>
|
338 |
<show_in_store>1</show_in_store>
|
339 |
-
</
|
340 |
<content_options translate="label">
|
341 |
<label>Conteúdo termos e condições</label>
|
342 |
-
<
|
|
|
|
|
|
|
|
|
343 |
<sort_order>2</sort_order>
|
344 |
<show_in_default>1</show_in_default>
|
345 |
<show_in_website>1</show_in_website>
|
346 |
<show_in_store>1</show_in_store>
|
347 |
-
<comment>
|
348 |
</content_options>
|
349 |
-
<
|
350 |
-
<label>
|
351 |
-
<frontend_type>
|
352 |
-
<
|
|
|
353 |
<show_in_default>1</show_in_default>
|
354 |
<show_in_website>1</show_in_website>
|
355 |
<show_in_store>1</show_in_store>
|
356 |
-
<comment>
|
357 |
-
</
|
358 |
-
<
|
359 |
-
<label>
|
360 |
-
<
|
361 |
-
|
|
|
|
|
|
|
|
|
362 |
<show_in_default>1</show_in_default>
|
363 |
<show_in_website>1</show_in_website>
|
364 |
<show_in_store>1</show_in_store>
|
365 |
-
<comment>
|
366 |
-
</
|
367 |
</fields>
|
368 |
-
</
|
369 |
-
|
370 |
</groups>
|
371 |
</onestepcheckout>
|
372 |
</sections>
|
10 |
<!-- Headers Tabs has a number of sections. -->
|
11 |
<sections>
|
12 |
<onestepcheckout translate="label" module="onestepcheckout">
|
13 |
+
<label><![CDATA[ <div style="height: 33px; "><img src="https://imagem.o2ti.com/checkout_moip.png" style="float:left; "/><div style="padding-top:8px;color:#2f3850;margin-left: 30px;"> Moip Carrinho<sup style="float: right;">v2.0.0</sup></div></div>]]></label>
|
14 |
<tab>moip</tab>
|
15 |
<frontend_type>text</frontend_type>
|
16 |
+
<sort_order>100</sort_order>
|
17 |
<show_in_default>1</show_in_default>
|
18 |
<show_in_website>1</show_in_website>
|
19 |
<show_in_store>1</show_in_store>
|
20 |
+
|
21 |
+
<groups>
|
22 |
<config translate="label">
|
23 |
<comment>
|
24 |
<![CDATA[
|
25 |
<div>
|
26 |
+
<a style="float: left;text-decoration:none;width:100%" href="http://www.moip.com/magento.php" target="_blank" style="float: left;"><img src="https://imagem.o2ti.com/checkout_moip.png" style="float:left;"/><h1 style="float:left;">Moip Carrinho</h1><sup>v2.0.0</sup>
|
27 |
</a>
|
28 |
<div style="float: left; color:#2f3850">
|
29 |
<label style="font-size: 34px">Versão: <strong>Gratuita para uso com o MoIP Transparente</strong></label>
|
41 |
<sort_order>1</sort_order>
|
42 |
<show_in_default>1</show_in_default>
|
43 |
<show_in_website>1</show_in_website>
|
44 |
+
<show_in_store>1</show_in_store>
|
45 |
+
<fields>
|
46 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
<default_country translate="label">
|
48 |
<label>País Padrão</label>
|
49 |
<frontend_type>select</frontend_type>
|
52 |
<show_in_default>1</show_in_default>
|
53 |
<show_in_website>1</show_in_website>
|
54 |
<show_in_store>1</show_in_store>
|
55 |
+
</default_country>
|
56 |
<enable_buscacep translate="label">
|
57 |
<label>Buscar Endereço pelo CEP?</label>
|
58 |
<frontend_type>select</frontend_type>
|
83 |
<allowshippingotheraddress translate="label">
|
84 |
<label>Permitir envio para outro endereço</label>
|
85 |
<frontend_type>select</frontend_type>
|
86 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
87 |
<sort_order>6</sort_order>
|
88 |
<show_in_default>1</show_in_default>
|
89 |
<show_in_website>1</show_in_website>
|
92 |
<allowguestcheckout translate="label">
|
93 |
<label>Permitir acesso sem estar logado</label>
|
94 |
<frontend_type>select</frontend_type>
|
95 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
96 |
<sort_order>7</sort_order>
|
97 |
<show_in_default>1</show_in_default>
|
98 |
<show_in_website>1</show_in_website>
|
101 |
<allowregister translate="label">
|
102 |
<label>Registrar cliente no checkout</label>
|
103 |
<frontend_type>select</frontend_type>
|
104 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
105 |
<sort_order>8</sort_order>
|
106 |
<show_in_default>1</show_in_default>
|
107 |
<show_in_website>1</show_in_website>
|
110 |
<create_account translate="label">
|
111 |
<label>Criar conta obrigatoriamente</label>
|
112 |
<frontend_type>select</frontend_type>
|
113 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
114 |
<sort_order>9</sort_order>
|
115 |
<show_in_default>1</show_in_default>
|
116 |
<show_in_website>1</show_in_website>
|
117 |
<show_in_store>1</show_in_store>
|
118 |
<comment>Deixe marcado como SIM para criar conta obrigatoriamente.</comment>
|
119 |
+
</create_account>
|
120 |
<disable_shop_cart translate="label">
|
121 |
<label>Redirecionar botão comprar direto para o checkout</label>
|
122 |
<frontend_type>select</frontend_type>
|
126 |
<show_in_website>1</show_in_website>
|
127 |
<show_in_store>1</show_in_store>
|
128 |
</disable_shop_cart>
|
129 |
+
|
130 |
</fields>
|
131 |
</config>
|
132 |
<layout translate="label">
|
137 |
<show_in_website>1</show_in_website>
|
138 |
<show_in_store>1</show_in_store>
|
139 |
<fields>
|
140 |
+
<page_titulo translate="label">
|
141 |
+
<label>Titulo da Página - Head da Página</label>
|
142 |
<frontend_type>text</frontend_type>
|
143 |
<sort_order>1</sort_order>
|
144 |
<show_in_default>1</show_in_default>
|
145 |
<show_in_website>1</show_in_website>
|
146 |
<show_in_store>1</show_in_store>
|
147 |
<comment>Título da página</comment>
|
148 |
+
</page_titulo>
|
149 |
<page_layout translate="label">
|
150 |
<label>Layout do Checkout</label>
|
151 |
<frontend_type>select</frontend_type>
|
159 |
<site_response>
|
160 |
<label>Seu Site é Responsivo?</label>
|
161 |
<frontend_type>select</frontend_type>
|
162 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
163 |
<sort_order>3</sort_order>
|
164 |
<show_in_default>1</show_in_default>
|
165 |
<show_in_website>1</show_in_website>
|
167 |
<comment>Se o site é responsivel coloque sim, isto corrigirá o layout de nosso modulo.</comment>
|
168 |
</site_response>
|
169 |
|
170 |
+
<style_cor translate="label">
|
171 |
<label>Cor do Checkout</label>
|
172 |
<frontend_type>text</frontend_type>
|
173 |
<sort_order>4</sort_order>
|
176 |
<show_in_store>1</show_in_store>
|
177 |
<comment>Default do checkout: 000. Não usar o "#", apenas o número.</comment>
|
178 |
</style_cor>
|
179 |
+
<botao_cor translate="label">
|
180 |
<label>Cor dos Botões</label>
|
181 |
<frontend_type>text</frontend_type>
|
182 |
<sort_order>5</sort_order>
|
184 |
<show_in_website>1</show_in_website>
|
185 |
<show_in_store>1</show_in_store>
|
186 |
<comment>Default dos Cor dos Botões: 000. Não usar o "#", apenas o número.</comment>
|
187 |
+
</botao_cor>
|
188 |
+
|
189 |
+
|
190 |
+
<allowremoveproduct translate="label">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
191 |
<label>Permitir remover produto</label>
|
192 |
<frontend_type>select</frontend_type>
|
193 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
194 |
<sort_order>17</sort_order>
|
195 |
<show_in_default>1</show_in_default>
|
196 |
<show_in_website>1</show_in_website>
|
197 |
<show_in_store>1</show_in_store>
|
198 |
</allowremoveproduct>
|
199 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
<enable_quicklogin translate="label">
|
201 |
<label>Habilitar login por ajax?</label>
|
202 |
<frontend_type>select</frontend_type>
|
207 |
<show_in_store>1</show_in_store>
|
208 |
</enable_quicklogin>
|
209 |
</fields>
|
210 |
+
</layout>
|
211 |
<addfield translate="label">
|
212 |
<label>Habilitar Campos</label>
|
213 |
<frontend_type>text</frontend_type>
|
216 |
<show_in_website>1</show_in_website>
|
217 |
<show_in_store>1</show_in_store>
|
218 |
<fields>
|
219 |
+
|
220 |
<street_lines translate="label comment">
|
221 |
<label>Número de linhas do endereço </label>
|
222 |
<sort_order>2</sort_order>
|
223 |
<show_in_default>1</show_in_default>
|
224 |
<show_in_website>1</show_in_website>
|
225 |
<show_in_store>0</show_in_store>
|
226 |
+
<backend_model>adminhtml/system_config_backend_customer_address_street</backend_model>
|
227 |
<comment>Obrigatóriamente 4</comment>
|
228 |
</street_lines>
|
229 |
+
|
230 |
<enable_messagetosystem translate="label">
|
231 |
<label>Comentários nos pedidos</label>
|
232 |
<frontend_type>select</frontend_type>
|
237 |
<show_in_store>1</show_in_store>
|
238 |
<comment>Usado pelo cliente para comentar o pedido</comment>
|
239 |
</enable_messagetosystem>
|
240 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
241 |
<allowcoupon translate="label">
|
242 |
<label>Coupom de desconto</label>
|
243 |
<frontend_type>select</frontend_type>
|
244 |
+
<source_model>onestepcheckout/system_config_source_disablefield</source_model>
|
245 |
<sort_order>16</sort_order>
|
246 |
<show_in_default>1</show_in_default>
|
247 |
<show_in_website>1</show_in_website>
|
250 |
<showimageproduct translate="label">
|
251 |
<label>Imagem do produto</label>
|
252 |
<frontend_type>select</frontend_type>
|
253 |
+
<source_model>onestepcheckout/system_config_source_disablefield</source_model>
|
254 |
<sort_order>17</sort_order>
|
255 |
<show_in_default>1</show_in_default>
|
256 |
<show_in_website>1</show_in_website>
|
266 |
<show_in_store>1</show_in_store>
|
267 |
<comment>Configure as opções de embalagem em configuracoes/vendas/embalagens!</comment>
|
268 |
</enable_giftmessage>
|
269 |
+
<usenews translate="label">
|
270 |
+
<label>Inscrição em Newsletter</label>
|
271 |
+
<frontend_type>select</frontend_type>
|
272 |
+
<source_model>onestepcheckout/system_config_source_subscribenewletter </source_model>
|
273 |
+
<sort_order>19</sort_order>
|
274 |
+
<show_in_default>1</show_in_default>
|
275 |
+
<show_in_website>1</show_in_website>
|
276 |
+
<show_in_store>1</show_in_store>
|
277 |
+
</usenews>
|
278 |
</fields>
|
279 |
</addfield>
|
280 |
+
<modaluse translate="label">
|
281 |
<label>Box Modal</label>
|
282 |
<frontend_type>text</frontend_type>
|
283 |
<sort_order>6</sort_order>
|
285 |
<show_in_website>1</show_in_website>
|
286 |
<show_in_store>1</show_in_store>
|
287 |
<fields>
|
288 |
+
<termos translate="label">
|
289 |
<label>Habilitar Modal de termos e condições</label>
|
290 |
<frontend_type>select</frontend_type>
|
291 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
293 |
<show_in_default>1</show_in_default>
|
294 |
<show_in_website>1</show_in_website>
|
295 |
<show_in_store>1</show_in_store>
|
296 |
+
</termos>
|
297 |
<content_options translate="label">
|
298 |
<label>Conteúdo termos e condições</label>
|
299 |
+
<depends>
|
300 |
+
<termos>1</termos>
|
301 |
+
</depends>
|
302 |
+
<frontend_type>editor</frontend_type>
|
303 |
+
<frontend_model>onestepcheckout/adminhtml_system_config_editor</frontend_model>
|
304 |
<sort_order>2</sort_order>
|
305 |
<show_in_default>1</show_in_default>
|
306 |
<show_in_website>1</show_in_website>
|
307 |
<show_in_store>1</show_in_store>
|
308 |
+
<comment>Especifique os termos de compra em seu site</comment>
|
309 |
</content_options>
|
310 |
+
<use_secure>
|
311 |
+
<label>Exibir Modal Loja segura?</label>
|
312 |
+
<frontend_type>select</frontend_type>
|
313 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
314 |
+
<sort_order>7</sort_order>
|
315 |
<show_in_default>1</show_in_default>
|
316 |
<show_in_website>1</show_in_website>
|
317 |
<show_in_store>1</show_in_store>
|
318 |
+
<comment>Coloque o seu testo de porque o site é seguro.</comment>
|
319 |
+
</use_secure>
|
320 |
+
<secure>
|
321 |
+
<label>Conteúdo Loja Segura:</label>
|
322 |
+
<depends>
|
323 |
+
<use_secure>1</use_secure>
|
324 |
+
</depends>
|
325 |
+
<frontend_type>editor</frontend_type>
|
326 |
+
<frontend_model>onestepcheckout/adminhtml_system_config_editor</frontend_model>
|
327 |
+
<sort_order>8</sort_order>
|
328 |
<show_in_default>1</show_in_default>
|
329 |
<show_in_website>1</show_in_website>
|
330 |
<show_in_store>1</show_in_store>
|
331 |
+
<comment>Link próximo ao botão comprar para loja segura.</comment>
|
332 |
+
</secure>
|
333 |
</fields>
|
334 |
+
</modaluse>
|
335 |
+
|
336 |
</groups>
|
337 |
</onestepcheckout>
|
338 |
</sections>
|
app/code/local/MOIP/Transparente/Block/Info.php
CHANGED
@@ -8,14 +8,14 @@ class MOIP_Transparente_Block_Info extends Mage_Payment_Block_Info
|
|
8 |
$this->setTemplate('MOIP/transparente/info.phtml');
|
9 |
}
|
10 |
|
11 |
-
|
12 |
-
|
13 |
public function getTransparente()
|
14 |
{
|
15 |
return Mage::getSingleton('transparente/api');
|
16 |
}
|
17 |
|
18 |
-
|
19 |
public function getBoletoImage() {
|
20 |
if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
|
21 |
return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/boleto');
|
@@ -132,20 +132,37 @@ class MOIP_Transparente_Block_Info extends Mage_Payment_Block_Info
|
|
132 |
return $nome;
|
133 |
}
|
134 |
|
|
|
|
|
|
|
|
|
|
|
135 |
|
136 |
protected function _prepareInfo()
|
137 |
{
|
138 |
-
|
139 |
-
$order_get = Mage::app()->getRequest()->getParam('order_id');
|
140 |
$order = $this->getInfo()->getOrder();
|
|
|
|
|
141 |
$order = $order->getIncrementId();
|
|
|
142 |
$model = Mage::getModel('transparente/write');
|
143 |
$result = $model->load($order, 'realorder_id');
|
144 |
$dados = array();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
$dados['result_meio'] = $this->getNomePagamento($result->getMeio_pg());
|
146 |
$dados['meio_pago'] = $this->getNomePagamento($result->getMeio_pg());
|
147 |
$dados['realorder_id'] = $result->getRealorder_id();
|
148 |
-
$dados['order_idtransparente'] = $result->getorder_idtransparente();
|
149 |
$dados['boleto_line'] = $result->getBoleto_line();
|
150 |
$dados['customer_id'] = $result->getCustomerId();
|
151 |
$dados['brand'] = $result->getBrand();
|
8 |
$this->setTemplate('MOIP/transparente/info.phtml');
|
9 |
}
|
10 |
|
11 |
+
|
12 |
+
|
13 |
public function getTransparente()
|
14 |
{
|
15 |
return Mage::getSingleton('transparente/api');
|
16 |
}
|
17 |
|
18 |
+
|
19 |
public function getBoletoImage() {
|
20 |
if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
|
21 |
return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/boleto');
|
132 |
return $nome;
|
133 |
}
|
134 |
|
135 |
+
public function toPdf()
|
136 |
+
{
|
137 |
+
$this->setTemplate('MOIP/transparente/info/pdf.phtml');
|
138 |
+
return $this->toHtml();
|
139 |
+
}
|
140 |
|
141 |
protected function _prepareInfo()
|
142 |
{
|
143 |
+
|
144 |
+
$order_get = Mage::app()->getRequest()->getParam('order_id');
|
145 |
$order = $this->getInfo()->getOrder();
|
146 |
+
|
147 |
+
$customer_order = Mage::getModel('customer/customer')->load($order->getCustomerId());
|
148 |
$order = $order->getIncrementId();
|
149 |
+
|
150 |
$model = Mage::getModel('transparente/write');
|
151 |
$result = $model->load($order, 'realorder_id');
|
152 |
$dados = array();
|
153 |
+
|
154 |
+
if((int)$customer_order->getTipopessoa()!= 1){
|
155 |
+
$dados['compra_pj'] = 1;
|
156 |
+
$dados['cnpj'] = $customer_order->getCnpj();
|
157 |
+
$dados['razaosocial'] = $customer_order->getRazaosocial();
|
158 |
+
$dados['nomefantasia'] = $customer_order->getNomefantasia();
|
159 |
+
$dados['insestadual'] = $customer_order->getInsestadual();
|
160 |
+
}
|
161 |
+
|
162 |
$dados['result_meio'] = $this->getNomePagamento($result->getMeio_pg());
|
163 |
$dados['meio_pago'] = $this->getNomePagamento($result->getMeio_pg());
|
164 |
$dados['realorder_id'] = $result->getRealorder_id();
|
165 |
+
$dados['order_idtransparente'] = $result->getorder_idtransparente();
|
166 |
$dados['boleto_line'] = $result->getBoleto_line();
|
167 |
$dados['customer_id'] = $result->getCustomerId();
|
168 |
$dados['brand'] = $result->getBrand();
|
app/code/local/MOIP/Transparente/Block/Product/List.php
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class MOIP_Transparente_Block_Product_List extends Mage_Catalog_Block_Product_List{
|
3 |
+
public function __construct(){
|
4 |
+
parent::__construct();
|
5 |
+
}
|
6 |
+
public function getParcelamento($price, $method) {
|
7 |
+
$api = Mage::getModel('transparente/api');
|
8 |
+
if($price){
|
9 |
+
$parcelamento = $api->getParcelamento($price);
|
10 |
+
$parcela_decode = json_decode($parcelamento,true);
|
11 |
+
foreach ($parcela_decode as $key => $value):
|
12 |
+
if ($key <= Mage::getSingleton('transparente/standard')->getConfigData('nummaxparcelamax')):
|
13 |
+
$juros = $parcela_decode[$key]['juros'];
|
14 |
+
$parcelas_result = $parcela_decode[$key]['parcela'];
|
15 |
+
$total_parcelado = $parcela_decode[$key]['total_parcelado'];
|
16 |
+
if($juros > 0)
|
17 |
+
$asterisco = '';
|
18 |
+
else
|
19 |
+
$asterisco = ' sem juros';
|
20 |
+
$parcelas[]= $key.'x de '.$parcelas_result.$asterisco;
|
21 |
+
endif;
|
22 |
+
endforeach;
|
23 |
+
if($method == 'reduzido'){
|
24 |
+
return end($parcelas);
|
25 |
+
} elseif($method == 'integral') {
|
26 |
+
return $parcelas;
|
27 |
+
} else {
|
28 |
+
return ;
|
29 |
+
}
|
30 |
+
|
31 |
+
} else {
|
32 |
+
return ;
|
33 |
+
}
|
34 |
+
|
35 |
+
|
36 |
+
}
|
37 |
+
public function getVisaImage() {
|
38 |
+
if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
|
39 |
+
return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_visa');
|
40 |
+
}else {
|
41 |
+
return $this->getSkinUrl('MOIP/transparente/imagem/Visa.png');
|
42 |
+
}
|
43 |
+
}
|
44 |
+
public function getMastercardImage() {
|
45 |
+
if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
|
46 |
+
return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_master');
|
47 |
+
}else {
|
48 |
+
return $this->getSkinUrl('MOIP/transparente/imagem/Mastercard.png');
|
49 |
+
}
|
50 |
+
}
|
51 |
+
public function getDinersImage() {
|
52 |
+
if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
|
53 |
+
return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_diners');
|
54 |
+
}else {
|
55 |
+
return $this->getSkinUrl('MOIP/transparente/imagem/Diners.png');
|
56 |
+
}
|
57 |
+
}
|
58 |
+
public function getAmericanExpressImage() {
|
59 |
+
if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
|
60 |
+
return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_american');
|
61 |
+
}else {
|
62 |
+
return $this->getSkinUrl('MOIP/transparente/imagem/AmericanExpress.png');
|
63 |
+
}
|
64 |
+
}
|
65 |
+
public function getHipercardImage() {
|
66 |
+
if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
|
67 |
+
return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_hipercard');
|
68 |
+
}else {
|
69 |
+
return $this->getSkinUrl('MOIP/transparente/imagem/Hipercard.png');
|
70 |
+
}
|
71 |
+
}
|
72 |
+
|
73 |
+
}
|
app/code/local/MOIP/Transparente/Block/Product/View.php
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class MOIP_Transparente_Block_Product_View extends Mage_Catalog_Block_Product_View{
|
3 |
+
public function __construct(){
|
4 |
+
parent::__construct();
|
5 |
+
}
|
6 |
+
public function getParcelamento($price, $method) {
|
7 |
+
$api = Mage::getModel('transparente/api');
|
8 |
+
if($price){
|
9 |
+
$parcelamento = $api->getParcelamento($price);
|
10 |
+
$parcela_decode = json_decode($parcelamento,true);
|
11 |
+
foreach ($parcela_decode as $key => $value):
|
12 |
+
if ($key <= Mage::getSingleton('transparente/standard')->getConfigData('nummaxparcelamax')):
|
13 |
+
$juros = $parcela_decode[$key]['juros'];
|
14 |
+
$parcelas_result = $parcela_decode[$key]['parcela'];
|
15 |
+
$total_parcelado = $parcela_decode[$key]['total_parcelado'];
|
16 |
+
if($juros > 0)
|
17 |
+
$asterisco = '';
|
18 |
+
else
|
19 |
+
$asterisco = ' sem juros';
|
20 |
+
$parcelas[]= $key.'x de '.$parcelas_result.$asterisco;
|
21 |
+
endif;
|
22 |
+
endforeach;
|
23 |
+
if($method == 'reduzido'){
|
24 |
+
return end($parcelas);
|
25 |
+
} elseif($method == 'integral') {
|
26 |
+
return $parcelas;
|
27 |
+
} else {
|
28 |
+
return ;
|
29 |
+
}
|
30 |
+
|
31 |
+
} else {
|
32 |
+
return ;
|
33 |
+
}
|
34 |
+
|
35 |
+
|
36 |
+
}
|
37 |
+
public function getVisaImage() {
|
38 |
+
if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
|
39 |
+
return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_visa');
|
40 |
+
}else {
|
41 |
+
return $this->getSkinUrl('MOIP/transparente/imagem/Visa.png');
|
42 |
+
}
|
43 |
+
}
|
44 |
+
public function getMastercardImage() {
|
45 |
+
if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
|
46 |
+
return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_master');
|
47 |
+
}else {
|
48 |
+
return $this->getSkinUrl('MOIP/transparente/imagem/Mastercard.png');
|
49 |
+
}
|
50 |
+
}
|
51 |
+
public function getDinersImage() {
|
52 |
+
if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
|
53 |
+
return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_diners');
|
54 |
+
}else {
|
55 |
+
return $this->getSkinUrl('MOIP/transparente/imagem/Diners.png');
|
56 |
+
}
|
57 |
+
}
|
58 |
+
public function getAmericanExpressImage() {
|
59 |
+
if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
|
60 |
+
return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_american');
|
61 |
+
}else {
|
62 |
+
return $this->getSkinUrl('MOIP/transparente/imagem/AmericanExpress.png');
|
63 |
+
}
|
64 |
+
}
|
65 |
+
public function getHipercardImage() {
|
66 |
+
if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
|
67 |
+
return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_hipercard');
|
68 |
+
}else {
|
69 |
+
return $this->getSkinUrl('MOIP/transparente/imagem/Hipercard.png');
|
70 |
+
}
|
71 |
+
}
|
72 |
+
|
73 |
+
}
|
app/code/local/MOIP/Transparente/Block/Standard/CartSave.php
CHANGED
@@ -60,9 +60,8 @@ class MOIP_Transparente_Block_Standard_CartSave extends Mage_Checkout_Block_Onep
|
|
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 =
|
66 |
$query = 'SELECT * FROM ' . $table .' WHERE customer_id='.$customerData->getID().' AND cofre IS NOT NULL';
|
67 |
$results = $readConnection->fetchAll($query);
|
68 |
if($results){
|
@@ -70,7 +69,6 @@ class MOIP_Transparente_Block_Standard_CartSave extends Mage_Checkout_Block_Onep
|
|
70 |
} else {
|
71 |
return 'false';
|
72 |
}
|
73 |
-
|
74 |
} else {
|
75 |
return 'false';
|
76 |
}
|
60 |
$data_array = array();
|
61 |
$customerData = Mage::getSingleton('customer/session')->getCustomer();
|
62 |
$resource = Mage::getSingleton('core/resource');
|
|
|
63 |
$readConnection = $resource->getConnection('core_read');
|
64 |
+
$table = (string) Mage::getConfig()->getTablePrefix().'moip_transparente';
|
65 |
$query = 'SELECT * FROM ' . $table .' WHERE customer_id='.$customerData->getID().' AND cofre IS NOT NULL';
|
66 |
$results = $readConnection->fetchAll($query);
|
67 |
if($results){
|
69 |
} else {
|
70 |
return 'false';
|
71 |
}
|
|
|
72 |
} else {
|
73 |
return 'false';
|
74 |
}
|
app/code/local/MOIP/Transparente/Block/Standard/Form.php
CHANGED
@@ -13,16 +13,20 @@
|
|
13 |
class MOIP_Transparente_Block_Standard_Form extends Mage_Payment_Block_Form {
|
14 |
|
15 |
protected function _construct() {
|
16 |
-
|
17 |
-
$transparente_layout
|
18 |
-
if ($transparente_layout == "Horizontal"):
|
19 |
$this->setTemplate('MOIP/transparente/horizontal_form.phtml');
|
20 |
-
else:
|
21 |
-
|
22 |
-
endif;
|
23 |
parent::_construct();
|
24 |
}
|
25 |
|
|
|
|
|
|
|
|
|
|
|
26 |
public function boletoDisponivel($dataToReturn) {
|
27 |
|
28 |
$_Produtos = Mage::getSingleton('checkout/cart')->getQuote()->getAllItems();
|
@@ -99,26 +103,36 @@ class MOIP_Transparente_Block_Standard_Form extends Mage_Payment_Block_Form {
|
|
99 |
//textos de desconto
|
100 |
public function getTextoBoleto($dataToReturn) {
|
101 |
$valor_pedido = Mage::getModel('checkout/session')->getQuote()->getGrandTotal();
|
|
|
102 |
if (Mage::getStoreConfig('moipall/pagamento_avancado/pagamento_boleto')) {
|
103 |
-
if ($valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor')) {
|
104 |
-
$textoresumo = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc')."%.";
|
105 |
-
}
|
106 |
-
$descontotexto = $textoresumo ."<br/>Págavel em qualquer banco, casas lotéricas ou via internet bank.";
|
107 |
|
108 |
|
109 |
-
|
110 |
-
|
111 |
-
$descontotexto = $textoresumo ."<br/>Págavel em qualquer banco, casas lotéricas ou via internet bank.";
|
112 |
-
}
|
113 |
|
114 |
-
|
115 |
-
|
116 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
}
|
118 |
-
|
119 |
-
$textoresumo = "Págavel em qualquer banco";
|
120 |
-
$descontotexto = "Págavel em qualquer banco, casas lotéricas ou via internet bank.";
|
121 |
-
}
|
122 |
if ($dataToReturn == 'preview') {
|
123 |
return $textoresumo;
|
124 |
} else if ($dataToReturn == "texto" ) {
|
@@ -128,21 +142,22 @@ class MOIP_Transparente_Block_Standard_Form extends Mage_Payment_Block_Form {
|
|
128 |
public function getTextoTranferencia($dataToReturn) {
|
129 |
$valor_pedido = Mage::getModel('checkout/session')->getQuote()->getGrandTotal();
|
130 |
if (Mage::getStoreConfig('moipall/pagamento_avancado/transf_desc')) {
|
131 |
-
if ($valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor'))
|
132 |
-
|
133 |
-
}
|
134 |
-
$descontotexto = $textoresumo ."<br/>Via internet bank.";
|
135 |
|
|
|
|
|
136 |
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
}
|
141 |
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
|
|
|
|
146 |
|
147 |
}else {
|
148 |
$textoresumo = "Via internet bank.";
|
@@ -271,19 +286,31 @@ class MOIP_Transparente_Block_Standard_Form extends Mage_Payment_Block_Form {
|
|
271 |
$parcelamento = $api->getParcelamento($cartTotal);
|
272 |
$parcela_decode = Mage::helper('core')->jsonDecode($parcelamento,true);
|
273 |
foreach ($parcela_decode as $key => $value) {
|
274 |
-
|
275 |
if ($key <= Mage::getSingleton('transparente/standard')->getConfigData('nummaxparcelamax')) {
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
$
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
287 |
}
|
288 |
}
|
289 |
}else {
|
@@ -333,16 +360,16 @@ class MOIP_Transparente_Block_Standard_Form extends Mage_Payment_Block_Form {
|
|
333 |
$resource = Mage::getSingleton('core/resource');
|
334 |
|
335 |
$readConnection = $resource->getConnection('core_read');
|
336 |
-
$
|
337 |
-
|
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 |
}
|
@@ -368,9 +395,14 @@ class MOIP_Transparente_Block_Standard_Form extends Mage_Payment_Block_Form {
|
|
368 |
}
|
369 |
|
370 |
public function getBoletoPrice() {
|
|
|
371 |
$desconto = 0;
|
372 |
-
$valor_pedido = Mage::getModel('checkout/session')->getQuote()->
|
373 |
-
|
|
|
|
|
|
|
|
|
374 |
if ($valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor')) {
|
375 |
$desconto = (float)Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc');
|
376 |
}
|
@@ -381,19 +413,28 @@ class MOIP_Transparente_Block_Standard_Form extends Mage_Payment_Block_Form {
|
|
381 |
if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ) {
|
382 |
$desconto = (float)Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc3');
|
383 |
}
|
384 |
-
|
|
|
|
|
385 |
}
|
386 |
|
387 |
else {
|
388 |
-
return
|
389 |
}
|
390 |
|
391 |
|
|
|
|
|
|
|
392 |
}
|
393 |
|
394 |
public function getTransferenciaPrice() {
|
395 |
$desconto = 0;
|
396 |
-
$valor_pedido = Mage::getModel('checkout/session')->getQuote()->
|
|
|
|
|
|
|
|
|
397 |
if (Mage::getStoreConfig('moipall/pagamento_avancado/transf_desc')) {
|
398 |
if ($valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor')) {
|
399 |
$desconto = (float)Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc');
|
@@ -405,12 +446,27 @@ class MOIP_Transparente_Block_Standard_Form extends Mage_Payment_Block_Form {
|
|
405 |
if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ) {
|
406 |
$desconto = (float)Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc3');
|
407 |
}
|
408 |
-
|
|
|
|
|
409 |
}
|
410 |
|
411 |
else {
|
412 |
-
return
|
413 |
}
|
414 |
|
415 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
416 |
}
|
13 |
class MOIP_Transparente_Block_Standard_Form extends Mage_Payment_Block_Form {
|
14 |
|
15 |
protected function _construct() {
|
16 |
+
#$transparente_layout = Mage::getStoreConfig('moipall/config/transparente_layout');
|
17 |
+
#if ($transparente_layout == "Horizontal"):
|
|
|
18 |
$this->setTemplate('MOIP/transparente/horizontal_form.phtml');
|
19 |
+
#else:
|
20 |
+
# $this->setTemplate('MOIP/transparente/vertical_form.phtml');
|
21 |
+
#endif;
|
22 |
parent::_construct();
|
23 |
}
|
24 |
|
25 |
+
|
26 |
+
protected function _prepareLayout() {
|
27 |
+
$this->setChild('scripts', $this->getLayout()->createBlock('core/template') ->setTemplate('MOIP/transparente/script.phtml'));
|
28 |
+
return parent::_prepareLayout();
|
29 |
+
}
|
30 |
public function boletoDisponivel($dataToReturn) {
|
31 |
|
32 |
$_Produtos = Mage::getSingleton('checkout/cart')->getQuote()->getAllItems();
|
103 |
//textos de desconto
|
104 |
public function getTextoBoleto($dataToReturn) {
|
105 |
$valor_pedido = Mage::getModel('checkout/session')->getQuote()->getGrandTotal();
|
106 |
+
$textoresumo = "";
|
107 |
if (Mage::getStoreConfig('moipall/pagamento_avancado/pagamento_boleto')) {
|
|
|
|
|
|
|
|
|
108 |
|
109 |
|
110 |
+
if ($valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor'))
|
111 |
+
{
|
|
|
|
|
112 |
|
113 |
+
if ($valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') && (int)Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') != 0)
|
114 |
+
{
|
115 |
+
|
116 |
+
$textoresumo = "Desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc2')."%.";
|
117 |
+
$descontotexto = $textoresumo ."<br/>Págavel em qualquer banco, casas lotéricas ou via internet bank.";
|
118 |
+
}
|
119 |
+
|
120 |
+
else {
|
121 |
+
|
122 |
+
$textoresumo = "Desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc')."%.";
|
123 |
+
$descontotexto = $textoresumo ."<br/>Págavel em qualquer banco, casas lotéricas ou via internet bank.";
|
124 |
+
}
|
125 |
+
}
|
126 |
+
else {
|
127 |
+
$textoresumo = "Págavel em qualquer banco";
|
128 |
+
$descontotexto = "Págavel em qualquer banco, casas lotéricas ou via internet bank.";
|
129 |
+
}
|
130 |
+
|
131 |
+
} else {
|
132 |
+
$textoresumo = "Págavel em qualquer banco";
|
133 |
+
$descontotexto = "Págavel em qualquer banco, casas lotéricas ou via internet bank.";
|
134 |
}
|
135 |
+
|
|
|
|
|
|
|
136 |
if ($dataToReturn == 'preview') {
|
137 |
return $textoresumo;
|
138 |
} else if ($dataToReturn == "texto" ) {
|
142 |
public function getTextoTranferencia($dataToReturn) {
|
143 |
$valor_pedido = Mage::getModel('checkout/session')->getQuote()->getGrandTotal();
|
144 |
if (Mage::getStoreConfig('moipall/pagamento_avancado/transf_desc')) {
|
145 |
+
if ($valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor'))
|
146 |
+
{
|
|
|
|
|
147 |
|
148 |
+
if ($valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') && (int)Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') != 0)
|
149 |
+
{
|
150 |
|
151 |
+
$textoresumo = "Desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc2')."%.";
|
152 |
+
$descontotexto = $textoresumo;
|
153 |
+
}
|
|
|
154 |
|
155 |
+
else {
|
156 |
+
|
157 |
+
$textoresumo = "Desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc')."%.";
|
158 |
+
$descontotexto = $textoresumo;
|
159 |
+
}
|
160 |
+
}
|
161 |
|
162 |
}else {
|
163 |
$textoresumo = "Via internet bank.";
|
286 |
$parcelamento = $api->getParcelamento($cartTotal);
|
287 |
$parcela_decode = Mage::helper('core')->jsonDecode($parcelamento,true);
|
288 |
foreach ($parcela_decode as $key => $value) {
|
289 |
+
|
290 |
if ($key <= Mage::getSingleton('transparente/standard')->getConfigData('nummaxparcelamax')) {
|
291 |
+
|
292 |
+
if (Mage::getStoreConfig('moipall/config/transparente_layout') == "Horizontal")
|
293 |
+
{
|
294 |
+
$juros = $parcela_decode[$key]['juros'];
|
295 |
+
$parcelas_result = $parcela_decode[$key]['parcela'];
|
296 |
+
$total_parcelado = $parcela_decode[$key]['total_parcelado'];
|
297 |
+
if($juros > 0)
|
298 |
+
$asterisco = '*';
|
299 |
+
else
|
300 |
+
$asterisco = '';
|
301 |
+
$parcelas[]= '<option value="'.$key.'">'.$key.'x de '.$parcelas_result.' no total de '.$total_parcelado.' '.$asterisco.'</option>';
|
302 |
+
} else {
|
303 |
+
$juros = $parcela_decode[$key]['juros'];
|
304 |
+
$parcelas_result = $parcela_decode[$key]['parcela'];
|
305 |
+
$total_parcelado = $parcela_decode[$key]['total_parcelado'];
|
306 |
+
if($juros > 0)
|
307 |
+
$asterisco = '*';
|
308 |
+
else
|
309 |
+
$asterisco = '';
|
310 |
+
|
311 |
+
$parcelas[]= '<li><input type="radio" name="payment[credito_parcelamento]" title="Selecione as Parcelas" id="credito_parcelamento" class="input-radio validate-one-required-by-name" value="'.$key.'"><label>'.$key.'x de '.$parcelas_result.' no total de '.$total_parcelado.' '.$asterisco.'</label></li>';
|
312 |
+
}
|
313 |
+
|
314 |
}
|
315 |
}
|
316 |
}else {
|
360 |
$resource = Mage::getSingleton('core/resource');
|
361 |
|
362 |
$readConnection = $resource->getConnection('core_read');
|
363 |
+
$table = (string) Mage::getConfig()->getTablePrefix().'moip_transparente';
|
364 |
+
|
365 |
$query = 'SELECT * FROM ' . $table .' WHERE customer_id='.$customerData->getID().' AND cofre IS NOT NULL';
|
366 |
$results = $readConnection->fetchAll($query);
|
367 |
if($results){
|
368 |
return Mage::helper('core')->jsonEncode((object)$results);
|
369 |
} else {
|
370 |
+
return 'false';
|
371 |
}
|
372 |
+
|
373 |
} else {
|
374 |
return 'false';
|
375 |
}
|
395 |
}
|
396 |
|
397 |
public function getBoletoPrice() {
|
398 |
+
|
399 |
$desconto = 0;
|
400 |
+
$valor_pedido = Mage::getModel('checkout/session')->getQuote()->getSubtotal();
|
401 |
+
$cart = Mage::getModel('checkout/session')->getQuote();
|
402 |
+
$shippingMethod = $cart->getShippingAddress();
|
403 |
+
$price_shipping = $shippingMethod['shipping_amount'];
|
404 |
+
$valor_pedido = Mage::getModel('checkout/session')->getQuote()->getSubtotal();
|
405 |
+
if (Mage::getStoreConfig('moipall/pagamento_avancado/transf_desc')) {
|
406 |
if ($valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor')) {
|
407 |
$desconto = (float)Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc');
|
408 |
}
|
413 |
if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ) {
|
414 |
$desconto = (float)Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc3');
|
415 |
}
|
416 |
+
$valor_pre = (float)$valor_pedido-((float)$valor_pedido/100*$desconto);
|
417 |
+
$valor_pedido = $valor_pre + $price_shipping;
|
418 |
+
return Mage::helper('core')->currency($valor_pedido,true,false);
|
419 |
}
|
420 |
|
421 |
else {
|
422 |
+
return Mage::helper('core')->currency($valor_pedido,true,false);
|
423 |
}
|
424 |
|
425 |
|
426 |
+
|
427 |
+
|
428 |
+
|
429 |
}
|
430 |
|
431 |
public function getTransferenciaPrice() {
|
432 |
$desconto = 0;
|
433 |
+
$valor_pedido = Mage::getModel('checkout/session')->getQuote()->getSubtotal();
|
434 |
+
$cart = Mage::getModel('checkout/session')->getQuote();
|
435 |
+
$shippingMethod = $cart->getShippingAddress();
|
436 |
+
$price_shipping = $shippingMethod['shipping_amount'];
|
437 |
+
$valor_pedido = Mage::getModel('checkout/session')->getQuote()->getSubtotal();
|
438 |
if (Mage::getStoreConfig('moipall/pagamento_avancado/transf_desc')) {
|
439 |
if ($valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor')) {
|
440 |
$desconto = (float)Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc');
|
446 |
if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ) {
|
447 |
$desconto = (float)Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc3');
|
448 |
}
|
449 |
+
$valor_pre = (float)$valor_pedido-((float)$valor_pedido/100*$desconto);
|
450 |
+
$valor_pedido = $valor_pre + $price_shipping;
|
451 |
+
return Mage::helper('core')->currency($valor_pedido,true,false);
|
452 |
}
|
453 |
|
454 |
else {
|
455 |
+
return Mage::helper('core')->currency($valor_pedido,true,false);
|
456 |
}
|
457 |
|
458 |
}
|
459 |
+
public function getCheckout() {
|
460 |
+
return Mage::getSingleton('checkout/session');
|
461 |
+
}
|
462 |
+
|
463 |
+
|
464 |
+
public function getQuote() {
|
465 |
+
return $this->getCheckout()->getQuote();
|
466 |
+
}
|
467 |
+
|
468 |
+
|
469 |
+
public function getOnepage() {
|
470 |
+
return (string)Mage::getSingleton('checkout/type_onepage');
|
471 |
+
}
|
472 |
}
|
app/code/local/MOIP/Transparente/Block/Standard/Redirect.php
CHANGED
@@ -4,16 +4,16 @@ class MOIP_Transparente_Block_Standard_Redirect extends Mage_Checkout_Block_Onep
|
|
4 |
parent::__construct();
|
5 |
}
|
6 |
public function getSaveDate($order, $result_decode, $customerData = null, $pgtoArray, $client_array){
|
7 |
-
|
8 |
-
if (Mage::getSingleton('transparente/standard')->getConfigData('ambiente') == "teste") {
|
9 |
$url = "https://desenvolvedor.moip.com.br/sandbox/Instrucao.do?token=";
|
10 |
}
|
11 |
else {
|
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.');
|
@@ -33,8 +33,8 @@ class MOIP_Transparente_Block_Standard_Redirect extends Mage_Checkout_Block_Onep
|
|
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']);
|
@@ -52,7 +52,7 @@ class MOIP_Transparente_Block_Standard_Redirect extends Mage_Checkout_Block_Onep
|
|
52 |
$model->setToken($result_decode['token']);
|
53 |
$model->setStatus_token($result_decode['status']);
|
54 |
$model->save();
|
55 |
-
|
56 |
try{
|
57 |
$order_send = Mage::getModel('sales/order')->load($order, 'increment_id');
|
58 |
$order_send->sendNewOrderEmail();
|
@@ -60,15 +60,35 @@ class MOIP_Transparente_Block_Standard_Redirect extends Mage_Checkout_Block_Onep
|
|
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"){
|
@@ -115,19 +135,19 @@ class MOIP_Transparente_Block_Standard_Redirect extends Mage_Checkout_Block_Onep
|
|
115 |
}
|
116 |
$json = Mage::helper('core')->jsonEncode((object)$json);
|
117 |
return $json;
|
118 |
-
|
119 |
}
|
120 |
public function getOrder_dados($order_dados){
|
121 |
-
|
122 |
return $order_dados;
|
123 |
}
|
124 |
-
|
125 |
public function getErroCartao($result_decode)
|
126 |
{
|
127 |
if(array_key_exists('errors', $result_decode)){
|
128 |
$dados_ErroCartao = array();
|
129 |
$dados_ErroCartao['errors'] = $result_decode->errors;
|
130 |
-
foreach ($result_decode->errors as $key => $value)
|
131 |
{
|
132 |
$dados_ErroCartao['code'] = $value->code;
|
133 |
$dados_ErroCartao['description'] = $value->description;
|
@@ -139,16 +159,16 @@ class MOIP_Transparente_Block_Standard_Redirect extends Mage_Checkout_Block_Onep
|
|
139 |
}
|
140 |
}
|
141 |
public function getCartao($result_decode, $pagamento)
|
142 |
-
{
|
143 |
-
|
144 |
return false;
|
145 |
-
|
146 |
}
|
147 |
public function getTrackingTransparente($order_dados)
|
148 |
{
|
149 |
-
|
150 |
$order = Mage::getModel('sales/order')->loadByIncrementId($order_dados['id_transacao']);
|
151 |
-
$orderIds = $order->getId();
|
152 |
$collection = Mage::getResourceModel('sales/order_collection')
|
153 |
->addFieldToFilter('entity_id', array('in' => $orderIds))
|
154 |
;
|
@@ -170,44 +190,44 @@ class MOIP_Transparente_Block_Standard_Redirect extends Mage_Checkout_Block_Onep
|
|
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 |
}
|
193 |
$result[] = "_gaq.push(['_trackTrans']);";
|
194 |
}
|
195 |
-
|
196 |
return implode("\n", $result);
|
197 |
}
|
198 |
|
199 |
public function getTrans_Transparente($result_decode, $pagamento)
|
200 |
-
{
|
201 |
-
|
202 |
return true;
|
203 |
}
|
204 |
|
205 |
public function getBoleto_Transparente($result_decode)
|
206 |
-
{
|
207 |
-
|
208 |
return true;
|
209 |
}
|
210 |
-
|
211 |
private function getBarcode($valor){
|
212 |
$fino = 1 ;
|
213 |
$largo = 3 ;
|
@@ -242,7 +262,7 @@ class MOIP_Transparente_Block_Standard_Redirect extends Mage_Checkout_Block_Onep
|
|
242 |
$texto = $valor ;
|
243 |
if((strlen($texto) % 2) <> 0){
|
244 |
$texto = "0" . $texto;
|
245 |
-
}
|
246 |
while (strlen($texto) > 0) {
|
247 |
$i = round($this->esquerda($texto,2));
|
248 |
$texto = $this->direita($texto,strlen($texto)-2);
|
4 |
parent::__construct();
|
5 |
}
|
6 |
public function getSaveDate($order, $result_decode, $customerData = null, $pgtoArray, $client_array){
|
7 |
+
|
8 |
+
if (Mage::getSingleton('transparente/standard')->getConfigData('ambiente') == "teste") {
|
9 |
$url = "https://desenvolvedor.moip.com.br/sandbox/Instrucao.do?token=";
|
10 |
}
|
11 |
else {
|
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.');
|
33 |
if($pgtoArray['use_cofre'] != 1){
|
34 |
$model->setbrand_transparente($brand);
|
35 |
$model->setCreditcard_parc($pgtoArray['credito_parcelamento']);
|
36 |
+
$model->setFirst6(substr((string)$pgtoArray['credito_numero'], 0, 6));
|
37 |
+
$model->setLast4(substr((string)$pgtoArray['credito_numero'],-4,4));
|
38 |
} else {
|
39 |
$model->setbrand_transparente($pgtoArray['cofre_brand']);
|
40 |
$model->setCreditcard_parc($pgtoArray['cofre_parcelamento']);
|
52 |
$model->setToken($result_decode['token']);
|
53 |
$model->setStatus_token($result_decode['status']);
|
54 |
$model->save();
|
55 |
+
|
56 |
try{
|
57 |
$order_send = Mage::getModel('sales/order')->load($order, 'increment_id');
|
58 |
$order_send->sendNewOrderEmail();
|
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 |
+
|
73 |
+
|
74 |
+
public function getOrder()
|
75 |
+
{
|
76 |
+
$orderId = Mage::getSingleton('checkout/session')->getLastRealOrderId();
|
77 |
+
|
78 |
+
$current_order = Mage::getModel('sales/order')->getCollection()
|
79 |
+
->addFieldToFilter('increment_id', $orderId);
|
80 |
+
|
81 |
+
if($current_order) {
|
82 |
+
foreach( $current_order as $order ) {
|
83 |
+
$final = $order;
|
84 |
+
break;
|
85 |
+
}
|
86 |
+
}
|
87 |
+
|
88 |
+
return $final;
|
89 |
+
}
|
90 |
+
|
91 |
+
|
92 |
public function getJson($pgtoArray){
|
93 |
|
94 |
if($pgtoArray['forma_pagamento'] == "BoletoBancario"){
|
135 |
}
|
136 |
$json = Mage::helper('core')->jsonEncode((object)$json);
|
137 |
return $json;
|
138 |
+
|
139 |
}
|
140 |
public function getOrder_dados($order_dados){
|
141 |
+
|
142 |
return $order_dados;
|
143 |
}
|
144 |
+
|
145 |
public function getErroCartao($result_decode)
|
146 |
{
|
147 |
if(array_key_exists('errors', $result_decode)){
|
148 |
$dados_ErroCartao = array();
|
149 |
$dados_ErroCartao['errors'] = $result_decode->errors;
|
150 |
+
foreach ($result_decode->errors as $key => $value)
|
151 |
{
|
152 |
$dados_ErroCartao['code'] = $value->code;
|
153 |
$dados_ErroCartao['description'] = $value->description;
|
159 |
}
|
160 |
}
|
161 |
public function getCartao($result_decode, $pagamento)
|
162 |
+
{
|
163 |
+
|
164 |
return false;
|
165 |
+
|
166 |
}
|
167 |
public function getTrackingTransparente($order_dados)
|
168 |
{
|
169 |
+
|
170 |
$order = Mage::getModel('sales/order')->loadByIncrementId($order_dados['id_transacao']);
|
171 |
+
$orderIds = $order->getId();
|
172 |
$collection = Mage::getResourceModel('sales/order_collection')
|
173 |
->addFieldToFilter('entity_id', array('in' => $orderIds))
|
174 |
;
|
190 |
$this->jsQuoteEscape(Mage::helper('core')->escapeHtml($address->getCountry()))
|
191 |
);
|
192 |
foreach ($order->getAllVisibleItems() as $item) {
|
193 |
+
$cProduct = Mage::getModel('catalog/product');
|
194 |
+
$cProductId = $cProduct->getIdBySku($item->getSku());
|
195 |
+
$cProduct->load($cProductId);
|
196 |
+
$category_list = "";
|
197 |
+
$cats = $cProduct->getCategoryCollection()->exportToArray();
|
198 |
+
|
199 |
+
foreach($cats as $cat){
|
200 |
+
$category_list .= Mage::getModel('catalog/category')->load($cat['entity_id'])->getName()."|";
|
201 |
}
|
202 |
+
|
203 |
+
|
204 |
+
$category_list = rtrim($category_list,"|");
|
205 |
|
206 |
$result[] = sprintf("_gaq.push(['_addItem', '%s', '%s', '%s', '%s', '%s', '%s']);",
|
207 |
$order->getIncrementId(),
|
208 |
$this->jsQuoteEscape($item->getSku()), $this->jsQuoteEscape($item->getName()),
|
209 |
+
$category_list,
|
210 |
$item->getBasePrice(), $item->getQtyOrdered()
|
211 |
);
|
212 |
}
|
213 |
$result[] = "_gaq.push(['_trackTrans']);";
|
214 |
}
|
215 |
+
|
216 |
return implode("\n", $result);
|
217 |
}
|
218 |
|
219 |
public function getTrans_Transparente($result_decode, $pagamento)
|
220 |
+
{
|
221 |
+
|
222 |
return true;
|
223 |
}
|
224 |
|
225 |
public function getBoleto_Transparente($result_decode)
|
226 |
+
{
|
227 |
+
|
228 |
return true;
|
229 |
}
|
230 |
+
|
231 |
private function getBarcode($valor){
|
232 |
$fino = 1 ;
|
233 |
$largo = 3 ;
|
262 |
$texto = $valor ;
|
263 |
if((strlen($texto) % 2) <> 0){
|
264 |
$texto = "0" . $texto;
|
265 |
+
}
|
266 |
while (strlen($texto) > 0) {
|
267 |
$i = round($this->esquerda($texto,2));
|
268 |
$texto = $this->direita($texto,strlen($texto)-2);
|
app/code/local/MOIP/Transparente/Block/Standard/SuccessDetails.php
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class MOIP_Transparente_Block_Standard_SuccessDetails extends Mage_Sales_Block_Items_Abstract{
|
3 |
+
|
4 |
+
public function __construct(){
|
5 |
+
parent::__construct();
|
6 |
+
}
|
7 |
+
public function getOrder()
|
8 |
+
{
|
9 |
+
$orderId = Mage::getSingleton('checkout/session')->getLastRealOrderId();
|
10 |
+
|
11 |
+
$current_order = Mage::getModel('sales/order')->getCollection()
|
12 |
+
->addFieldToFilter('increment_id', $orderId);
|
13 |
+
|
14 |
+
if($current_order) {
|
15 |
+
foreach( $current_order as $order ) {
|
16 |
+
$final = $order;
|
17 |
+
break;
|
18 |
+
}
|
19 |
+
}
|
20 |
+
|
21 |
+
return $final;
|
22 |
+
}
|
23 |
+
|
24 |
+
}
|
25 |
+
?>
|
app/code/local/MOIP/Transparente/Model/Api.php
CHANGED
@@ -24,7 +24,22 @@ class MOIP_Transparente_Model_Api {
|
|
24 |
$this->ambiente = $ambiente;
|
25 |
}
|
26 |
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
public function generatePedido($data, $pgto) {
|
30 |
if($pgto['credito_parcelamento'] == ""){
|
@@ -44,58 +59,25 @@ class MOIP_Transparente_Model_Api {
|
|
44 |
$valorcompra = $amout;
|
45 |
$vcmentoboleto = $standard->getConfigData('vcmentoboleto');
|
46 |
$vcmento = date('c', strtotime("+" . $vcmentoboleto . " days"));
|
47 |
-
|
48 |
if($pgto['tipoderecebimento'] =="0"):
|
49 |
$tipoderecebimento = "Parcelado";
|
50 |
else:
|
51 |
-
$tipoderecebimento = "Avista";
|
52 |
endif;
|
53 |
-
|
54 |
$tipo_parcelamento = Mage::getSingleton('transparente/standard')->getConfigData('jurostipo');
|
55 |
|
56 |
$comissionamento = Mage::getStoreConfig('moipall/mktplace/comissionamento');
|
57 |
|
58 |
|
59 |
-
if ($meio == "BoletoBancario"):
|
60 |
-
if (Mage::getStoreConfig('moipall/pagamento_avancado/pagamento_boleto')):
|
61 |
-
$valorcompra = $amout;
|
62 |
-
if ($valorcompra >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor'))
|
63 |
-
{
|
64 |
-
$valorcompra = $valorcompra - $valorcompra * Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc') / 100;
|
65 |
-
}
|
66 |
-
if ($valorcompra < Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3'))
|
67 |
-
{
|
68 |
-
$valorcompra = $valorcompra - $valorcompra * Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc2') / 100;
|
69 |
-
}
|
70 |
-
if ($valorcompra >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3')){
|
71 |
-
$valorcompra = $valorcompra - $valorcompra * Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc3') / 100;
|
72 |
-
};
|
73 |
-
endif;
|
74 |
-
endif;
|
75 |
|
76 |
-
if ($meio == "DebitoBancario"):
|
77 |
-
$valorcompra = $amout;
|
78 |
-
if (Mage::getStoreConfig('moipall/pagamento_avancado/transf_desc')):
|
79 |
-
$valorcompra = $amout;
|
80 |
-
if ($valorcompra >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor'))
|
81 |
-
{
|
82 |
-
$valorcompra = $valorcompra - $valorcompra * Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc') / 100;
|
83 |
-
}
|
84 |
-
if ($valorcompra < Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3'))
|
85 |
-
{
|
86 |
-
$valorcompra = $valorcompra - $valorcompra * Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc2') / 100;
|
87 |
-
}
|
88 |
-
if ($valorcompra >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3')){
|
89 |
-
$valorcompra = $valorcompra - $valorcompra * Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc3') / 100;
|
90 |
-
};
|
91 |
-
endif;
|
92 |
-
endif;
|
93 |
|
94 |
-
|
95 |
$rand = rand(1000,9999999999);
|
96 |
-
|
97 |
$id_proprio = $rand.$pgto['conta_transparente'].'_'.$data['id_transacao'];
|
98 |
-
|
99 |
# $xml = $this->generateXml($json);
|
100 |
$xml = new SimpleXMLElement('<?xml version = "1.0" encoding = "UTF-8"?><EnviarInstrucao/>');
|
101 |
$InstrucaoUnica = $xml->addChild('InstrucaoUnica');
|
@@ -108,6 +90,7 @@ class MOIP_Transparente_Model_Api {
|
|
108 |
$Recebedor->addChild('LoginMoIP', $pgto['conta_transparente']);
|
109 |
$Recebedor->addChild('Apelido', $pgto['apelido']);
|
110 |
|
|
|
111 |
if($comissionamento){
|
112 |
$Comissoes = $InstrucaoUnica->addChild('Comissoes');
|
113 |
$Comissionamento = $Comissoes->addChild('Comissionamento');
|
@@ -117,10 +100,20 @@ class MOIP_Transparente_Model_Api {
|
|
117 |
$Comissionamento->addChild('ValorPercentual', Mage::getStoreConfig('moipall/mktplace/porc_comissionamento'));
|
118 |
if(Mage::getStoreConfig('moipall/mktplace/pagadordataxa')){
|
119 |
$PagadorTaxa = $Comissoes->addChild('PagadorTaxa');
|
120 |
-
$PagadorTaxa->addChild('LoginMoIP',Mage::getStoreConfig('moipall/mktplace/logincomissionamento'));
|
121 |
}
|
122 |
}
|
123 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
$InstrucaoUnica->addChild('IdProprio', $id_proprio);
|
125 |
$Pagador = $InstrucaoUnica->addChild('Pagador');
|
126 |
$Pagador->addChild('Nome',$data['pagador_nome']);
|
@@ -128,7 +121,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',
|
132 |
$EnderecoCobranca->addChild('Complemento', $data['pagador_complemento']);
|
133 |
$EnderecoCobranca->addChild('Bairro', $data['pagador_bairro']);
|
134 |
$EnderecoCobranca->addChild('Cidade', $data['pagador_cidade']);
|
@@ -158,7 +151,7 @@ class MOIP_Transparente_Model_Api {
|
|
158 |
$Parcelamento->addChild('MinimoParcelas',$max_parcelas+1);
|
159 |
$Parcelamento->addChild('MaximoParcelas',12);
|
160 |
$Parcelamento->addChild('Recebimento',$tipoderecebimento);
|
161 |
-
$Parcelamento->addChild('Juros',1.99);
|
162 |
}
|
163 |
} else {
|
164 |
for ($i=2; $i <= 12; $i++) {
|
@@ -208,7 +201,7 @@ class MOIP_Transparente_Model_Api {
|
|
208 |
$primeiro = 1;
|
209 |
$max_div = $valor/(int)Mage::getSingleton('transparente/standard')->getConfigData('valorminimoparcela');
|
210 |
$valor_juros= Mage::getSingleton('transparente/standard')->getConfigData('parcelamento_c_juros1');
|
211 |
-
|
212 |
if($valor <= Mage::getSingleton('transparente/standard')->getConfigData('valorminimoparcela')){
|
213 |
$json_parcelas[1] = array(
|
214 |
'parcela' => Mage::helper('core')->currency($valor, true, false),
|
@@ -235,9 +228,9 @@ class MOIP_Transparente_Model_Api {
|
|
235 |
$juros[$i] = 0;
|
236 |
}
|
237 |
if($i <= Mage::getSingleton('transparente/standard')->getConfigData('nummaxparcelamax')){
|
238 |
-
$json_parcelas[$i] = array(
|
239 |
'parcela' => Mage::helper('core')->currency($parcelas[$i], true, false),
|
240 |
-
'total_parcelado' => Mage::helper('core')->currency($total_parcelado[$i], true, false),
|
241 |
'juros' => $juros[$i]
|
242 |
);
|
243 |
$primeiro++;
|
@@ -250,10 +243,10 @@ class MOIP_Transparente_Model_Api {
|
|
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),
|
256 |
-
'total_parcelado' => Mage::helper('core')->currency($total_parcelado[$primeiro], true, false),
|
257 |
'juros' => '2.99'
|
258 |
);
|
259 |
$primeiro++;
|
@@ -271,7 +264,7 @@ class MOIP_Transparente_Model_Api {
|
|
271 |
$juros = array();
|
272 |
$primeiro = 1;
|
273 |
$max_div = (int)($valor/Mage::getSingleton('transparente/standard')->getConfigData('valorminimoparcela'));
|
274 |
-
|
275 |
if($valor <= Mage::getSingleton('transparente/standard')->getConfigData('valorminimoparcela')){
|
276 |
$json_parcelas[1] = array(
|
277 |
'parcela' => Mage::helper('core')->currency($valor, true, false),
|
@@ -289,7 +282,7 @@ class MOIP_Transparente_Model_Api {
|
|
289 |
|
290 |
for ($i=1; $i <= $max_div; $i++) {
|
291 |
$juros_parcela = 's_juros'.$i;
|
292 |
-
|
293 |
if($i > 1){
|
294 |
$taxa = $parcelamento[$juros_parcela] / 100;
|
295 |
$valor_add = $valor * $taxa;
|
@@ -303,9 +296,9 @@ class MOIP_Transparente_Model_Api {
|
|
303 |
$juros[$i] = 0;
|
304 |
}
|
305 |
if($i <= Mage::getSingleton('transparente/standard')->getConfigData('nummaxparcelamax')){
|
306 |
-
$json_parcelas[$i] = array(
|
307 |
'parcela' => Mage::helper('core')->currency($parcelas[$i], true, false),
|
308 |
-
'total_parcelado' => Mage::helper('core')->currency($total_parcelado[$i], true, false),
|
309 |
'juros' => $juros[$i]
|
310 |
);
|
311 |
}
|
@@ -316,7 +309,7 @@ class MOIP_Transparente_Model_Api {
|
|
316 |
}
|
317 |
|
318 |
public function getParcelamento($valor) {
|
319 |
-
|
320 |
$tipo_parcelamento = Mage::getSingleton('transparente/standard')->getConfigData('jurostipo');
|
321 |
|
322 |
if($tipo_parcelamento == 1){
|
@@ -326,23 +319,23 @@ class MOIP_Transparente_Model_Api {
|
|
326 |
}
|
327 |
|
328 |
return $tipo;
|
329 |
-
|
330 |
}
|
331 |
|
332 |
public function getJurosSimples($valor, $juros, $parcela) {
|
333 |
-
|
334 |
return $valParcela;
|
335 |
}
|
336 |
|
337 |
public function getJurosComposto($valor, $juros, $parcela) {
|
338 |
$principal = $valor;
|
339 |
if($juros != 0){
|
340 |
-
$taxa = $juros/100;
|
341 |
$valParcela = ($principal * $taxa)/(1 - (pow(1/(1+$taxa), $parcela)));
|
342 |
} else {
|
343 |
$valParcela = $principal/$parcela;
|
344 |
}
|
345 |
-
|
346 |
return $valParcela;
|
347 |
}
|
348 |
|
24 |
$this->ambiente = $ambiente;
|
25 |
}
|
26 |
|
27 |
+
public function getListaComissoesAvancadas($order, $meio) {
|
28 |
+
$valor_comissao = 20/100;
|
29 |
+
|
30 |
+
foreach ($order->getAllVisibleItems() as $key => $item)
|
31 |
+
{
|
32 |
+
$product = Mage::getModel('catalog/product')->load($item->getProductId());
|
33 |
+
$comissao_valor= $item->getPrice()-($item->getPrice()*$valor_comissao);
|
34 |
+
$comissoes[] = array (
|
35 |
+
'Razao' => 'Produto '.$item->getName().' x '.$item->getQtyToInvoice().' sku: '. $item->getSku(),
|
36 |
+
'LoginMoIP' => $product->getAttributeText('loginmoip'),
|
37 |
+
'ValorFixo' => $comissao_valor
|
38 |
+
);
|
39 |
+
}
|
40 |
+
|
41 |
+
return $comissoes;
|
42 |
+
}
|
43 |
|
44 |
public function generatePedido($data, $pgto) {
|
45 |
if($pgto['credito_parcelamento'] == ""){
|
59 |
$valorcompra = $amout;
|
60 |
$vcmentoboleto = $standard->getConfigData('vcmentoboleto');
|
61 |
$vcmento = date('c', strtotime("+" . $vcmentoboleto . " days"));
|
62 |
+
|
63 |
if($pgto['tipoderecebimento'] =="0"):
|
64 |
$tipoderecebimento = "Parcelado";
|
65 |
else:
|
66 |
+
$tipoderecebimento = "Avista";
|
67 |
endif;
|
68 |
+
|
69 |
$tipo_parcelamento = Mage::getSingleton('transparente/standard')->getConfigData('jurostipo');
|
70 |
|
71 |
$comissionamento = Mage::getStoreConfig('moipall/mktplace/comissionamento');
|
72 |
|
73 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
|
76 |
+
|
77 |
$rand = rand(1000,9999999999);
|
78 |
+
|
79 |
$id_proprio = $rand.$pgto['conta_transparente'].'_'.$data['id_transacao'];
|
80 |
+
|
81 |
# $xml = $this->generateXml($json);
|
82 |
$xml = new SimpleXMLElement('<?xml version = "1.0" encoding = "UTF-8"?><EnviarInstrucao/>');
|
83 |
$InstrucaoUnica = $xml->addChild('InstrucaoUnica');
|
90 |
$Recebedor->addChild('LoginMoIP', $pgto['conta_transparente']);
|
91 |
$Recebedor->addChild('Apelido', $pgto['apelido']);
|
92 |
|
93 |
+
|
94 |
if($comissionamento){
|
95 |
$Comissoes = $InstrucaoUnica->addChild('Comissoes');
|
96 |
$Comissionamento = $Comissoes->addChild('Comissionamento');
|
100 |
$Comissionamento->addChild('ValorPercentual', Mage::getStoreConfig('moipall/mktplace/porc_comissionamento'));
|
101 |
if(Mage::getStoreConfig('moipall/mktplace/pagadordataxa')){
|
102 |
$PagadorTaxa = $Comissoes->addChild('PagadorTaxa');
|
103 |
+
$PagadorTaxa->addChild('LoginMoIP',Mage::getStoreConfig('moipall/mktplace/logincomissionamento'));
|
104 |
}
|
105 |
}
|
106 |
+
/* suprimido para comissionamento simples
|
107 |
+
$comissioes_avancadas = $this->getListaComissoesAvancadas($order, $pgto['forma_pagamento']);
|
108 |
+
$Comissoes = $InstrucaoUnica->addChild('Comissoes');
|
109 |
+
foreach ($comissioes_avancadas as $key => $value) {
|
110 |
+
$Comissionamento = $Comissoes->addChild('Comissionamento');
|
111 |
+
$Comissionamento->addChild('Razao', $value['Razao']);
|
112 |
+
$Comissionado = $Comissionamento->addChild('Comissionado');
|
113 |
+
$Comissionado->addChild('LoginMoIP', $value['LoginMoIP']);
|
114 |
+
$Comissionamento->addChild('ValorFixo', $value['ValorFixo']);
|
115 |
+
}
|
116 |
+
*/
|
117 |
$InstrucaoUnica->addChild('IdProprio', $id_proprio);
|
118 |
$Pagador = $InstrucaoUnica->addChild('Pagador');
|
119 |
$Pagador->addChild('Nome',$data['pagador_nome']);
|
121 |
$Pagador->addChild('IdPagador',$data['pagador_email']);
|
122 |
$EnderecoCobranca = $Pagador->addChild('EnderecoCobranca');
|
123 |
$EnderecoCobranca->addChild('Logradouro', $data['pagador_logradouro']);
|
124 |
+
$EnderecoCobranca->addChild('Numero', 'n '.$data['pagador_numero']);
|
125 |
$EnderecoCobranca->addChild('Complemento', $data['pagador_complemento']);
|
126 |
$EnderecoCobranca->addChild('Bairro', $data['pagador_bairro']);
|
127 |
$EnderecoCobranca->addChild('Cidade', $data['pagador_cidade']);
|
151 |
$Parcelamento->addChild('MinimoParcelas',$max_parcelas+1);
|
152 |
$Parcelamento->addChild('MaximoParcelas',12);
|
153 |
$Parcelamento->addChild('Recebimento',$tipoderecebimento);
|
154 |
+
$Parcelamento->addChild('Juros',1.99);
|
155 |
}
|
156 |
} else {
|
157 |
for ($i=2; $i <= 12; $i++) {
|
201 |
$primeiro = 1;
|
202 |
$max_div = $valor/(int)Mage::getSingleton('transparente/standard')->getConfigData('valorminimoparcela');
|
203 |
$valor_juros= Mage::getSingleton('transparente/standard')->getConfigData('parcelamento_c_juros1');
|
204 |
+
|
205 |
if($valor <= Mage::getSingleton('transparente/standard')->getConfigData('valorminimoparcela')){
|
206 |
$json_parcelas[1] = array(
|
207 |
'parcela' => Mage::helper('core')->currency($valor, true, false),
|
228 |
$juros[$i] = 0;
|
229 |
}
|
230 |
if($i <= Mage::getSingleton('transparente/standard')->getConfigData('nummaxparcelamax')){
|
231 |
+
$json_parcelas[$i] = array(
|
232 |
'parcela' => Mage::helper('core')->currency($parcelas[$i], true, false),
|
233 |
+
'total_parcelado' => Mage::helper('core')->currency($total_parcelado[$i], true, false),
|
234 |
'juros' => $juros[$i]
|
235 |
);
|
236 |
$primeiro++;
|
243 |
$parcelas[$primeiro] = $this->getJurosComposto($valor, '2.99', $primeiro);
|
244 |
$total_parcelado[$primeiro] = $parcelas[$primeiro]*$primeiro;
|
245 |
$juros[$primeiro] = '2.99';
|
246 |
+
|
247 |
+
$json_parcelas[$primeiro] = array(
|
248 |
'parcela' => Mage::helper('core')->currency($parcelas[$primeiro], true, false),
|
249 |
+
'total_parcelado' => Mage::helper('core')->currency($total_parcelado[$primeiro], true, false),
|
250 |
'juros' => '2.99'
|
251 |
);
|
252 |
$primeiro++;
|
264 |
$juros = array();
|
265 |
$primeiro = 1;
|
266 |
$max_div = (int)($valor/Mage::getSingleton('transparente/standard')->getConfigData('valorminimoparcela'));
|
267 |
+
|
268 |
if($valor <= Mage::getSingleton('transparente/standard')->getConfigData('valorminimoparcela')){
|
269 |
$json_parcelas[1] = array(
|
270 |
'parcela' => Mage::helper('core')->currency($valor, true, false),
|
282 |
|
283 |
for ($i=1; $i <= $max_div; $i++) {
|
284 |
$juros_parcela = 's_juros'.$i;
|
285 |
+
|
286 |
if($i > 1){
|
287 |
$taxa = $parcelamento[$juros_parcela] / 100;
|
288 |
$valor_add = $valor * $taxa;
|
296 |
$juros[$i] = 0;
|
297 |
}
|
298 |
if($i <= Mage::getSingleton('transparente/standard')->getConfigData('nummaxparcelamax')){
|
299 |
+
$json_parcelas[$i] = array(
|
300 |
'parcela' => Mage::helper('core')->currency($parcelas[$i], true, false),
|
301 |
+
'total_parcelado' => Mage::helper('core')->currency($total_parcelado[$i], true, false),
|
302 |
'juros' => $juros[$i]
|
303 |
);
|
304 |
}
|
309 |
}
|
310 |
|
311 |
public function getParcelamento($valor) {
|
312 |
+
|
313 |
$tipo_parcelamento = Mage::getSingleton('transparente/standard')->getConfigData('jurostipo');
|
314 |
|
315 |
if($tipo_parcelamento == 1){
|
319 |
}
|
320 |
|
321 |
return $tipo;
|
322 |
+
|
323 |
}
|
324 |
|
325 |
public function getJurosSimples($valor, $juros, $parcela) {
|
326 |
+
|
327 |
return $valParcela;
|
328 |
}
|
329 |
|
330 |
public function getJurosComposto($valor, $juros, $parcela) {
|
331 |
$principal = $valor;
|
332 |
if($juros != 0){
|
333 |
+
$taxa = $juros/100;
|
334 |
$valParcela = ($principal * $taxa)/(1 - (pow(1/(1+$taxa), $parcela)));
|
335 |
} else {
|
336 |
$valParcela = $principal/$parcela;
|
337 |
}
|
338 |
+
|
339 |
return $valParcela;
|
340 |
}
|
341 |
|
app/code/local/MOIP/Transparente/Model/Observer.php
CHANGED
@@ -1,11 +1,180 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class
|
4 |
{
|
5 |
-
public function
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
|
11 |
}
|
1 |
<?php
|
2 |
|
3 |
+
class Moip_Transparente_Model_Observer
|
4 |
{
|
5 |
+
public function getMethod($observer) {
|
6 |
+
$aplica = 0;
|
7 |
+
$discountAmount = 0;
|
8 |
+
$quote=$observer->getEvent()->getQuote();
|
9 |
+
|
10 |
+
if($quote->getPayment()->getFormaPagamento() == 'BoletoBancario'){
|
11 |
+
$type = 'Boleto Bancário';
|
12 |
+
$valorinicial = $quote->getGrandTotal();
|
13 |
+
if (Mage::getStoreConfig('moipall/pagamento_avancado/pagamento_boleto')){
|
14 |
+
|
15 |
+
if ($valorinicial >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor'))
|
16 |
+
{
|
17 |
+
|
18 |
+
if ($valorinicial >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') && (int)Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') != 0)
|
19 |
+
{
|
20 |
+
|
21 |
+
$valorinicial = $quote->getSubtotal();
|
22 |
+
$percentual_valor = (double)Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc2')/100;
|
23 |
+
$percentual = Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc2');
|
24 |
+
$discountAmount = $valorinicial * $percentual_valor;
|
25 |
+
$aplica = 1;
|
26 |
+
}
|
27 |
+
|
28 |
+
else {
|
29 |
+
|
30 |
+
$valorinicial = $quote->getSubtotal();
|
31 |
+
$percentual_valor = (double)Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc')/100;
|
32 |
+
$percentual = Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc');
|
33 |
+
$discountAmount = $valorinicial * $percentual_valor;
|
34 |
+
$aplica = 1;
|
35 |
+
}
|
36 |
+
}
|
37 |
+
|
38 |
+
|
39 |
+
}
|
40 |
+
}else if($quote->getPayment()->getFormaPagamento() == 'DebitoBancario'){
|
41 |
+
$type = 'Débito Bancário';
|
42 |
+
if (Mage::getStoreConfig('moipall/pagamento_avancado/transf_desc')){
|
43 |
+
if ($valorinicial >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') && (int)Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') != 0)
|
44 |
+
{
|
45 |
+
|
46 |
+
$valorinicial = $quote->getSubtotal();
|
47 |
+
$percentual_valor = (double)Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc2')/100;
|
48 |
+
$percentual = Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc2');
|
49 |
+
$discountAmount = $valorinicial * $percentual_valor;
|
50 |
+
$aplica = 1;
|
51 |
+
} else {
|
52 |
+
|
53 |
+
$valorinicial = $quote->getSubtotal();
|
54 |
+
$percentual_valor = (double)Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc')/100;
|
55 |
+
$percentual = Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc');
|
56 |
+
$discountAmount = $valorinicial * $percentual_valor;
|
57 |
+
$aplica = 1;
|
58 |
+
}
|
59 |
+
}
|
60 |
+
}
|
61 |
+
if($aplica){
|
62 |
+
$total = $quote->getBaseSubtotal();
|
63 |
+
$quote->setSubtotal(0);
|
64 |
+
$quote->setBaseSubtotal(0);
|
65 |
+
|
66 |
+
$quote->setSubtotalWithDiscount(0);
|
67 |
+
$quote->setBaseSubtotalWithDiscount(0);
|
68 |
+
|
69 |
+
$quote->setGrandTotal(0);
|
70 |
+
$quote->setBaseGrandTotal(0);
|
71 |
+
|
72 |
+
|
73 |
+
$canAddItems = $quote->isVirtual() ? ('billing') : ('shipping');
|
74 |
+
foreach($quote->getAllAddresses() as $address)
|
75 |
+
{
|
76 |
+
|
77 |
+
$address->setSubtotal(0);
|
78 |
+
$address->setBaseSubtotal(0);
|
79 |
+
|
80 |
+
$address->setGrandTotal(0);
|
81 |
+
$address->setBaseGrandTotal(0);
|
82 |
+
|
83 |
+
$address->collectTotals();
|
84 |
+
|
85 |
+
$quote->setSubtotal((float) $quote->getSubtotal() + $address->getSubtotal());
|
86 |
+
$quote->setBaseSubtotal((float) $quote->getBaseSubtotal() + $address->getBaseSubtotal());
|
87 |
+
$quote->setSubtotalWithDiscount((float) $quote->getSubtotalWithDiscount() + $address->getSubtotalWithDiscount());
|
88 |
+
$quote->setBaseSubtotalWithDiscount((float) $quote->getBaseSubtotalWithDiscount() + $address->getBaseSubtotalWithDiscount());
|
89 |
+
$quote->setGrandTotal((float) $quote->getGrandTotal() + $address->getGrandTotal());
|
90 |
+
$quote->setBaseGrandTotal((float) $quote->getBaseGrandTotal() + $address->getBaseGrandTotal());
|
91 |
+
$quote->save();
|
92 |
+
|
93 |
+
$quote->setGrandTotal($quote->getBaseSubtotal() - $discountAmount)
|
94 |
+
->setBaseGrandTotal($quote->getBaseSubtotal() - $discountAmount)
|
95 |
+
->setSubtotalWithDiscount($quote->getBaseSubtotal() - $discountAmount)
|
96 |
+
->setBaseSubtotalWithDiscount($quote->getBaseSubtotal() - $discountAmount)
|
97 |
+
->save();
|
98 |
+
|
99 |
+
|
100 |
+
if($address->getAddressType() == $canAddItems)
|
101 |
+
{
|
102 |
+
$address->setSubtotalWithDiscount((float) $address->getSubtotalWithDiscount() - $discountAmount);
|
103 |
+
$address->setGrandTotal((float) $address->getGrandTotal() - $discountAmount);
|
104 |
+
$address->setBaseSubtotalWithDiscount((float) $address->getBaseSubtotalWithDiscount() - $discountAmount);
|
105 |
+
$address->setBaseGrandTotal((float) $address->getBaseGrandTotal() - $discountAmount);
|
106 |
+
|
107 |
+
// When Mageno Promo Code is used
|
108 |
+
if($address->getDiscountDescription())
|
109 |
+
{
|
110 |
+
$address->setDiscountAmount(($address->getDiscountAmount() - $discountAmount));
|
111 |
+
//$address->setDiscountAmount($total - $discountAmount);
|
112 |
+
$address->setDiscountDescription($address->getDiscountDescription().' , '.$percentual.'% sobre subtotal');
|
113 |
+
//$address->setBaseDiscountAmount($total - $discountAmount);
|
114 |
+
$address->setBaseDiscountAmount(-($address->getBaseDiscountAmount() - $discountAmount));
|
115 |
+
}
|
116 |
+
// When Subscribed Customer 5% discount is used
|
117 |
+
else
|
118 |
+
{
|
119 |
+
//$address->setDiscountAmount(-($discountAmount));
|
120 |
+
$address->setDiscountAmount($discountAmount);
|
121 |
+
$address->setDiscountDescription($percentual.'% sobre subtotal');
|
122 |
+
$address->setBaseDiscountAmount($discountAmount);
|
123 |
+
//$address->setBaseDiscountAmount(-($discountAmount));
|
124 |
+
}
|
125 |
+
|
126 |
+
$address->save();
|
127 |
+
}
|
128 |
+
}
|
129 |
+
|
130 |
+
foreach($quote->getAllItems() as $item)
|
131 |
+
{
|
132 |
+
//We apply discount amount based on the ratio between the GrandTotal and the RowTotal
|
133 |
+
$rat = $item->getPriceInclTax() / $total;
|
134 |
+
$ratdisc = $discountAmount * $rat;
|
135 |
+
|
136 |
+
$item->setDiscountAmount(($item->getDiscountAmount() + $ratdisc) * $item->getQty());
|
137 |
+
$item->setBaseDiscountAmount(($item->getBaseDiscountAmount() + $ratdisc) * $item->getQty())->save();
|
138 |
+
}
|
139 |
+
|
140 |
+
|
141 |
+
}
|
142 |
+
|
143 |
}
|
144 |
+
public function setStatus() {
|
145 |
+
$time = time();
|
146 |
+
$to = date('Y-m-d H:i:s', $time);
|
147 |
+
$moip_boleto_vencimento = Mage::getStoreConfig('payment/moip_transparente_standard/vcmentoboleto') + 4;
|
148 |
+
$time_boleto = '-'.(int)$moip_boleto_vencimento.' day';
|
149 |
+
$from = date('Y-m-d H:i:s',(strtotime ( $time_boleto, strtotime ( $to) ) ));
|
150 |
+
$to = date('Y-m-d H:i:s', $time);
|
151 |
+
$moip_boleto_vencimento2 = Mage::getStoreConfig('payment/moip_transparente_standard/vcmentoboleto') + 3;
|
152 |
+
$time_boleto2 = '-'.(int)$moip_boleto_vencimento2.' day';
|
153 |
+
$to_end = date('Y-m-d H:i:s',(strtotime ( $time_boleto2, strtotime ( $to) ) ));
|
154 |
+
Mage::log($from, null, 'MOIP_Cron.log', true);
|
155 |
+
$order_collection = Mage::getModel('sales/order')->getCollection()
|
156 |
+
->addFieldToFilter('created_at', array('from' => $from, 'to' => $to_end))
|
157 |
+
->addAttributeToFilter('status', 'holded');
|
158 |
+
foreach($order_collection as $order){
|
159 |
+
$order = Mage::getModel('sales/order')->load($order->getEntityId());
|
160 |
+
|
161 |
+
if($order->canUnhold()) {
|
162 |
+
$order->unhold()->save();
|
163 |
+
}
|
164 |
|
165 |
+
if(!$order->canCancel())
|
166 |
+
continue;
|
167 |
+
$link = Mage::getUrl('sales/order/reorder/');
|
168 |
+
$link = $link.'order_id/'.$order->getEntityId();
|
169 |
+
$comment = "Cancelado por tempo limite para a notificação de pagamento, caso já tenha feito o pagamento entre em contato com o nosso atendimento, se desejar poderá refazer o seu pedido acessando: ".$link;
|
170 |
+
$status = 'canceled';
|
171 |
+
$order->cancel();
|
172 |
+
$state = Mage_Sales_Model_Order::STATE_CANCELED;
|
173 |
+
$order->setState($state, $status, $comment, $notified = true, $includeComment = true);
|
174 |
+
$order->sendOrderUpdateEmail(true, $comment);
|
175 |
+
$order->save();
|
176 |
+
}
|
177 |
+
}
|
178 |
|
179 |
|
180 |
}
|
app/code/local/MOIP/Transparente/Model/Standard.php
CHANGED
@@ -9,7 +9,7 @@ class MOIP_Transparente_Model_Standard extends Mage_Payment_Model_Method_Abstrac
|
|
9 |
protected $_canCapturePartial = true;
|
10 |
protected $_canRefund = true;
|
11 |
protected $_canVoid = true;
|
12 |
-
protected $_canUseInternal =
|
13 |
protected $_canUseCheckout = true;
|
14 |
protected $_canUseForMultishipping = true;
|
15 |
protected $_canSaveCc = false;
|
@@ -44,6 +44,9 @@ class MOIP_Transparente_Model_Standard extends Mage_Payment_Model_Method_Abstrac
|
|
44 |
$info->setCreditoPortadorCpf($data->getCreditoPortadorCpf());
|
45 |
$info->setCreditoPortadorTelefone($data->getCreditoPortadorTelefone());
|
46 |
$info->setCreditoPortadorNascimento($data->getCreditoPortadorNascimento());
|
|
|
|
|
|
|
47 |
return $this;
|
48 |
}
|
49 |
|
@@ -128,14 +131,14 @@ class MOIP_Transparente_Model_Standard extends Mage_Payment_Model_Method_Abstrac
|
|
128 |
$website_id = Mage::app()->getWebsite()->getId();
|
129 |
$website_name = Mage::app()->getWebsite()->getName();
|
130 |
$store_name = Mage::app()->getStore()->getName();
|
131 |
-
|
132 |
$Arr = array(
|
133 |
'id_carteira' => $this->getConfigData('conta_transparente'),
|
134 |
'id_transacao' => $this->getQuote()->getReservedOrderId(),
|
135 |
'nome' => 'Pagamento a ' . $website_name,
|
136 |
'descricao' => $this->getListaProdutos(),
|
137 |
'pagador_nome' => $a->getFirstname() . ' ' . $a->getLastname(),
|
138 |
-
|
139 |
'pagador_ddd' => $this->getNumberOrDDD($a->getTelephone(), true),
|
140 |
'pagador_telefone' => $this->getNumberOrDDD($a->getTelephone()),
|
141 |
'pagador_logradouro' => $a->getStreet(1),
|
@@ -210,6 +213,7 @@ class MOIP_Transparente_Model_Standard extends Mage_Payment_Model_Method_Abstrac
|
|
210 |
|
211 |
return $produtos;
|
212 |
}
|
|
|
213 |
private function getNumEndereco($endereco) {
|
214 |
$numEndereco = '';
|
215 |
|
9 |
protected $_canCapturePartial = true;
|
10 |
protected $_canRefund = true;
|
11 |
protected $_canVoid = true;
|
12 |
+
protected $_canUseInternal = false;
|
13 |
protected $_canUseCheckout = true;
|
14 |
protected $_canUseForMultishipping = true;
|
15 |
protected $_canSaveCc = false;
|
44 |
$info->setCreditoPortadorCpf($data->getCreditoPortadorCpf());
|
45 |
$info->setCreditoPortadorTelefone($data->getCreditoPortadorTelefone());
|
46 |
$info->setCreditoPortadorNascimento($data->getCreditoPortadorNascimento());
|
47 |
+
|
48 |
+
Mage::dispatchEvent('transparente_sales_quote_assign_data_after', array('quote'=>Mage::getSingleton('checkout/session')->getQuote()));
|
49 |
+
|
50 |
return $this;
|
51 |
}
|
52 |
|
131 |
$website_id = Mage::app()->getWebsite()->getId();
|
132 |
$website_name = Mage::app()->getWebsite()->getName();
|
133 |
$store_name = Mage::app()->getStore()->getName();
|
134 |
+
$info = $this->getInfoInstance();
|
135 |
$Arr = array(
|
136 |
'id_carteira' => $this->getConfigData('conta_transparente'),
|
137 |
'id_transacao' => $this->getQuote()->getReservedOrderId(),
|
138 |
'nome' => 'Pagamento a ' . $website_name,
|
139 |
'descricao' => $this->getListaProdutos(),
|
140 |
'pagador_nome' => $a->getFirstname() . ' ' . $a->getLastname(),
|
141 |
+
'pagador_email' => strtolower($email),
|
142 |
'pagador_ddd' => $this->getNumberOrDDD($a->getTelephone(), true),
|
143 |
'pagador_telefone' => $this->getNumberOrDDD($a->getTelephone()),
|
144 |
'pagador_logradouro' => $a->getStreet(1),
|
213 |
|
214 |
return $produtos;
|
215 |
}
|
216 |
+
|
217 |
private function getNumEndereco($endereco) {
|
218 |
$numEndereco = '';
|
219 |
|
app/code/local/MOIP/Transparente/controllers/StandardController.php
CHANGED
@@ -25,12 +25,12 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
25 |
exit;
|
26 |
}
|
27 |
}
|
28 |
-
|
29 |
public function generateToken($xml) {
|
30 |
$session = Mage::getSingleton('checkout/session');
|
31 |
-
|
32 |
$documento = 'Content-Type: application/xml; charset=utf-8';
|
33 |
-
if (Mage::getSingleton('transparente/standard')->getConfigData('ambiente') == "teste") {
|
34 |
$url = "https://desenvolvedor.moip.com.br/sandbox/ws/alpha/EnviarInstrucao/Unica";
|
35 |
$header = "Authorization: Basic " . base64_encode(MOIP_Transparente_Model_Api::TOKEN_TEST . ":" . MOIP_Transparente_Model_Api::KEY_TEST);
|
36 |
}
|
@@ -39,17 +39,17 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
39 |
$header = "Authorization: Basic " . base64_encode(MOIP_Transparente_Model_Api::TOKEN_PROD . ":" . MOIP_Transparente_Model_Api::KEY_PROD);
|
40 |
}
|
41 |
$result = array();
|
42 |
-
$ch = curl_init();
|
43 |
curl_setopt($ch, CURLOPT_URL,$url);
|
44 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
45 |
-
curl_setopt($ch, CURLOPT_TIMEOUT,
|
46 |
curl_setopt($ch, CURLOPT_POST, true);
|
47 |
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
|
48 |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
|
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 |
|
55 |
$res = simplexml_load_string($res);
|
@@ -70,7 +70,7 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
70 |
return $result;
|
71 |
}
|
72 |
|
73 |
-
|
74 |
}
|
75 |
public function redirectAction() {
|
76 |
$session = Mage::getSingleton('checkout/session');
|
@@ -91,7 +91,7 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
91 |
$this->loadLayout();
|
92 |
$this->renderLayout();
|
93 |
}
|
94 |
-
|
95 |
|
96 |
public function cancelAction() {
|
97 |
$session = Mage::getSingleton('checkout/session');
|
@@ -105,12 +105,22 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
105 |
}
|
106 |
$this->_redirect('checkout/cart');
|
107 |
}
|
108 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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();
|
116 |
$login = $standard->getConfigData('conta_transparente')."_";
|
@@ -118,12 +128,12 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
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']);
|
@@ -133,27 +143,29 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
133 |
$states_atual = $order->getStatus();
|
134 |
if($states_atual == "processing"){
|
135 |
$naexecuta = 1;
|
|
|
136 |
}
|
137 |
if($states_atual == "complete"){
|
138 |
$naexecuta = 1;
|
|
|
139 |
}
|
140 |
if($states_atual == "closed"){
|
141 |
$naexecuta = 1;
|
|
|
142 |
}
|
143 |
-
|
144 |
-
$naexecuta = 1;
|
145 |
-
}
|
146 |
if($states_atual == 'canceled' && $data['status_pagamento']==5){
|
147 |
$naexecuta = 1;
|
|
|
148 |
}
|
149 |
-
|
150 |
if ($order->isCanceled() && $data['status_pagamento'] == "1") {
|
151 |
-
|
152 |
-
|
153 |
-
|
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());
|
@@ -164,13 +176,19 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
164 |
$product = Mage::getModel('catalog/product')->loadByAttribute('sku', $produtos);
|
165 |
$qty = $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(
|
174 |
->setTotalQtyOrdered($qty)
|
175 |
->setQtyOrdered($qty)
|
176 |
->setName($item->getName())
|
@@ -182,29 +200,29 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
182 |
->setBaseRowTotal($rowTotal)
|
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 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
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){
|
@@ -222,6 +240,7 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
222 |
$invoice->save();
|
223 |
} else {
|
224 |
$naexecuta = 1;
|
|
|
225 |
}
|
226 |
break;
|
227 |
case "2":
|
@@ -236,19 +255,23 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
236 |
$comment = $this->getStatusPagamentoTransparente($data['status_pagamento']).' - Codig. Transparente: '.$data['cod_moip'];
|
237 |
} else {
|
238 |
$naexecuta = 1;
|
|
|
239 |
}
|
240 |
break;
|
241 |
case "5":
|
242 |
-
$order->
|
243 |
-
|
244 |
-
|
|
|
|
|
|
|
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,10 +286,10 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
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, '
|
267 |
}
|
268 |
else {
|
269 |
-
Mage::log("Nao atualizado transparente Cliente do pedido ".$id_order. " - Status - " .$states_atual ." retorno
|
270 |
}
|
271 |
}
|
272 |
}
|
@@ -349,7 +372,7 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
349 |
}
|
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));
|
@@ -398,12 +421,12 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
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":
|
25 |
exit;
|
26 |
}
|
27 |
}
|
28 |
+
|
29 |
public function generateToken($xml) {
|
30 |
$session = Mage::getSingleton('checkout/session');
|
31 |
+
|
32 |
$documento = 'Content-Type: application/xml; charset=utf-8';
|
33 |
+
if (Mage::getSingleton('transparente/standard')->getConfigData('ambiente') == "teste") {
|
34 |
$url = "https://desenvolvedor.moip.com.br/sandbox/ws/alpha/EnviarInstrucao/Unica";
|
35 |
$header = "Authorization: Basic " . base64_encode(MOIP_Transparente_Model_Api::TOKEN_TEST . ":" . MOIP_Transparente_Model_Api::KEY_TEST);
|
36 |
}
|
39 |
$header = "Authorization: Basic " . base64_encode(MOIP_Transparente_Model_Api::TOKEN_PROD . ":" . MOIP_Transparente_Model_Api::KEY_PROD);
|
40 |
}
|
41 |
$result = array();
|
42 |
+
$ch = curl_init();
|
43 |
curl_setopt($ch, CURLOPT_URL,$url);
|
44 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
45 |
+
curl_setopt($ch, CURLOPT_TIMEOUT, 6000);
|
46 |
curl_setopt($ch, CURLOPT_POST, true);
|
47 |
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
|
48 |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
|
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 |
|
55 |
$res = simplexml_load_string($res);
|
70 |
return $result;
|
71 |
}
|
72 |
|
73 |
+
|
74 |
}
|
75 |
public function redirectAction() {
|
76 |
$session = Mage::getSingleton('checkout/session');
|
91 |
$this->loadLayout();
|
92 |
$this->renderLayout();
|
93 |
}
|
94 |
+
|
95 |
|
96 |
public function cancelAction() {
|
97 |
$session = Mage::getSingleton('checkout/session');
|
105 |
}
|
106 |
$this->_redirect('checkout/cart');
|
107 |
}
|
108 |
+
protected function _getItemQtys()
|
109 |
+
{
|
110 |
+
$data = $this->getRequest()->getParam('invoice');
|
111 |
+
if (isset($data['items'])) {
|
112 |
+
$qtys = $data['items'];
|
113 |
+
} else {
|
114 |
+
$qtys = array();
|
115 |
+
}
|
116 |
+
return $qtys;
|
117 |
+
}
|
118 |
public function successAction() {
|
119 |
$standard = $this->getStandard();
|
120 |
$naexecuta = "";
|
121 |
$nao_processa = "";
|
122 |
$validacao = $this->getRequest()->getParams();
|
123 |
+
echo "Okay Nasp! ";
|
124 |
if($validacao['validacao'] == $standard->getConfigData('validador_retorno')){
|
125 |
$data = $this->getRequest()->getPost();
|
126 |
$login = $standard->getConfigData('conta_transparente')."_";
|
128 |
$order_magento = strpos($data_transparente, $login);
|
129 |
$order_magento = substr($data_transparente, strpos($data_transparente, "_") + 1);
|
130 |
$model = Mage::getModel('transparente/write');
|
131 |
+
|
132 |
$order = Mage::getModel('sales/order')->load($order_magento);
|
133 |
$id_order = $order->getId();
|
134 |
$incrementid = $order->getIncrementId();
|
135 |
$model->load($incrementid, 'realorder_id');
|
136 |
+
$meio_pago = $model->getMeioPg();
|
137 |
if($meio_pago == "CartaoCredito"){
|
138 |
if($model->getAceitaCofre() == 1){
|
139 |
$model->setCofre($data['cofre']);
|
143 |
$states_atual = $order->getStatus();
|
144 |
if($states_atual == "processing"){
|
145 |
$naexecuta = 1;
|
146 |
+
return;
|
147 |
}
|
148 |
if($states_atual == "complete"){
|
149 |
$naexecuta = 1;
|
150 |
+
return;
|
151 |
}
|
152 |
if($states_atual == "closed"){
|
153 |
$naexecuta = 1;
|
154 |
+
return;
|
155 |
}
|
156 |
+
|
|
|
|
|
157 |
if($states_atual == 'canceled' && $data['status_pagamento']==5){
|
158 |
$naexecuta = 1;
|
159 |
+
return;
|
160 |
}
|
161 |
+
|
162 |
if ($order->isCanceled() && $data['status_pagamento'] == "1") {
|
163 |
+
|
164 |
+
|
165 |
+
|
166 |
+
|
|
|
167 |
foreach ($order->getAllItems() as $item) {
|
168 |
+
echo $data['status_pagamento'] ;
|
169 |
$item->setQtyCanceled($item->getQtyOrdered());
|
170 |
$item->save();
|
171 |
$stockItem = Mage::getModel('cataloginventory/stock_item')->loadByProduct($item->getProductId());
|
176 |
$product = Mage::getModel('catalog/product')->loadByAttribute('sku', $produtos);
|
177 |
$qty = $item->getQtyOrdered();
|
178 |
$rowTotal = $item->getPrice();
|
179 |
+
$orderItemProductOption = $item->getProductOptions();
|
180 |
+
$_customOptions = array(
|
181 |
+
'info_buyRequest' => $orderItemProductOption['info_buyRequest']
|
182 |
+
);
|
183 |
+
|
184 |
$orderItem = Mage::getModel('sales/order_item')
|
185 |
->setStoreId($order->getStore()->getStoreId())
|
186 |
->setQuoteItemId($item->getId())
|
187 |
->setQuoteParentItemId(NULL)
|
188 |
->setProductId($item->getId())
|
189 |
+
->setProductOptions(array_merge($orderItemProductOption, $_customOptions))
|
190 |
->setProductType($item->getTypeId())
|
191 |
+
->setQtyBackordered(NULL)
|
192 |
->setTotalQtyOrdered($qty)
|
193 |
->setQtyOrdered($qty)
|
194 |
->setName($item->getName())
|
200 |
->setBaseRowTotal($rowTotal)
|
201 |
->setOrder($order);
|
202 |
$orderItem->save();
|
203 |
+
|
204 |
}
|
205 |
|
206 |
$order->save();
|
207 |
|
208 |
$nao_processa = 1;
|
209 |
+
|
210 |
+
|
211 |
$state = Mage_Sales_Model_Order::STATE_PROCESSING;
|
212 |
$status = 'processing';
|
213 |
+
$comment = $this->getStatusPagamentoTransparente($status).' Usando RePagamento - Codig. Transparente: '.$data['cod_moip'];
|
214 |
$order->setState($state, $status, $comment, $notified = true, $includeComment = true);
|
215 |
$order->save();
|
216 |
+
|
217 |
+
/*
|
218 |
+
#gerar invoice mas não adicona o item para o repagamento... analisando.
|
219 |
+
$invoice = $order->prepareInvoice();
|
220 |
+
$invoice->sendEmail();
|
221 |
+
$invoice->setEmailSent(true);
|
222 |
+
$invoice->save();
|
223 |
+
*/
|
|
|
|
|
|
|
|
|
224 |
}
|
225 |
+
|
226 |
switch ($data['status_pagamento']) {
|
227 |
case "1":
|
228 |
if($states_atual != 'processing' && $nao_processa != 1){
|
240 |
$invoice->save();
|
241 |
} else {
|
242 |
$naexecuta = 1;
|
243 |
+
return;
|
244 |
}
|
245 |
break;
|
246 |
case "2":
|
255 |
$comment = $this->getStatusPagamentoTransparente($data['status_pagamento']).' - Codig. Transparente: '.$data['cod_moip'];
|
256 |
} else {
|
257 |
$naexecuta = 1;
|
258 |
+
return;
|
259 |
}
|
260 |
break;
|
261 |
case "5":
|
262 |
+
if($order->canUnhold()) {
|
263 |
+
$order->unhold()->save();
|
264 |
+
}
|
265 |
+
|
266 |
+
if(!$order->canCancel())
|
267 |
+
continue;
|
268 |
$state = Mage_Sales_Model_Order::STATE_CANCELED;
|
269 |
$status = 'canceled';
|
270 |
$comment = $this->getStatusPagamentoTransparente($data['status_pagamento']).' - Codig. Transparente: '.$data['cod_moip'].' - Motivo: '.utf8_encode($data['classificacao']);
|
271 |
$order->cancel();
|
272 |
break;
|
273 |
case "6":
|
274 |
+
|
275 |
$state = Mage_Sales_Model_Order::STATE_HOLDED;
|
276 |
$status = 'holded';
|
277 |
$comment = $this->getStatusPagamentoTransparente($data['status_pagamento']).' - Codig. Transparente: '.$data['cod_moip'];
|
286 |
}
|
287 |
}
|
288 |
echo 'Processo de retorno concluido para o pedido #'.$id_order.' Status '.$status;
|
289 |
+
Mage::log("Cliente do pedido ".$id_order. " - Status - " .$states_atual ." retorno completo ".implode('', $data), null, 'MOIP_Nasp.log', true);
|
290 |
}
|
291 |
else {
|
292 |
+
Mage::log("Nao atualizado transparente Cliente do pedido ".$id_order. " - Status - " .$states_atual ." retorno ".implode(' ', $data) , null, 'MOIP_Nasp.log', true);
|
293 |
}
|
294 |
}
|
295 |
}
|
372 |
}
|
373 |
}
|
374 |
|
375 |
+
|
376 |
public function post_correio($url, $get) {
|
377 |
$url = explode('?', $url, 2);
|
378 |
$ch = curl_init($url[0]."?".http_build_query($get));
|
421 |
$config = array('adapter' => 'Zend_Http_Client_Adapter_Socket');
|
422 |
$client = new Zend_Http_Client($url_end, $config);
|
423 |
$response = $client->request();
|
424 |
+
|
425 |
if($response->getBody() != "503"){
|
426 |
$res = $response->getBody();
|
427 |
+
|
428 |
$endereco = Mage::helper('core')->jsonDecode($res);
|
429 |
+
|
430 |
|
431 |
switch ($endereco['uf']) {
|
432 |
case "AC":
|
app/code/local/MOIP/Transparente/etc/config.xml
CHANGED
@@ -6,6 +6,17 @@
|
|
6 |
</MOIP_Transparente>
|
7 |
</modules>
|
8 |
<global>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
<models>
|
10 |
<transparente>
|
11 |
<class>MOIP_Transparente_Model</class>
|
@@ -49,9 +60,43 @@
|
|
49 |
<transparente>
|
50 |
<class>MOIP_Transparente_Helper</class>
|
51 |
</transparente>
|
52 |
-
</helpers>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
</global>
|
54 |
<frontend>
|
|
|
|
|
|
|
55 |
<routers>
|
56 |
<transparente>
|
57 |
<use>standard</use>
|
@@ -108,16 +153,12 @@
|
|
108 |
</layout>
|
109 |
</adminhtml>
|
110 |
<crontab>
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
<model>Transparente/Orders::cancel</model>
|
118 |
-
</run>
|
119 |
-
</cancelarBoleto>
|
120 |
-
</jobs>
|
121 |
</crontab>
|
122 |
<default>
|
123 |
<payment>
|
6 |
</MOIP_Transparente>
|
7 |
</modules>
|
8 |
<global>
|
9 |
+
<fieldsets>
|
10 |
+
<sales_convert_quote_payment>
|
11 |
+
<forma_pagamento>
|
12 |
+
<to_order_payment>*</to_order_payment>
|
13 |
+
</forma_pagamento>
|
14 |
+
<credito_parcela>
|
15 |
+
<to_order_payment>*</to_order_payment>
|
16 |
+
</credito_parcela>
|
17 |
+
</sales_convert_quote_payment>
|
18 |
+
</fieldsets>
|
19 |
+
|
20 |
<models>
|
21 |
<transparente>
|
22 |
<class>MOIP_Transparente_Model</class>
|
60 |
<transparente>
|
61 |
<class>MOIP_Transparente_Helper</class>
|
62 |
</transparente>
|
63 |
+
</helpers>
|
64 |
+
|
65 |
+
<events>
|
66 |
+
<transparente_sales_quote_assign_data_after>
|
67 |
+
<observers>
|
68 |
+
<get_transparente>
|
69 |
+
<type>singleton</type>
|
70 |
+
<class>transparente/observer</class>
|
71 |
+
<method>getMethod</method>
|
72 |
+
</get_transparente>
|
73 |
+
</observers>
|
74 |
+
</transparente_sales_quote_assign_data_after>
|
75 |
+
|
76 |
+
<!--sales_order_save_before>
|
77 |
+
<observers>
|
78 |
+
<get_token>
|
79 |
+
<type>singleton</type>
|
80 |
+
<class>transparente/observer</class>
|
81 |
+
<method>getTokenCheckout</method>
|
82 |
+
</get_token>
|
83 |
+
</observers>
|
84 |
+
</sales_order_save_before-->
|
85 |
+
</events>
|
86 |
+
<template>
|
87 |
+
<email>
|
88 |
+
<moip_envio translate="label">
|
89 |
+
<label>Pedido Pago</label>
|
90 |
+
<file>vendedor.html</file>
|
91 |
+
<type>html</type>
|
92 |
+
</moip_envio>
|
93 |
+
</email>
|
94 |
+
</template>
|
95 |
</global>
|
96 |
<frontend>
|
97 |
+
<secure_url>
|
98 |
+
<Transparente>/Transparente/</Transparente>
|
99 |
+
</secure_url>
|
100 |
<routers>
|
101 |
<transparente>
|
102 |
<use>standard</use>
|
153 |
</layout>
|
154 |
</adminhtml>
|
155 |
<crontab>
|
156 |
+
<jobs>
|
157 |
+
<transparente>
|
158 |
+
<schedule><cron_expr>* * * * *</cron_expr></schedule>
|
159 |
+
<run><model>transparente/observer::setStatus</model></run>
|
160 |
+
</transparente>
|
161 |
+
</jobs>
|
|
|
|
|
|
|
|
|
162 |
</crontab>
|
163 |
<default>
|
164 |
<payment>
|
app/code/local/MOIP/Transparente/etc/system.xml
CHANGED
@@ -27,7 +27,7 @@
|
|
27 |
<show_in_website>1</show_in_website>
|
28 |
<show_in_store>1</show_in_store>
|
29 |
</title>
|
30 |
-
|
31 |
<order_status translate="label">
|
32 |
<label>Status dos novos pedidos</label>
|
33 |
<frontend_type>select</frontend_type>
|
@@ -103,7 +103,7 @@
|
|
103 |
<show_in_website>1</show_in_website>
|
104 |
<show_in_store>1</show_in_store>
|
105 |
</tipoderecebimento>
|
106 |
-
|
107 |
<formas_pagamento translate="label">
|
108 |
<label>Formas de Pagamento</label>
|
109 |
<frontend_type>multiselect</frontend_type>
|
@@ -150,7 +150,7 @@
|
|
150 |
<show_in_website>1</show_in_website>
|
151 |
<show_in_store>1</show_in_store>
|
152 |
</parcelamento_c_ate1>
|
153 |
-
|
154 |
<parcelamento_c_juros1 translate="label">
|
155 |
<label>1° - Juros de (%):</label>
|
156 |
<comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
|
@@ -200,7 +200,7 @@
|
|
200 |
<show_in_store>1</show_in_store>
|
201 |
</parcelamento_s_juros2>
|
202 |
|
203 |
-
|
204 |
<parcelamento_s_juros3 translate="label">
|
205 |
<label>3° - Juros de (%):</label>
|
206 |
<comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
|
@@ -218,7 +218,7 @@
|
|
218 |
</parcelamento_s_juros3>
|
219 |
|
220 |
|
221 |
-
|
222 |
<parcelamento_s_juros4 translate="label">
|
223 |
<label>4° - Juros de (%):</label>
|
224 |
<comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
|
@@ -237,7 +237,7 @@
|
|
237 |
|
238 |
|
239 |
|
240 |
-
|
241 |
<parcelamento_s_juros5 translate="label">
|
242 |
<label>5° - Juros de (%):</label>
|
243 |
<comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
|
@@ -272,7 +272,7 @@
|
|
272 |
</parcelamento_s_juros6>
|
273 |
|
274 |
|
275 |
-
|
276 |
<parcelamento_s_juros7 translate="label">
|
277 |
<label>7° - Juros de (%):</label>
|
278 |
<comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
|
@@ -291,7 +291,7 @@
|
|
291 |
|
292 |
|
293 |
|
294 |
-
|
295 |
<parcelamento_s_juros8 translate="label">
|
296 |
<label>8° - Juros de (%):</label>
|
297 |
<comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
|
@@ -310,7 +310,7 @@
|
|
310 |
|
311 |
|
312 |
|
313 |
-
|
314 |
<parcelamento_s_juros9 translate="label">
|
315 |
<label>9° - Juros de (%):</label>
|
316 |
<comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
|
@@ -346,7 +346,7 @@
|
|
346 |
|
347 |
|
348 |
|
349 |
-
|
350 |
<parcelamento_s_juros11 translate="label">
|
351 |
<label>11° - Juros de (%):</label>
|
352 |
<comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
|
@@ -364,7 +364,7 @@
|
|
364 |
</parcelamento_s_juros11>
|
365 |
|
366 |
|
367 |
-
|
368 |
<parcelamento_s_juros12 translate="label">
|
369 |
<label>12° - Juros de (%):</label>
|
370 |
<comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
|
@@ -410,6 +410,10 @@
|
|
410 |
|
411 |
<jurostipo translate="label">
|
412 |
<label>Usar juros composto?</label>
|
|
|
|
|
|
|
|
|
413 |
<frontend_type>select</frontend_type>
|
414 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
415 |
<sort_order>12</sort_order>
|
@@ -417,7 +421,7 @@
|
|
417 |
<show_in_website>1</show_in_website>
|
418 |
<show_in_store>1</show_in_store>
|
419 |
</jurostipo>
|
420 |
-
|
421 |
|
422 |
|
423 |
|
@@ -452,7 +456,7 @@
|
|
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>
|
458 |
<frontend_type>allowspecific</frontend_type>
|
@@ -471,7 +475,7 @@
|
|
471 |
<show_in_website>1</show_in_website>
|
472 |
<show_in_store>1</show_in_store>
|
473 |
</specificcountry>
|
474 |
-
|
475 |
</fields>
|
476 |
</moip_transparente_standard>
|
477 |
</groups>
|
@@ -947,7 +951,7 @@
|
|
947 |
<frontend_type>text</frontend_type>
|
948 |
<comment>A primeira faixa de desconto será válida para pagamentos acima de qual valor? Você pode usar valor 0 para aplicar a qualquer pedido</comment>
|
949 |
<frontend_type>text</frontend_type>
|
950 |
-
<sort_order>
|
951 |
<show_in_default>1</show_in_default>
|
952 |
<show_in_website>1</show_in_website>
|
953 |
<show_in_store>1</show_in_store>
|
@@ -973,37 +977,12 @@
|
|
973 |
<frontend_type>text</frontend_type>
|
974 |
<comment>A Segunda faixa de desconto será válida para pagamentos acima de qual valor? Obrigatoriamente deverá ser maior que a primeira.</comment>
|
975 |
<frontend_type>text</frontend_type>
|
976 |
-
<sort_order>4</sort_order>
|
977 |
-
<show_in_default>1</show_in_default>
|
978 |
-
<show_in_website>1</show_in_website>
|
979 |
-
<show_in_store>1</show_in_store>
|
980 |
-
</boleto_valor2>
|
981 |
-
<boleto_desc3 translate="label comment">
|
982 |
-
<depends>
|
983 |
-
<pagamento_boleto>1</pagamento_boleto>
|
984 |
-
</depends>
|
985 |
-
<label>3º Valor de desconto: </label>
|
986 |
-
<frontend_type>text</frontend_type>
|
987 |
-
<comment>Em Percentual use somente o número sem o "%"</comment>
|
988 |
-
<frontend_type>text</frontend_type>
|
989 |
-
<sort_order>7</sort_order>
|
990 |
-
<show_in_default>1</show_in_default>
|
991 |
-
<show_in_website>1</show_in_website>
|
992 |
-
<show_in_store>1</show_in_store>
|
993 |
-
</boleto_desc3>
|
994 |
-
<boleto_valor3 translate="label comment">
|
995 |
-
<depends>
|
996 |
-
<pagamento_boleto>1</pagamento_boleto>
|
997 |
-
</depends>
|
998 |
-
<label>Para nos pedidos acima de: </label>
|
999 |
-
<frontend_type>text</frontend_type>
|
1000 |
-
<comment>A Terceira faixa de desconto será válida para pagamentos acima da segunda faixa.</comment>
|
1001 |
-
<frontend_type>text</frontend_type>
|
1002 |
<sort_order>6</sort_order>
|
1003 |
<show_in_default>1</show_in_default>
|
1004 |
<show_in_website>1</show_in_website>
|
1005 |
<show_in_store>1</show_in_store>
|
1006 |
-
</
|
|
|
1007 |
<transf_desc translate="label comment">
|
1008 |
<depends>
|
1009 |
<pagamento_boleto>1</pagamento_boleto>
|
@@ -1012,7 +991,7 @@
|
|
1012 |
<frontend_type>select</frontend_type>
|
1013 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
1014 |
<comment>Caso marque sim o pagamento por transferência estará sujeito as mesmas regras do boleto</comment>
|
1015 |
-
<sort_order>
|
1016 |
<show_in_default>1</show_in_default>
|
1017 |
<show_in_website>1</show_in_website>
|
1018 |
<show_in_store>1</show_in_store>
|
27 |
<show_in_website>1</show_in_website>
|
28 |
<show_in_store>1</show_in_store>
|
29 |
</title>
|
30 |
+
|
31 |
<order_status translate="label">
|
32 |
<label>Status dos novos pedidos</label>
|
33 |
<frontend_type>select</frontend_type>
|
103 |
<show_in_website>1</show_in_website>
|
104 |
<show_in_store>1</show_in_store>
|
105 |
</tipoderecebimento>
|
106 |
+
|
107 |
<formas_pagamento translate="label">
|
108 |
<label>Formas de Pagamento</label>
|
109 |
<frontend_type>multiselect</frontend_type>
|
150 |
<show_in_website>1</show_in_website>
|
151 |
<show_in_store>1</show_in_store>
|
152 |
</parcelamento_c_ate1>
|
153 |
+
|
154 |
<parcelamento_c_juros1 translate="label">
|
155 |
<label>1° - Juros de (%):</label>
|
156 |
<comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
|
200 |
<show_in_store>1</show_in_store>
|
201 |
</parcelamento_s_juros2>
|
202 |
|
203 |
+
|
204 |
<parcelamento_s_juros3 translate="label">
|
205 |
<label>3° - Juros de (%):</label>
|
206 |
<comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
|
218 |
</parcelamento_s_juros3>
|
219 |
|
220 |
|
221 |
+
|
222 |
<parcelamento_s_juros4 translate="label">
|
223 |
<label>4° - Juros de (%):</label>
|
224 |
<comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
|
237 |
|
238 |
|
239 |
|
240 |
+
|
241 |
<parcelamento_s_juros5 translate="label">
|
242 |
<label>5° - Juros de (%):</label>
|
243 |
<comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
|
272 |
</parcelamento_s_juros6>
|
273 |
|
274 |
|
275 |
+
|
276 |
<parcelamento_s_juros7 translate="label">
|
277 |
<label>7° - Juros de (%):</label>
|
278 |
<comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
|
291 |
|
292 |
|
293 |
|
294 |
+
|
295 |
<parcelamento_s_juros8 translate="label">
|
296 |
<label>8° - Juros de (%):</label>
|
297 |
<comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
|
310 |
|
311 |
|
312 |
|
313 |
+
|
314 |
<parcelamento_s_juros9 translate="label">
|
315 |
<label>9° - Juros de (%):</label>
|
316 |
<comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
|
346 |
|
347 |
|
348 |
|
349 |
+
|
350 |
<parcelamento_s_juros11 translate="label">
|
351 |
<label>11° - Juros de (%):</label>
|
352 |
<comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
|
364 |
</parcelamento_s_juros11>
|
365 |
|
366 |
|
367 |
+
|
368 |
<parcelamento_s_juros12 translate="label">
|
369 |
<label>12° - Juros de (%):</label>
|
370 |
<comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
|
410 |
|
411 |
<jurostipo translate="label">
|
412 |
<label>Usar juros composto?</label>
|
413 |
+
<comment><![CDATA[<div class="custom-options"><div class="box" style="width:243px;">
|
414 |
+
<p>PARA CONFIGURAR PAGAMENTO PARCELAMENTO SEM JUROS VEJA O VIDEO: http://youtu.be/1ZnubvLmOTM</p>
|
415 |
+
</div></div>]]>
|
416 |
+
</comment>
|
417 |
<frontend_type>select</frontend_type>
|
418 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
419 |
<sort_order>12</sort_order>
|
421 |
<show_in_website>1</show_in_website>
|
422 |
<show_in_store>1</show_in_store>
|
423 |
</jurostipo>
|
424 |
+
|
425 |
|
426 |
|
427 |
|
456 |
<show_in_website>1</show_in_website>
|
457 |
<show_in_store>1</show_in_store>
|
458 |
</estoqueboleto>
|
459 |
+
|
460 |
<allowspecific translate="label">
|
461 |
<label>Pagamento a partir de países aplicáveis</label>
|
462 |
<frontend_type>allowspecific</frontend_type>
|
475 |
<show_in_website>1</show_in_website>
|
476 |
<show_in_store>1</show_in_store>
|
477 |
</specificcountry>
|
478 |
+
|
479 |
</fields>
|
480 |
</moip_transparente_standard>
|
481 |
</groups>
|
951 |
<frontend_type>text</frontend_type>
|
952 |
<comment>A primeira faixa de desconto será válida para pagamentos acima de qual valor? Você pode usar valor 0 para aplicar a qualquer pedido</comment>
|
953 |
<frontend_type>text</frontend_type>
|
954 |
+
<sort_order>4</sort_order>
|
955 |
<show_in_default>1</show_in_default>
|
956 |
<show_in_website>1</show_in_website>
|
957 |
<show_in_store>1</show_in_store>
|
977 |
<frontend_type>text</frontend_type>
|
978 |
<comment>A Segunda faixa de desconto será válida para pagamentos acima de qual valor? Obrigatoriamente deverá ser maior que a primeira.</comment>
|
979 |
<frontend_type>text</frontend_type>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
980 |
<sort_order>6</sort_order>
|
981 |
<show_in_default>1</show_in_default>
|
982 |
<show_in_website>1</show_in_website>
|
983 |
<show_in_store>1</show_in_store>
|
984 |
+
</boleto_valor2>
|
985 |
+
|
986 |
<transf_desc translate="label comment">
|
987 |
<depends>
|
988 |
<pagamento_boleto>1</pagamento_boleto>
|
991 |
<frontend_type>select</frontend_type>
|
992 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
993 |
<comment>Caso marque sim o pagamento por transferência estará sujeito as mesmas regras do boleto</comment>
|
994 |
+
<sort_order>9</sort_order>
|
995 |
<show_in_default>1</show_in_default>
|
996 |
<show_in_website>1</show_in_website>
|
997 |
<show_in_store>1</show_in_store>
|
app/design/adminhtml/default/default/layout/moip_onestepcheckout.xml
CHANGED
@@ -1,20 +1,15 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<layout version="0.1.0">
|
3 |
-
<onestepcheckout_adminhtml_onestepcheckout_index>
|
4 |
-
<reference name="content">
|
5 |
-
<block type="onestepcheckout/adminhtml_onestepcheckout" name="onestepcheckout" />
|
6 |
-
</reference>
|
7 |
-
</onestepcheckout_adminhtml_onestepcheckout_index>
|
8 |
<adminhtml_sales_order_view>
|
9 |
<reference name="order_tab_info">
|
10 |
<action method="setTemplate"><template>MOIP/onestepcheckout/sales/order/view/tab/info.phtml</template></action>
|
11 |
<block type="onestepcheckout/adminhtml_onestepcheckout_sales_order_view_tab_info_customermessages" name="customer_messages" template="MOIP/onestepcheckout/sales/order/view/tab/info/Customermessages.phtml"></block>
|
12 |
-
<block type="onestepcheckout/adminhtml_onestepcheckout_sales_order_view_tab_info_deliverydate" name="deliverydate" template="MOIP/onestepcheckout/sales/order/view/tab/info/Deliverydate.phtml"></block>
|
13 |
</reference>
|
14 |
</adminhtml_sales_order_view>
|
15 |
-
<adminhtml_system_config_edit>
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
19 |
</adminhtml_system_config_edit>
|
20 |
</layout>
|
1 |
<?xml version="1.0"?>
|
2 |
<layout version="0.1.0">
|
|
|
|
|
|
|
|
|
|
|
3 |
<adminhtml_sales_order_view>
|
4 |
<reference name="order_tab_info">
|
5 |
<action method="setTemplate"><template>MOIP/onestepcheckout/sales/order/view/tab/info.phtml</template></action>
|
6 |
<block type="onestepcheckout/adminhtml_onestepcheckout_sales_order_view_tab_info_customermessages" name="customer_messages" template="MOIP/onestepcheckout/sales/order/view/tab/info/Customermessages.phtml"></block>
|
|
|
7 |
</reference>
|
8 |
</adminhtml_sales_order_view>
|
9 |
+
<adminhtml_system_config_edit>
|
10 |
+
<update handle="editor"/>
|
11 |
+
<reference name="head">
|
12 |
+
<action method="setCanLoadTinyMce"><load>1</load></action>
|
13 |
+
</reference>
|
14 |
</adminhtml_system_config_edit>
|
15 |
</layout>
|
app/design/adminhtml/default/default/template/MOIP/transparente/info.phtml
CHANGED
@@ -1,11 +1,5 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
$css_email = "display: block;float: left;clear: both !important;border-radius: 10px;color: #fff;font-size: 16pt;font-weight: bold;text-align: center;text-transform: uppercase;position: relative;margin-left: 70px;margin-top: 10px;margin-bottom: 25px;background: #ff9900;background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJod…EiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
|
4 |
-
background: -moz-linear-gradient(top, #ff9900 0%, #ff6600 100%);background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff9900), color-stop(100%,#ff6600));
|
5 |
-
background: -webkit-linear-gradient(top, #ff9900 0%,#ff6600 100%);background: -o-linear-gradient(top, #ff9900 0%,#ff6600 100%);background: -ms-linear-gradient(top, #ff9900 0%,#ff6600 100%);background: linear-gradient(to bottom, #ff9900 0%,#ff6600 100%);filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff9900', endColorstr='#ff6600',GradientType=0 );line-height: 20px;position: relative;";
|
6 |
-
$css_boleto = "padding: 15px 20px 15px 55px;border: 0;";
|
7 |
-
$css_trans = "padding: 20px 20px 20px 40px";
|
8 |
-
$css_email_img = "position: absolute !important;left: -70px !important;top: -20px !important;min-height: 100px;width: 115px;";
|
9 |
?>
|
10 |
<?php $info = $this->_prepareInfo(); ?>
|
11 |
<?php if($info['result_meio'] == "Cartão de Crédito"): ?>
|
@@ -23,35 +17,52 @@ $css_email_img = "position: absolute !important;left: -70px !important;top: -20p
|
|
23 |
<label>4 Últimos dígitos do cartão</label>
|
24 |
<div class="input-text"><strong><?php echo $info['last4'] ?></strong></div>
|
25 |
</div>
|
26 |
-
<div class="token_repagamento">
|
27 |
-
<div class="input-text"><strong><a href="https://www.moip.com.br/Instrucao.do?token=<?php echo $info['token'] ?>">Link Para repagamento no transparente</a></strong></div>
|
28 |
-
</div>
|
29 |
</div>
|
30 |
<?php endif ?>
|
31 |
|
32 |
-
|
33 |
<?php if($info['result_meio'] == "Boleto Bancário"): ?>
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
<div class="token_repagamento">
|
41 |
-
<div class="input-text"><strong><a href="https://www.moip.com.br/Instrucao.do?token=<?php echo $info['token'] ?>">Link Para repagamento no transparente</a></strong></div>
|
42 |
-
</div>
|
43 |
<?php endif ?>
|
44 |
|
45 |
-
|
46 |
|
47 |
<?php if($info['result_meio'] == "Transferência Bancária"): ?>
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
<div class="token_repagamento">
|
54 |
-
<div class="input-text"><strong><a href="https://www.moip.com.br/Instrucao.do?token=<?php echo $info['token'] ?>">Link Para repagamento no transparente</a></strong></div>
|
55 |
</div>
|
56 |
-
</div>
|
57 |
<?php endif ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if(Mage::app()->getRequest()->getModuleName() != "onestepcheckout" && Mage::app()->getRequest()->getModuleName() != "checkout"){
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
?>
|
4 |
<?php $info = $this->_prepareInfo(); ?>
|
5 |
<?php if($info['result_meio'] == "Cartão de Crédito"): ?>
|
17 |
<label>4 Últimos dígitos do cartão</label>
|
18 |
<div class="input-text"><strong><?php echo $info['last4'] ?></strong></div>
|
19 |
</div>
|
|
|
|
|
|
|
20 |
</div>
|
21 |
<?php endif ?>
|
22 |
|
23 |
+
|
24 |
<?php if($info['result_meio'] == "Boleto Bancário"): ?>
|
25 |
+
<div class="metodo title"><h3><?php echo $info['result_meio'] ?></h3></div>
|
26 |
+
<div style="clear:both; width:100%;">
|
27 |
+
<div style="clear:both;width:100%"><a class="button btn-checkout btn-default scalable" title="Finalizar compra" href="<?php echo $info['url'] ?>">Ver boleto</a></div>
|
28 |
+
</div></br>
|
29 |
+
<div class="boleto_line_title"><h4>Ou Cópie o endereço:</h4></div>
|
30 |
+
<div class="boleto_line"><input type="text" class="input-text" value="<?php echo $info['url'] ?>" readonly="true" style="width:350px"></div>
|
|
|
|
|
|
|
31 |
<?php endif ?>
|
32 |
|
33 |
+
|
34 |
|
35 |
<?php if($info['result_meio'] == "Transferência Bancária"): ?>
|
36 |
+
<div class="metodo title"><h3><?php echo $info['result_meio'] ?></h3></div>
|
37 |
+
<div class="trans" style="width:100%">
|
38 |
+
<div style="clear:both;width:100%"><a class="button btn-checkout btn-default scalable" title="Finalizar compra" href="<?php echo $info['url'] ?>">Ir Ao banco</a></div>
|
39 |
+
<div class="boleto_line_title" style="clear:both;width:100%"><h4>Ou Cole a Url na Barra do Navegador:</h4></div>
|
40 |
+
<div class="boleto_line" style="clear:both;width:100%"><input type="text" class="input-text" value="<?php echo $info['url'] ?>" readonly="true" style="width:350px"></div>
|
|
|
|
|
41 |
</div>
|
|
|
42 |
<?php endif ?>
|
43 |
+
|
44 |
+
|
45 |
+
<?php } if(Mage::app()->getRequest()->getModuleName() == "onestepcheckout" || Mage::app()->getRequest()->getModuleName() == "checkout" ) { ?>
|
46 |
+
|
47 |
+
<?php echo "Pagamento via Moip Pagamentos S/A" ?>
|
48 |
+
|
49 |
+
<?php } if(Mage::app()->getRequest()->getModuleName() == "sales"): ?>
|
50 |
+
<?php
|
51 |
+
$order = Mage::getModel('sales/order')->load($info['realorder_id'], 'increment_id');
|
52 |
+
$states = $order->getStatus();
|
53 |
+
if($states == "pending" || $order->isCanceled()){
|
54 |
+
$api = $this->getTransparente();
|
55 |
+
$resposta_transparente = $info['token'];
|
56 |
+
if (Mage::getSingleton('transparente/standard')->getConfigData('ambiente') == "teste") {
|
57 |
+
$url = "https://desenvolvedor.moip.com.br/sandbox/Instrucao.do?token=";
|
58 |
+
$urljs = "https://desenvolvedor.moip.com.br/sandbox/";
|
59 |
+
}
|
60 |
+
else {
|
61 |
+
$url = "https://www.moip.com.br/Instrucao.do?token=";
|
62 |
+
$urljs = "https://www.moip.com.br/";
|
63 |
+
}
|
64 |
+
?>
|
65 |
+
|
66 |
+
<?php
|
67 |
+
}
|
68 |
+
endif; ?>
|
app/design/adminhtml/default/default/template/MOIP/transparente/info/pdf.phtml
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
<?php $info = $this->_prepareInfo(); ?>
|
3 |
+
<?php if($info['result_meio'] == "Cartão de Crédito"): ?>
|
4 |
+
|
5 |
+
<p><strong>Cartão de Crédito</strong></p>
|
6 |
+
<p>Pago em <?php echo $info['creditcard_parc']; ?>:<?php $imagem = $info['image']; ?></p>
|
7 |
+
|
8 |
+
<label>6 Primeiros dígitos do cartão: <?php echo $info['first6'] ?></label>
|
9 |
+
<label>4 Últimos dígitos do cartão: <?php echo $info['last4'] ?> </label>
|
10 |
+
|
11 |
+
<?php endif ?>
|
12 |
+
|
13 |
+
|
14 |
+
<?php if($info['result_meio'] == "Boleto Bancário"): ?>
|
15 |
+
<p><strong>Boleto Bancário</strong></p>
|
16 |
+
<?php endif ?>
|
17 |
+
|
18 |
+
|
19 |
+
|
20 |
+
<?php if($info['result_meio'] == "Transferência Bancária"): ?>
|
21 |
+
<p><strong>Transferência Bancária</strong></p>
|
22 |
+
<?php endif ?>
|
app/design/frontend/base/default/layout/moip_onestepcheckout.xml
CHANGED
@@ -1,167 +1,181 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
-
<layout version="0.1.0">
|
3 |
-
|
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>
|
13 |
-
<action method="addJs"><script>MOIP/jquery.mask.min.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>
|
27 |
-
ou use <type>js</type> caso o js da pasta pasta_da_loja/js
|
28 |
-
<action method="removeItem"><type>js</type><name>plugins/jquery.flexslider-min.js</name></action>
|
29 |
-
-->
|
30 |
-
</reference>
|
31 |
-
<reference name="root">
|
32 |
-
<action method="setTemplate"><template>page/1column.phtml</template></action>
|
33 |
-
</reference>
|
34 |
-
<reference name="checkout.onepage">
|
35 |
-
<action method="setTemplate">
|
36 |
-
<template>MOIP/onestepcheckout/onepage.phtml</template>
|
37 |
-
</action>
|
38 |
-
</reference>
|
39 |
-
<reference name="content">
|
40 |
-
<block type="core/template" name="onestepcheckout.daskboard" as="daskboard" template="MOIP/onestepcheckout/daskboard.phtml">
|
41 |
-
<block type="checkout/onepage_login" name="checkout.onepage.login" as="login" template="MOIP/onestepcheckout/daskboard/onepage/login.phtml"/>
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
|
49 |
-
|
50 |
-
<block type="checkout/onepage_shipping_method_additional" name="onestepcheckout.onepage.shipping_method.additional" as="additional" template="MOIP/onestepcheckout/daskboard/onepage/review/options/additional.phtml"/>
|
51 |
|
52 |
-
|
53 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
</block>
|
55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
-
|
58 |
-
|
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"/>
|
63 |
-
</block>
|
64 |
|
65 |
-
|
66 |
-
<block type="checkout/onepage_review_info" name="info" template="MOIP/onestepcheckout/daskboard/onepage/review/info.phtml">
|
67 |
-
<action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
68 |
-
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
69 |
-
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
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>
|
94 |
-
<reference name="root">
|
95 |
-
<action method="setTemplate"><template>MOIP/onestepcheckout/emptyupdate.phtml</template></action>
|
96 |
-
</reference>
|
97 |
-
<reference name="content">
|
98 |
-
<block type="checkout/onepage_review_info" name="info" template="MOIP/onestepcheckout/daskboard/onepage/review/info.phtml">
|
99 |
-
<action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
100 |
-
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
101 |
-
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
102 |
-
<action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
103 |
-
<block type="checkout/cart_totals" name="checkout.onepage.review.info.totals" as="totals" template="MOIP/onestepcheckout/daskboard/onepage/review/totals.phtml"/>
|
104 |
-
<block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before"/>
|
105 |
-
</block>
|
106 |
-
</reference>
|
107 |
-
</onestepcheckout_index_updateshippingmethod>
|
108 |
-
<onestepcheckout_index_updatepaymentmethod>
|
109 |
-
<reference name="root">
|
110 |
-
<action method="setTemplate"><template>MOIP/onestepcheckout/emptyupdate.phtml</template></action>
|
111 |
-
</reference>
|
112 |
-
<reference name="content">
|
113 |
-
<block type="checkout/onepage_review_info" name="info" template="MOIP/onestepcheckout/daskboard/onepage/review/info.phtml">
|
114 |
-
<action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
115 |
-
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
116 |
-
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
117 |
-
<action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
118 |
-
<block type="checkout/cart_totals" name="checkout.onepage.review.info.totals" as="totals" template="MOIP/onestepcheckout/daskboard/onepage/review/totals.phtml"/>
|
119 |
-
<block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before"/>
|
120 |
-
</block>
|
121 |
-
</reference>
|
122 |
-
</onestepcheckout_index_updatepaymentmethod>
|
123 |
-
|
124 |
-
<onestepcheckout_index_updateshippingtype>
|
125 |
-
<reference name="root">
|
126 |
-
<action method="setTemplate"><template>MOIP/onestepcheckout/emptyupdate.phtml</template></action>
|
127 |
-
</reference>
|
128 |
-
<reference name="content">
|
129 |
-
<block type="checkout/onepage_shipping_method_available" name="root" template="MOIP/onestepcheckout/daskboard/onepage/shipping_method/available.phtml"/>
|
130 |
-
</reference>
|
131 |
-
</onestepcheckout_index_updateshippingtype>
|
132 |
-
<onestepcheckout_index_updatepaymenttype>
|
133 |
-
<reference name="root">
|
134 |
-
<action method="setTemplate"><template>MOIP/onestepcheckout/emptyupdate.phtml</template></action>
|
135 |
-
</reference>
|
136 |
-
<reference name="content">
|
137 |
-
<block type="checkout/onepage_payment_methods" name="root" template="MOIP/onestepcheckout/daskboard/onepage/payment/methods.phtml"/>
|
138 |
-
</reference>
|
139 |
-
</onestepcheckout_index_updatepaymenttype>
|
140 |
-
|
141 |
-
<onestepcheckout_index_updatebillingform>
|
142 |
-
<reference name="root">
|
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">
|
154 |
-
<action method="setTemplate"><template>MOIP/onestepcheckout/sales/order/info.phtml</template></action>
|
155 |
-
<block type="onestepcheckout/sales_info_customermessages" name="customer_messages" as="customer_messages" template="MOIP/onestepcheckout/sales/order/info/customermessages.phtml"></block>
|
156 |
-
</reference>
|
157 |
-
</sales_order_view>
|
158 |
-
<onestepcheckout_index_updateshippingform>
|
159 |
-
<reference name="root">
|
160 |
-
<action method="setTemplate"><template>MOIP/onestepcheckout/emptyupdate.phtml</template></action>
|
161 |
-
</reference>
|
162 |
-
<reference name="content">
|
163 |
-
<block type="onestepcheckout/checkout_onepage_shipping" name="checkout.onepage.shipping.shippingform" as="shipping_form" template="MOIP/onestepcheckout/daskboard/onepage/shipping/shipping_form.phtml"/>
|
164 |
-
</reference>
|
165 |
-
</onestepcheckout_index_updateshippingform>
|
166 |
-
|
167 |
-
</layout>
|
1 |
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<checkout_onepage_index>
|
4 |
+
<reference name="head">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
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 |
+
<action method="addJs"><script>MOIP/onestepcheckout/change-events.js</script></action>
|
9 |
+
<action method="addJs"><script>MOIP/jquery.mask.min.js</script></action>
|
10 |
+
<action method="addJs"><script>MOIP/script_mask.js</script></action>
|
11 |
+
<action method="addJs"><script>MOIP/validacao.js</script></action>
|
12 |
+
<action method="addJs"><script>varien/accordion.js</script></action>
|
13 |
+
<action method="addJs"><script>MOIP/bootstrap-modal.js</script></action>
|
14 |
+
<action method="addItem"><type>skin_js</type><name>js/opcheckout.js</name></action>
|
15 |
+
<action method="addCss"><stylesheet>MOIP/onestepcheckout/css/onestepcheckout.css</stylesheet></action>
|
16 |
+
<action method="addCss"><stylesheet>MOIP/onestepcheckout/css/bootstrap-modal.css</stylesheet></action>
|
17 |
+
<!--block type="page/html_head" output="toHtml" name="onepage_js" template="MOIP/onestepcheckout/onepage.phtml" /-->
|
18 |
+
<!-- estes são exemplos de como remover outros js do site
|
19 |
+
use o <type>skin_js</type> se o js estiver na pasta skin
|
20 |
+
<action method="removeItem"><type>skin_js</type><name>js/jquery.js</name></action>
|
21 |
+
ou use <type>js</type> caso o js da pasta pasta_da_loja/js
|
22 |
+
<action method="removeItem"><type>js</type><name>plugins/jquery.flexslider-min.js</name></action>
|
23 |
+
-->
|
24 |
+
</reference>
|
25 |
+
<reference name="checkout.onepage">
|
26 |
+
<action method="setTemplate">
|
27 |
+
<template>MOIP/onestepcheckout/onepage.phtml</template>
|
28 |
+
</action>
|
29 |
+
</reference>
|
30 |
+
<reference name="root">
|
31 |
+
<remove name="right"/>
|
32 |
+
<remove name="left"/>
|
33 |
+
<action method="setTemplate"><template>page/1column.phtml</template></action>
|
34 |
+
</reference>
|
35 |
+
<reference name="content">
|
36 |
+
<block type="core/template" name="onestepcheckout.daskboard" as="daskboard" template="MOIP/onestepcheckout/daskboard.phtml">
|
37 |
+
<block type="checkout/onepage_login" name="checkout.onepage.login" as="login" template="MOIP/onestepcheckout/daskboard/onepage/login.phtml"/>
|
38 |
+
<block type="customer/account_forgotpassword" name="checkout.onepage.forgotpassword" as="forgotpassword" template="MOIP/onestepcheckout/daskboard/onepage/forgotpassword.phtml"/>
|
39 |
+
|
40 |
+
<block type="onestepcheckout/checkout_onepage_billing" name="checkout.onepage.billing" as="billing" template="MOIP/onestepcheckout/daskboard/onepage/billing.phtml">
|
41 |
+
<block type="onestepcheckout/checkout_onepage_billing" name="checkout.onepage.billing.billingform" as="billing_form" template="MOIP/onestepcheckout/daskboard/onepage/billing/billingform.phtml"/>
|
42 |
+
|
43 |
+
</block>
|
44 |
+
|
45 |
+
<block type="checkout/cart_coupon" name="checkout.onepage.coupon" as="coupon" template="MOIP/onestepcheckout/daskboard/onepage/coupon.phtml"/>
|
46 |
|
47 |
+
<block type="checkout/onepage_shipping_method_additional" name="onestepcheckout.onepage.shipping_method.additional" as="additional" template="MOIP/onestepcheckout/daskboard/onepage/review/options/additional.phtml"/>
|
|
|
48 |
|
49 |
+
<block type="onestepcheckout/checkout_onepage_review_options" name="checkout.onepage.review.options" as="options" template="MOIP/onestepcheckout/daskboard/onepage/review/options.phtml">
|
50 |
+
|
51 |
+
</block>
|
52 |
+
<block type="onestepcheckout/checkout_onepage_shipping" name="checkout.onepage.shipping" as="shipping" template="MOIP/onestepcheckout/daskboard/onepage/shipping.phtml">
|
53 |
+
<block type="onestepcheckout/checkout_onepage_shipping" name="checkout.onepage.shipping.shippingform" as="shipping_form" template="MOIP/onestepcheckout/daskboard/onepage/shipping/shipping_form.phtml"/>
|
54 |
+
</block>
|
55 |
+
<block type="checkout/onepage_progress" name="checkout.onepage.shipping_method" as="shipping_method" template="MOIP/onestepcheckout/daskboard/onepage/shipping_method.phtml">
|
56 |
+
<block type="checkout/onepage_shipping_method_available" name="checkout.onepage.shipping_method.available" as="available" template="MOIP/onestepcheckout/daskboard/onepage/shipping_method/available.phtml"/>
|
57 |
+
</block>
|
58 |
+
<block type="checkout/onepage_payment" name="onestepcheckout.onepage.payment" as="payment" template="MOIP/onestepcheckout/daskboard/onepage/payment.phtml">
|
59 |
+
<block type="checkout/onepage_payment_methods" name="onestepcheckout.onepage.payment.methods" as="methods" template="MOIP/onestepcheckout/daskboard/onepage/payment/methods.phtml"/>
|
60 |
+
</block>
|
61 |
+
|
62 |
+
<block type="checkout/onepage_review" name="checkout.onepage.review" as="review" template="MOIP/onestepcheckout/daskboard/onepage/review.phtml">
|
63 |
+
<block type="checkout/onepage_review_info" name="info" template="MOIP/onestepcheckout/daskboard/onepage/review/info.phtml">
|
64 |
+
<action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
65 |
+
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
66 |
+
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
67 |
+
<action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
68 |
+
<block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before"/>
|
69 |
+
<block type="checkout/cart_totals" name="totals" template="MOIP/onestepcheckout/daskboard/onepage/review/totals.phtml" />
|
70 |
+
<block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before" translate="label">
|
71 |
+
<label>Items Before</label>
|
72 |
+
</block>
|
73 |
+
<block type="core/text_list" name="checkout.onepage.review.info.items.after" as="items_after" translate="label">
|
74 |
+
<label>Items After</label>
|
75 |
+
</block>
|
76 |
+
</block>
|
77 |
+
</block>
|
78 |
</block>
|
79 |
+
</reference>
|
80 |
+
</checkout_onepage_index>
|
81 |
+
|
82 |
+
<onestepcheckout_index_updateshippingmethod>
|
83 |
+
|
84 |
+
|
85 |
+
<block type="checkout/onepage_review" name="root" as="review" template="MOIP/onestepcheckout/daskboard/onepage/review.phtml">
|
86 |
+
<block type="checkout/onepage_review_info" name="info" template="MOIP/onestepcheckout/daskboard/onepage/review/info.phtml">
|
87 |
+
<action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
88 |
+
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
89 |
+
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
90 |
+
<action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
91 |
+
<block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before"/>
|
92 |
+
<block type="checkout/cart_totals" name="totals" template="MOIP/onestepcheckout/daskboard/onepage/review/totals.phtml" />
|
93 |
+
<block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before" translate="label">
|
94 |
+
<label>Items Before</label>
|
95 |
+
</block>
|
96 |
+
<block type="core/text_list" name="checkout.onepage.review.info.items.after" as="items_after" translate="label">
|
97 |
+
<label>Items After</label>
|
98 |
+
</block>
|
99 |
+
</block>
|
100 |
+
</block>
|
101 |
+
|
102 |
+
</onestepcheckout_index_updateshippingmethod>
|
103 |
+
|
104 |
+
|
105 |
+
|
106 |
+
|
107 |
+
<onestepcheckout_index_updatepaymentmethod>
|
108 |
+
|
109 |
+
|
110 |
+
<block type="checkout/onepage_review" name="root" as="review" template="MOIP/onestepcheckout/daskboard/onepage/review.phtml">
|
111 |
+
<block type="checkout/onepage_review_info" name="info" template="MOIP/onestepcheckout/daskboard/onepage/review/info.phtml">
|
112 |
+
<action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
113 |
+
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
114 |
+
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
115 |
+
<action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
116 |
+
<block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before"/>
|
117 |
+
<block type="checkout/cart_totals" name="totals" template="MOIP/onestepcheckout/daskboard/onepage/review/totals.phtml" />
|
118 |
+
<block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before" translate="label">
|
119 |
+
<label>Items Before</label>
|
120 |
+
</block>
|
121 |
+
<block type="core/text_list" name="checkout.onepage.review.info.items.after" as="items_after" translate="label">
|
122 |
+
<label>Items After</label>
|
123 |
+
</block>
|
124 |
+
</block>
|
125 |
+
</block>
|
126 |
+
|
127 |
+
</onestepcheckout_index_updatepaymentmethod>
|
128 |
+
|
129 |
+
|
130 |
+
<onestepcheckout_index_updatereviewmethod>
|
131 |
+
|
132 |
+
|
133 |
+
<block type="checkout/onepage_review" name="root" as="review" template="MOIP/onestepcheckout/daskboard/onepage/review.phtml">
|
134 |
+
<block type="checkout/onepage_review_info" name="info" template="MOIP/onestepcheckout/daskboard/onepage/review/info.phtml">
|
135 |
+
<action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
136 |
+
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
137 |
+
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
138 |
+
<action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
|
139 |
+
<block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before"/>
|
140 |
+
<block type="checkout/cart_totals" name="totals" template="MOIP/onestepcheckout/daskboard/onepage/review/totals.phtml" />
|
141 |
+
<block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before" translate="label">
|
142 |
+
<label>Items Before</label>
|
143 |
+
</block>
|
144 |
+
<block type="core/text_list" name="checkout.onepage.review.info.items.after" as="items_after" translate="label">
|
145 |
+
<label>Items After</label>
|
146 |
+
</block>
|
147 |
+
</block>
|
148 |
+
</block>
|
149 |
+
|
150 |
+
</onestepcheckout_index_updatereviewmethod>
|
151 |
+
|
152 |
+
<onestepcheckout_index_updateshippingtype>
|
153 |
+
<remove name="right"/>
|
154 |
+
<remove name="left"/>
|
155 |
+
<block type="checkout/onepage_shipping_method_available" name="root" output="toHtml" template="MOIP/onestepcheckout/daskboard/onepage/shipping_method/available.phtml"/>
|
156 |
+
</onestepcheckout_index_updateshippingtype>
|
157 |
+
|
158 |
+
<onestepcheckout_index_updatepaymenttype>
|
159 |
+
<remove name="right"/>
|
160 |
+
<remove name="left"/>
|
161 |
+
<block type="checkout/onepage_payment_methods" name="root" output="toHtml" template="MOIP/onestepcheckout/daskboard/onepage/payment/methods.phtml"/>
|
162 |
+
</onestepcheckout_index_updatepaymenttype>
|
163 |
+
|
164 |
+
<onestepcheckout_index_updatebillingform>
|
165 |
+
<remove name="right"/>
|
166 |
+
<remove name="left"/>
|
167 |
+
<block type="MOIP_Onestepcheckout_Block_Checkout_Onepage_Billing" name="root" output="toHtml" as="billing_form" template="MOIP/onestepcheckout/daskboard/onepage/billing/billingform.phtml"/>
|
168 |
+
</onestepcheckout_index_updatebillingform>
|
169 |
+
|
170 |
+
|
171 |
+
|
172 |
+
<onestepcheckout_index_updateshippingform>
|
173 |
+
<reference name="root">
|
174 |
+
<action method="setTemplate"><template>MOIP/onestepcheckout/emptyupdate.phtml</template></action>
|
175 |
+
</reference>
|
176 |
+
<reference name="content">
|
177 |
<block type="onestepcheckout/checkout_onepage_shipping" name="checkout.onepage.shipping.shippingform" as="shipping_form" template="MOIP/onestepcheckout/daskboard/onepage/shipping/shipping_form.phtml"/>
|
178 |
+
</reference>
|
179 |
+
</onestepcheckout_index_updateshippingform>
|
|
|
|
|
|
|
|
|
|
|
180 |
|
181 |
+
</layout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/layout/moip_transparente.xml
CHANGED
@@ -1,67 +1,67 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<layout version="0.1.0">
|
3 |
-
<
|
4 |
<reference name="head">
|
5 |
-
<action method="
|
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 |
-
|
|
|
|
|
|
|
|
|
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/
|
26 |
-
<action method="addJs"><script>MOIP/transparente/bootstrap-modal.js</script></action>
|
27 |
<action method="addJs"><script>MOIP/jquery.mask.min.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 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
</reference>
|
66 |
</transparente_standard_redirect>
|
67 |
|
@@ -76,10 +76,10 @@
|
|
76 |
<action method="setTemplate"><template>page/1column.phtml</template></action>
|
77 |
</reference>
|
78 |
</transparente_index_novaforma>
|
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,30 +90,30 @@
|
|
90 |
</reference>
|
91 |
</sales_order_view>
|
92 |
|
93 |
-
|
94 |
|
95 |
<customer_address_form>
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
|
111 |
-
|
112 |
<block type="MOIP_Transparente_Block_Standard_Info" name="transparente.info" template="MOIP/transparente/info.phtml"></block>
|
113 |
</sales>
|
114 |
|
115 |
-
|
116 |
-
|
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>
|
@@ -121,7 +121,7 @@
|
|
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>
|
@@ -133,6 +133,6 @@
|
|
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>
|
1 |
<?xml version="1.0"?>
|
2 |
<layout version="0.1.0">
|
3 |
+
<catalog_product_view translate="label">
|
4 |
<reference name="head">
|
5 |
+
<action method="addCss"><stylesheet>MOIP/transparente/css/product_view.css</stylesheet></action>
|
|
|
|
|
|
|
6 |
</reference>
|
7 |
+
<reference name="product.info">
|
8 |
+
<block type="MOIP_Transparente_Block_Product_View" name="product.info.parcelas" as="parcelas" template="MOIP/product/view/parcelas.phtml"/>
|
9 |
+
</reference>
|
10 |
+
</catalog_product_view>
|
11 |
+
|
12 |
|
13 |
<checkout_onepage_index>
|
14 |
<reference name="head">
|
15 |
+
<action method="addJs" ifconfig="moipall/config/enable_jquery"><script>MOIP/jquery.js</script></action>
|
16 |
+
<action method="addJs"><script>MOIP/jquery_noconflict.js</script></action>
|
17 |
+
<action method="addJs"><script>MOIP/jquery.mask.min.js</script></action>
|
18 |
+
<action method="addJs"><script>MOIP/script_mask.js</script></action>
|
19 |
+
<action method="addJs"><script>MOIP/transparente/valide.js</script></action>
|
20 |
+
<action method="addJs"><script>MOIP/transparente/bootstrap-tab.js</script></action>
|
21 |
+
<action method="addCss"><stylesheet>MOIP/transparente/css/bootstrap-tabs.css</stylesheet></action>
|
22 |
</reference>
|
23 |
</checkout_onepage_index>
|
|
|
24 |
<transparente_standard_redirect>
|
25 |
<reference name="head">
|
|
|
|
|
|
|
26 |
|
27 |
+
<action method="setTitle"><params><![CDATA[Pagamento via MoIP S/A]]></params></action>
|
28 |
+
<action method="addJs" ifconfig="moipall/config/enable_jquery"><script>MOIP/jquery.js</script></action>
|
29 |
<action method="addJs"><script>MOIP/jquery_noconflict.js</script></action>
|
30 |
+
<action method="addJs"><script>MOIP/bootstrap-modal.js</script></action>
|
|
|
31 |
<action method="addJs"><script>MOIP/jquery.mask.min.js</script></action>
|
32 |
<action method="addJs"><script>MOIP/script_mask.js</script></action>
|
33 |
<action method="addJs"><script>MOIP/validacao.js</script></action>
|
34 |
<action method="addCss"><stylesheet>MOIP/transparente/css/bootstrap.css</stylesheet></action>
|
35 |
+
<action method="addCss"><stylesheet>MOIP/onestepcheckout/css/bootstrap-modal.css</stylesheet></action>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
</reference>
|
37 |
<reference name="root">
|
38 |
<action method="setTemplate"><template>page/1column.phtml</template></action>
|
39 |
</reference>
|
40 |
<reference name="content">
|
41 |
<block type="MOIP_Transparente_Block_Standard_Redirect" name="transparente.comum" template="MOIP/transparente/redirect.phtml">
|
42 |
+
|
43 |
<block type="MOIP_Transparente_Block_Standard_Redirect" name="transparente.transferencia" template="MOIP/transparente/transferencia.phtml"></block>
|
44 |
+
<block type="MOIP_Transparente_Block_Standard_Redirect" name="transparente.boleto" template="MOIP/transparente/boleto.phtml"></block>
|
45 |
+
<block type="MOIP_Transparente_Block_Standard_Redirect" name="transparente.cartao" template="MOIP/transparente/cartao.phtml">
|
46 |
+
<block type="MOIP_Transparente_Block_Standard_Redirect" name="cartao_form" template="MOIP/transparente/refaz.phtml">
|
47 |
+
<action method="setBlockId"><block_id>cartao_form</block_id></action>
|
48 |
+
</block>
|
49 |
+
</block>
|
50 |
+
</block>
|
51 |
+
|
52 |
+
<block type="MOIP_Transparente_Block_Standard_SuccessDetails" name="success.order" template="MOIP/transparente/SuccessDetails.phtml">
|
53 |
+
<action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/items/renderer/default.phtml</template></action>
|
54 |
+
<action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/items/renderer/default.phtml</template></action>
|
55 |
+
<block type="sales/order_totals" name="order_totals" template="sales/order/totals.phtml">
|
56 |
+
<action method="setLabelProperties"><value>colspan="4" class="a-right"</value></action>
|
57 |
+
<action method="setValueProperties"><value>class="last a-right"</value></action>
|
58 |
+
<block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml">
|
59 |
+
<action method="setIsPlaneMode"><value>1</value></action>
|
60 |
+
</block>
|
61 |
+
</block>
|
62 |
+
|
63 |
+
</block>
|
64 |
+
|
65 |
</reference>
|
66 |
</transparente_standard_redirect>
|
67 |
|
76 |
<action method="setTemplate"><template>page/1column.phtml</template></action>
|
77 |
</reference>
|
78 |
</transparente_index_novaforma>
|
79 |
+
|
80 |
<sales_order_view>
|
81 |
<reference name="head">
|
82 |
+
<action method="addJs" ifconfig="moipall/config/enable_jquery"><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" ifconfig="moipall/config/enable_jquery"><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>
|
101 |
+
<action method="addJs"><script>MOIP/jquery.mask.min.js</script></action>
|
102 |
+
<action method="addJs"><script>MOIP/script_mask.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>
|
121 |
|
122 |
<transparente_index_cartoes>
|
123 |
<reference name="head">
|
124 |
+
<action method="addJs" ifconfig="moipall/config/enable_jquery"><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>
|
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,194 +1,314 @@
|
|
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 |
-
|
12 |
-
|
13 |
-
<?php endif ?>
|
14 |
</style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
|
|
39 |
</div>
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
</div>
|
48 |
-
<div class="moip-osc-block-content">
|
49 |
-
<div>
|
50 |
-
<?php echo $this->getChildHtml('shipping');?>
|
51 |
-
</div>
|
52 |
-
</div>
|
53 |
</div>
|
54 |
-
|
55 |
-
<?php endif;?>
|
56 |
-
|
57 |
</div>
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
|
|
|
|
|
|
74 |
</div>
|
75 |
</div>
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
}
|
86 |
-
?>>
|
87 |
-
</div>
|
88 |
-
<h3><?php echo $this->__('Payment method');?></h3>
|
89 |
-
</div>
|
90 |
-
<div class="moip-osc-block-content">
|
91 |
-
<?php echo $this->getChildHtml('payment');?>
|
92 |
</div>
|
|
|
|
|
93 |
</div>
|
94 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
</div>
|
|
|
|
|
|
|
96 |
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
</div>
|
105 |
</div>
|
106 |
-
|
107 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
</div>
|
109 |
</div>
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
<ul class="erros_cadastro_valores">
|
121 |
</ul>
|
122 |
-
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
190 |
</div>
|
191 |
-
|
192 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
</div>
|
194 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php $color = "#".Mage::getStoreConfig('onestepcheckout/layout/style_cor'); ?>
|
2 |
<?php $botao_color = "#".Mage::getStoreConfig('onestepcheckout/layout/botao_cor');?>
|
3 |
<?php $islogin=0; if(Mage::getSingleton('customer/session')->isLoggedIn()) $islogin=1; ?>
|
4 |
<style type="text/css">
|
5 |
+
#loginbox, #btn_logar,.btn-update-qty{background:<?php echo $botao_color;?>;padding: 5px 10px;color:#fff;text-decoration: none;border-radius: 5px;text-align: center;}
|
6 |
div.moip-osc-block-title{border-bottom:4px solid <?php echo $color;?>;}
|
|
|
7 |
p.moip-osc-block-title{color:<?php echo $color;?>;}
|
8 |
.moip-osc-block-title>h3 {color: <?php echo $color;?>;}
|
9 |
+
|
10 |
+
|
|
|
11 |
</style>
|
12 |
+
<?php if(Mage::getStoreConfig('onestepcheckout/layout/page_layout')==2){
|
13 |
+
$class_nodisplay = "";
|
14 |
+
$urlPost= $this->getUrl('onestepcheckout/index/updateordermethod');
|
15 |
+
$class_1collun = "span4 grid12-4";
|
16 |
+
$class_2collun = "span8 grid12-8";
|
17 |
+
$style_2collun = "";
|
18 |
+
$style_2collun = "";
|
19 |
+
$class_3collun = "span8 grid12-8";
|
20 |
+
$class_4collun = "span8 grid12-8";
|
21 |
+
} elseif(Mage::getStoreConfig('onestepcheckout/layout/page_layout')==3){
|
22 |
+
$class_nodisplay = "";
|
23 |
+
$urlPost= $this->getUrl('onestepcheckout/index/updateordermethod');
|
24 |
+
$class_1collun = "span4 grid12-4";
|
25 |
+
$class_2collun = "span8 grid12-8";
|
26 |
+
$style_2collun = "margin-left:0 !important; margin-right: 0 !important; width: 65% !important";
|
27 |
+
$class_Shippingcollun = "span6 grid12-6";
|
28 |
+
$class_Paymentcollun = "span6 grid12-6";
|
29 |
+
$class_3collun = "span8 grid12-8";
|
30 |
+
} elseif(Mage::getStoreConfig('onestepcheckout/layout/page_layout')==4){
|
31 |
+
$class_nodisplay = "";
|
32 |
+
$urlPost= $this->getUrl('onestepcheckout/index/updateordermethod');
|
33 |
+
$class_1collun = "span4 grid12-4";
|
34 |
+
$class_2collun = "span4 grid12-4";
|
35 |
+
$style_2collun = "";
|
36 |
+
$style_2collun = "";
|
37 |
+
$class_3collun = "span4 grid12-4";
|
38 |
+
} else {
|
39 |
+
if($islogin){
|
40 |
+
$class_nodisplay = "";
|
41 |
+
$urlPost= $this->getUrl('onestepcheckout/index/updateordermethod');
|
42 |
+
$class_1collun = "span4 grid12-4";
|
43 |
+
$class_2collun = "span4 grid12-5";
|
44 |
+
$style_2collun = "";
|
45 |
+
$class_3collun = "span8 grid12-3";
|
46 |
|
47 |
+
} else {
|
48 |
+
$urlPost= $this->getUrl('onestepcheckout/index/CreataAccountInit');
|
49 |
+
$class_nodisplay = "force-nodisplay";
|
50 |
+
$class_1collun = "span4 grid12-8";
|
51 |
+
$class_2collun = "span4 grid12-8";
|
52 |
+
$style_2collun = "";
|
53 |
+
$class_Shippingcollun = "span6 grid12-6";
|
54 |
+
$class_Paymentcollun = "span6 grid12-6";
|
55 |
+
$style_2collun = "";
|
56 |
+
$class_3collun = "span4 grid12-4";
|
57 |
+
}
|
58 |
+
} ?>
|
59 |
+
|
60 |
+
|
61 |
+
<div class="moip-osc-threecolumns moip-osc-checkoutcontainer moip-osc-skin-generic">
|
62 |
+
|
63 |
+
<form id="onestep_form" autocomplete="off" action="<?php echo $urlPost ?>" method="POST" class="scaffold-form">
|
64 |
+
<?php echo $this->getBlockHtml('formkey') ?>
|
65 |
+
<?php if(Mage::getStoreConfig('onestepcheckout/layout/page_layout')==5): ?>
|
66 |
+
<div class="moip-osc-column <?php echo $class_3collun;?>" id="review_collum">
|
67 |
+
<div class="moip-osc-block">
|
68 |
+
<div class="moip-osc-block-title">
|
69 |
+
<div class="onestepcheckout-numbers onestepcheckout-numbers-6"></div>
|
70 |
+
<h3><?php echo $this->__('Itens do Carrinho');?></h3>
|
71 |
</div>
|
72 |
+
<div class="moip-osc-block-content">
|
73 |
+
<?php echo $this->getChildHtml('review',false,true);?>
|
74 |
+
|
75 |
+
<?php if(Mage::helper('onestepcheckout')->showCouponCode() && $islogin):?>
|
76 |
+
<?php echo $this->getChildHtml('coupon',false,true);?>
|
77 |
+
<?php endif;?>
|
78 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
</div>
|
80 |
+
</div>
|
|
|
|
|
81 |
</div>
|
82 |
+
<?php endif;?>
|
83 |
+
<div class="moip-osc-column <?php echo $class_1collun; ?>" id="first_collun">
|
84 |
+
<div class="moip-osc-block-title">
|
85 |
+
<div class="onestepcheckout-numbers onestepcheckout-numbers-1"></div>
|
86 |
+
<h3><?php echo $this->__('Dados de Cadastro');?></h3>
|
87 |
+
</div>
|
88 |
+
<div class="moip-osc-block-content">
|
89 |
+
<div class="billing_start">
|
90 |
+
<?php if($class_nodisplay): ?>
|
91 |
+
<div id="criar_loga">
|
92 |
+
<div class="span6 grid12-6">
|
93 |
+
<h2>Quero me Cadastrar</h2>
|
94 |
+
<div class="content">
|
95 |
+
|
96 |
+
<p class="form-instructions">Cadastre-se para finalizar seu pedido</p>
|
97 |
+
|
98 |
+
<div class="buttons-set">
|
99 |
+
<div onclick="showcreateAccount();" class="button btn-button" id="btn_logar">Criar Conta</div>
|
100 |
+
</div>
|
101 |
</div>
|
102 |
</div>
|
103 |
+
<div class="span6 grid12-6" style="border-left:1px solid; padding-left:2%;width: 45%;">
|
104 |
+
<h2>Já Tenho Cadastro</h2>
|
105 |
+
<div class="content">
|
106 |
+
|
107 |
+
<p class="form-instructions">Já tem um cadastro conosco?</p>
|
108 |
+
|
109 |
+
<div class="buttons-set">
|
110 |
+
<a href="#" data-toggle="modal" class="button btn-button" data-target="#loginModel" id="loginbox" style="display:block">Clique aqui e faça o login</a>
|
111 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
</div>
|
113 |
+
|
114 |
+
|
115 |
</div>
|
116 |
</div>
|
117 |
+
<?php endif ?>
|
118 |
+
<div class="<?php echo $class_nodisplay; ?>" id="cadastrar"><?php echo $this->getChildHtml('billing',false,true);?></div>
|
119 |
+
|
120 |
+
</div>
|
121 |
+
</div>
|
122 |
+
<?php if(!Mage::helper('onestepcheckout')->onlyProductDownloadable()): ?>
|
123 |
+
<?php if(Mage::getStoreConfig('onestepcheckout/config/allowshippingotheraddress')):?>
|
124 |
+
<div style="display:none;" id="shipping_show">
|
125 |
+
<div class="moip-osc-block-title">
|
126 |
+
<div class="onestepcheckout-numbers onestepcheckout-numbers-2" ></div>
|
127 |
+
<h3><?php echo $this->__('Shipping address');?></h3>
|
128 |
+
</div>
|
129 |
+
<div class="moip-osc-block-content">
|
130 |
+
<div>
|
131 |
+
<?php echo $this->getChildHtml('shipping',false,true);?>
|
132 |
+
</div>
|
133 |
</div>
|
134 |
+
</div>
|
135 |
+
<?php endif; ?>
|
136 |
+
<?php endif;?>
|
137 |
|
138 |
+
</div>
|
139 |
+
|
140 |
+
<div class="moip-osc-column <?php echo $class_2collun.' '.$class_nodisplay; ?>" style="<?php echo $style_2collun ?>">
|
141 |
+
|
142 |
+
<?php if(!Mage::helper('onestepcheckout')->onlyProductDownloadable()):?>
|
143 |
+
<div class="moip-osc-column <?php echo $class_Shippingcollun; ?>">
|
144 |
+
<div class="moip-osc-block" >
|
145 |
+
<div class="moip-osc-block-title">
|
146 |
+
<div class="onestepcheckout-numbers onestepcheckout-numbers-2" id="moip-osc-p2"></div>
|
147 |
+
<h3> <?php echo $this->__('Envio');?> </h3>
|
148 |
+
</div>
|
149 |
+
<div class="moip-osc-block-content">
|
150 |
+
<?php if(!$class_nodisplay): ?>
|
151 |
+
<?php echo $this->getChildHtml('shipping_method',false,true);?>
|
152 |
+
<?php if(Mage::helper('onestepcheckout')->enableGiftMessage()):?>
|
153 |
+
<?php echo $this->getChildHtml('additional',false,true) ?>
|
154 |
+
<?php endif; ?>
|
155 |
+
<?php endif; ?>
|
156 |
</div>
|
157 |
</div>
|
158 |
+
</div>
|
159 |
+
<?php endif?>
|
160 |
+
<div class="moip-osc-column <?php echo $class_Paymentcollun; ?>">
|
161 |
+
<div class="moip-osc-block">
|
162 |
+
<div class="moip-osc-block-title">
|
163 |
+
<div <?php
|
164 |
+
if(Mage::helper('onestepcheckout')->onlyProductDownloadable()){
|
165 |
+
echo "class='onestepcheckout-numbers onestepcheckout-numbers-2' id='moip-osc-p2'";
|
166 |
+
}else{
|
167 |
+
echo "class='onestepcheckout-numbers onestepcheckout-numbers-3' id='moip-osc-p3'";
|
168 |
+
}
|
169 |
+
?>>
|
170 |
+
</div>
|
171 |
+
<h3><?php echo $this->__('Pagamento');?></h3>
|
172 |
+
</div>
|
173 |
+
<div class="moip-osc-block-content">
|
174 |
+
<?php if(!$class_nodisplay): ?>
|
175 |
+
<?php echo $this->getChildHtml('payment',false,true);?>
|
176 |
+
<?php endif; ?>
|
177 |
+
|
178 |
+
</div>
|
179 |
</div>
|
180 |
</div>
|
|
|
181 |
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
</div>
|
183 |
+
<?php if(Mage::getStoreConfig('onestepcheckout/layout/page_layout')!=5): ?>
|
184 |
+
<div class="moip-osc-column <?php echo $class_3collun;?>" id="review_collum">
|
185 |
+
<div class="moip-osc-block">
|
186 |
+
<div class="moip-osc-block-title">
|
187 |
+
<div class="onestepcheckout-numbers onestepcheckout-numbers-6"></div>
|
188 |
+
<h3><?php echo $this->__('Itens do Carrinho');?></h3>
|
189 |
+
</div>
|
190 |
+
<div class="moip-osc-block-content">
|
191 |
+
<?php echo $this->getChildHtml('review',false,true);?>
|
192 |
+
<?php if(Mage::helper('onestepcheckout')->showCouponCode()):?>
|
193 |
+
<?php echo $this->getChildHtml('coupon',false,true);?>
|
194 |
+
<?php endif;?>
|
195 |
+
|
196 |
+
</div>
|
197 |
+
</div>
|
198 |
+
</div>
|
199 |
+
<?php endif;?>
|
200 |
+
|
201 |
+
|
202 |
+
|
203 |
+
</form>
|
204 |
+
|
205 |
+
</div>
|
206 |
+
|
207 |
+
<div id="loading-mask">
|
208 |
+
<div id="loading_mask_loader" class="loader">
|
209 |
+
<img alt="Loading..." class="loading_img" src="<?php echo $this->getSkinUrl('MOIP/onestepcheckout/images/ajax-loader-tr.gif')?>">
|
210 |
+
<span>Atualizando dados, por favor aguarde...</span>
|
211 |
+
</div>
|
212 |
+
</div>
|
213 |
+
|
214 |
+
|
215 |
+
|
216 |
+
|
217 |
+
|
218 |
+
|
219 |
+
<div class="modal fade" id="ErrosFinalizacao" tabindex="-1" role="dialog" aria-labelledby="smallModal" aria-hidden="false">
|
220 |
+
<div class="modal-dialog modal-sm">
|
221 |
+
<div class="modal-content">
|
222 |
+
<div class="modal-header">
|
223 |
+
<h4 class="modal-title" id="myModalLabel">Ops, corriga os campos abaixo:</h4>
|
224 |
+
</div>
|
225 |
+
<div class="modal-body">
|
226 |
+
<div class="erros_cadastro">
|
227 |
<ul class="erros_cadastro_valores">
|
228 |
</ul>
|
229 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
230 |
</div>
|
231 |
+
</div>
|
232 |
+
<div class="modal-footer">
|
233 |
+
<button type="button" class="button btn btn-default" data-dismiss="modal">Ok, entendi!</button>
|
234 |
+
</div>
|
235 |
+
</div>
|
236 |
+
</div>
|
237 |
</div>
|
238 |
+
|
239 |
+
<?php if(!$islogin):?>
|
240 |
+
|
241 |
+
<div class="modal fade" id="loginModel" tabindex="-1" role="dialog" aria-labelledby="smallModal" aria-hidden="true">
|
242 |
+
<div class="modal-dialog modal-sm">
|
243 |
+
<div class="modal-content">
|
244 |
+
<div class="modal-header">
|
245 |
+
<h4 class="modal-title" id="myModalLabel">Entrar</h4>
|
246 |
+
</div>
|
247 |
+
<div class="modal-body">
|
248 |
+
<?php echo $this->getChildHtml('login',false,true);?>
|
249 |
+
</div>
|
250 |
+
<div class="modal-footer">
|
251 |
+
<button type="button" class="button btn btn-default" data-dismiss="modal">Fechar</button>
|
252 |
+
</div>
|
253 |
+
</div>
|
254 |
+
</div>
|
255 |
</div>
|
256 |
+
|
257 |
+
<?php endif; ?>
|
258 |
+
|
259 |
+
<?php if(!$islogin):?>
|
260 |
+
|
261 |
+
<div class="modal fade" id="EsqueceuSenha" tabindex="-1" role="dialog" aria-labelledby="smallModal" aria-hidden="true">
|
262 |
+
<div class="modal-dialog modal-sm">
|
263 |
+
<div class="modal-content">
|
264 |
+
<div class="modal-header">
|
265 |
+
<h4 class="modal-title" id="myModalLabel">Recuperar Senha</h4>
|
266 |
+
</div>
|
267 |
+
<div class="modal-body">
|
268 |
+
<?php echo $this->getChildHtml('forgotpassword',false,true);?>
|
269 |
+
</div>
|
270 |
+
<div class="modal-footer">
|
271 |
+
<button type="button" class="button btn btn-default" data-dismiss="modal">Fechar</button>
|
272 |
+
</div>
|
273 |
+
</div>
|
274 |
+
</div>
|
275 |
+
</div>
|
276 |
+
|
277 |
+
<?php endif; ?>
|
278 |
+
|
279 |
+
<div class="modal fade" id="store_secure_content" tabindex="-1" role="dialog" aria-labelledby="smallModal" aria-hidden="true">
|
280 |
+
<div class="modal-dialog modal-sm">
|
281 |
+
<div class="modal-content">
|
282 |
+
<div class="modal-header">
|
283 |
+
<h4 class="modal-title" id="myModalLabel">Loja Segura</h4>
|
284 |
+
</div>
|
285 |
+
<div class="modal-body">
|
286 |
+
<?php echo $this->__(Mage::getStoreConfig('onestepcheckout/modaluse/secure'));?>
|
287 |
+
</div>
|
288 |
+
<div class="modal-footer">
|
289 |
+
<button type="button" class="button btn btn-default" data-dismiss="modal">Fechar</button>
|
290 |
+
</div>
|
291 |
+
</div>
|
292 |
+
</div>
|
293 |
+
</div>
|
294 |
+
|
295 |
+
|
296 |
+
|
297 |
+
<div class="modal fade" id="termos_modal" tabindex="-1" role="dialog" aria-labelledby="smallModal" aria-hidden="true">
|
298 |
+
<div class="modal-dialog modal-sm">
|
299 |
+
<div class="modal-content">
|
300 |
+
<div class="modal-header">
|
301 |
+
<h4 class="modal-title" id="myModalLabel">Termos e Condições</h4>
|
302 |
+
</div>
|
303 |
+
<div class="modal-body">
|
304 |
+
<?php echo $this->__(Mage::getStoreConfig('onestepcheckout/modaluse/content_options'));?>
|
305 |
+
</div>
|
306 |
+
<div class="modal-footer">
|
307 |
+
<button type="button" class="button btn btn-default" data-dismiss="modal">Fechar</button>
|
308 |
+
</div>
|
309 |
+
</div>
|
310 |
+
</div>
|
311 |
+
</div>
|
312 |
+
|
313 |
+
|
314 |
+
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/billing.phtml
CHANGED
@@ -1,83 +1,59 @@
|
|
|
|
1 |
<script type="text/javascript" src="<?php echo $this->getJsUrl('MOIP/onestepcheckout/billing.js') ?>"></script>
|
2 |
<div id="co-billing-form">
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
<input type="hidden" name="billing[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="billing:address_id" />
|
16 |
-
<ul id="moip_onstepcheckout_billing_form">
|
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>
|
43 |
-
</fieldset>
|
44 |
-
</li>
|
45 |
-
|
46 |
-
</ul>
|
47 |
-
</fieldset>
|
48 |
</div>
|
49 |
|
|
|
|
|
|
|
|
|
50 |
<script type="text/javascript">
|
51 |
//<![CDATA[
|
52 |
-
var billaddbook = 1;
|
53 |
-
jQuery("#billing\\:save_in_address_book").click(function() {
|
54 |
-
if (this.value != billaddbook) {
|
55 |
-
temp = billaddbook;
|
56 |
-
billaddbook = this.value;
|
57 |
-
jQuery("#billing\\:save_in_address_book").attr("value", temp);
|
58 |
-
}
|
59 |
-
});
|
60 |
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
|
68 |
-
jQuery.ajax({
|
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 |
-
});
|
79 |
-
}
|
80 |
-
}
|
81 |
//]]>
|
82 |
</script>
|
83 |
-
|
1 |
+
<?php $myStatus = $this->isCustomerLoggedIn(); ?>
|
2 |
<script type="text/javascript" src="<?php echo $this->getJsUrl('MOIP/onestepcheckout/billing.js') ?>"></script>
|
3 |
<div id="co-billing-form">
|
4 |
+
<?php if($myStatus): ?>
|
5 |
+
<ul class="form-list" >
|
6 |
+
<li class="wide">
|
7 |
+
<label for="billing-address-select" style="_width:250px;"><?php echo $this->__('Selecione o endereço de seu cadastro ou crie um novo:') ?></label>
|
8 |
+
<div class="input-box">
|
9 |
+
<?php echo $this->getAddressesHtmlSelect22('billing') ?>
|
10 |
+
</div>
|
11 |
+
</li>
|
12 |
+
</ul>
|
13 |
+
<?php endif ?>
|
14 |
+
<?php echo $this->getChildHtml('billing_form');?>
|
15 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
</div>
|
18 |
|
19 |
+
|
20 |
+
|
21 |
+
|
22 |
+
|
23 |
<script type="text/javascript">
|
24 |
//<![CDATA[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
+
var billaddbook = 1;
|
27 |
+
jQuery("#billing\\:save_in_address_book").click(function() {
|
28 |
+
if (this.value != billaddbook) {
|
29 |
+
temp = billaddbook;
|
30 |
+
billaddbook = this.value;
|
31 |
+
jQuery("#billing\\:save_in_address_book").attr("value", temp);
|
32 |
+
}
|
33 |
+
});
|
34 |
+
|
35 |
+
function updateBillingForm(address_id, flag) {
|
36 |
+
if (address_id == "") {
|
37 |
+
var temp_id = jQuery("#billing\\:address_id").val();
|
38 |
+
jQuery('#billing-new-address-form').clearForm();
|
39 |
+
jQuery("#billing\\:address_id").val('');
|
40 |
+
} else {
|
41 |
+
|
42 |
+
jQuery.ajax({
|
43 |
+
type: "POST",
|
44 |
+
url: "<?php echo Mage::getUrl('onestepcheckout/index/updatebillingform')?>",
|
45 |
+
data: jQuery("#onestep_form").serialize(),
|
46 |
+
|
47 |
+
success: function(msg) {
|
48 |
+
jQuery('#moip_onstepcheckout_billing_form').html(msg);
|
49 |
+
jQuery('#moip_onstepcheckout_billing_form').find("script").each(function(i) {
|
50 |
+
eval(jQuery(this).text());
|
51 |
+
});
|
52 |
+
updateShippingType();
|
53 |
+
}
|
54 |
+
});
|
55 |
+
}
|
56 |
+
}
|
57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
//]]>
|
59 |
</script>
|
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/billing/billingform.phtml
CHANGED
@@ -1,249 +1,310 @@
|
|
1 |
<?php
|
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 |
<li class="fields">
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
</li>
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
|
|
46 |
</li>
|
|
|
|
|
|
|
|
|
47 |
<?php if(!$myStatus): ?>
|
48 |
<li class="fields" id="register-customer-password" style="display:block;">
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
</li>
|
62 |
-
|
|
|
63 |
|
64 |
|
65 |
-
<
|
|
|
66 |
<?php endif; ?>
|
67 |
<?php if(Mage::getStoreConfig('onestepcheckout/config/enable_pj')):?>
|
68 |
|
69 |
-
|
70 |
<li class="fields pj-pf">
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
</li>
|
84 |
<li class="fields dados-pj">
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
</li>
|
98 |
<li class="fields dados-pj">
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
</li>
|
113 |
-
|
114 |
<?php endif; ?>
|
115 |
<li class="fields">
|
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 |
</li>
|
144 |
<li class="fields">
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
</li>
|
160 |
-
|
|
|
|
|
161 |
<li class="fields">
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
</li>
|
182 |
<li class="wide">
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
</li>
|
188 |
<li class="fields">
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
</li>
|
202 |
|
203 |
|
204 |
|
205 |
<li class="fields">
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
</li>
|
219 |
<li class="fields">
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
240 |
|
241 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
242 |
//<![CDATA[
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
//]]>
|
248 |
-
</script>
|
249 |
-
|
1 |
<?php
|
2 |
+
$myStatus = $this->isCustomerLoggedIn();
|
3 |
+
$data = $this->data();
|
4 |
+
$fullname = $data['fullname'];
|
5 |
+
$firstname = $data['firstname'];
|
6 |
+
$lastname = $data['lastname'];
|
7 |
+
$region_select = $this->escapeHtml($this->getAddress()->getRegion());
|
8 |
+
$taxvat = $data['taxvat'];
|
9 |
+
$exibe_email = $data['exibe_email'];
|
10 |
+
$_dob = $this->getLayout()->createBlock('customer/widget_dob');
|
11 |
+
$_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat');
|
12 |
+
$_gender = $this->getLayout()->createBlock('customer/widget_gender');
|
13 |
+
if(Mage::getStoreConfig('onestepcheckout/layout/page_layout')==5){
|
14 |
+
if(!$myStatus){
|
15 |
+
$force_division = "span6 grid12-6";
|
16 |
+
$tyle="border-right:1px solid;width: 47%;";
|
17 |
+
|
18 |
+
} else {
|
19 |
+
$force_division = "";
|
20 |
+
$tyle="";
|
21 |
+
}
|
22 |
+
|
23 |
+
} else {
|
24 |
+
$force_division = "";
|
25 |
+
$tyle="";
|
26 |
+
}
|
27 |
?>
|
28 |
+
<fieldset>
|
29 |
+
<ul class="form-list" id="moip_onstepcheckout_billing_form" >
|
30 |
+
<?php if(!$myStatus):?>
|
31 |
+
<?php if(Mage::getStoreConfig('onestepcheckout/layout/enable_quicklogin') && !$force_division):?>
|
32 |
+
<a id="loginbox" href="#" data-toggle="modal" data-target="#loginModel" title="Entrar com a sua conta"><?php echo $this->__('Already registered? Click here to login.');?></a>
|
33 |
+
<?php endif?>
|
34 |
+
<?php endif?>
|
35 |
+
<input type="hidden" title="Permanecer logado" name="form_key" value="<? echo Mage::getSingleton('core/session')->getFormKey(); ?>" class="input-hidden" />
|
36 |
+
<input type="hidden" name="billing[address_id]" title="Endereço selecionado" value="<?php echo $this->getAddress()->getId() ?>" id="billing:address_id"class="input-hidden" />
|
37 |
+
<div class="<?php echo $force_division ?>" style="<?php echo $tyle; ?>">
|
38 |
+
<?php if($force_division): ?><h3>Meu Cadastro</h3><?php endif; ?>
|
39 |
<li class="fields">
|
40 |
+
<div class="customer-name field">
|
41 |
+
<label for="billing:firstname" class="required"><em>*</em>Nome</label>
|
42 |
+
<div class="input-box">
|
43 |
+
<input autocomplete="off" type="text" id="billing:firstname" name="billing[firstname]" value="<?php echo $firstname; ?>" title="Nome" class="input-text required-entry" placeholder="Nome">
|
44 |
+
</div>
|
45 |
+
</div>
|
46 |
+
<div class="field name-lastname">
|
47 |
+
<label for="billing:lastname" class="required"><em>*</em>Sobrenome</label>
|
48 |
+
<div class="input-box">
|
49 |
+
<input autocomplete="off" type="text" id="billing:lastname" name="billing[lastname]" value="<?php echo $lastname; ?>" title="Sobrenome" class="input-text required-entry" placeholder="Sobrenome">
|
50 |
+
</div>
|
51 |
+
</div>
|
52 |
</li>
|
53 |
+
<?php if($exibe_email != 0): ?>
|
54 |
+
<li class="wide">
|
55 |
+
<label for="billing:email" class="required"><em>*</em>Endereço de e-mail</label>
|
56 |
+
<div class="input-box">
|
57 |
+
<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" placeholder="Email">
|
58 |
+
</div>
|
59 |
</li>
|
60 |
+
<?php else: ?>
|
61 |
+
<input autocomplete="off" type="hidden" name="billing[email]" value="<?php echo $this->htmlEscape( Mage::getSingleton('customer/session')->getCustomer()->getEmail()) ?>" id="email" class="input-hidden">
|
62 |
+
|
63 |
+
<?php endif; ?>
|
64 |
<?php if(!$myStatus): ?>
|
65 |
<li class="fields" id="register-customer-password" style="display:block;">
|
66 |
+
<div class="field">
|
67 |
+
<label for="billing:customer_password" class="required"><em>*</em>Crie sua Senha</label>
|
68 |
+
<div class="input-box">
|
69 |
+
<input autocomplete="off" type="password" name="billing[customer_password]" id="billing:customer_password" title="Senha" class="input-text required-entry validate-password" placeholder="Senha">
|
70 |
+
</div>
|
71 |
+
</div>
|
72 |
+
<div class="field">
|
73 |
+
<label for="billing:confirm_password" class="required"><em>*</em>Confirmar sua Senha</label>
|
74 |
+
<div class="input-box">
|
75 |
+
<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" placeholder="Confirmar Senha">
|
76 |
+
</div>
|
77 |
+
</div>
|
78 |
</li>
|
79 |
+
<input autocomplete="off" type="hidden" name="billing[register_new_account]" value="1" title="Criar conta" id="register_new_account" class="input-hidden">
|
80 |
+
<input autocomplete="off" type="hidden" name="billing[persistent_remember_me]" value="1" title="Continuar logado" id="persistent_remember_me" class="input-hidden">
|
81 |
|
82 |
|
83 |
+
<p style="padding-bottom:10px;">A senha criada será utilizada para você ter acesso futuro a loja e acompanhar o seu pedido.</p>
|
84 |
+
|
85 |
<?php endif; ?>
|
86 |
<?php if(Mage::getStoreConfig('onestepcheckout/config/enable_pj')):?>
|
87 |
|
88 |
+
|
89 |
<li class="fields pj-pf">
|
90 |
+
<div class="field">
|
91 |
+
<label class="">
|
92 |
+
<input autocomplete="off" type="radio" name="billing[tipopessoa]" class="radio validate-one-required-by-name" value="1" id="billing:pf" onclick="getval(this);" checked>
|
93 |
+
Pessoa Física
|
94 |
+
</label>
|
95 |
+
</div>
|
96 |
+
<div class="field">
|
97 |
+
<label class="">
|
98 |
+
<input autocomplete="off" type="radio" name="billing[tipopessoa]" class="radio validate-one-required-by-name" value="2" id="billing:pj" onclick="getval(this);">
|
99 |
+
Pessoa Jurídica
|
100 |
+
</label>
|
101 |
+
</div>
|
102 |
</li>
|
103 |
<li class="fields dados-pj">
|
104 |
+
<div class="field">
|
105 |
+
<label for="billing:nomefantasia" class="required"><em>*</em>Nome Fantasia</label>
|
106 |
+
<div class="input-box">
|
107 |
+
<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()); ?>" placeholder="Nome Fantasia">
|
108 |
+
</div>
|
109 |
+
</div>
|
110 |
+
<div class="field">
|
111 |
+
<label for="billing:razaosocial" class="required"><em>*</em>Razão Social</label>
|
112 |
+
<div class="input-box">
|
113 |
+
<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()) ?>" placeholder="Razão Solcial" >
|
114 |
+
</div>
|
115 |
+
</div>
|
116 |
</li>
|
117 |
<li class="fields dados-pj">
|
118 |
+
<div class="field">
|
119 |
+
<label for="billing:cnpj" class="required"><em>*</em>CNPJ</label>
|
120 |
+
<div class="input-box">
|
121 |
+
<input autocomplete="off" type="text" title="cnpj" class="input-text" name="billing[cnpj]" id="cnpj" value="<?php echo $this->htmlEscape(Mage::getSingleton('customer/session')->getCustomer()->getCnpj()) ?>" placeholder="CNPJ">
|
122 |
+
</div>
|
123 |
+
</div>
|
124 |
+
<div class="field">
|
125 |
+
<label for="billing:insestadual" class="required"><em>*</em>Inscrição Estadual</label>
|
126 |
+
<div class="input-box">
|
127 |
+
<input autocomplete="off" type="text" title="Inscrição Estadual" class="input-text" name="billing[insestadual]" value="<?php echo $this->htmlEscape(Mage::getSingleton('customer/session')->getCustomer()->getInsestadual()) ?>" id="insestadual" value="" placeholder="Inscrição Social">
|
128 |
+
</div>
|
129 |
+
<input autocomplete="off" type="checkbox" name="Isento" title="Isento para a Inscrição Estadual" onclick="marcar_isento()" style="width: 15px !important;"><label>Isento</label>
|
130 |
+
</div>
|
131 |
</li>
|
132 |
+
|
133 |
<?php endif; ?>
|
134 |
<li class="fields">
|
135 |
+
<?php if ($_taxvat->isEnabled()): ?>
|
136 |
+
<div class="field">
|
137 |
+
<label for="billing:taxvat" class="required"><em>*</em>CPF </label>
|
138 |
+
<div class="input-box">
|
139 |
+
<input autocomplete="off" type="text" id="billing:taxvat" name="billing[taxvat]"value="<?php echo $taxvat;?>" title="CPF" class="input-text required-entry" placeholder="CPF">
|
140 |
+
</div>
|
141 |
+
<script type="text/javascript">
|
142 |
+
//<![CDATA[
|
143 |
+
$('billing:taxvat').addClassName('validar_cpf');
|
144 |
+
Validation.add('validar_cpf', 'O CPF informado \xE9 invalido', function(v){return validaCPF(v,0);});
|
145 |
+
//]]>
|
146 |
+
</script>
|
147 |
+
</div>
|
148 |
+
<?php endif; ?>
|
149 |
+
<div class="field">
|
150 |
+
<label for="billing:telephone" class="required"><em>*</em>Telefone</label>
|
151 |
+
<div class="input-box">
|
152 |
+
<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" placeholder="Telefone">
|
153 |
+
<script type="text/javascript">
|
154 |
+
//<![CDATA[
|
155 |
+
Validation.add('validate-tel-national', 'Entre com telefone válido: (99)9999-?9999', function(v) {
|
156 |
+
return Validation.get('IsEmpty').test(v) || /^([()])([0-9]){2}([)])([0-9]){4}([-])([0-9]){4,5}$/.test(v);
|
157 |
+
});
|
158 |
+
//]]>
|
159 |
+
</script>
|
160 |
+
</div>
|
161 |
+
</div>
|
162 |
</li>
|
163 |
<li class="fields">
|
164 |
+
<?php if ($_dob->isEnabled()): ?>
|
165 |
+
<div class="field">
|
166 |
+
<?php echo $this->getLayout()->createBlock('customer/widget_dob')
|
167 |
+
->setDate($this->getCustomer()->getDob())
|
168 |
+
->setFieldIdFormat('billing:%s')
|
169 |
+
->setFieldNameFormat('billing[%s]')
|
170 |
+
->toHtml() ?>
|
171 |
+
</div>
|
172 |
+
<?php endif ?>
|
173 |
+
<?php if ($_gender->isEnabled()): ?>
|
174 |
+
<div class="field">
|
175 |
+
<?php echo $_gender->setGender($this->getQuote()->getCustomerGender())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml(); ?>
|
176 |
+
</div>
|
177 |
+
<?php endif ?>
|
178 |
</li>
|
179 |
+
</div>
|
180 |
+
<div class="<?php echo $force_division ?>">
|
181 |
+
<?php if($force_division): ?><h3>Meu Endereço</h3><?php endif; ?>
|
182 |
<li class="fields">
|
183 |
+
<div class="field">
|
184 |
+
|
185 |
+
<label for="billing:postcode" class="required"><em>*</em>CEP</label>
|
186 |
+
<div class="input-box">
|
187 |
+
<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;" placeholder="CEP">
|
188 |
+
</div>
|
189 |
+
<script type="text/javascript">
|
190 |
+
//<![CDATA[
|
191 |
+
Validation.add('validate-zip-international', 'Entre com um cep válido: 99999-999', function(v) {
|
192 |
+
return Validation.get('IsEmpty').test(v) || /^([0-9]){5}([-])([0-9]){3}$/.test(v);
|
193 |
+
});
|
194 |
+
//]]>
|
195 |
+
</script>
|
196 |
+
</div>
|
197 |
+
<div class="field">
|
198 |
+
<div class="input-box" style="margin-top: 20px;margin-bottom: 8px;">
|
199 |
+
<a href="http://www.buscacep.correios.com.br/" target="_blank">Não sabe o CEP?</a>
|
200 |
+
</div>
|
201 |
+
</div>
|
202 |
</li>
|
203 |
<li class="wide">
|
204 |
+
<label for="billing:street1" class="required"><em>*</em>Endereço</label>
|
205 |
+
<div class="input-box">
|
206 |
+
<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" placeholder="Endereço">
|
207 |
+
</div>
|
208 |
</li>
|
209 |
<li class="fields">
|
210 |
+
<div class="field">
|
211 |
+
<label for="billing:street2" class="required"><em>*</em>Número</label>
|
212 |
+
<div class="input-box">
|
213 |
+
<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" placeholder="Número">
|
214 |
+
</div>
|
215 |
+
</div>
|
216 |
+
<div class="field">
|
217 |
+
<label for="billing:street3" class="required">Complemento</label>
|
218 |
+
<div class="input-box">
|
219 |
+
<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" placeholder="Complemento">
|
220 |
+
</div>
|
221 |
+
</div>
|
222 |
</li>
|
223 |
|
224 |
|
225 |
|
226 |
<li class="fields">
|
227 |
+
<div class="field">
|
228 |
+
<label for="billing:street4" class="required"><em>*</em>Bairro</label>
|
229 |
+
<div class="input-box">
|
230 |
+
<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" placeholder="Bairro">
|
231 |
+
</div>
|
232 |
+
</div>
|
233 |
+
<div class="field">
|
234 |
+
<label for="billing:city" class="required"><em>*</em>Cidade</label>
|
235 |
+
<div class="input-box">
|
236 |
+
<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" placeholder="Cidade">
|
237 |
+
</div>
|
238 |
+
</div>
|
239 |
</li>
|
240 |
<li class="fields">
|
241 |
+
<div class="field">
|
242 |
+
<label for="billing:region_id" class=""><em>*</em>Estado</label>
|
243 |
+
<div class="input-box">
|
244 |
+
<select id="billing:region_id" name="billing[region_id]" title="Estado" style="display: none;" defaultvalue="" class="validate-select">
|
245 |
+
<option value="">Por favor, selecione o estado</option>
|
246 |
+
</select>
|
247 |
+
<script type="text/javascript">//<![CDATA[
|
248 |
+
$("billing:region_id").setAttribute("defaultValue", "");
|
249 |
+
//]]></script>
|
250 |
+
<input autocomplete="off" type="text" maxlength="2" id="billing:region" name="billing[region]" value="<?php echo $region_select ?>" title="Estado" class="input-text" style="" >
|
251 |
+
</div>
|
252 |
+
</div>
|
253 |
+
|
254 |
+
<div class="field">
|
255 |
+
<label for="billing:country_id" class="required"><em></em>País</label>
|
256 |
+
<div class="input-box">
|
257 |
+
<?php echo $this->getCountryHtmlSelect('billing') ?>
|
258 |
+
</div>
|
259 |
+
</div>
|
260 |
</li>
|
261 |
+
<?php if($force_division): ?>
|
262 |
+
<div class="buttons-set">
|
263 |
+
<button type="submit" onclick="createAccount();" title="Prosseguir" class="button btn-button"><span><span>Prosseguir</span></span></button>
|
264 |
+
</div>
|
265 |
+
<?php endif; ?>
|
266 |
+
</div>
|
267 |
+
|
268 |
+
|
269 |
+
<li class="control">
|
270 |
+
<?php if(Mage::getStoreConfig('onestepcheckout/config/allowshippingotheraddress')):?>
|
271 |
+
|
272 |
+
<?php if(!Mage::helper('onestepcheckout')->onlyProductDownloadable()):?>
|
273 |
+
<?php if(!$force_division): ?>
|
274 |
+
<a class="btn button" id="ship_to_same_address" onclick="jQuery('#billing\\:ship_to_same_address').val('0');">Enviar Para Outro Endereço</a>
|
275 |
+
<input type="hidden" name="ship_to_same_address" value="1" title="<?php echo $this->__('ship to same address') ?>" id="billing:ship_to_same_address" class="checkbox" checked="checked" >
|
276 |
+
<?php endif; ?>
|
277 |
+
<?php else:?>
|
278 |
+
<?php if(!$force_division): ?>
|
279 |
+
<input type="hidden" name="ship_to_same_address" value="1" title="<?php echo $this->__('ship to same address') ?>">
|
280 |
+
<?php endif; ?>
|
281 |
+
<?php endif; ?>
|
282 |
|
283 |
+
<?php else:?>
|
284 |
+
<?php if(!$force_division): ?>
|
285 |
+
<input type="hidden" name="ship_to_same_address" value="1" title="<?php echo $this->__('ship to same address') ?>">
|
286 |
+
<?php endif; ?>
|
287 |
+
<?php endif; ?>
|
288 |
+
</li>
|
289 |
+
|
290 |
+
<li class="control">
|
291 |
+
<?php if ($myStatus):?>
|
292 |
+
|
293 |
+
<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" />
|
294 |
+
<label for="billing:save_in_address_book" ><?php echo $this->__('Salvar como novo endereço') ?></label>
|
295 |
+
<?php else : ?>
|
296 |
+
<input type="hidden" name="billing[save_in_address_book]" value="1" />
|
297 |
+
<input type="hidden" name="billing[address_id]" value=""/>
|
298 |
+
<?php endif; ?>
|
299 |
+
</li>
|
300 |
+
|
301 |
+
</ul>
|
302 |
+
</fieldset>
|
303 |
+
<script type="text/javascript">
|
304 |
//<![CDATA[
|
305 |
+
jQuery(function(){jQuery("#billing-new-address-form").show();});
|
306 |
+
var billing = new Billing("co-billing-form","<?php echo $this->getUrl('checkout/onepage/getAddress/address/') ?>", "<?php echo $this->getUrl('checkout/onepage/saveBilling/') ?>");
|
307 |
+
var billingForm = new VarienForm("co-billing-form");
|
308 |
+
var billingRegionUpdater = new RegionUpdater("billing:country_id", "billing:region", "billing:region_id", countryRegions, undefined, "billing:postcode");
|
309 |
//]]>
|
310 |
+
</script>
|
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/coupon.phtml
CHANGED
@@ -1,22 +1,22 @@
|
|
1 |
<div class="discount-form">
|
2 |
-
|
3 |
-
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
</div>
|
19 |
-
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
20 |
<script type="text/javascript">
|
21 |
//<![CDATA[
|
22 |
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="<?php if(!$this->getCouponCode()) { ?>display:none; <?php } ?>">
|
6 |
+
<input type="hidden" name="remove" id="remove-coupone" value="0" />
|
7 |
+
<div class="input-box">
|
8 |
+
<input class="input-text" title="cupom de desconto" id="coupon_code" name="coupon_code" value="<?php echo $this->htmlEscape($this->getCouponCode()) ?>" style="max-width: 180px;" />
|
9 |
+
</div>
|
10 |
+
<div class="buttons-set" style="padding-bottom: 20px;">
|
11 |
+
<button type="button" title="<?php echo $this->__('Apply Coupon') ?>" class="button" onclick="if(!jQuery('#coupon_code').val()){alert('Por Favor, insira um cupom.')}else{updateCoupon();}" value="<?php echo $this->__('Apply Coupon') ?>"><span><span><?php echo $this->__('Apply Coupon') ?></span></span></button>
|
12 |
+
<?php if(strlen($this->getCouponCode())): ?>
|
13 |
+
<button type="button" title="<?php echo $this->__('Cancel Coupon') ?>" class="button" onclick="jQuery('#remove-coupone').val(1);updateCoupon()" value="<?php echo $this->__('Cancel Coupon') ?>"><span><span><?php echo $this->__('Cancel Coupon') ?></span></span></button>
|
14 |
+
<?php endif;?>
|
15 |
+
</div>
|
16 |
+
</div>
|
17 |
+
<p id="loading_mask_loader" class="loader" style="display:none"><img alt="Loading..." src="<?php echo $this->getSkinUrl('MOIP/onestepcheckout/images/ajax-loader-tr.gif')?>"><br>Atualizando dados, por favor aguarde...</p>
|
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,7 +1,3 @@
|
|
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" >
|
@@ -18,10 +14,10 @@
|
|
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 |
|
@@ -50,19 +46,14 @@ function updateForgotpassword(email) {
|
|
50 |
data: "email="+email,
|
51 |
success: function(msg){
|
52 |
if(msg==1){
|
53 |
-
jQuery('#
|
54 |
-
|
55 |
-
|
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 |
}
|
|
|
|
|
|
|
|
|
1 |
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
2 |
<form method="post" id="form-validate" >
|
3 |
<div class="fieldset" >
|
14 |
</div>
|
15 |
<div class="buttons-set" >
|
16 |
<span id="forgotpass-please-wait" class="please-wait">
|
17 |
+
<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...');?>
|
18 |
</span>
|
|
|
19 |
<button id="btforgotpass" type="button" onclick="onepageforgotpassword(this)" title="<?php echo $this->__('Submit') ?>" class="button"><span ><span><?php echo $this->__('Submit') ?></span></span></button>
|
20 |
+
<button type="button" class="no-button" data-dismiss="modal" aria-hidden="true">Voltar para página de login</button>
|
21 |
</div>
|
22 |
</form>
|
23 |
|
46 |
data: "email="+email,
|
47 |
success: function(msg){
|
48 |
if(msg==1){
|
49 |
+
jQuery('#voltarLogin').html("<div class='moip-osc-title-login envia-senha'></div><p>O email de recuperaçao de senha foi enviado.</p><button type='button' class='buttons-set' data-dismiss='modal' aria-hidden='true'>Voltar para página de login</button>");
|
50 |
+
|
51 |
+
|
|
|
|
|
|
|
|
|
|
|
52 |
}
|
53 |
else {
|
54 |
jQuery('#btforgotpass').css('display','block');
|
55 |
jQuery('#forgotpass-please-wait').css('display','none');
|
56 |
+
jQuery('#errorforgotpass').css('display','block');
|
57 |
jQuery('#email_address').addClass('validation-failed')
|
58 |
}
|
59 |
}
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/login-pre.phtml
ADDED
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="col1-set">
|
2 |
+
<?php echo $this->getChildHtml('login_before')?>
|
3 |
+
<div >
|
4 |
+
|
5 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
6 |
+
|
7 |
+
<form id="login-form-checkout-pre" method="post">
|
8 |
+
<fieldset>
|
9 |
+
<div >
|
10 |
+
<ul class="form-list">
|
11 |
+
<li>
|
12 |
+
<label for="login-email" class="required" >E-mail<em>*</em></label>
|
13 |
+
<div class="input-box" style="float:left;">
|
14 |
+
<input type="text" class="input-text required-entry validate-email" id="login-email-pre" name="login[username]" value="<?php echo $this->htmlEscape($this->getUsername()) ?>" />
|
15 |
+
</div>
|
16 |
+
</li>
|
17 |
+
<li>
|
18 |
+
<label for="login-password" class="required" >Senha<em style="position:static;float:none;color:#EB340A;font-style:normal;right:-8px;top:0;">*</em></label>
|
19 |
+
<div class="input-box" style="float:left;">
|
20 |
+
<input type="password" class="input-text required-entry" id="login-password-pre" name="login[password]" />
|
21 |
+
</div>
|
22 |
+
</li>
|
23 |
+
<li>
|
24 |
+
<a href="#" data-toggle="modal" data-target="#EsqueceuSenha" class="f-left link-recuperar-senha"><?php echo $this->__('Forgot your password?') ?></a>
|
25 |
+
</li>
|
26 |
+
</ul>
|
27 |
+
</div>
|
28 |
+
<div id="dados_incorretos" style="display:none; height:90px;position: relative">
|
29 |
+
<ul class="messages"> <li class="error-msg">Dados incorretos, por favor tente novamente.<li><ul>
|
30 |
+
</div>
|
31 |
+
<div class="logando_aguarde" style="display:none">
|
32 |
+
<span>Por favor, aguarde!</span>
|
33 |
+
<p id="loading_mask_loader" class="loader"><img alt="Loading..." src="<?php echo $this->getSkinUrl('MOIP/onestepcheckout/images/ajax-loader-tr.gif')?>">.</p>
|
34 |
+
|
35 |
+
</div>
|
36 |
+
|
37 |
+
<div class="buttons-set">
|
38 |
+
|
39 |
+
|
40 |
+
<button type="button" class="button" onclick="onepageLogin(this)"><span ><span ><?php echo $this->__('Login') ?></span></span></button>
|
41 |
+
|
42 |
+
|
43 |
+
|
44 |
+
</div>
|
45 |
+
|
46 |
+
</fieldset>
|
47 |
+
</form>
|
48 |
+
</div>
|
49 |
+
</div>
|
50 |
+
<script type="text/javascript">
|
51 |
+
//<![CDATA[
|
52 |
+
var loginForm = new VarienForm('login-form-checkout-pre', true);
|
53 |
+
$('login-email').observe('keypress', bindLoginPost);
|
54 |
+
$('login-password').observe('keypress', bindLoginPost);
|
55 |
+
function bindLoginPost(evt){
|
56 |
+
if (evt.keyCode == Event.KEY_RETURN) {
|
57 |
+
return false;
|
58 |
+
}
|
59 |
+
}
|
60 |
+
function onepageLogin(button)
|
61 |
+
{
|
62 |
+
if(loginForm.validator && loginForm.validator.validate()){
|
63 |
+
updateLogin(jQuery('#login-email-pre').val(),jQuery('#login-password-pre').val());
|
64 |
+
}
|
65 |
+
jQuery('#errorlogin-pre').css('display','none');
|
66 |
+
return false;
|
67 |
+
}
|
68 |
+
//]]>
|
69 |
+
</script>
|
70 |
+
<script type="text/javascript">
|
71 |
+
//<![CDATA[
|
72 |
+
function updateLogin(email,password)
|
73 |
+
{
|
74 |
+
|
75 |
+
jQuery('.buttons-set .button').css('display','none');
|
76 |
+
jQuery.ajax({
|
77 |
+
type: "POST",
|
78 |
+
url: "<?php echo Mage::getUrl('onestepcheckout/index/updatelogin')?>",
|
79 |
+
data: "email="+email+"&"+"password="+password,
|
80 |
+
success: function(msg){
|
81 |
+
if(msg==0){
|
82 |
+
jQuery('.buttons-set .button').css('display','block');
|
83 |
+
jQuery('#login-please-wait').css('display','none');
|
84 |
+
jQuery('#dados_incorretos').css('display','block');
|
85 |
+
jQuery('#errorlogin').css('display','block');
|
86 |
+
jQuery('#login-email').addClass('validation-failed');
|
87 |
+
jQuery('#login-password').addClass('validation-failed');
|
88 |
+
}
|
89 |
+
else{
|
90 |
+
jQuery('.logando_aguarde').show();
|
91 |
+
var url="<?php echo Mage::getUrl('checkout/onepage'); ?>";
|
92 |
+
jQuery(location).attr('href',url);
|
93 |
+
}
|
94 |
+
}
|
95 |
+
});
|
96 |
+
}
|
97 |
+
//]]>
|
98 |
+
</script>
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/login.phtml
CHANGED
@@ -1,17 +1,13 @@
|
|
1 |
-
<div class="col1-set"
|
2 |
<?php echo $this->getChildHtml('login_before')?>
|
3 |
<div >
|
4 |
-
|
5 |
-
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
6 |
-
<div class="moip-osc-title-login">
|
7 |
|
8 |
-
|
9 |
|
10 |
-
</div>
|
11 |
<form id="login-form-checkout" method="post">
|
12 |
<fieldset>
|
13 |
<div >
|
14 |
-
<ul class="form-list"
|
15 |
<li>
|
16 |
<label for="login-email" class="required" >E-mail<em>*</em></label>
|
17 |
<div class="input-box" style="float:left;">
|
@@ -24,20 +20,29 @@
|
|
24 |
<input type="password" class="input-text required-entry" id="login-password" name="login[password]" />
|
25 |
</div>
|
26 |
</li>
|
|
|
|
|
|
|
27 |
</ul>
|
28 |
</div>
|
29 |
<div id="dados_incorretos" style="display:none; height:90px;position: relative">
|
30 |
<ul class="messages"> <li class="error-msg">Dados incorretos, por favor tente novamente.<li><ul>
|
31 |
</div>
|
32 |
-
|
|
|
|
|
|
|
|
|
|
|
33 |
<div class="buttons-set">
|
34 |
-
|
35 |
-
|
36 |
<button type="button" class="button" onclick="onepageLogin(this)"><span ><span ><?php echo $this->__('Login') ?></span></span></button>
|
37 |
-
|
38 |
-
|
|
|
39 |
</div>
|
40 |
-
|
41 |
</fieldset>
|
42 |
</form>
|
43 |
</div>
|
@@ -73,20 +78,18 @@ jQuery('.buttons-set .button').css('display','none');
|
|
73 |
url: "<?php echo Mage::getUrl('onestepcheckout/index/updatelogin')?>",
|
74 |
data: "email="+email+"&"+"password="+password,
|
75 |
success: function(msg){
|
76 |
-
//alert(msg);
|
77 |
if(msg==0){
|
78 |
jQuery('.buttons-set .button').css('display','block');
|
79 |
jQuery('#login-please-wait').css('display','none');
|
80 |
jQuery('#dados_incorretos').css('display','block');
|
81 |
-
jQuery("#inline1").css("height","<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')+65?>px");
|
82 |
-
jQuery(".col1-set").css("height","<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')+45?>px");
|
83 |
jQuery('#errorlogin').css('display','block');
|
84 |
jQuery('#login-email').addClass('validation-failed');
|
85 |
jQuery('#login-password').addClass('validation-failed');
|
86 |
}
|
87 |
else{
|
88 |
-
|
89 |
-
|
|
|
90 |
}
|
91 |
}
|
92 |
});
|
1 |
+
<div class="col1-set">
|
2 |
<?php echo $this->getChildHtml('login_before')?>
|
3 |
<div >
|
|
|
|
|
|
|
4 |
|
5 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
6 |
|
|
|
7 |
<form id="login-form-checkout" method="post">
|
8 |
<fieldset>
|
9 |
<div >
|
10 |
+
<ul class="form-list">
|
11 |
<li>
|
12 |
<label for="login-email" class="required" >E-mail<em>*</em></label>
|
13 |
<div class="input-box" style="float:left;">
|
20 |
<input type="password" class="input-text required-entry" id="login-password" name="login[password]" />
|
21 |
</div>
|
22 |
</li>
|
23 |
+
<li>
|
24 |
+
<a href="#" data-toggle="modal" data-target="#EsqueceuSenha" class="f-left link-recuperar-senha"><?php echo $this->__('Forgot your password?') ?></a>
|
25 |
+
</li>
|
26 |
</ul>
|
27 |
</div>
|
28 |
<div id="dados_incorretos" style="display:none; height:90px;position: relative">
|
29 |
<ul class="messages"> <li class="error-msg">Dados incorretos, por favor tente novamente.<li><ul>
|
30 |
</div>
|
31 |
+
<div class="logando_aguarde" style="display:none">
|
32 |
+
<span>Por favor, aguarde!</span>
|
33 |
+
<p id="loading_mask_loader" class="loader"><img alt="Loading..." src="<?php echo $this->getSkinUrl('MOIP/onestepcheckout/images/ajax-loader-tr.gif')?>">.</p>
|
34 |
+
|
35 |
+
</div>
|
36 |
+
|
37 |
<div class="buttons-set">
|
38 |
+
|
39 |
+
|
40 |
<button type="button" class="button" onclick="onepageLogin(this)"><span ><span ><?php echo $this->__('Login') ?></span></span></button>
|
41 |
+
|
42 |
+
|
43 |
+
|
44 |
</div>
|
45 |
+
|
46 |
</fieldset>
|
47 |
</form>
|
48 |
</div>
|
78 |
url: "<?php echo Mage::getUrl('onestepcheckout/index/updatelogin')?>",
|
79 |
data: "email="+email+"&"+"password="+password,
|
80 |
success: function(msg){
|
|
|
81 |
if(msg==0){
|
82 |
jQuery('.buttons-set .button').css('display','block');
|
83 |
jQuery('#login-please-wait').css('display','none');
|
84 |
jQuery('#dados_incorretos').css('display','block');
|
|
|
|
|
85 |
jQuery('#errorlogin').css('display','block');
|
86 |
jQuery('#login-email').addClass('validation-failed');
|
87 |
jQuery('#login-password').addClass('validation-failed');
|
88 |
}
|
89 |
else{
|
90 |
+
jQuery('.logando_aguarde').show();
|
91 |
+
var url="<?php echo Mage::getUrl('checkout/onepage'); ?>";
|
92 |
+
jQuery(location).attr('href',url);
|
93 |
}
|
94 |
}
|
95 |
});
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/payment.phtml
CHANGED
@@ -33,6 +33,84 @@
|
|
33 |
<fieldset id="checkout-payment-method-load">
|
34 |
<?php echo $this->getChildHtml('methods') ?>
|
35 |
</fieldset>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
</div>
|
37 |
|
38 |
<div class="tool-tip" id="payment-tool-tip" style="display:none;">
|
@@ -61,6 +139,7 @@
|
|
61 |
<script type="text/javascript">
|
62 |
//<![CDATA[
|
63 |
payment.currentMethod = "<?php echo $this->getChild('methods')->getSelectedMethodCode() ?>";
|
64 |
-
payment.initWhatIsCvvListeners();
|
65 |
//]]>
|
66 |
</script>
|
|
33 |
<fieldset id="checkout-payment-method-load">
|
34 |
<?php echo $this->getChildHtml('methods') ?>
|
35 |
</fieldset>
|
36 |
+
|
37 |
+
|
38 |
+
|
39 |
+
</div
|
40 |
+
<div class="buttons-set">
|
41 |
+
<?php $islogin=0; if(Mage::getSingleton('customer/session')->isLoggedIn()) $islogin=1; ?>
|
42 |
+
<?php if(Mage::getStoreConfig('onestepcheckout/layout/page_layout')==5 ){
|
43 |
+
if(!$islogin){
|
44 |
+
$notenable = 1;
|
45 |
+
} else{
|
46 |
+
$notenable = "";
|
47 |
+
}
|
48 |
+
} else {
|
49 |
+
$notenable = "";
|
50 |
+
}
|
51 |
+
|
52 |
+
?>
|
53 |
+
<?php if(!$notenable): ?>
|
54 |
+
|
55 |
+
|
56 |
+
<div id="checkout-review-terms">
|
57 |
+
<?php if(Mage::getStoreConfig('onestepcheckout/modaluse/termos')):?>
|
58 |
+
<div class="onestepcheckout-enable-terms" style="postion:relative;">
|
59 |
+
<ul class="form-list">
|
60 |
+
<li class="control">
|
61 |
+
<input class="required-entry checkbox" type="checkbox" id="id_accept_terms" name="accept_terms" value="1" checked="checked" s />
|
62 |
+
<label for="termos"><?php echo $this->__('Eu aceito o');?> <a id="onestepcheckout-toc-link" data-toggle="modal" data-target="#termos_modal" href="#"><?php echo $this->__('Contrato de compra e os Termos de uso do site.');?></a></label>
|
63 |
+
</li>
|
64 |
+
</ul>
|
65 |
+
</div>
|
66 |
+
<?php endif ?>
|
67 |
+
</div>
|
68 |
+
<?php if(Mage::getStoreConfig('onestepcheckout/addfield/usenews')==1):?>
|
69 |
+
<?php if(Mage::helper('onestepcheckout')->issubscribed()):?>
|
70 |
+
<ul class="form-list">
|
71 |
+
<li class="control">
|
72 |
+
<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>
|
73 |
+
</li>
|
74 |
+
</ul>
|
75 |
+
<?php endif?>
|
76 |
+
<?php endif ?>
|
77 |
+
|
78 |
+
<?php if(Mage::getStoreConfig('onestepcheckout/addfield/usenews')==2):?>
|
79 |
+
<?php if(Mage::helper('onestepcheckout')->issubscribed()):?>
|
80 |
+
<ul class="form-list">
|
81 |
+
<li class="control">
|
82 |
+
<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>
|
83 |
+
</li>
|
84 |
+
</ul>
|
85 |
+
<?php endif?>
|
86 |
+
<?php endif?>
|
87 |
+
|
88 |
+
|
89 |
+
|
90 |
+
|
91 |
+
<div style="float: right;" id="onestepcheckout_place_order_button">
|
92 |
+
<button type="button" title="<?php echo $this->__('Place Order') ?>" class="button btn-checkout" id="checkout-onepage-buttom">
|
93 |
+
<span><span><?php echo $this->__('Place Order') ?> <i class="fa fa-arrow-right"></i></span></span></button>
|
94 |
+
</div>
|
95 |
+
|
96 |
+
<?php if(Mage::getStoreConfig('onestepcheckout/modaluse/use_secure')){ ?>
|
97 |
+
<div>
|
98 |
+
<a id="store_secure" data-toggle="modal" data-target="#store_secure_content">
|
99 |
+
<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>
|
100 |
+
</a>
|
101 |
+
</div>
|
102 |
+
<?php } ?>
|
103 |
+
|
104 |
+
|
105 |
+
|
106 |
+
<?php if(Mage::helper('onestepcheckout')->showComment()):?>
|
107 |
+
<div class="onestepcheckout-comments">
|
108 |
+
<label for="id_comments"><?php echo $this->__('Comments');?></label><br/>
|
109 |
+
<textarea id="id_comments" name="onestepcheckout_comments" cols="40" rows="4"></textarea>
|
110 |
+
</div>
|
111 |
+
<?php endif;?>
|
112 |
+
|
113 |
+
<?php endif; ?>
|
114 |
</div>
|
115 |
|
116 |
<div class="tool-tip" id="payment-tool-tip" style="display:none;">
|
139 |
<script type="text/javascript">
|
140 |
//<![CDATA[
|
141 |
payment.currentMethod = "<?php echo $this->getChild('methods')->getSelectedMethodCode() ?>";
|
142 |
+
payment.initWhatIsCvvListeners();
|
143 |
//]]>
|
144 |
</script>
|
145 |
+
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/payment/methods.phtml
CHANGED
@@ -10,19 +10,19 @@
|
|
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>
|
23 |
<script type="text/javascript">
|
24 |
//<![CDATA[
|
25 |
-
<?php echo $this->
|
26 |
payment.init();
|
27 |
//]]>
|
28 |
</script>
|
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>
|
23 |
<script type="text/javascript">
|
24 |
//<![CDATA[
|
25 |
+
<?php echo $this->getChildHtml('scripts'); ?>
|
26 |
payment.init();
|
27 |
//]]>
|
28 |
</script>
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/review.phtml
CHANGED
@@ -1,63 +1,3 @@
|
|
1 |
-
|
2 |
-
<?php echo $this->getChildHtml('info') ?>
|
3 |
-
|
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 |
-
|
1 |
+
<?php echo $this->getChildHtml('items_before'); ?>
|
2 |
+
<?php echo $this->getChildHtml('info') ?>
|
3 |
+
<?php echo $this->getChildHtml('items_after'); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/review/info.phtml
CHANGED
@@ -19,63 +19,29 @@
|
|
19 |
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
*
|
21 |
* @category design
|
22 |
-
* @package
|
23 |
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
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
|
30 |
-
<col />
|
31 |
-
<col width="1" />
|
32 |
-
<col width="1" />
|
33 |
-
<col width="1" />
|
34 |
-
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
35 |
-
<col width="1" />
|
36 |
-
<col width="1" />
|
37 |
-
<?php endif; ?>
|
38 |
<thead>
|
39 |
<tr>
|
40 |
-
<th
|
41 |
-
<th
|
42 |
-
<th rowspan="<?php echo $rowspan ?>" class="a-center"><?php echo $this->__('Qty') ?></th>
|
43 |
-
<th colspan="<?php echo $colspan ?>" class="a-center"><?php echo $this->__('Subtotal') ?></th>
|
44 |
</tr>
|
45 |
-
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
46 |
-
<tr>
|
47 |
-
<th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
|
48 |
-
<th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
|
49 |
-
<th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
|
50 |
-
<th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
|
51 |
-
</tr>
|
52 |
-
<?php endif; ?>
|
53 |
</thead>
|
54 |
-
<?php echo $this->getChildHtml('totals'); ?>
|
55 |
-
<tbody>
|
56 |
<?php foreach($this->getItems() as $_item): ?>
|
57 |
<?php echo $this->getItemHtml($_item)?>
|
58 |
<?php endforeach ?>
|
59 |
-
</tbody>
|
60 |
</table>
|
61 |
</div>
|
62 |
-
|
63 |
<script type="text/javascript">
|
64 |
//<![CDATA[
|
65 |
-
decorateTable('checkout-review-table');
|
66 |
truncateOptions();
|
67 |
//]]>
|
68 |
</script>
|
69 |
-
<div id="checkout-review-submit">
|
70 |
-
<div class="buttons-set" id="review-buttons-container">
|
71 |
-
|
72 |
-
<span class="please-wait" id="review-please-wait" style="display:none;">
|
73 |
-
<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...') ?>
|
74 |
-
</span>
|
75 |
-
</div>
|
76 |
-
<script type="text/javascript">
|
77 |
-
//<![CDATA[
|
78 |
-
review = new Review('<?php echo $this->getUrl('checkout/onepage/saveOrder') ?>', '<?php echo $this->getUrl('checkout/onepage/success') ?>', $('id_accept_terms'));
|
79 |
-
//]]>
|
80 |
-
</script>
|
81 |
-
</div>
|
19 |
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
*
|
21 |
* @category design
|
22 |
+
* @package default_iphone
|
23 |
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
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 cart-table-items" id="checkout-review-table">
|
30 |
+
<?php echo $this->getChildHtml('totals'); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
<thead>
|
32 |
<tr>
|
33 |
+
<th><?php echo $this->__('Product Name') ?></th>
|
34 |
+
<th class="a-right"><?php echo $this->__('Subtotal') ?></th>
|
|
|
|
|
35 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
</thead>
|
|
|
|
|
37 |
<?php foreach($this->getItems() as $_item): ?>
|
38 |
<?php echo $this->getItemHtml($_item)?>
|
39 |
<?php endforeach ?>
|
|
|
40 |
</table>
|
41 |
</div>
|
42 |
+
<?php echo $this->getChildHtml('items_after'); ?>
|
43 |
<script type="text/javascript">
|
44 |
//<![CDATA[
|
|
|
45 |
truncateOptions();
|
46 |
//]]>
|
47 |
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/review/item.phtml
CHANGED
@@ -19,234 +19,245 @@
|
|
19 |
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
*
|
21 |
* @category design
|
22 |
-
* @package
|
23 |
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
*/
|
26 |
?>
|
27 |
<?php $_item = $this->getItem()?>
|
28 |
-
<
|
29 |
-
<
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
<?php endif?>
|
37 |
-
<div style="float:left;width:75%;">
|
38 |
-
<div class="product-name"><h3 class="product-name"><?php echo $this->htmlEscape($this->getProductName()) ?></h3> </div>
|
39 |
-
<?php if(Mage::getStoreConfig("onestepcheckout/layout/allowremoveproduct")):?>
|
40 |
-
<div class="product-remove"><a href="javascript:void(0);" title="<?php echo $this->__('Remove item')?>" class="btn-remove2" onclick="removeProductId('<?php echo $this->getItem()->getId()?>');"><?php echo $this->__('Remove item')?></a></div>
|
41 |
-
<?php endif?>
|
42 |
-
</div>
|
43 |
-
<?php if ($_options = $this->getOptionList()):?>
|
44 |
-
<dl class="item-options">
|
45 |
-
<?php foreach ($_options as $_option) : ?>
|
46 |
-
<?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
|
47 |
-
<dt><?php $_option['label'] ?></dt>
|
48 |
-
<dd class="truncated"><?php echo $_formatedOptionValue['value'] ?>
|
49 |
-
<?php if (isset($_formatedOptionValue['full_view'])): ?>
|
50 |
-
<div class="truncated_full_value">
|
51 |
-
<dl class="item-options">
|
52 |
-
<dt><?php echo $_option['label'] ?></dt>
|
53 |
-
<dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
|
54 |
-
</dl>
|
55 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
<?php endif; ?>
|
57 |
-
</dd>
|
58 |
-
<?php endforeach; ?>
|
59 |
-
</dl>
|
60 |
-
<?php endif;?>
|
61 |
-
<?php if ($addtInfoBlock = $this->getProductAdditionalInformationBlock()):?>
|
62 |
-
<?php echo $addtInfoBlock->setItem($_item)->toHtml() ?>
|
63 |
-
<?php endif;?>
|
64 |
-
</td>
|
65 |
-
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
66 |
-
<td class="a-right">
|
67 |
-
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
68 |
-
<span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
69 |
-
<?php else: ?>
|
70 |
-
<span class="cart-price">
|
71 |
-
<?php endif; ?>
|
72 |
-
|
73 |
-
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
74 |
-
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
|
75 |
-
<?php else: ?>
|
76 |
-
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
|
77 |
-
<?php endif; ?>
|
78 |
|
79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
|
|
|
|
|
|
|
81 |
|
82 |
-
|
83 |
|
84 |
-
<div class="cart-tax-info" id="eunit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
|
85 |
-
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
86 |
-
<small>
|
87 |
-
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
88 |
-
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
|
89 |
-
<?php endforeach; ?>
|
90 |
-
</small>
|
91 |
-
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
92 |
-
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
93 |
-
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></small></span><br />
|
94 |
-
<?php endforeach; ?>
|
95 |
-
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
96 |
-
<small>
|
97 |
-
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
98 |
-
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
|
99 |
-
<?php endforeach; ?>
|
100 |
-
</small>
|
101 |
-
<?php endif; ?>
|
102 |
-
</div>
|
103 |
|
104 |
-
|
105 |
-
<div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
106 |
-
<span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
|
107 |
-
</div>
|
108 |
-
<?php endif; ?>
|
109 |
-
<?php endif; ?>
|
110 |
-
</td>
|
111 |
-
<?php endif; ?>
|
112 |
-
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
113 |
-
<td>
|
114 |
-
<?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
|
115 |
-
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
116 |
-
<span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
117 |
-
<?php else: ?>
|
118 |
-
<span class="cart-price">
|
119 |
-
<?php endif; ?>
|
120 |
-
|
121 |
-
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
122 |
-
<?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?>
|
123 |
-
<?php else: ?>
|
124 |
-
<?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
|
125 |
-
<?php endif; ?>
|
126 |
|
127 |
-
|
128 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
<?php
|
141 |
-
<?php
|
142 |
-
<
|
143 |
-
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
144 |
-
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
|
145 |
-
<?php endforeach; ?>
|
146 |
-
</small>
|
147 |
<?php endif; ?>
|
148 |
-
</div>
|
149 |
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
<?php endif; ?>
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
171 |
<?php endif; ?>
|
172 |
|
173 |
-
|
174 |
-
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
175 |
|
176 |
-
|
177 |
-
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
178 |
-
<
|
179 |
-
|
180 |
-
|
181 |
-
<?php endforeach; ?>
|
182 |
-
</small>
|
183 |
-
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
184 |
-
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
185 |
-
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></small></span><br />
|
186 |
-
<?php endforeach; ?>
|
187 |
-
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
188 |
-
<small>
|
189 |
-
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
190 |
-
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span><br />
|
191 |
-
<?php endforeach; ?>
|
192 |
-
</small>
|
193 |
<?php endif; ?>
|
194 |
-
</div>
|
195 |
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
<?php endif; ?>
|
202 |
-
</td>
|
203 |
-
<?php endif; ?>
|
204 |
-
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
205 |
-
<td>
|
206 |
-
<?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
|
207 |
-
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
208 |
-
<span class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
209 |
-
<?php else: ?>
|
210 |
-
<span class="cart-price">
|
211 |
-
<?php endif; ?>
|
212 |
-
|
213 |
-
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
214 |
-
<?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?>
|
215 |
-
<?php else: ?>
|
216 |
-
<?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
|
217 |
-
<?php endif; ?>
|
218 |
|
219 |
-
|
220 |
|
221 |
|
222 |
-
|
223 |
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
|
|
|
|
248 |
<?php endif; ?>
|
249 |
-
|
250 |
-
</
|
251 |
-
|
252 |
-
</tr>
|
19 |
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
*
|
21 |
* @category design
|
22 |
+
* @package default_iphone
|
23 |
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
*/
|
26 |
?>
|
27 |
<?php $_item = $this->getItem()?>
|
28 |
+
<tbody>
|
29 |
+
<tr>
|
30 |
+
<td colspan="2">
|
31 |
+
<?php if(Mage::helper('onestepcheckout')->showImageProduct()):?>
|
32 |
+
<div style="float:left;width:25%;">
|
33 |
+
<a href="<?php echo $this->getProductUrl() ?>" title="<?php echo $this->htmlEscape($this->getProductName()) ?>">
|
34 |
+
<img src="<?php echo $this->getProductThumbnail()->resize(75); ?>" width="75" height="75" alt="<?php echo $this->htmlEscape($this->getProductName()) ?>" />
|
35 |
+
</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
</div>
|
37 |
+
<?php endif?>
|
38 |
+
<div style="float:left;width:75%;">
|
39 |
+
<div class="product-name"><h3 class="product-name"><?php echo $this->htmlEscape($this->getProductName()) ?></h3> </div>
|
40 |
+
<?php if(Mage::getStoreConfig("onestepcheckout/layout/allowremoveproduct")):?>
|
41 |
+
<div class="product-remove"><a href="javascript:void(0);" title="<?php echo $this->__('Remove item')?>" class="btn-remove2" onclick="removeProductId('<?php echo $this->getItem()->getId()?>');"><?php echo $this->__('Remove item')?></a></div>
|
42 |
+
<?php endif?>
|
43 |
+
</div>
|
44 |
+
|
45 |
+
<?php if ($_options = $this->getOptionList()):?>
|
46 |
+
<dl class="item-options">
|
47 |
+
<?php foreach ($_options as $_option) : ?>
|
48 |
+
<?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
|
49 |
+
<dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
|
50 |
+
<dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
|
51 |
+
<?php if (isset($_formatedOptionValue['full_view'])): ?>
|
52 |
+
<div class="truncated_full_value">
|
53 |
+
<dl class="item-options">
|
54 |
+
<dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
|
55 |
+
<dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
|
56 |
+
</dl>
|
57 |
+
</div>
|
58 |
+
<?php endif; ?>
|
59 |
+
</dd>
|
60 |
+
<?php endforeach; ?>
|
61 |
+
</dl>
|
62 |
+
<?php endif;?>
|
63 |
+
|
64 |
+
<?php if ($addtInfoBlock = $this->getProductAdditionalInformationBlock()):?>
|
65 |
+
<?php echo $addtInfoBlock->setItem($_item)->toHtml() ?>
|
66 |
+
<?php endif;?>
|
67 |
+
|
68 |
+
</td>
|
69 |
+
</tr>
|
70 |
+
<tr>
|
71 |
+
<td class="a-left">
|
72 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
73 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
74 |
+
<span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
75 |
+
<?php else: ?>
|
76 |
+
<span class="cart-price">
|
77 |
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
|
79 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
80 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
|
81 |
+
X
|
82 |
+
<input name="cartControl[<?php echo $this->getItem()->getId()?>][qty]" size="4" name="update_cart_action" onfocus="inbtn(<?php echo $_item->getId() ?>)" id="<?php echo $_item->getId() ?>" value="<?php echo $_item->getQty() ?>" class="input-text qty qty_product_update" maxlength="12" />
|
83 |
+
<div id="up_<?php echo $_item->getId() ?>" class="button btn-update btn-update-qty" onclick="updateQty()" ><span><span>Ok</span></span></div>
|
84 |
+
<?php else: ?>
|
85 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
|
86 |
+
X
|
87 |
|
88 |
+
<input name="cartControl[<?php echo $this->getItem()->getId()?>][qty]" size="4" name="update_cart_action" onfocus="inbtn(<?php echo $_item->getId() ?>)" id="<?php echo $_item->getId() ?>" value="<?php echo $_item->getQty() ?>" class="input-text qty qty_product_update" maxlength="12" />
|
89 |
+
<div id="up_<?php echo $_item->getId() ?>" class="button btn-update btn-update-qty" onclick="updateQty()" ><span><span><i class="fa fa-refresh"></i> Ok</span></span></div>
|
90 |
+
<?php endif; ?>
|
91 |
|
92 |
+
</span>
|
93 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
|
95 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
|
97 |
+
<div class="cart-tax-info" id="eunit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
|
98 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
99 |
+
<small>
|
100 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
101 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
|
102 |
+
<?php endforeach; ?>
|
103 |
+
</small>
|
104 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
105 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
106 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></small></span><br />
|
107 |
+
<?php endforeach; ?>
|
108 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
109 |
+
<small>
|
110 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
111 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
|
112 |
+
<?php endforeach; ?>
|
113 |
+
</small>
|
114 |
+
<?php endif; ?>
|
115 |
+
</div>
|
116 |
|
117 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
118 |
+
<div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
119 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
|
120 |
+
</div>
|
121 |
+
<?php endif; ?>
|
122 |
+
<?php endif; ?>
|
123 |
+
<?php endif; ?>
|
124 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax()): ?>
|
125 |
+
<?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
|
126 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
127 |
+
<span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
128 |
+
<?php else: ?>
|
129 |
+
<span class="cart-price">
|
|
|
|
|
|
|
|
|
130 |
<?php endif; ?>
|
|
|
131 |
|
132 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
133 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?>
|
134 |
+
<?php else: ?>
|
135 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
|
136 |
+
<?php endif; ?>
|
137 |
+
|
138 |
+
</span>
|
139 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
140 |
+
|
141 |
+
<div class="cart-tax-info" id="unit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
|
142 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
143 |
+
<small>
|
144 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
145 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
|
146 |
+
<?php endforeach; ?>
|
147 |
+
</small>
|
148 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
149 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
150 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></small></span><br />
|
151 |
+
<?php endforeach; ?>
|
152 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
153 |
+
<small>
|
154 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
155 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
|
156 |
+
<?php endforeach; ?>
|
157 |
+
</small>
|
158 |
+
<?php endif; ?>
|
159 |
+
</div>
|
160 |
+
|
161 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
162 |
+
<div class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
163 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?></span>
|
164 |
+
</div>
|
165 |
+
<?php endif; ?>
|
166 |
+
<?php endif; ?>
|
167 |
<?php endif; ?>
|
168 |
+
</td>
|
169 |
+
<td class="a-right">
|
170 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
171 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
172 |
+
<span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
173 |
+
<?php else: ?>
|
174 |
+
<span class="cart-price">
|
175 |
+
<?php endif; ?>
|
176 |
+
|
177 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
178 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
|
179 |
+
<?php else: ?>
|
180 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
|
181 |
+
<?php endif; ?>
|
182 |
+
|
183 |
+
</span>
|
184 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
185 |
+
|
186 |
+
<div class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
|
187 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
188 |
+
<small>
|
189 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
190 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span><br />
|
191 |
+
<?php endforeach; ?>
|
192 |
+
</small>
|
193 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
194 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
195 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></small></span><br />
|
196 |
+
<?php endforeach; ?>
|
197 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
198 |
+
<small>
|
199 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
200 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span><br />
|
201 |
+
<?php endforeach; ?>
|
202 |
+
</small>
|
203 |
+
<?php endif; ?>
|
204 |
+
</div>
|
205 |
+
|
206 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
207 |
+
<div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
208 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
|
209 |
+
</div>
|
210 |
+
<?php endif; ?>
|
211 |
+
<?php endif; ?>
|
212 |
<?php endif; ?>
|
213 |
|
214 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax()): ?>
|
|
|
215 |
|
216 |
+
<?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
|
217 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
218 |
+
<span class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
219 |
+
<?php else: ?>
|
220 |
+
<span class="cart-price">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
221 |
<?php endif; ?>
|
|
|
222 |
|
223 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
224 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?>
|
225 |
+
<?php else: ?>
|
226 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
|
227 |
+
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
228 |
|
229 |
+
</span>
|
230 |
|
231 |
|
232 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
233 |
|
234 |
+
<div class="cart-tax-info" id="subtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
|
235 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
236 |
+
<small>
|
237 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
238 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span><br />
|
239 |
+
<?php endforeach; ?>
|
240 |
+
</small>
|
241 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
242 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
243 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></small></span><br />
|
244 |
+
<?php endforeach; ?>
|
245 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
246 |
+
<small>
|
247 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
248 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span><br />
|
249 |
+
<?php endforeach; ?>
|
250 |
+
</small>
|
251 |
+
<?php endif; ?>
|
252 |
+
</div>
|
253 |
|
254 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
255 |
+
<div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
256 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?></span>
|
257 |
+
</div>
|
258 |
+
<?php endif; ?>
|
259 |
+
<?php endif; ?>
|
260 |
<?php endif; ?>
|
261 |
+
</td>
|
262 |
+
</tr>
|
263 |
+
</tbody>
|
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/review/totals.phtml
CHANGED
@@ -30,7 +30,7 @@
|
|
30 |
?>
|
31 |
<?php if ($this->getTotals()): ?>
|
32 |
<tfoot>
|
33 |
-
<?php $_colspan =
|
34 |
<?php echo $this->renderTotals(null, $_colspan); ?>
|
35 |
<?php echo $this->renderTotals('footer', $_colspan); ?>
|
36 |
<?php if ($this->needDisplayBaseGrandtotal()):?>
|
@@ -45,3 +45,4 @@
|
|
45 |
<?php endif?>
|
46 |
</tfoot>
|
47 |
<?php endif; ?>
|
|
30 |
?>
|
31 |
<?php if ($this->getTotals()): ?>
|
32 |
<tfoot>
|
33 |
+
<?php $_colspan = 0; ?>
|
34 |
<?php echo $this->renderTotals(null, $_colspan); ?>
|
35 |
<?php echo $this->renderTotals('footer', $_colspan); ?>
|
36 |
<?php if ($this->needDisplayBaseGrandtotal()):?>
|
45 |
<?php endif?>
|
46 |
</tfoot>
|
47 |
<?php endif; ?>
|
48 |
+
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/shipping.phtml
CHANGED
@@ -1,5 +1,3 @@
|
|
1 |
-
<script type="text/javascript" src="<?php echo $this->getJsUrl('MOIP/onestepcheckout/shipping.js') ?>"></script>
|
2 |
-
|
3 |
<script type="text/javascript">
|
4 |
//<![CDATA[
|
5 |
var shipaddbook=1;
|
@@ -11,9 +9,9 @@
|
|
11 |
}
|
12 |
});
|
13 |
function updateShippingForm(address_id,clearform)
|
14 |
-
{
|
15 |
if(address_id=="")
|
16 |
-
{
|
17 |
if(clearform==true)
|
18 |
{
|
19 |
jQuery('#shipping-new-address-form').clearForm();
|
@@ -21,18 +19,18 @@
|
|
21 |
else
|
22 |
{
|
23 |
updateShippingType();
|
24 |
-
}
|
25 |
}
|
26 |
else
|
27 |
{
|
28 |
-
|
29 |
jQuery.ajax({
|
30 |
type: "POST",
|
31 |
-
url: "<?php echo Mage::getUrl('onestepcheckout/index/updateshippingform')?>",
|
32 |
data:jQuery("#onestep_form").serialize(),
|
33 |
success: function(msg){
|
34 |
-
jQuery('#moip_onstepcheckout_shipping_form').html(msg);
|
35 |
-
updateShippingType();
|
36 |
}
|
37 |
});
|
38 |
}
|
@@ -54,7 +52,7 @@
|
|
54 |
<li class="control">
|
55 |
<input type="checkbox" style="_float:left;" name="shipping[save_in_address_book]" value="1" title="<?php echo $this->__('Save in address book') ?>" id="shipping:save_in_address_book" onchange="shipping.setSameAsBilling(false);"<?php if ($this->getAddress()->getSaveInAddressBook()):?> checked="checked"<?php endif;?> class="checkbox" /><label for="shipping:save_in_address_book" style="_width:150px;"><?php echo $this->__('Save in address book') ?></label>
|
56 |
</li>
|
57 |
-
<?php elseif ($this->isCustomerLoggedIn() && $this->customerHasAddresses() && !Mage::helper('onestepcheckout')->showAddressBook()):?>
|
58 |
<li class="no-display">
|
59 |
<input type="hidden" name="shipping[save_in_address_book]" value="0" />
|
60 |
</li>
|
@@ -62,12 +60,12 @@
|
|
62 |
<li class="no-display">
|
63 |
<input type="hidden" name="shipping[save_in_address_book]" value="1" />
|
64 |
</li>
|
65 |
-
<?php endif;?>
|
66 |
<li class="control">
|
67 |
<input type="checkbox" name="shipping[same_as_billing]" id="shipping:same_as_billing" value="1"<?php if($this->getAddress()->getSameAsBilling()): ?> checked="checked"<?php endif; ?> title="<?php echo $this->__('Use Billing Address') ?>" onclick="shipping.setSameAsBilling(this.checked);" class="checkbox" /><label for="shipping:same_as_billing" style="float:none;"><?php echo $this->__('Use Billing Address') ?></label>
|
68 |
</li>
|
69 |
</ul>
|
70 |
-
</ul>
|
71 |
</div>
|
72 |
|
73 |
|
|
|
|
|
1 |
<script type="text/javascript">
|
2 |
//<![CDATA[
|
3 |
var shipaddbook=1;
|
9 |
}
|
10 |
});
|
11 |
function updateShippingForm(address_id,clearform)
|
12 |
+
{
|
13 |
if(address_id=="")
|
14 |
+
{
|
15 |
if(clearform==true)
|
16 |
{
|
17 |
jQuery('#shipping-new-address-form').clearForm();
|
19 |
else
|
20 |
{
|
21 |
updateShippingType();
|
22 |
+
}
|
23 |
}
|
24 |
else
|
25 |
{
|
26 |
+
|
27 |
jQuery.ajax({
|
28 |
type: "POST",
|
29 |
+
url: "<?php echo Mage::getUrl('onestepcheckout/index/updateshippingform')?>",
|
30 |
data:jQuery("#onestep_form").serialize(),
|
31 |
success: function(msg){
|
32 |
+
jQuery('#moip_onstepcheckout_shipping_form').html(msg);
|
33 |
+
updateShippingType();
|
34 |
}
|
35 |
});
|
36 |
}
|
52 |
<li class="control">
|
53 |
<input type="checkbox" style="_float:left;" name="shipping[save_in_address_book]" value="1" title="<?php echo $this->__('Save in address book') ?>" id="shipping:save_in_address_book" onchange="shipping.setSameAsBilling(false);"<?php if ($this->getAddress()->getSaveInAddressBook()):?> checked="checked"<?php endif;?> class="checkbox" /><label for="shipping:save_in_address_book" style="_width:150px;"><?php echo $this->__('Save in address book') ?></label>
|
54 |
</li>
|
55 |
+
<?php elseif ($this->isCustomerLoggedIn() && $this->customerHasAddresses() && !Mage::helper('onestepcheckout')->showAddressBook()):?>
|
56 |
<li class="no-display">
|
57 |
<input type="hidden" name="shipping[save_in_address_book]" value="0" />
|
58 |
</li>
|
60 |
<li class="no-display">
|
61 |
<input type="hidden" name="shipping[save_in_address_book]" value="1" />
|
62 |
</li>
|
63 |
+
<?php endif;?>
|
64 |
<li class="control">
|
65 |
<input type="checkbox" name="shipping[same_as_billing]" id="shipping:same_as_billing" value="1"<?php if($this->getAddress()->getSameAsBilling()): ?> checked="checked"<?php endif; ?> title="<?php echo $this->__('Use Billing Address') ?>" onclick="shipping.setSameAsBilling(this.checked);" class="checkbox" /><label for="shipping:same_as_billing" style="float:none;"><?php echo $this->__('Use Billing Address') ?></label>
|
66 |
</li>
|
67 |
</ul>
|
68 |
+
</ul>
|
69 |
</div>
|
70 |
|
71 |
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/onepage.phtml
CHANGED
@@ -1,75 +1,19 @@
|
|
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 |
-
|
25 |
-
|
26 |
-
|
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)
|
@@ -113,10 +57,10 @@ function seleciona_cep_busca(valor) {
|
|
113 |
jQuery("#billing\\:street2").focus();
|
114 |
}
|
115 |
function busca_endereco_correios(){
|
116 |
-
var url = '
|
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();
|
@@ -132,7 +76,7 @@ function buscarEndereco(whatform) {
|
|
132 |
city: document.getElementById('billing:city'),
|
133 |
region: document.getElementById('billing:region_id')
|
134 |
};
|
135 |
-
|
136 |
}
|
137 |
if (whatform == "shipping") {
|
138 |
var campos = {
|
@@ -142,7 +86,7 @@ function buscarEndereco(whatform) {
|
|
142 |
city: document.getElementById('shipping:city'),
|
143 |
region: document.getElementById('shipping:region_id'),
|
144 |
};
|
145 |
-
|
146 |
}
|
147 |
if (whatform == "register") {
|
148 |
var campos = {
|
@@ -153,58 +97,96 @@ function buscarEndereco(whatform) {
|
|
153 |
region: document.getElementById('region_id')
|
154 |
};
|
155 |
}
|
156 |
-
|
157 |
jQuery.ajax({
|
158 |
type:'GET',
|
159 |
-
url:
|
160 |
-
|
161 |
beforeSend: function(data){
|
162 |
-
jQuery(campos.street_1).
|
163 |
-
jQuery(campos.street_4).
|
164 |
-
jQuery(campos.city).
|
165 |
},
|
166 |
|
167 |
success: function(data){
|
168 |
jQuery('#loading-mask').fadeOut();
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
-
|
206 |
-
|
207 |
-
|
|
|
|
|
|
|
|
|
|
|
208 |
},
|
209 |
fail:function() {
|
210 |
updateShippingMethod();
|
@@ -213,13 +195,13 @@ function updateShippingMethod() {
|
|
213 |
|
214 |
},
|
215 |
})
|
216 |
-
|
217 |
}
|
218 |
};
|
219 |
-
function updateShippingType(
|
|
|
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(),
|
@@ -229,6 +211,9 @@ function updateShippingType(str_value){
|
|
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.");
|
@@ -237,35 +222,68 @@ function updateShippingType(str_value){
|
|
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(
|
|
|
253 |
jQuery.ajax({
|
254 |
url: updatepaymentmethodurl,
|
255 |
type: "POST",
|
256 |
-
|
|
|
257 |
success: function(msg) {
|
258 |
-
|
|
|
|
|
|
|
|
|
|
|
259 |
},
|
260 |
});
|
261 |
-
|
262 |
};
|
263 |
-
function updateCoupon(
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
|
|
|
|
269 |
.done(function(msg) {
|
270 |
jQuery.ajax({
|
271 |
url: updatepaymenttypeurl,
|
@@ -274,8 +292,12 @@ function updateCoupon(code, isremove) {
|
|
274 |
});
|
275 |
jQuery('#checkout-payment-method-load').html();
|
276 |
str = jQuery.parseJSON(msg);
|
277 |
-
jQuery('
|
278 |
-
jQuery('#checkout-review-
|
|
|
|
|
|
|
|
|
279 |
})
|
280 |
.fail(function() {
|
281 |
updateCoupon(code, isremove);
|
@@ -286,7 +308,7 @@ function updateCoupon(code, isremove) {
|
|
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,
|
@@ -306,13 +328,19 @@ function removeProduct(id) {
|
|
306 |
str = jQuery.parseJSON(msg);
|
307 |
if (str.view.search("<script") != 0) {
|
308 |
if (str.giftbox) {
|
309 |
-
jQuery('#checkout-review-
|
310 |
jQuery('#onepage-checkout-shipping-method-additional-load').html(str.giftbox);
|
311 |
} else {
|
312 |
-
jQuery('#checkout-review-
|
|
|
|
|
|
|
313 |
}
|
314 |
} else {
|
315 |
-
jQuery('#checkout-review-
|
|
|
|
|
|
|
316 |
}
|
317 |
}
|
318 |
});
|
@@ -321,6 +349,7 @@ function removeProduct(id) {
|
|
321 |
function logined()
|
322 |
{
|
323 |
<?php if(Mage::getSingleton('customer/session')->isLoggedIn()):?>
|
|
|
324 |
return 1;
|
325 |
<?php else: ?>
|
326 |
return 0;
|
@@ -334,28 +363,7 @@ function hasaddress(){
|
|
334 |
return 0;
|
335 |
<?php endif; ?>
|
336 |
}
|
337 |
-
|
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);
|
@@ -371,7 +379,7 @@ function updateEmailmsg(val){
|
|
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
|
375 |
if(msg==0){
|
376 |
jQuery('#billing\\:email').after(error);
|
377 |
jQuery('#message-box').html(error);
|
@@ -384,12 +392,46 @@ function updateEmailmsg(val){
|
|
384 |
}
|
385 |
});
|
386 |
}
|
387 |
-
|
388 |
-
jQuery(
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
393 |
jQuery(".btn-checkout").attr("disabled", "disabled");
|
394 |
jQuery(".btn-checkout").hide();
|
395 |
jQuery('#co-payment-form').show();
|
@@ -403,6 +445,7 @@ jQuery( window ).load(function() {
|
|
403 |
updateEmailmsg(val);
|
404 |
}
|
405 |
}
|
|
|
406 |
} else {
|
407 |
var logic= true;
|
408 |
if(logined()!=1){
|
@@ -423,7 +466,7 @@ jQuery( window ).load(function() {
|
|
423 |
jQuery('#onestep_form').submit();
|
424 |
return true;
|
425 |
} else {
|
426 |
-
|
427 |
jQuery(".erros_cadastro_valores").html("");
|
428 |
var erro_dado = [];
|
429 |
var j = 0;
|
@@ -434,17 +477,18 @@ jQuery( window ).load(function() {
|
|
434 |
erro_dado[j] = jQuery(this).attr("title");
|
435 |
jQuery(".erros_cadastro_valores").append('<li>'+erro_dado[j]+'</li>');
|
436 |
}
|
437 |
-
|
|
|
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"){
|
@@ -464,9 +508,7 @@ jQuery( window ).load(function() {
|
|
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 |
-
|
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();
|
@@ -482,27 +524,30 @@ jQuery( window ).load(function() {
|
|
482 |
$islogin=1;
|
483 |
}
|
484 |
?>
|
485 |
-
|
486 |
-
|
487 |
-
|
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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<script type="text/javascript">countryRegions = <?php echo $this->helper('directory')->getRegionJson() ?></script>
|
|
|
2 |
<script type="text/javascript">
|
3 |
//<![CDATA[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
+
|
6 |
+
var message_payment = "Por Favor, selecione um meio de pagamento.";
|
7 |
+
var message_ship = "Por favor, selecione um Meio de Envio";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
var updatepaymenttypeurl = "<?php echo Mage::getUrl('onestepcheckout/index/updatepaymenttype')?>";
|
9 |
var updatepaymentmethodurl = "<?php echo Mage::getUrl('onestepcheckout/index/updatepaymentmethod')?>";
|
10 |
var updatecouponurl = "<?php echo Mage::getUrl('onestepcheckout/index/updatecoupon')?>";
|
11 |
var updateqtyurl = "<?php echo Mage::getUrl('onestepcheckout/index/updateqty')?>";
|
12 |
var removeproducturl = "<?php echo Mage::getUrl('onestepcheckout/index/removeproduct')?>";
|
13 |
var updateshippingmethodurl = "<?php echo Mage::getUrl('onestepcheckout/index/updateshippingmethod') ?>";
|
14 |
+
var updatereviewurl = "<?php echo Mage::getUrl('onestepcheckout/index/updatereviewmethod') ?>";
|
15 |
+
var createaccounturl = "<?php echo Mage::getUrl('onestepcheckout/index/CreataAccountInit') ?>";
|
16 |
+
var buscacepurl = "<?php echo Mage::getUrl('Transparente/Standard/buscaCep') ?>";
|
17 |
|
18 |
function ProxCamp(fields) {
|
19 |
fields.value=soNumeros(fields.value)
|
57 |
jQuery("#billing\\:street2").focus();
|
58 |
}
|
59 |
function busca_endereco_correios(){
|
60 |
+
var url = buscacepurl+'meio/buscaend/logradouro/' + jQuery("#endereco_de_consulta").val().replace(/[^a-zA-ZãéíóúãõàèìòùÀÈÌÙÒÃÂâÁÉÍÓÚ ]/g, '') +'/busca_uf/'+jQuery("#busca_uf").val();
|
61 |
jQuery.getJSON(url, function (result) {
|
62 |
for (var i = 0; i < result.length; i++) {
|
63 |
+
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>');
|
64 |
}
|
65 |
jQuery("#searchForm").hide();
|
66 |
jQuery("#buscar_nos_correios").show();
|
76 |
city: document.getElementById('billing:city'),
|
77 |
region: document.getElementById('billing:region_id')
|
78 |
};
|
79 |
+
|
80 |
}
|
81 |
if (whatform == "shipping") {
|
82 |
var campos = {
|
86 |
city: document.getElementById('shipping:city'),
|
87 |
region: document.getElementById('shipping:region_id'),
|
88 |
};
|
89 |
+
|
90 |
}
|
91 |
if (whatform == "register") {
|
92 |
var campos = {
|
97 |
region: document.getElementById('region_id')
|
98 |
};
|
99 |
}
|
100 |
+
|
101 |
jQuery.ajax({
|
102 |
type:'GET',
|
103 |
+
url: buscacepurl+'meio/cep/cep/' + campos.postcode.value.replace(/\+/g, ''),
|
104 |
+
|
105 |
beforeSend: function(data){
|
106 |
+
jQuery(campos.street_1).attr('placeholder', 'Buscando Endereço');
|
107 |
+
jQuery(campos.street_4).attr('placeholder', 'Buscando Endereço');
|
108 |
+
jQuery(campos.city).attr('placeholder', 'Buscando Endereço');
|
109 |
},
|
110 |
|
111 |
success: function(data){
|
112 |
jQuery('#loading-mask').fadeOut();
|
113 |
+
if(data){
|
114 |
+
var addressData = jQuery.parseJSON(data);
|
115 |
+
|
116 |
+
jQuery(campos.street_1).val(addressData.logradouro);
|
117 |
+
jQuery(campos.street_4).val(addressData.bairro);
|
118 |
+
jQuery(campos.city).val(addressData.cidade);
|
119 |
+
jQuery(campos.region).val(addressData.ufid);
|
120 |
+
if (campos.postcode != "" && campos.postcode != ".")
|
121 |
+
{
|
122 |
+
updateShippingType(campos.postcode);
|
123 |
+
};
|
124 |
+
jQuery("#billing\\:street2").focus();
|
125 |
+
} else {
|
126 |
+
jQuery(campos.street_1).attr('placeholder', 'Rua');
|
127 |
+
jQuery(campos.street_4).attr('placeholder', 'N.º');
|
128 |
+
jQuery(campos.city).attr('placeholder', 'Cidade');
|
129 |
+
if (campos.postcode != "" && campos.postcode != ".")
|
130 |
+
{
|
131 |
+
updateShippingType(campos.postcode);
|
132 |
+
};
|
133 |
+
}
|
134 |
},
|
135 |
error: function(){
|
136 |
jQuery(campos.street_1).val("");
|
137 |
jQuery(campos.street_4).val("");
|
138 |
jQuery(campos.city).val("");
|
139 |
jQuery(campos.region).val("");
|
140 |
+
if (campos.postcode != "" && campos.postcode != ".")
|
141 |
{
|
142 |
updateShippingType(campos.postcode);
|
143 |
};
|
144 |
},
|
145 |
});
|
146 |
};
|
147 |
+
function createAccount () {
|
148 |
+
var formAccount = new VarienForm('onestep_form', true);
|
149 |
+
jQuery('#loading-mask').show();
|
150 |
+
|
151 |
+
if(formAccount.validator.validate())
|
152 |
+
{
|
153 |
+
|
154 |
+
}
|
155 |
+
else {
|
156 |
+
jQuery('#loading-mask').hide();
|
157 |
+
}
|
158 |
+
|
159 |
+
}
|
160 |
+
function showcreateAccount(){
|
161 |
+
jQuery("#cadastrar").removeClass('force-nodisplay');
|
162 |
+
jQuery("#cadastrar").show('slow');
|
163 |
+
jQuery("#criar_loga").hide();
|
164 |
+
}
|
165 |
function updateShippingMethod() {
|
166 |
+
var msg = '';
|
167 |
if(document.getElementById('billing:postcode') != "" && document.getElementById('billing:postcode') != "." ){
|
168 |
jQuery.ajax({
|
169 |
type: "POST",
|
170 |
url: updateshippingmethodurl,
|
171 |
+
|
172 |
data: jQuery("#onestep_form").serialize(),
|
173 |
beforeSend: function(){
|
174 |
+
|
175 |
jQuery('.validation-advice').hide();
|
176 |
jQuery("input[name='shipping_method']").removeClass('validation-failed');
|
177 |
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>');
|
178 |
+
updatePaymentAssociated();
|
179 |
|
180 |
},
|
181 |
success: function(msg) {
|
182 |
+
|
183 |
+
|
184 |
+
jQuery('#checkout-review-table-wrapper').html(msg);
|
185 |
+
jQuery('#checkout-review-table-wrapper').find("script").each(function(i) {
|
186 |
+
eval(jQuery(this).text());
|
187 |
+
});
|
188 |
+
|
189 |
+
|
190 |
},
|
191 |
fail:function() {
|
192 |
updateShippingMethod();
|
195 |
|
196 |
},
|
197 |
})
|
198 |
+
|
199 |
}
|
200 |
};
|
201 |
+
function updateShippingType(){
|
202 |
+
var msg = '';
|
203 |
<?php if(!Mage::helper('onestepcheckout')->onlyProductDownloadable()):?>
|
204 |
jQuery.ajax({
|
|
|
205 |
type: "POST",
|
206 |
url: "<?php echo Mage::getUrl('onestepcheckout/index/updateshippingtype')?>",
|
207 |
data:jQuery("#onestep_form").serialize(),
|
211 |
},
|
212 |
success: function(msg){
|
213 |
jQuery('#checkout-shipping-method-load').html(msg);
|
214 |
+
jQuery('#checkout-shipping-method-load').find("script").each(function(i) {
|
215 |
+
eval(jQuery(this).text());
|
216 |
+
});
|
217 |
},
|
218 |
error: function(){
|
219 |
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.");
|
222 |
<?php endif?>
|
223 |
}
|
224 |
function updatePaymentAssociated() {
|
225 |
+
var msg = '';
|
226 |
jQuery.ajax({
|
227 |
type: "POST",
|
228 |
url: updatepaymenttypeurl,
|
229 |
data: jQuery("#onestep_form").serialize(),
|
230 |
beforeSend: function(data){
|
231 |
+
updatePaymentMethod();
|
232 |
},
|
233 |
success: function(msg) {
|
234 |
jQuery('#checkout-payment-method-load').html(msg);
|
235 |
+
jQuery('#checkout-payment-method-load').find("script").each(function(i) {
|
236 |
+
eval(jQuery(this).text());
|
237 |
+
});
|
238 |
+
},
|
239 |
+
});
|
240 |
+
}
|
241 |
+
function updateClear() {
|
242 |
+
jQuery.ajax({
|
243 |
+
async: false,
|
244 |
+
type: "POST",
|
245 |
+
url: "<?php echo Mage::getUrl('onestepcheckout/index/updateshippingtype')?>",
|
246 |
+
data:jQuery("#onestep_form").serialize(),
|
247 |
+
beforeSend: function(){
|
248 |
+
|
249 |
+
},
|
250 |
+
success: function(msg){
|
251 |
+
jQuery('#checkout-shipping-method-load').html(msg);
|
252 |
+
jQuery('#checkout-shipping-method-load').find("script").each(function(i) {
|
253 |
+
eval(jQuery(this).text());
|
254 |
+
});
|
255 |
+
},
|
256 |
+
error: function(){
|
257 |
+
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.");
|
258 |
},
|
259 |
});
|
260 |
}
|
261 |
+
function updatePaymentMethod() {
|
262 |
+
var msg = '';
|
263 |
jQuery.ajax({
|
264 |
url: updatepaymentmethodurl,
|
265 |
type: "POST",
|
266 |
+
|
267 |
+
data: jQuery("#onestep_form").serialize(),
|
268 |
success: function(msg) {
|
269 |
+
|
270 |
+
jQuery('#checkout-review-table-wrapper').html(msg);
|
271 |
+
|
272 |
+
jQuery('#checkout-review-table-wrapper').find("script").each(function(i) {
|
273 |
+
eval(jQuery(this).text());
|
274 |
+
});
|
275 |
},
|
276 |
});
|
277 |
+
|
278 |
};
|
279 |
+
function updateCoupon() {
|
280 |
+
jQuery(".cupom_tem").hide();
|
281 |
+
jQuery("#loading_mask_loader").show();
|
282 |
+
jQuery.ajax({
|
283 |
+
url: updatecouponurl,
|
284 |
+
type: "POST",
|
285 |
+
data: jQuery("#onestep_form").serialize(),
|
286 |
+
})
|
287 |
.done(function(msg) {
|
288 |
jQuery.ajax({
|
289 |
url: updatepaymenttypeurl,
|
292 |
});
|
293 |
jQuery('#checkout-payment-method-load').html();
|
294 |
str = jQuery.parseJSON(msg);
|
295 |
+
jQuery('.discount-form').html(str.coupon);
|
296 |
+
jQuery('#checkout-review-table-wrapper').html(str.view);
|
297 |
+
jQuery('#checkout-review-table-wrapper').find("script").each(function(i) {
|
298 |
+
eval(jQuery(this).text());
|
299 |
+
});
|
300 |
+
|
301 |
})
|
302 |
.fail(function() {
|
303 |
updateCoupon(code, isremove);
|
308 |
};
|
309 |
function removeProduct(id) {
|
310 |
hasgift = (typeof(jQuery('#allow-gift-message-container')) != 'undefined') ? 1 : 0;
|
311 |
+
|
312 |
jQuery.ajax({
|
313 |
type: "POST",
|
314 |
url: removeproducturl,
|
328 |
str = jQuery.parseJSON(msg);
|
329 |
if (str.view.search("<script") != 0) {
|
330 |
if (str.giftbox) {
|
331 |
+
jQuery('#checkout-review-table-wrappe').html(str.view);
|
332 |
jQuery('#onepage-checkout-shipping-method-additional-load').html(str.giftbox);
|
333 |
} else {
|
334 |
+
jQuery('#checkout-review-table-wrapper').html(str.view);
|
335 |
+
jQuery('#checkout-review-table-wrapper').find("script").each(function(i) {
|
336 |
+
eval(jQuery(this).text());
|
337 |
+
});
|
338 |
}
|
339 |
} else {
|
340 |
+
jQuery('#checkout-review-table-wrapper').append(str.view);
|
341 |
+
jQuery('#checkout-review-table-wrapper').find("script").each(function(i) {
|
342 |
+
eval(jQuery(this).text());
|
343 |
+
});
|
344 |
}
|
345 |
}
|
346 |
});
|
349 |
function logined()
|
350 |
{
|
351 |
<?php if(Mage::getSingleton('customer/session')->isLoggedIn()):?>
|
352 |
+
|
353 |
return 1;
|
354 |
<?php else: ?>
|
355 |
return 0;
|
363 |
return 0;
|
364 |
<?php endif; ?>
|
365 |
}
|
366 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
367 |
function removeProductId(product_id){
|
368 |
if(confirm("<?php echo $this->__('Tem certeza que deseja remover o produto?')?>")){
|
369 |
removeProduct(product_id);
|
379 |
jQuery('#message-box').html('');
|
380 |
},
|
381 |
success: function(msg){
|
382 |
+
var error="<div id=\"message-box\"><div class=\"validation-advice\" style=\"position:relative;\">Email já cadastrado, por favor <a href=\"#\" data-toggle=\"modal\" data-target=\"#loginModel\" id=\"loginbox\">Clique aqui e faça o login</a></div></div>";
|
383 |
if(msg==0){
|
384 |
jQuery('#billing\\:email').after(error);
|
385 |
jQuery('#message-box').html(error);
|
392 |
}
|
393 |
});
|
394 |
}
|
395 |
+
function updateQty(){
|
396 |
+
jQuery('#loading-mask').show();
|
397 |
+
|
398 |
+
jQuery.ajax({
|
399 |
+
url: updateqtyurl,
|
400 |
+
data: jQuery("#onestep_form").serialize(),
|
401 |
+
|
402 |
+
|
403 |
+
success: function(html){
|
404 |
+
|
405 |
+
location.reload();
|
406 |
+
|
407 |
+
}
|
408 |
+
});
|
409 |
+
|
410 |
+
}
|
411 |
+
function inbtn(id){
|
412 |
+
removeElemento = "#up_"+id;
|
413 |
+
|
414 |
+
jQuery(removeElemento).addClass('btn-update-qty-visible');
|
415 |
+
}
|
416 |
+
|
417 |
+
jQuery(function () {
|
418 |
+
|
419 |
+
jQuery('#billing\\:taxvat').mask("000.000.000-00", {placeholder: "___.___.___-__"});
|
420 |
+
jQuery('#shipping\\:taxvat').mask("000.000.000-00", {placeholder: "___.___.___-__"});
|
421 |
+
jQuery('#taxvat').mask("000.000.000-00", {placeholder: "___.___.___-__"});
|
422 |
+
|
423 |
+
jQuery('#cnpj').mask("00.000.000-0000-00", {placeholder: "__.___.___-____-__"});
|
424 |
+
jQuery('#billing\\:postcode').mask("00000-000", {placeholder: "_____-___"});
|
425 |
+
jQuery('#shipping\\:postcode').mask("00000-000", {placeholder: "_____-___"});
|
426 |
+
jQuery('#postcode').mask("00000-000", {placeholder: "_____-___"});
|
427 |
+
jQuery('#zip').mask("00000-000", {placeholder: "_____-___"});
|
428 |
+
jQuery('#billing\\:fax').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
|
429 |
+
jQuery('#billing\\:telephone').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
|
430 |
+
jQuery('#shipping\\:telephone').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
|
431 |
+
jQuery('#shipping\\:fax').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
|
432 |
+
jQuery('#credito_portador_telefone').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
|
433 |
+
|
434 |
+
jQuery('.btn-checkout').bind("click",function(e){
|
435 |
jQuery(".btn-checkout").attr("disabled", "disabled");
|
436 |
jQuery(".btn-checkout").hide();
|
437 |
jQuery('#co-payment-form').show();
|
445 |
updateEmailmsg(val);
|
446 |
}
|
447 |
}
|
448 |
+
|
449 |
} else {
|
450 |
var logic= true;
|
451 |
if(logined()!=1){
|
466 |
jQuery('#onestep_form').submit();
|
467 |
return true;
|
468 |
} else {
|
469 |
+
|
470 |
jQuery(".erros_cadastro_valores").html("");
|
471 |
var erro_dado = [];
|
472 |
var j = 0;
|
477 |
erro_dado[j] = jQuery(this).attr("title");
|
478 |
jQuery(".erros_cadastro_valores").append('<li>'+erro_dado[j]+'</li>');
|
479 |
}
|
480 |
+
|
481 |
+
|
482 |
});
|
483 |
if(jQuery.inArray("Meio de Envio", erro_dado) == 1){
|
484 |
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>');
|
485 |
}
|
486 |
+
jQuery('#ErrosFinalizacao').modal('toggle');
|
487 |
jQuery('.validation-advice').delay(3000).fadeOut("slow");
|
488 |
jQuery(".btn-checkout").removeAttr("disabled");
|
489 |
jQuery(".btn-checkout").show("slow");
|
490 |
return false;
|
491 |
+
}
|
492 |
});
|
493 |
jQuery('#onestep_form :input').blur(function() {
|
494 |
if(jQuery(this).attr('id') != "billing:day" && jQuery(this).attr('id') != "billing:month"){
|
508 |
jQuery('[id="shipping:postcode"]').addClass('required-entry');
|
509 |
jQuery('[id="billing:region_id"]').addClass('validate-select');
|
510 |
jQuery('[id="shipping:region_id"]').addClass('validate-select');
|
511 |
+
|
|
|
|
|
512 |
if (logined()) {
|
513 |
if (!has_default_billing()) {
|
514 |
jQuery('#billing-new-address-form').clearForm();
|
524 |
$islogin=1;
|
525 |
}
|
526 |
?>
|
527 |
+
|
528 |
+
<?php if(!Mage::helper('onestepcheckout')->onlyProductDownloadable()):?>
|
529 |
+
jQuery('#credito_numero_moip').focus(function() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
530 |
if(!jQuery("input[name='shipping_method']:checked").val()){
|
531 |
jQuery('.form-list.cartao').html("Desculpe, Selecione primeiramente a Forma de Envio no passo 2.");
|
532 |
+
}
|
533 |
});
|
534 |
+
<?php endif?>
|
535 |
});
|
536 |
//]]>
|
537 |
</script>
|
538 |
|
539 |
|
540 |
+
<script type="text/javascript">
|
541 |
+
//<![CDATA[
|
542 |
+
var accordion = new Accordion('checkoutSteps', '.step-title', true);
|
543 |
+
<?php if($this->getActiveStep()): ?>
|
544 |
+
accordion.openSection('opc-<?php echo $this->getActiveStep() ?>');
|
545 |
+
<?php endif ?>
|
546 |
+
var checkout = new Checkout(accordion,{
|
547 |
+
progress: '<?php echo $this->getUrl('checkout/onepage/progress') ?>',
|
548 |
+
review: '<?php echo $this->getUrl('checkout/onepage/review') ?>',
|
549 |
+
saveMethod: '<?php echo $this->getUrl('checkout/onepage/saveMethod') ?>',
|
550 |
+
failure: '<?php echo $this->getUrl('checkout/cart') ?>'}
|
551 |
+
);
|
552 |
+
//]]>
|
553 |
+
</script>
|
app/design/frontend/base/default/template/MOIP/product/view/parcelas.phtml
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php $_product = $this->getProduct(); ?>
|
2 |
+
<?php $price = $_product->getFinalPrice(); ?>
|
3 |
+
<?php $parcial = $this->getParcelamento($price, 'reduzido'); ?>
|
4 |
+
<?php $integral = $this->getParcelamento($price, 'integral'); ?>
|
5 |
+
<?php if($parcial): ?>
|
6 |
+
<div class="price-box">
|
7 |
+
<div class="parcela-price">
|
8 |
+
<span class="parcela-label">Parcele até em</span>
|
9 |
+
<span class="parcela">
|
10 |
+
<?php echo $this->getParcelamento($price, 'reduzido'); ?>
|
11 |
+
|
12 |
+
</span>
|
13 |
+
<a href="#" data-target-element="#parcelas_integrais" class="skip-link skip-parcelas_integrais">
|
14 |
+
ver parcelas
|
15 |
+
</a>
|
16 |
+
</div>
|
17 |
+
</div>
|
18 |
+
<?php endif ?>
|
19 |
+
<?php if($integral): ?>
|
20 |
+
<div id="parcelas_integrais" class="skip-content">
|
21 |
+
<h3>Cartão de Crédito:</h3>
|
22 |
+
<div class="grid12-4">
|
23 |
+
<ul class="product_view_bandeiras hide-below-768">
|
24 |
+
<li>
|
25 |
+
<img src="<?php echo $this->getVisaImage(); ?>" id="Moip_Visa" alt="Visa" border="0">
|
26 |
+
</li>
|
27 |
+
<li>
|
28 |
+
<img src="<?php echo $this->getMastercardImage(); ?>" id="Moip_Mastercard" alt="Mastercard" border="0" >
|
29 |
+
</li>
|
30 |
+
<li>
|
31 |
+
<img src="<?php echo $this->getAmericanExpressImage(); ?>" id="Moip_AmericanExpress" alt="AmericanExpress" border="0" >
|
32 |
+
</li>
|
33 |
+
<li>
|
34 |
+
<img src="<?php echo $this->getDinersImage(); ?>" id="Moip_Diners" alt="Diners" border="0" >
|
35 |
+
</li>
|
36 |
+
<li>
|
37 |
+
<img src="<?php echo $this->getHipercardImage(); ?>" id="Moip_Hipercard" alt="Hipercard" border="0" >
|
38 |
+
</li>
|
39 |
+
</ul>
|
40 |
+
</div>
|
41 |
+
<div class="grid12-8">
|
42 |
+
<?php $_count = count($integral); ?>
|
43 |
+
<?php if($_count > 3 ) :?>
|
44 |
+
<ul id="parcelamento_integral" class="bullet">
|
45 |
+
<?php foreach ($integral as $key => $value): ?>
|
46 |
+
<li><?php echo $value; ?></li>
|
47 |
+
<?php endforeach ?>
|
48 |
+
</ul>
|
49 |
+
<?php endif ?>
|
50 |
+
</div>
|
51 |
+
|
52 |
+
</div>
|
53 |
+
<?php endif ?>
|
54 |
+
<script type="text/javascript">decorateList('parcelamento_integral')</script>
|
app/design/frontend/base/default/template/MOIP/transparente/SuccessDetails.phtml
ADDED
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php $_order = $this->getOrder() ?>
|
2 |
+
|
3 |
+
<div class="col2-set">
|
4 |
+
<div class="col-1">
|
5 |
+
<div class="box">
|
6 |
+
|
7 |
+
<div class="box-title">
|
8 |
+
<h3>Número do Pedido</h3>
|
9 |
+
</div>
|
10 |
+
<div class="box-content">
|
11 |
+
<div class="order-id">#<?php echo $_order->getIncrementId() ?></div>
|
12 |
+
</div>
|
13 |
+
|
14 |
+
</div>
|
15 |
+
</div>
|
16 |
+
<div class="col-2">
|
17 |
+
<div class="box">
|
18 |
+
|
19 |
+
<div class="box-title">
|
20 |
+
<h3>Itens</h3>
|
21 |
+
</div>
|
22 |
+
<div class="box-content">
|
23 |
+
<table class="data-table cart-table-items" id="checkout-review-table">
|
24 |
+
<col />
|
25 |
+
<col width="25%" />
|
26 |
+
<col width="1" />
|
27 |
+
<col width="1" />
|
28 |
+
<col width="1" />
|
29 |
+
<thead>
|
30 |
+
<tr>
|
31 |
+
<th><?php echo $this->__('Product Name') ?></th>
|
32 |
+
<th><?php echo $this->__('SKU') ?></th>
|
33 |
+
<th class="a-right"><?php echo $this->__('Price') ?></th>
|
34 |
+
<th class="a-center"><?php echo $this->__('Qty') ?></th>
|
35 |
+
<th class="a-right"><?php echo $this->__('Subtotal') ?></th>
|
36 |
+
</tr>
|
37 |
+
</thead>
|
38 |
+
<tfoot>
|
39 |
+
<?php echo $this->getChildHtml('order_totals') ?>
|
40 |
+
</tfoot>
|
41 |
+
<?php $_items = $_order->getItemsCollection(); ?>
|
42 |
+
<?php $_index = 0; ?>
|
43 |
+
<?php $_count = $_items->count(); ?>
|
44 |
+
<?php foreach ($_items as $_item): ?>
|
45 |
+
<?php if ($_item->getParentItem()) continue; ?>
|
46 |
+
<tbody>
|
47 |
+
<?php echo $this->getItemHtml($_item) ?>
|
48 |
+
</tbody>
|
49 |
+
<?php endforeach; ?>
|
50 |
+
</table>
|
51 |
+
<script type="text/javascript">decorateTable('checkout-review-table', {'tbody' : ['odd', 'even'], 'tbody tr' : ['first', 'last']})</script>
|
52 |
+
</div>
|
53 |
+
|
54 |
+
|
55 |
+
</div>
|
56 |
+
</div>
|
57 |
+
</div>
|
58 |
+
<?php if($_order->getShippingDescription()): ?>
|
59 |
+
<div class="col2-set">
|
60 |
+
<div class="col-1">
|
61 |
+
<div class="box">
|
62 |
+
|
63 |
+
<div class="box-title">
|
64 |
+
<h3>Endereço de Entrega</h3>
|
65 |
+
</div>
|
66 |
+
<div class="box-content">
|
67 |
+
<p>
|
68 |
+
|
69 |
+
<?php echo $_order->getShippingAddress()->format('html'); ?>
|
70 |
+
|
71 |
+
</p>
|
72 |
+
</div>
|
73 |
+
|
74 |
+
|
75 |
+
</div>
|
76 |
+
</div>
|
77 |
+
<div class="col-2">
|
78 |
+
<div class="box">
|
79 |
+
|
80 |
+
<div class="box-title">
|
81 |
+
<h3>Dados de Entrega</h3>
|
82 |
+
</div>
|
83 |
+
<div class="box-content">
|
84 |
+
<p>
|
85 |
+
Seu pedido será enviado por:
|
86 |
+
<div> <?php echo $_order->getShippingDescription(); ?></div>
|
87 |
+
</p>
|
88 |
+
</div>
|
89 |
+
|
90 |
+
|
91 |
+
</div>
|
92 |
+
</div>
|
93 |
+
</div>
|
94 |
+
<?php endif; ?>
|
95 |
+
|
96 |
+
|
97 |
+
<div class="goto-home">
|
98 |
+
<a href="<?php echo Mage::helper('core/url')->getHomeUrl(); ?>" class="button btn-checkout">Voltar para a home</a>
|
99 |
+
</div>
|
100 |
+
<?php echo Mage::getStoreConfig("moipall/google/outros_funil"); ?>
|
app/design/frontend/base/default/template/MOIP/transparente/boleto.phtml
CHANGED
@@ -1,50 +1,38 @@
|
|
1 |
<?php $session = Mage::getSingleton('checkout/session'); ?>
|
2 |
<?php $pgtoArraya = $session->getPgtoarry(); ?>
|
3 |
<?php $result_decode = $session->getResult_decode(); ?>
|
|
|
4 |
|
5 |
-
|
6 |
-
|
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 |
-
<
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
</strong>
|
15 |
-
<h3>Pode pagar o seu boleto bancário pelo celular ou pela internet?</h3>
|
16 |
</div>
|
17 |
-
</div>
|
18 |
-
|
19 |
|
20 |
-
|
21 |
<script type="text/javascript">
|
22 |
//<![CDATA[
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
//]]>
|
31 |
</script>
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
jQuery("#token").val("<?php echo $result_decode['token'] ?>");
|
36 |
-
var settings =
|
37 |
-
<?php echo $this->getJson($pgtoArraya); ?>
|
38 |
-
;
|
39 |
-
MoipWidget(settings);
|
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>
|
1 |
<?php $session = Mage::getSingleton('checkout/session'); ?>
|
2 |
<?php $pgtoArraya = $session->getPgtoarry(); ?>
|
3 |
<?php $result_decode = $session->getResult_decode(); ?>
|
4 |
+
<?php $token = $result_decode['token']; ?>
|
5 |
|
6 |
+
<div class="method-type-payment">
|
7 |
+
<h3>Quase lá! Agora só falta pagar o boleto.</h3>
|
|
|
|
|
8 |
</div>
|
9 |
+
<div class="method-type-action">
|
10 |
+
<button class="button btn-checkout" data-toggle="modal" data-target="#largeModal" ><span><span><i class="fa fa-print"></i> Imprimir Boleto</span></span></button>
|
11 |
+
|
12 |
+
|
|
|
|
|
13 |
</div>
|
|
|
|
|
14 |
|
15 |
+
|
16 |
<script type="text/javascript">
|
17 |
//<![CDATA[
|
18 |
+
jQuery(document).ready(function(){
|
19 |
+
jQuery("#token").val("<?php echo $result_decode['token'] ?>");
|
20 |
+
var settings =
|
21 |
+
<?php echo $this->getJson($pgtoArraya); ?>
|
22 |
+
;
|
23 |
+
MoipWidget(settings);
|
24 |
+
|
25 |
+
});
|
26 |
+
var sucesso = function(data){
|
27 |
+
jQuery('body').append('<div class="modal fade" id="largeModal" tabindex="-1" role="dialog" aria-labelledby="largeModal" aria-hidden="true"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title" id="myModalLabel">Boleto Bancário</h4> </div> <div class="modal-body"> <iframe width="800" onload="this.height=screen.height;" scrolling= "no" frameBorder="0" allowtransparency="true" src="<?php echo $this->getUrlAmbiente(); ?>Instrucao.do?token=<?php echo $token ?>"> </iframe> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Fechar</button> </div> </div> </div> </div>');
|
28 |
+
jQuery('#largeModal').modal('toggle');
|
29 |
+
};
|
30 |
+
|
31 |
+
var erroValidacao = function(data){
|
32 |
+
alert(data);
|
33 |
+
};
|
34 |
//]]>
|
35 |
</script>
|
36 |
+
|
37 |
+
|
38 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/MOIP/transparente/cartao.phtml
CHANGED
@@ -1,32 +1,35 @@
|
|
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 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
</div>
|
|
|
|
|
|
|
|
|
29 |
</div>
|
|
|
|
|
|
|
30 |
<script type="text/javascript">
|
31 |
//<![CDATA[
|
32 |
var erroValidacao = "";
|
@@ -72,13 +75,13 @@ var sucesso = function(data){
|
|
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) {
|
@@ -88,7 +91,7 @@ var erroValidacao = function(data) {
|
|
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];
|
@@ -104,18 +107,19 @@ var erroValidacao = function(data) {
|
|
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(
|
@@ -123,15 +127,15 @@ jQuery("#refazercartao").submit(function(e){
|
|
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(),
|
@@ -146,14 +150,14 @@ jQuery("#refazercartao").submit(function(e){
|
|
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>
|
1 |
<?php $session = Mage::getSingleton('checkout/session'); ?>
|
2 |
<?php $pgtoArraya = $session->getPgtoarry(); ?>
|
3 |
<?php $result_decode = $session->getResult_decode(); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
+
|
6 |
+
<div class="method-type-payment">
|
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 class="method-type-action">
|
11 |
+
<div id="pgcartao">
|
12 |
+
<div id="statustransparente"></div>
|
13 |
+
<div id="statustransparenteadd"></div>
|
14 |
+
<div id="statustransparenteadd2"></div>
|
15 |
+
</div>
|
16 |
+
|
17 |
+
<!--div class="warning-block" style="display:none">
|
18 |
+
<h3>O Pagamento não pode ser realizado</h3>
|
19 |
+
<strong>Erros Apresentados:</strong>
|
20 |
+
<div class="error-msg"><ul class="erros_transparente"></ul></div>
|
21 |
+
</div -->
|
22 |
+
<div style="display: none;" id="loading-mask">
|
23 |
+
<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>
|
24 |
</div>
|
25 |
+
<!-- div class="repeat_cartao" style="display:none;clear:both;">
|
26 |
+
<div class="title_refaz"><h3>Você poderá refazer o pagamento usando o formulário abaixo</h3></div>
|
27 |
+
<?php #echo $this->getChildHtml('cartao_form'); ?>
|
28 |
+
</div -->
|
29 |
</div>
|
30 |
+
|
31 |
+
|
32 |
+
|
33 |
<script type="text/javascript">
|
34 |
//<![CDATA[
|
35 |
var erroValidacao = "";
|
75 |
jQuery("#statustransparente").html("<h3>Pagamento Aguardando Aprovação</h3>");
|
76 |
jQuery("#statustransparenteadd").html("Por favor, aguarde a análise da transação. Assim que for alterado o status você será informado via e-mail.");
|
77 |
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.");
|
78 |
+
|
79 |
}
|
80 |
if (data.Status == "Autorizado"){
|
81 |
jQuery(".loader").css({display:"none"});
|
82 |
jQuery("#statustransparente").html("<h3>Pagamento Aprovado</h3>");
|
83 |
jQuery("#statustransparenteadd").html("Por favor, aguarde o processo de envio.");
|
84 |
+
|
85 |
}
|
86 |
}
|
87 |
var erroValidacao = function(data) {
|
91 |
jQuery(".warning-block").show();
|
92 |
infosTransparente = '<li class="erro" style="list-style: none;margin-left: 29px;font-weight: bold;">'+data.Mensagem+'</li>';
|
93 |
jQuery(".erros_transparente").html("");
|
94 |
+
jQuery(".erros_transparente").append(infosTransparente);
|
95 |
var infosTransparente ="";
|
96 |
for (i=0; i<data.length; i++) {
|
97 |
Transparente = data[i];
|
107 |
}
|
108 |
|
109 |
jQuery(".erros_transparente").html("");
|
110 |
+
jQuery(".erros_transparente").append(infosTransparente);
|
111 |
}
|
112 |
}
|
113 |
+
|
114 |
jQuery(document).ready(function(){
|
115 |
var settings = <?php echo $this->getJson($pgtoArraya); ?>;
|
116 |
MoipWidget(settings);
|
117 |
});
|
118 |
+
/* jQuery("#refazercartao").submit(function(e){
|
119 |
jQuery(".warning-block").hide();
|
120 |
jQuery(".title_refaz").hide();
|
121 |
jQuery("#pgcartao").hide();
|
122 |
+
jQuery(".loading-mask").show();
|
123 |
var postData = jQuery(this).serializeArray();
|
124 |
var formURL = jQuery(this).attr("action");
|
125 |
jQuery.ajax(
|
127 |
url : formURL,
|
128 |
type: "POST",
|
129 |
data : postData,
|
130 |
+
success:function(data, textStatus, jqXHR)
|
131 |
+
{
|
132 |
jQuery("#loading-mask").hide();
|
133 |
+
var settings =
|
134 |
{
|
135 |
"Forma": "CartaoCredito",
|
136 |
"Instituicao": jQuery("#bandeira").val(),
|
137 |
"Parcelas": jQuery("#Parcelas").val(),
|
138 |
+
"CartaoCredito":
|
139 |
{
|
140 |
"Numero": jQuery("input[name=Numero]").val(),
|
141 |
"Expiracao": jQuery("input[name=Expiracao_mes]").val()+'/'+jQuery("input[name=Expiracao_ano]").val(),
|
150 |
}
|
151 |
sendToCreditCard2(settings);
|
152 |
},
|
153 |
+
|
154 |
});
|
155 |
+
e.preventDefault();
|
156 |
});
|
157 |
function sendToCreditCard2(valores){
|
158 |
var settings = valores
|
159 |
MoipWidget(settings);
|
160 |
jQuery(".loading-mask").hide();
|
161 |
+
} */
|
162 |
//]]>
|
163 |
</script>
|
app/design/frontend/base/default/template/MOIP/transparente/horizontal_form.phtml
CHANGED
@@ -3,259 +3,252 @@
|
|
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 |
-
<
|
|
|
22 |
<?php if($this->mostraCartao()): ?>
|
23 |
-
|
24 |
-
|
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 |
-
|
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 |
-
|
36 |
-
|
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="
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
<
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
<?php $
|
55 |
-
|
56 |
-
|
57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
</li>
|
70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
<li class="wide cc-cvv">
|
72 |
<div class="cc">
|
73 |
-
<label class="required" for="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
<div class="input-box">
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
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 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
</div>
|
94 |
</li>
|
|
|
|
|
95 |
<li class="wide">
|
96 |
-
|
97 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
</li>
|
99 |
-
</ul>
|
100 |
|
101 |
-
|
|
|
|
|
102 |
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
<
|
107 |
-
|
108 |
-
|
109 |
-
<
|
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[
|
117 |
-
<span class="tooltip-transparente
|
118 |
-
<span class="custom help"
|
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 |
-
<
|
131 |
-
<
|
132 |
-
|
133 |
-
|
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 |
-
<
|
139 |
-
<
|
|
|
|
|
140 |
</li>
|
141 |
-
<li>
|
142 |
-
<
|
143 |
-
<
|
|
|
|
|
144 |
</li>
|
145 |
</ul>
|
|
|
146 |
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
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 |
-
|
248 |
-
<
|
249 |
-
|
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" >
|
@@ -274,7 +267,34 @@ jQuery(document).ready(function() {
|
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
279 |
</div>
|
280 |
-
|
|
|
|
|
|
3 |
<?php $telefone ="" ?>
|
4 |
<?php $cpf ="" ?>
|
5 |
<?php $dn ="" ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
<link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('MOIP/transparente/css/horizontal_form.css'); ?>"media="all">
|
7 |
+
<script type="text/javascript" src="<?php echo $this->getJsUrl('MOIP/transparente/checkout.js') ?>"></script>
|
8 |
+
<fieldset class="form-list">
|
9 |
<div id="payment_form_<?php echo $this->getMethodCode() ?>" style="display:none">
|
10 |
+
<input type="hidden" value="CartaoCredito" id="forma_pagamento_moip" name="payment[forma_pagamento]" title="Selecione Meio de Pagamento">
|
11 |
+
<ul class="nav nav-tabs nav-justified" id="moipPagamentos">
|
12 |
<?php if($this->mostraCartao()): ?>
|
13 |
+
<li><a href="#CartaoCredito"><img alt="Cartão de Crédito" src="<?php echo $this->getCartaoIcon(); ?>"></a></li>
|
14 |
+
<?php endif; ?>
|
|
|
|
|
|
|
15 |
<?php if($this->mostraBoleto()): ?>
|
16 |
+
<li><a href="#BoletoBancario"><img alt="Boleto Bancário" src="<?php echo $this->getBoletoIcon(); ?>"></a></li>
|
|
|
|
|
|
|
17 |
<?php endif; ?>
|
18 |
<?php if($this->mostraTransferencia()): ?>
|
19 |
+
<li><a href="#DebitoBancario"><img alt="Transferência Bancária" id="imageboleto" src="<?php echo $this->getTransferenciaIcon(); ?>"></a></li>
|
20 |
+
<?php endif; ?>
|
|
|
|
|
|
|
21 |
</ul>
|
22 |
|
23 |
+
<div class="tab-content">
|
24 |
+
|
25 |
+
<div class="tab-pane" id="CartaoCredito" style="display:none;">
|
26 |
+
|
27 |
+
<?php if($cofre !="false"): ?>
|
28 |
+
|
29 |
+
|
30 |
+
<?php $cofre = Mage::helper('core')->jsonDecode($cofre); ?>
|
31 |
+
<ul class="form-list-cofre">
|
32 |
+
<input type="hidden" id="use_cofre" name="payment[use_cofre]" value="1" >
|
33 |
+
<input type="hidden" id="brand_cofre" name="payment[cofre_brand]" value="" >
|
34 |
+
<input type="hidden" id="cofre_numero" name="payment[cofre_numero]" value="" >
|
35 |
+
<?php foreach ($cofre as $key => $value): ?>
|
36 |
+
<?php $cardBrand = $value['brand_transparente'] ?>
|
37 |
+
<?php $cardNunber = $value['cofre'] ?>
|
38 |
+
<li class="cofre">
|
39 |
+
<label>
|
40 |
+
<div class="radio_cofre">
|
41 |
+
|
42 |
+
<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 ?>');">
|
43 |
+
</div>
|
44 |
+
<div class="image_cofre">
|
45 |
+
<img src="<?php echo $this->imageCofre($value['brand_transparente']); ?>" alt="<?php echo $value['brand_transparente']; ?>" border="0">
|
46 |
+
</div>
|
47 |
+
<div class="cofre_number">
|
48 |
+
<h4 class="brand_title"><?php echo $value['brand_transparente']; ?> </h4>
|
49 |
+
<?php echo $value['first6'] ?> ** **** <?php echo $value['last4'] ?>
|
50 |
+
</div>
|
51 |
+
</label>
|
52 |
+
</li>
|
53 |
+
<?php endforeach; ?>
|
54 |
+
<li class="wide cc-cvv">
|
55 |
+
<div class="cc">
|
56 |
+
<label class="required" for="credito_parcela">Parcelas<em>*</em></label>
|
57 |
+
<div class="input-box">
|
58 |
+
|
59 |
+
|
60 |
+
<select name="payment[cofre_parcelamento]" id="credito_parcelamento" class="validate-select" title="Número de Parcelas" >
|
61 |
+
<option value="" select>Selecione as parcelas</option>
|
62 |
+
<?php $parcelas = $this->getParcelamento('parcelas'); ?>
|
63 |
+
<?php foreach ( $parcelas as $key => $value) { ?>
|
64 |
+
<?php echo $parcelas[$key]; ?>
|
65 |
+
<?php } ?>
|
66 |
+
</select>
|
67 |
+
|
68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
</div>
|
70 |
+
</div>
|
71 |
+
|
72 |
+
<div class="cvv">
|
73 |
+
<label class="required" for="cvv">Código de Segurança<i class="icon-question-sign"></i><em>*</em></label>
|
74 |
+
<div class="input-box">
|
75 |
+
<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" >
|
76 |
+
</div>
|
77 |
+
</div>
|
78 |
</li>
|
79 |
+
<li class="wide">
|
80 |
+
<label>
|
81 |
+
<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>
|
82 |
+
</li>
|
83 |
+
</ul>
|
84 |
+
|
85 |
+
<?php endif; ?>
|
86 |
+
|
87 |
+
|
88 |
+
<ul class="form-list cartao" <?php if($cofre !="false") : ?> style="display:none" <?php endif; ?>>
|
89 |
+
|
90 |
<li class="wide cc-cvv">
|
91 |
<div class="cc">
|
92 |
+
<label class="required" for="credito_numero">Número<em>*</em></label>
|
93 |
+
<div class="input-box">
|
94 |
+
<input type="text" name="payment[credito_numero]" id="credito_numero_moip" title="Número do seu Cartão de Crédito" class="input-text required-entry validate-number " placeholder="Número do Cartão">
|
95 |
+
<ul class="inline banderias-cartao input-brand-bandeira input-switcher-5">
|
96 |
+
<li>
|
97 |
+
<img src="<?php echo $this->getVisaImage(); ?>" id="Moip_Visa" alt="Visa" border="0">
|
98 |
+
</li>
|
99 |
+
<li>
|
100 |
+
<img src="<?php echo $this->getMastercardImage(); ?>" id="Moip_Mastercard" alt="Mastercard" border="0" >
|
101 |
+
</li>
|
102 |
+
<li>
|
103 |
+
<img src="<?php echo $this->getAmericanExpressImage(); ?>" id="Moip_AmericanExpress" alt="AmericanExpress" border="0" >
|
104 |
+
</li>
|
105 |
+
<li>
|
106 |
+
<img src="<?php echo $this->getDinersImage(); ?>" id="Moip_Diners" alt="Diners" border="0" >
|
107 |
+
</li>
|
108 |
+
<li>
|
109 |
+
<img src="<?php echo $this->getHipercardImage(); ?>" id="Moip_Hipercard" alt="Hipercard" border="0" >
|
110 |
+
</li>
|
111 |
+
</ul>
|
112 |
+
<input type="hidden" name="payment[cartao_valido]" title="O seu cartão não pode ser processado, corriga o número do seu cartão." id="cartao_valido" value="" class="input-hidden required-entry required-entry-valid-card"/>
|
113 |
+
</div>
|
114 |
+
</div>
|
115 |
+
<div class="cvv tooltip-transparente-handler">
|
116 |
+
<label class="required" for="cvv">CVV <i class="icon-question-sign"></i><em>*</em></label>
|
117 |
<div class="input-box">
|
118 |
+
<input type="text" name="payment[credito_codigo_seguranca]" title="Código de Seguranção do Seu Cartão" class="input-text required-entry validate-number" id="credito_codigo_seguranca" placeholder="CVV" >
|
119 |
+
<span class="tooltip-transparente cvv_tooltip">
|
120 |
+
<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>
|
121 |
+
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
</div>
|
123 |
</div>
|
124 |
+
<input type="hidden" name="payment[cvv_valido]" title="O seu cartão não pode ser processado, corriga o Código de Segurança informado." id="cvv_valido" value="" class="input-hidden required-entry required-entry-valid-card"/>
|
125 |
+
</li>
|
126 |
+
<input type="hidden" name="payment[credito_instituicao]" id="credito_instituicao_moip" value="" title="Cartão Inválido, corriga os dados e tente novamente" class="input-hidden required-entry"/>
|
127 |
|
128 |
+
|
129 |
+
|
130 |
+
|
131 |
+
<li class="wide cc-validade">
|
132 |
+
<label class="required" for="Validade">Validade<em>*</em></label>
|
133 |
+
<div class="input-box">
|
134 |
+
<select name="payment[credito_expiracao_mes]" id="credito_expiracao_mes" class="validate-select" title="Mês de Vencimento do seu Cartão">
|
135 |
+
<option value="">Mês</option>
|
136 |
+
<option value="01">01</option>
|
137 |
+
<option value="02">02</option>
|
138 |
+
<option value="03">03</option>
|
139 |
+
<option value="04">04</option>
|
140 |
+
<option value="05">05</option>
|
141 |
+
<option value="06">06</option>
|
142 |
+
<option value="07">07</option>
|
143 |
+
<option value="08">08</option>
|
144 |
+
<option value="09">09</option>
|
145 |
+
<option value="10">10</option>
|
146 |
+
<option value="11">11</option>
|
147 |
+
<option value="12">12</option>
|
148 |
+
</select>
|
149 |
+
<select name="payment[credito_expiracao_ano]" id="credito_expiracao_ano" class="validate-select" title="Ano de Vencimento do seu Cartão">
|
150 |
+
<option value="">Ano</option>
|
151 |
+
|
152 |
+
<option value="15">15</option>
|
153 |
+
<option value="16">16</option>
|
154 |
+
<option value="17">17</option>
|
155 |
+
<option value="18">18</option>
|
156 |
+
<option value="19">19</option>
|
157 |
+
<option value="20">20</option>
|
158 |
+
<option value="21">21</option>
|
159 |
+
<option value="22">22</option>
|
160 |
+
<option value="23">23</option>
|
161 |
+
<option value="24">24</option>
|
162 |
+
<option value="25">25</option>
|
163 |
+
<option value="26">26</option>
|
164 |
+
<option value="27">27</option>
|
165 |
+
</select>
|
166 |
</div>
|
167 |
</li>
|
168 |
+
<div class="alerta_data"></div>
|
169 |
+
|
170 |
<li class="wide">
|
171 |
+
|
172 |
+
|
173 |
+
|
174 |
+
<?php if (Mage::getStoreConfig('moipall/config/transparente_layout') == "Horizontal"): ?>
|
175 |
+
<label class="required" for="credito_parcela">Opções de pagamento<em>*</em></label>
|
176 |
+
<div class="input-box">
|
177 |
+
<select name="payment[credito_parcelamento]" id="credito_parcelamento" class="validate-select" title="Número de Parcelas de sua Compra" >
|
178 |
+
<option value="" select>Selecione as parcelas</option>
|
179 |
+
<?php $parcelas = $this->getParcelamento('parcelas'); ?>
|
180 |
+
<?php foreach ( $parcelas as $key => $value) { ?>
|
181 |
+
<?php echo $parcelas[$key]; ?>
|
182 |
+
<?php } ?>
|
183 |
+
</select>
|
184 |
+
</div>
|
185 |
+
<?php else: ?>
|
186 |
+
<ul class="parcelamento_options">
|
187 |
+
<?php $parcelas = $this->getParcelamento('parcelas'); ?>
|
188 |
+
<?php foreach ( $parcelas as $key => $value) { ?>
|
189 |
+
<?php echo $parcelas[$key]; ?>
|
190 |
+
<?php } ?>
|
191 |
+
</ul>
|
192 |
+
<?php endif; ?>
|
193 |
+
|
194 |
+
|
195 |
+
|
196 |
</li>
|
|
|
197 |
|
198 |
+
<li class="wide">
|
199 |
+
<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>
|
200 |
+
</li>
|
201 |
|
202 |
+
</ul>
|
203 |
+
|
204 |
+
<div id="formcli" style="display:none;">
|
205 |
+
<ul class="form-list dados-titular">
|
206 |
+
<h3>Dados do Titular</h3>
|
207 |
+
<li class="wide tooltip-transparente-handler">
|
208 |
+
<label class="required" for="credito_parcela"><em>*</em>Nome no Cartão</label>
|
|
|
|
|
|
|
|
|
|
|
209 |
<div class="input-box">
|
210 |
+
<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" placeholder="Nome Impresso no Cartão">
|
211 |
+
<span class="tooltip-transparente nome_tooltip">
|
212 |
+
<span class="custom help"><em>Nome do titular</em><br>deverá ser exatamente como está no cartão.</span>
|
213 |
</span>
|
214 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
</li>
|
216 |
+
<li class="wide">
|
217 |
+
<label class="required" for="credito_parcela"><em>*</em>CPF</label>
|
218 |
+
<div class="input-box">
|
219 |
+
<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; ?>" placeholder="CPF do Titular do Cartão">
|
220 |
+
</div>
|
|
|
|
|
221 |
</li>
|
222 |
+
<li class="wide">
|
223 |
+
<label class="required" for="credito_parcela"><em>*</em>Telefone</label>
|
224 |
+
<div class="input-box">
|
225 |
+
<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" placeholder="Telefone de Contato">
|
226 |
+
</div>
|
227 |
</li>
|
228 |
+
<li class="wide">
|
229 |
+
<label class="required" for="credito_parcela"><em>*</em>Data nascimento</label>
|
230 |
+
<div class="input-box">
|
231 |
+
<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" placeholder="Data de Nascimento">
|
232 |
+
</div>
|
233 |
</li>
|
234 |
</ul>
|
235 |
+
</div>
|
236 |
|
237 |
+
|
238 |
+
</div>
|
239 |
+
<div class="tab-pane" id="BoletoBancario" style="display:none">
|
240 |
+
<div class="span3 method-image">
|
241 |
+
<img alt="Boleto Bancário" id="imageboleto" src="<?php echo $this->getBoletoImage(); ?>">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
242 |
</div>
|
243 |
<div class="span9">
|
244 |
+
|
245 |
+
<div class="desc"><?php echo $this->getTextoBoleto("texto") ?></div>
|
246 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
247 |
</div>
|
248 |
+
</div>
|
249 |
+
<div class="tab-pane" id="DebitoBancario" style="display:none">
|
250 |
+
|
251 |
+
|
252 |
<ul class="inline input-switcher input-switcher-4">
|
253 |
<li>
|
254 |
<img src="<?php echo $this->getBBImage(); ?>" alt="Banco do Brasil" id="debbb" >
|
267 |
<input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="Banrisul" title="Banco Para a Transferência" class="validate-one-required-by-name">
|
268 |
</li>
|
269 |
</ul>
|
270 |
+
<div id="pagdebito">
|
271 |
+
<div class="desc">Após finalizar o pedido você será redirecionado ao site do seu banco...</div>
|
272 |
+
<div class="desc"><?php echo $this->getTextoTranferencia("texto"); ?></div>
|
273 |
+
|
274 |
+
</div>
|
275 |
+
</div>
|
276 |
+
</div>
|
277 |
+
|
278 |
+
<script>
|
279 |
+
jQuery(function () {
|
280 |
+
jQuery('.nav-tabs a:first').tab('show');
|
281 |
+
var panel_ativo = jQuery('.nav-tabs a:first').attr('href');
|
282 |
+
jQuery(panel_ativo).show();
|
283 |
+
jQuery("#forma_pagamento_moip").val(panel_ativo.replace('#', ''));
|
284 |
+
<?php if(Mage::getStoreConfig('moipall/config/enable_carrinho')): ?>updatePaymentMethod('<?php echo $this->getMethodCode() ?>');<?php endif ?>
|
285 |
+
jQuery('#moipPagamentos a').click(function (e) {
|
286 |
+
e.preventDefault()
|
287 |
+
jQuery('.tab-pane').hide();
|
288 |
+
valor = jQuery(this).attr('href');
|
289 |
+
jQuery(valor).show();
|
290 |
+
jQuery("#forma_pagamento_moip").val(jQuery(this).attr('href').replace('#', ''));
|
291 |
+
jQuery(this).tab('show');
|
292 |
+
<?php if(Mage::getStoreConfig('moipall/config/enable_carrinho')): ?>updatePaymentMethod('<?php echo $this->getMethodCode() ?>');<?php endif ?>
|
293 |
+
})
|
294 |
+
})
|
295 |
+
</script>
|
296 |
</div>
|
297 |
+
</fieldset>
|
298 |
+
|
299 |
+
|
300 |
+
|
app/design/frontend/base/default/template/MOIP/transparente/info.phtml
CHANGED
@@ -1,25 +1,17 @@
|
|
1 |
-
<?php
|
2 |
/* Mage::getModel("sales/order")->getCollection()->getLastItem()->getIncrementId(); */
|
3 |
-
|
4 |
if(Mage::app()->getRequest()->getModuleName() != "onestepcheckout" && Mage::app()->getRequest()->getModuleName() != "checkout"){
|
5 |
-
$css_email = "display: block;float: left;clear: both !important;border-radius: 10px;color: #fff;font-size: 16pt;font-weight: bold;text-align: center;text-transform: uppercase;
|
6 |
-
background: -moz-linear-gradient(top, #ff9900 0%, #ff6600 100%);background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff9900), color-stop(100%,#ff6600));
|
7 |
-
background: -webkit-linear-gradient(top, #ff9900 0%,#ff6600 100%);background: -o-linear-gradient(top, #ff9900 0%,#ff6600 100%);background: -ms-linear-gradient(top, #ff9900 0%,#ff6600 100%);background: linear-gradient(to bottom, #ff9900 0%,#ff6600 100%);filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff9900', endColorstr='#ff6600',GradientType=0 );line-height: 20px;position: relative;";
|
8 |
-
$css_boleto = "padding: 15px 20px 15px 20px;border: 0;";
|
9 |
-
$css_trans = "padding: 20px 20px 20px 20px";
|
10 |
-
$css_email_img = "position: absolute !important;left: -70px !important;top: -20px !important;min-height: 100px;width: 115px;";
|
11 |
?>
|
12 |
<?php $info = $this->_prepareInfo(); ?>
|
13 |
<?php if($info['result_meio'] == "Cartão de Crédito"): ?>
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
<div class="image" style="width:30%; float:left;">
|
19 |
<?php $imagem = $info['image']; ?>
|
20 |
<div class="image" style="padding:5px"><img src="<?php echo $imagem; ?>"></div>
|
21 |
</div>
|
22 |
-
<div class="
|
23 |
<label>6 Primeiros dígitos do cartão</label>
|
24 |
<div class="input-text"><strong><?php echo $info['first6'] ?></strong></div>
|
25 |
<label>4 Últimos dígitos do cartão</label>
|
@@ -28,369 +20,28 @@ $css_email_img = "position: absolute !important;left: -70px !important;top: -20p
|
|
28 |
</div>
|
29 |
<?php endif ?>
|
30 |
|
31 |
-
|
32 |
-
<?php if($info['result_meio'] == "Boleto Bancário"): ?>
|
33 |
-
<div class="metodo title"><h3><?php echo $info['result_meio'] ?></h3></div>
|
34 |
-
<div style="clear:both; width:100%;">
|
35 |
-
<button style="<?php echo $css_email.$css_boleto ?>" onclick="window.location='<?php echo $info['url'] ?>'" >Visualize o boleto aqui</span></button>
|
36 |
-
</div></br>
|
37 |
-
<div class="boleto_line_title"><h4>Ou Cópie o endereço:</h4></div>
|
38 |
-
<div class="boleto_line"><input type="text" class="input-text" value="<?php echo $info['url'] ?>" readonly="true" style="width:350px"></div>
|
39 |
-
<?php endif ?>
|
40 |
-
|
41 |
-
|
42 |
|
43 |
-
<?php if($info['result_meio'] == "
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
</div>
|
50 |
<?php endif ?>
|
51 |
|
52 |
|
53 |
-
<?php } if(Mage::app()->getRequest()->getModuleName() == "onestepcheckout" || Mage::app()->getRequest()->getModuleName() == "checkout" ) { ?>
|
54 |
-
|
55 |
-
<?php echo "Pagamento via Transparente" ?>
|
56 |
|
57 |
-
<?php
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
if($states == "pending" || $order->isCanceled()){
|
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')">
|
78 |
-
Escolher outra forma de pagamento
|
79 |
-
</button>
|
80 |
-
</div>
|
81 |
-
</div>
|
82 |
-
<div class="modal" id="showXml" style="display:none; width:38%; left:52%; min-width:250px;">
|
83 |
-
<div class="modal-header">
|
84 |
-
<button class="close" data-dismiss="modal">x</button><h3>Escolha a nova forma de pagamento.</h3>
|
85 |
-
</div>
|
86 |
-
<div class="modal-body">
|
87 |
-
<h4>Você poderá escolher uma nova forma de pagamento, selecionando os meios disponíveis a baixo:</h4>
|
88 |
-
<div style="display: none;" id="loading-mask">
|
89 |
-
<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>
|
90 |
-
</div>
|
91 |
-
<div class="retorno_transparente">
|
92 |
</div>
|
93 |
-
|
94 |
-
|
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 |
-
|
100 |
-
<div class= "seleciona_meio" style="border-bottom:2px solid #eeeee0;">
|
101 |
-
<ul class="inline input-switcher transparente-payment-methods" style="display: inline-flex;">
|
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>
|
113 |
-
</ul>
|
114 |
-
</div>
|
115 |
-
|
116 |
-
|
117 |
-
<div class="transparente-payment-method-content row-fluid" id="DebitoBancario" style="display:none">
|
118 |
-
<h2>Transferência Bancária</h2>
|
119 |
-
<div style="width:100%">É obrigatório ter token do banco para realizar esse processo.</div>
|
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>
|
127 |
-
</ul>
|
128 |
-
|
129 |
-
</div>
|
130 |
-
<div class="pagar_trans" style="display:none;">
|
131 |
-
<button id="sendToTransparente2" style="margin-top: 10px;" class="btn-transparente buttontransparente" onclick="jQuery('#loading-mask').show();jQuery('#refaz_pg_form').hide('slow');">Pagar Agora</button>
|
132 |
-
</div>
|
133 |
-
</div>
|
134 |
-
|
135 |
-
<div class="transparente-payment-method-content row-fluid" id="BoletoBancario" style="display:none">
|
136 |
-
<h2>Boleto Bancário</h2>
|
137 |
-
<div>Pagável até a data do vencimento em qualquer Casa lotérica, via internet-bank ou caixa eletrônico do seu banco.</div>
|
138 |
-
<button id="sendToTransparente2" style="margin-top: 10px;" class="btn-transparente buttontransparente" onclick="jQuery('#loading-mask').show();jQuery('#refaz_pg_form').hide('slow');">Pagar Agora</button>
|
139 |
-
</div>
|
140 |
-
|
141 |
-
<div class="transparente-payment-method-content row-fluid" id="CartaoCredito" style="display:none">
|
142 |
-
<div class="well">
|
143 |
-
<ul class="repay-form">
|
144 |
-
<div class="cartao_dados">
|
145 |
-
<li>
|
146 |
-
<h3>Dados do Cartão</h3>
|
147 |
-
</li>
|
148 |
-
<li>
|
149 |
-
<label>Parcelas:</label>
|
150 |
-
<?php $pgtoArray = $this->getOrder_dados(Mage::registry('client_array')); ?>
|
151 |
-
<?php $order = Mage::getModel('sales/order')->loadByIncrementId($info['realorder_id']); ?>
|
152 |
-
<?php $parcelamento = $api->getParcelamento($order->getGrand_total());
|
153 |
-
?>
|
154 |
-
<select id="Parcelas" name="parcelas">
|
155 |
-
<<option value="" select>Selecione as parcelas</option>
|
156 |
-
<?php $parcela_decode = json_decode($parcelamento,true);
|
157 |
-
foreach ($parcela_decode as $key => $value) {
|
158 |
-
|
159 |
-
if ($key <= Mage::getSingleton('transparente/standard')->getConfigData('nummaxparcelamax')) {
|
160 |
-
|
161 |
-
$juros = $parcela_decode[$key]['juros'];
|
162 |
-
$parcelas_result = $parcela_decode[$key]['parcela'];
|
163 |
-
$total_parcelado = $parcela_decode[$key]['total_parcelado'];
|
164 |
-
if($juros > 0)
|
165 |
-
$asterisco = '*';
|
166 |
-
else
|
167 |
-
$asterisco = '';
|
168 |
-
$parcelas[]= '<option value="'.$key.'">'.$key.'x de '.$parcelas_result.' no total de '.$total_parcelado.' '.$asterisco.'</option>';
|
169 |
-
|
170 |
-
}
|
171 |
-
}
|
172 |
-
foreach ( $parcelas as $key => $value) { ?>
|
173 |
-
<?php echo $parcelas[$key]; ?>
|
174 |
-
<?php } ?>
|
175 |
-
</select>
|
176 |
-
</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>
|
188 |
-
<div>
|
189 |
-
<label>Numero do Cartão:</label>
|
190 |
-
<input type="text" id="Numero" name="Numero" class="input-text" >
|
191 |
-
</div>
|
192 |
-
<div>
|
193 |
-
<label>CVV:</label>
|
194 |
-
<input type="text" id="CodigoSeguranca" class="input-text" name="CodigoSeguranca" size="4">
|
195 |
-
</div>
|
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>
|
204 |
-
</li>
|
205 |
-
</div>
|
206 |
-
<div class="pagador_dados_pessoais" style="display:none">
|
207 |
-
<li>
|
208 |
-
<h3>Dados do Títular do Cartão</h3>
|
209 |
-
</li>
|
210 |
-
<li>
|
211 |
-
<label>Portador:</label>
|
212 |
-
<input type="text" id="Portador" name="Portador" class="input-text" >
|
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>
|
228 |
-
<button id="sendToTransparente2" class="btn-transparente buttontransparente" style="margin-top: -30px !important; float:left" onclick="jQuery('#loading-mask').show();jQuery('#refaz_pg_form').hide('slow');">Pagar Agora</button>
|
229 |
-
</li>
|
230 |
-
</div>
|
231 |
-
</ul>
|
232 |
-
</div>
|
233 |
-
</div>
|
234 |
-
</form>
|
235 |
-
<div class="resposta_recebida"></div>
|
236 |
-
</div>
|
237 |
-
</div>
|
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);
|
248 |
-
jQuery('#checkout-payment-bandeira').hide();
|
249 |
-
jQuery('#checkout-payment-banco').hide();
|
250 |
-
jQuery(this).fadeTo(0, 1);
|
251 |
-
jQuery(this).find('input[type="radio"]').attr('checked', true);
|
252 |
-
}
|
253 |
-
});
|
254 |
-
jQuery('.transparente-payment-methods > li').bind({
|
255 |
-
click: function() {
|
256 |
-
jQuery('.transparente-payment-method-content').not('#' + jQuery(this).attr('data-target')).slideUp();
|
257 |
-
jQuery('#' + jQuery(this).attr('data-target')).slideDown();
|
258 |
-
jQuery('#forma_de_pagamento').val(jQuery(this).attr('data-target'));
|
259 |
-
}
|
260 |
-
});
|
261 |
-
});
|
262 |
|
263 |
-
var sucesso = function(data){
|
264 |
-
var data = JSON.stringify(data);
|
265 |
-
jQuery("#loading_mask_loader").hide();
|
266 |
-
if(jQuery("#forma_de_pagamento").val() == "BoletoBancario"){
|
267 |
-
jQuery(".retorno_transparente").html("<a href='<?php echo $info['url'] ?>'>Cique Aqui para visualizar o boleto</a>");
|
268 |
-
};
|
269 |
-
if(jQuery("#forma_de_pagamento").val() == "DebitoBancario"){
|
270 |
-
jQuery(".retorno_transparente").html("<a href='<?php echo $info['url'] ?>'>Cique Aqui para ir ao banco</a>");
|
271 |
-
};
|
272 |
-
if(jQuery("#forma_de_pagamento").val() == "CartaoCredito"){
|
273 |
-
if (data.Status == "Cancelado"){
|
274 |
-
jQuery(".retorno_transparente").append("<h3>Pagamento Cancelado</h3>");
|
275 |
-
jQuery(".retorno_transparente").append("Transação não aprovada.");
|
276 |
-
if(data.hasOwnProperty(data.Classificacao)){
|
277 |
-
var motivo = JSON.stringify(data.Classificacao.Descricao);
|
278 |
-
} else{
|
279 |
-
var motivo = "semretorno";
|
280 |
-
}
|
281 |
-
if(motivo == '"Desconhecido"'){
|
282 |
-
jQuery(".erros_transparente").html("Seus dados estão incorretos ou não podemos envia-los a operadora de crédito.");
|
283 |
-
}
|
284 |
-
if(motivo == '"Transação não processada"'){
|
285 |
-
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.");
|
286 |
-
}
|
287 |
-
if(motivo == '"Política de segurança do Transparente"'){
|
288 |
-
jQuery(".erros_transparente").html("Pagamento não autorizado.</br>Entre em contato com o seu banco antes de uma nova tentativa.");
|
289 |
-
}
|
290 |
-
if(motivo == '"Política de segurança do Banco Emissor"'){
|
291 |
-
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..");
|
292 |
-
}
|
293 |
-
if(motivo == '"Cartão vencido"'){
|
294 |
-
jQuery(".erros_transparente").html("A validade do seu Cartão expirou.</br>Escolha outra forma de pagamento para concluir o pagamento.");
|
295 |
-
}
|
296 |
-
if(motivo == '"Dados inválidos"'){
|
297 |
-
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.");
|
298 |
-
}
|
299 |
-
if(motivo =='semretorno' ){
|
300 |
-
jQuery(".erros_transparente").html("Verifique os dados e tente pagar novamente.");
|
301 |
-
}
|
302 |
-
}
|
303 |
-
if (data.Status == "EmAnalise"){
|
304 |
-
jQuery(".retorno_transparente").append("<h3>Pagamento Aguardando Aprovação</h3>");
|
305 |
-
jQuery(".retorno_transparente").append("Por favor, aguarde a em análise da transação. Assim que for alterado o status você será informado via e-mail.");
|
306 |
-
|
307 |
-
}
|
308 |
-
if (data.Status == "Autorizado"){
|
309 |
-
jQuery(".retorno_transparente").append("<h3>Pagamento Aprovado</h3>");
|
310 |
-
jQuery(".retorno_transparente").append("Por favor, aguarde o processo de envio.");
|
311 |
-
|
312 |
-
}
|
313 |
|
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 |
-
|
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 |
-
|
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();
|
343 |
-
var formURL = jQuery(this).attr("action");
|
344 |
-
jQuery("#refaz_pg_forma").hide();
|
345 |
-
jQuery("#loading_mask_loader").show();
|
346 |
-
jQuery.ajax(
|
347 |
-
{
|
348 |
-
url : formURL,
|
349 |
-
type: "POST",
|
350 |
-
data : postData,
|
351 |
-
success:function(data, textStatus, jqXHR)
|
352 |
-
{
|
353 |
-
if(jQuery("#forma_de_pagamento").val() == "BoletoBancario"){
|
354 |
-
var settings = {
|
355 |
-
"Forma" : "BoletoBancario"
|
356 |
-
};
|
357 |
-
};
|
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")
|
365 |
-
{
|
366 |
-
var settings =
|
367 |
-
{
|
368 |
-
"Forma": "CartaoCredito",
|
369 |
-
"Instituicao": jQuery("#bandeira").val(),
|
370 |
-
"Parcelas": jQuery("#Parcelas").val(),
|
371 |
-
"CartaoCredito":
|
372 |
-
{
|
373 |
-
"Numero": jQuery("input[name=Numero]").val(),
|
374 |
-
"Expiracao": jQuery("input[name=Expiracao_mes]").val()+'/'+jQuery("input[name=Expiracao_ano]").val(),
|
375 |
-
"CodigoSeguranca": jQuery("input[name=CodigoSeguranca]").val(),
|
376 |
-
"Portador": {
|
377 |
-
"Nome" : jQuery("input[name=Portador]").val(),
|
378 |
-
"DataNascimento": jQuery("input[name=DataNascimento]").val(),
|
379 |
-
"Telefone": jQuery("input[name=Telefone]").val(),
|
380 |
-
"Identidade": jQuery("input[name=CPF]").val()
|
381 |
-
}
|
382 |
-
}
|
383 |
-
}
|
384 |
-
};
|
385 |
-
MoipWidget(settings);
|
386 |
-
},
|
387 |
-
|
388 |
-
});
|
389 |
-
e.preventDefault();
|
390 |
-
});
|
391 |
-
//]]>
|
392 |
-
|
393 |
-
</script>
|
394 |
-
<?php
|
395 |
-
}
|
396 |
-
endif; ?>
|
1 |
+
<?php
|
2 |
/* Mage::getModel("sales/order")->getCollection()->getLastItem()->getIncrementId(); */
|
|
|
3 |
if(Mage::app()->getRequest()->getModuleName() != "onestepcheckout" && Mage::app()->getRequest()->getModuleName() != "checkout"){
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
?>
|
5 |
<?php $info = $this->_prepareInfo(); ?>
|
6 |
<?php if($info['result_meio'] == "Cartão de Crédito"): ?>
|
7 |
+
<div class="box-content">
|
8 |
+
<h3>Pago em <?php echo $info['creditcard_parc']; ?> parcelas via:</h3>
|
9 |
+
<div class="box-content grid12-4">
|
10 |
+
|
|
|
11 |
<?php $imagem = $info['image']; ?>
|
12 |
<div class="image" style="padding:5px"><img src="<?php echo $imagem; ?>"></div>
|
13 |
</div>
|
14 |
+
<div class="box-content grid12-8">
|
15 |
<label>6 Primeiros dígitos do cartão</label>
|
16 |
<div class="input-text"><strong><?php echo $info['first6'] ?></strong></div>
|
17 |
<label>4 Últimos dígitos do cartão</label>
|
20 |
</div>
|
21 |
<?php endif ?>
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
+
<?php if($info['result_meio'] == "Boleto Bancário"): ?>
|
25 |
+
<div class="box-content"><h3><?php echo $info['result_meio'] ?></h3>
|
26 |
+
<div class="box-content">
|
27 |
+
<div class="box-content"><a class="button btn-checkout btn-default" title="Finalizar compra" href="<?php echo $info['url'] ?>" target="_blank">Ver boleto</a></div>
|
28 |
+
</div>
|
29 |
+
</div>
|
|
|
30 |
<?php endif ?>
|
31 |
|
32 |
|
|
|
|
|
|
|
33 |
|
34 |
+
<?php if($info['result_meio'] == "Transferência Bancária"): ?>
|
35 |
+
<div class="box-content"><h3><?php echo $info['result_meio'] ?></h3>
|
36 |
+
<div class="box-content">
|
37 |
+
<a class="button btn-checkout btn-default" title="Finalizar compra" href="<?php echo $info['url'] ?>" target="_blank">Ir Ao banco</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
</div>
|
39 |
+
</div>
|
40 |
+
<?php endif ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
|
43 |
+
<?php } else { ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
+
<?php echo "Pagamento via Moip Pagamentos S/A" ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
+
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/MOIP/transparente/redirect.phtml
CHANGED
@@ -10,11 +10,6 @@
|
|
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; ?>
|
@@ -26,8 +21,11 @@
|
|
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 |
-
|
|
|
|
|
|
|
31 |
if($pgtoArraya['forma_pagamento'] == "BoletoBancario")
|
32 |
echo $this->getChildHtml('transparente.boleto');
|
33 |
elseif ($pgtoArraya['forma_pagamento'] == "DebitoBancario")
|
@@ -36,15 +34,7 @@
|
|
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 |
-
|
|
|
50 |
|
10 |
var _gaq = _gaq || [];
|
11 |
_gaq.push(['_setAccount', '<?php echo Mage::getStoreConfig("moipall/google/idgoogle") ?>']);
|
12 |
<?php echo $this->getTrackingTransparente($client_array); ?>
|
|
|
|
|
|
|
|
|
|
|
13 |
//]]>
|
14 |
</script>
|
15 |
<?php endif; ?>
|
21 |
|
22 |
<div class="grid12-12">
|
23 |
<h3>Seu pedido foi enviado com sucesso, <strong><?php echo $client_array['pagador_nome'] ?></strong>!</h3>
|
24 |
+
</div>
|
25 |
+
|
26 |
+
<div class="corpo_transparente">
|
27 |
+
|
28 |
+
<?php
|
29 |
if($pgtoArraya['forma_pagamento'] == "BoletoBancario")
|
30 |
echo $this->getChildHtml('transparente.boleto');
|
31 |
elseif ($pgtoArraya['forma_pagamento'] == "DebitoBancario")
|
34 |
echo $this->getChildHtml('transparente.cartao');
|
35 |
?>
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
</div>
|
38 |
+
|
39 |
+
|
40 |
|
app/design/frontend/base/default/template/MOIP/transparente/refaz.phtml
CHANGED
@@ -1,92 +1,111 @@
|
|
1 |
<?php $session = Mage::getSingleton('checkout/session'); ?>
|
2 |
<?php
|
3 |
-
$z=0;
|
4 |
$api = Mage::getModel('transparente/api');
|
5 |
-
$dados = $session->getPgtoarry();
|
6 |
?>
|
7 |
<?php $client_array = $session->getClient_array(); ?>
|
8 |
<?php $pgtoArray = $this->getOrder_dados($client_array); ?>
|
9 |
<form id="refazercartao" method="POST" action='<?php echo Mage::getBaseUrl('web', true); ?>transparente/index/Repag/'>
|
10 |
<input type="hidden" name="forma_de_pagamento" value="CartaoDeCredito" >
|
11 |
<div class="well">
|
12 |
-
<ul class="
|
13 |
-
|
14 |
<h3>Dados do Cartão</h3>
|
15 |
-
|
16 |
-
<li>
|
17 |
<label>Parcelas:</label>
|
18 |
<?php $pgtoArray = $this->getOrder_dados($client_array); ?>
|
19 |
<?php $order = Mage::getModel('sales/order')->loadByIncrementId($pgtoArray['id_transacao']); ?>
|
20 |
<?php $parcelamento = $api->getParcelamento($order->getGrand_total()); ?>
|
21 |
-
<
|
22 |
-
<
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
if ($key <= Mage::getSingleton('transparente/standard')->getConfigData('nummaxparcelamax')) {
|
27 |
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
$
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
|
|
|
|
|
|
37 |
}
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
</
|
43 |
</li>
|
44 |
-
<li>
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
|
|
|
|
|
|
53 |
</li>
|
54 |
-
<li>
|
55 |
<div>
|
56 |
<label>Numero do Cartão:</label>
|
57 |
-
|
|
|
|
|
58 |
</div>
|
59 |
<div>
|
60 |
<label>CVV:</label>
|
61 |
-
<
|
|
|
|
|
62 |
</div>
|
63 |
</li>
|
64 |
-
<li>
|
65 |
<label>Expiração:</label>
|
66 |
-
<
|
67 |
-
|
|
|
|
|
68 |
</li>
|
69 |
-
<li>
|
70 |
<h3>Dados do Títular do Cartão</h3>
|
71 |
</li>
|
72 |
-
<li>
|
73 |
<label>Portador:</label>
|
74 |
-
<
|
|
|
|
|
75 |
</li>
|
76 |
-
<li>
|
77 |
<label>CPF:</label>
|
78 |
-
<
|
|
|
|
|
79 |
</li>
|
80 |
-
<li>
|
81 |
<label>Data Nascimento:</label>
|
82 |
-
<
|
|
|
|
|
83 |
</li>
|
84 |
-
<li>
|
85 |
<label>Telefone:</label>
|
86 |
-
<
|
|
|
|
|
87 |
</li>
|
88 |
-
<li>
|
89 |
-
<button id="sendToTransparente2" class="btn-
|
90 |
</li>
|
91 |
</ul>
|
92 |
</div>
|
1 |
<?php $session = Mage::getSingleton('checkout/session'); ?>
|
2 |
<?php
|
3 |
+
$z=0;
|
4 |
$api = Mage::getModel('transparente/api');
|
5 |
+
$dados = $session->getPgtoarry();
|
6 |
?>
|
7 |
<?php $client_array = $session->getClient_array(); ?>
|
8 |
<?php $pgtoArray = $this->getOrder_dados($client_array); ?>
|
9 |
<form id="refazercartao" method="POST" action='<?php echo Mage::getBaseUrl('web', true); ?>transparente/index/Repag/'>
|
10 |
<input type="hidden" name="forma_de_pagamento" value="CartaoDeCredito" >
|
11 |
<div class="well">
|
12 |
+
<ul class="form-list">
|
13 |
+
|
14 |
<h3>Dados do Cartão</h3>
|
15 |
+
|
16 |
+
<li class="wide">
|
17 |
<label>Parcelas:</label>
|
18 |
<?php $pgtoArray = $this->getOrder_dados($client_array); ?>
|
19 |
<?php $order = Mage::getModel('sales/order')->loadByIncrementId($pgtoArray['id_transacao']); ?>
|
20 |
<?php $parcelamento = $api->getParcelamento($order->getGrand_total()); ?>
|
21 |
+
<div class="input-box">
|
22 |
+
<select id="Parcelas" name="parcelas">
|
23 |
+
<option value="" select>Selecione as parcelas</option>
|
24 |
+
<?php $parcela_decode = json_decode($parcelamento,true);
|
25 |
+
foreach ($parcela_decode as $key => $value) {
|
|
|
26 |
|
27 |
+
if ($key <= Mage::getSingleton('transparente/standard')->getConfigData('nummaxparcelamax')) {
|
28 |
+
|
29 |
+
$juros = $parcela_decode[$key]['juros'];
|
30 |
+
$parcelas_result = $parcela_decode[$key]['parcela'];
|
31 |
+
$total_parcelado = $parcela_decode[$key]['total_parcelado'];
|
32 |
+
if($juros > 0)
|
33 |
+
$asterisco = '*';
|
34 |
+
else
|
35 |
+
$asterisco = '';
|
36 |
+
$parcelas[]= '<option value="'.$key.'">'.$key.'x de '.$parcelas_result.' no total de '.$total_parcelado.' '.$asterisco.'</option>';
|
37 |
+
|
38 |
+
}
|
39 |
}
|
40 |
+
foreach ( $parcelas as $key => $value) { ?>
|
41 |
+
<?php echo $parcelas[$key]; ?>
|
42 |
+
<?php } ?>
|
43 |
+
</select>
|
44 |
+
</div>
|
45 |
</li>
|
46 |
+
<li class="wide">
|
47 |
+
|
48 |
+
<label>Instituição:</label>
|
49 |
+
<div class="input-box">
|
50 |
+
<select id="bandeira" name="bandeira">
|
51 |
+
<option value="Visa">Visa</option>
|
52 |
+
<option value="Mastercard">Mastercard</option>
|
53 |
+
<option value="AmericanExpress">AmericanExpress</option>
|
54 |
+
<option value="Hipercard">Hipercard</option>
|
55 |
+
<option value="Diners">Diners</option>
|
56 |
+
</select>
|
57 |
+
</div>
|
58 |
</li>
|
59 |
+
<li class="wide">
|
60 |
<div>
|
61 |
<label>Numero do Cartão:</label>
|
62 |
+
<div class="input-box">
|
63 |
+
<input type="text" id="Numero" name="Numero" value="" class="input-text" >
|
64 |
+
</div>
|
65 |
</div>
|
66 |
<div>
|
67 |
<label>CVV:</label>
|
68 |
+
<div class="input-box">
|
69 |
+
<input type="text" id="CodigoSeguranca" class="input-text" name="CodigoSeguranca" value="" size="4">
|
70 |
+
</div>
|
71 |
</div>
|
72 |
</li>
|
73 |
+
<li class="wide">
|
74 |
<label>Expiração:</label>
|
75 |
+
<div class="input-box">
|
76 |
+
<input type="text" id="Expiracao" name="Expiracao_mes" value="<?php echo $dados['credito_expiracao_mes'] ?>" onkeypress="return txtBoxFormat(this, '99', event);" maxlength="2" placeholder="Ex. 10/15" size="2" class="input-text" >
|
77 |
+
<input type="text" id="Expiracao" name="Expiracao_ano" value="<?php echo $dados['credito_expiracao_ano'] ?>" onkeypress="return txtBoxFormat(this, '99', event);" maxlength="2" placeholder="Ex. 10/15" size="2" class="input-text" >
|
78 |
+
</div>
|
79 |
</li>
|
80 |
+
<li class="wide">
|
81 |
<h3>Dados do Títular do Cartão</h3>
|
82 |
</li>
|
83 |
+
<li class="wide">
|
84 |
<label>Portador:</label>
|
85 |
+
<div class="input-box">
|
86 |
+
<input type="text" id="Portador" name="Portador" value="<?php echo $dados['credito_portador_nome'] ?>" class="input-text" >
|
87 |
+
</div>
|
88 |
</li>
|
89 |
+
<li class="wide">
|
90 |
<label>CPF:</label>
|
91 |
+
<div class="input-box">
|
92 |
+
<input type="text" id="CPF" name="CPF" value="<?php echo $dados['credito_portador_cpf'] ?>" class="input-text" onkeypress="return txtBoxFormat(this, '99999999999', event);" maxlength="11">
|
93 |
+
</div>
|
94 |
</li>
|
95 |
+
<li class="wide">
|
96 |
<label>Data Nascimento:</label>
|
97 |
+
<div class="input-box">
|
98 |
+
<input type="text" id="DataNascimento" value="<?php echo date('d/m/Y', strtotime($dados['credito_portador_nascimento'])) ?>" name="DataNascimento" onkeypress="return txtBoxFormat(this, '99/99/9999', event);" maxlength="10" placeholder="Ex. 10/10/1985" class="input-text" ><br>
|
99 |
+
</div>
|
100 |
</li>
|
101 |
+
<li class="wide">
|
102 |
<label>Telefone:</label>
|
103 |
+
<div class="input-box">
|
104 |
+
<input type="text" id="Telefone" name="Telefone" onkeypress="return txtBoxFormat(this, '(99)9999-9999', event);" placeholder="Ex. (11)9999-9999" maxlength="14" class="input-text" value="<?php echo $dados['credito_portador_DDD'] ?><?php echo $dados['credito_portador_telefone'] ?>" ><br>
|
105 |
+
</div>
|
106 |
</li>
|
107 |
+
<li class="wide">
|
108 |
+
<button id="sendToTransparente2" class="button btn-checkout " onclick="jQuery('#loading-mask').show();jQuery('.repeat_cartao').hide('slow');"><span><span>Pagar Agora</span></span></button>
|
109 |
</li>
|
110 |
</ul>
|
111 |
</div>
|
app/design/frontend/base/default/template/MOIP/transparente/script.phtml
ADDED
@@ -0,0 +1,156 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script type="text/javascript">
|
2 |
+
//<![CDATA[
|
3 |
+
|
4 |
+
jQuery.noConflict();
|
5 |
+
jQuery('#credito_portador_telefone').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
|
6 |
+
jQuery('#credito_portador_cpf').mask("000.000.000-00", {placeholder: "___.___.___-__"});
|
7 |
+
jQuery('#credito_portador_nascimento').mask("99/99/9999", {placeholder: "__/__/____"});
|
8 |
+
|
9 |
+
jQuery("#credito_expiracao_ano").change(function() {
|
10 |
+
var d = new Date();
|
11 |
+
var m = d.getMonth()+1;
|
12 |
+
var str= d.getFullYear()+'';
|
13 |
+
y_atual= str.match(/\d{2}$/);
|
14 |
+
var select_y = jQuery(this).val();
|
15 |
+
var select_m = jQuery("#credito_expiracao_mes").val();
|
16 |
+
|
17 |
+
if(select_y == y_atual){
|
18 |
+
if(select_m < m ){
|
19 |
+
jQuery(".alerta_data").show();
|
20 |
+
jQuery(".alerta_data").html('<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>');
|
21 |
+
jQuery("#checkout-onepage-buttom").attr("disabled","disabled");
|
22 |
+
}
|
23 |
+
else{
|
24 |
+
jQuery(".alerta_data").hide();
|
25 |
+
jQuery("#checkout-onepage-buttom").attr("disabled");
|
26 |
+
}
|
27 |
+
}
|
28 |
+
else{
|
29 |
+
jQuery(".alerta_data").hide();
|
30 |
+
jQuery("#checkout-onepage-buttom").removeAttr("disabled");
|
31 |
+
}
|
32 |
+
});
|
33 |
+
jQuery("#credito_expiracao_mes").change(function() {
|
34 |
+
var d = new Date();
|
35 |
+
var m = d.getMonth()+1;
|
36 |
+
var str= d.getFullYear()+'';
|
37 |
+
y_atual= str.match(/\d{2}$/);
|
38 |
+
var select_m = jQuery(this).val();
|
39 |
+
var select_y = jQuery("#credito_expiracao_ano").val();
|
40 |
+
if(select_y == y_atual && select_y != ""){
|
41 |
+
if(select_m < m ){
|
42 |
+
jQuery(".alerta_data").show();
|
43 |
+
jQuery(".alerta_data").html('<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>');
|
44 |
+
}
|
45 |
+
else{
|
46 |
+
jQuery(".alerta_data").hide();
|
47 |
+
}
|
48 |
+
}
|
49 |
+
else{
|
50 |
+
jQuery(".alerta_data").hide();
|
51 |
+
}
|
52 |
+
});
|
53 |
+
jQuery( "#credito_numero_moip" ).focusout(function() {
|
54 |
+
valor = jQuery( "#credito_numero_moip" ).val();
|
55 |
+
valide = moip.creditCard.isValid(valor);
|
56 |
+
if(valide){
|
57 |
+
result = moip.creditCard.cardType(valor);
|
58 |
+
jQuery("#credito_instituicao_moip").addClass('validation-passed');
|
59 |
+
jQuery("#credito_instituicao_moip").val(result.brand);
|
60 |
+
jQuery("#Moip_"+result.brand).css({
|
61 |
+
opacity: '1'
|
62 |
+
});
|
63 |
+
jQuery( "#cartao_valido" ).val('1');
|
64 |
+
} else{
|
65 |
+
jQuery("#credito_instituicao_moip").removeClass('validation-passed');
|
66 |
+
jQuery("#credito_instituicao_moip").addClass('validation-failed');
|
67 |
+
jQuery( "#cartao_valido" ).val();
|
68 |
+
}
|
69 |
+
}).blur(function() {
|
70 |
+
valor = jQuery( "#credito_numero_moip" ).val();
|
71 |
+
valide = moip.creditCard.isValid(valor);
|
72 |
+
if(valide){
|
73 |
+
result = moip.creditCard.cardType(valor);
|
74 |
+
jQuery("#credito_instituicao_moip").addClass('validation-passed');
|
75 |
+
jQuery("#credito_instituicao_moip").val(result.brand);
|
76 |
+
jQuery("#Moip_"+result.brand).show();
|
77 |
+
jQuery( "#cartao_valido" ).val('1');
|
78 |
+
} else {
|
79 |
+
jQuery("#credito_instituicao_moip").removeClass('validation-passed');
|
80 |
+
jQuery("#credito_instituicao_moip").addClass('validation-failed');
|
81 |
+
jQuery( "#cartao_valido" ).val();
|
82 |
+
}
|
83 |
+
|
84 |
+
});
|
85 |
+
|
86 |
+
|
87 |
+
jQuery( "#credito_codigo_seguranca" ).focusout(function() {
|
88 |
+
valide = moip.creditCard.isSecurityCodeValid(jQuery( "#credito_numero_moip" ).val(), jQuery( "#credito_codigo_seguranca" ).val());
|
89 |
+
if(valide){
|
90 |
+
jQuery("#credito_codigo_seguranca").addClass('validation-passed');
|
91 |
+
jQuery( "#cvv_valido" ).val('1');
|
92 |
+
} else {
|
93 |
+
jQuery("#credito_codigo_seguranca").removeClass('validation-passed');
|
94 |
+
jQuery("#credito_codigo_seguranca").addClass('validation-failed');
|
95 |
+
jQuery( "#cvv_valido" ).val();
|
96 |
+
}
|
97 |
+
jQuery(".dados-titular").show("slow");
|
98 |
+
jQuery("#formcli").show("slow");
|
99 |
+
document.getElementById('credito_portador_nome').value = document.getElementById('billing:firstname').value + ' ' + document.getElementById('billing:lastname').value;
|
100 |
+
document.getElementById('credito_portador_telefone').value = document.getElementById('billing:telephone').value;
|
101 |
+
document.getElementById('credito_portador_cpf').value = document.getElementById('billing:taxvat').value;
|
102 |
+
if (document.getElementById('billing:year').value) {
|
103 |
+
document.getElementById('credito_portador_nascimento').value = document.getElementById('billing:day').value + '/' + document.getElementById('billing:month').value + '/' + document.getElementById('billing:year').value
|
104 |
+
}
|
105 |
+
})
|
106 |
+
.blur(function() {
|
107 |
+
valide = moip.creditCard.isSecurityCodeValid(jQuery( "#credito_numero_moip" ).val(), jQuery( "#credito_codigo_seguranca" ).val());
|
108 |
+
if(valide){
|
109 |
+
jQuery("#credito_codigo_seguranca").addClass('validation-passed');
|
110 |
+
jQuery( "#cvv_valido" ).val('1');
|
111 |
+
} else {
|
112 |
+
jQuery("#credito_codigo_seguranca").removeClass('validation-passed');
|
113 |
+
jQuery("#credito_codigo_seguranca").addClass('validation-failed');
|
114 |
+
jQuery( "#cvv_valido" ).val();
|
115 |
+
}
|
116 |
+
jQuery(".dados-titular").show("slow");
|
117 |
+
jQuery("#formcli").show("slow");
|
118 |
+
document.getElementById('credito_portador_nome').value = document.getElementById('billing:firstname').value + ' ' + document.getElementById('billing:lastname').value;
|
119 |
+
document.getElementById('credito_portador_telefone').value = document.getElementById('billing:telephone').value;
|
120 |
+
document.getElementById('credito_portador_cpf').value = document.getElementById('billing:taxvat').value;
|
121 |
+
if (document.getElementById('billing:year').value) {
|
122 |
+
document.getElementById('credito_portador_nascimento').value = document.getElementById('billing:day').value + '/' + document.getElementById('billing:month').value + '/' + document.getElementById('billing:year').value
|
123 |
+
}
|
124 |
+
});
|
125 |
+
|
126 |
+
|
127 |
+
|
128 |
+
jQuery('#onestep_form :input').blur(function() {
|
129 |
+
if(jQuery(this).attr('id') != "billing:day" && jQuery(this).attr('id') != "billing:month"){
|
130 |
+
Validation.validate(jQuery(this).attr('id'));
|
131 |
+
}
|
132 |
+
});
|
133 |
+
jQuery('.tooltip-transparente-handler').hover(function() {
|
134 |
+
var hover_class = jQuery(this).parent().find('.tooltip-transparente').attr('class').split(' ').pop();
|
135 |
+
jQuery('.'+hover_class).addClass('tooltip-transparente-visible');
|
136 |
+
setTimeout(function(){jQuery('.'+hover_class).removeClass('tooltip-transparente-visible');}, 5000);
|
137 |
+
},function() {
|
138 |
+
jQuery('.tooltip-transparente').removeClass('tooltip-transparente-visible');
|
139 |
+
});
|
140 |
+
|
141 |
+
function Cofre(cofre_brand, numero_cofre){
|
142 |
+
jQuery("#brand_cofre").val(cofre_brand);
|
143 |
+
jQuery("#cofre_numero").val(numero_cofre);
|
144 |
+
}
|
145 |
+
function Novo(){
|
146 |
+
if(jQuery("#new_card").is(":checked")){
|
147 |
+
jQuery(".form-list-cofre").hide();
|
148 |
+
jQuery(".cartao").show();
|
149 |
+
jQuery(".formcli").show();
|
150 |
+
jQuery("#use_cofre").val('0');
|
151 |
+
}
|
152 |
+
}
|
153 |
+
|
154 |
+
//]]>
|
155 |
+
</script>
|
156 |
+
|
app/design/frontend/base/default/template/MOIP/transparente/transferencia.phtml
CHANGED
@@ -2,25 +2,36 @@
|
|
2 |
<?php $pgtoArraya = $session->getPgtoarry(); ?>
|
3 |
<?php $result_decode = $session->getResult_decode(); ?>
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
<
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
|
|
|
|
15 |
<script type="text/javascript">
|
16 |
//<![CDATA[
|
17 |
jQuery(document).ready(function(){
|
18 |
jQuery("#token").val("<?php echo $result_decode['token'] ?>");
|
19 |
-
var settings =
|
20 |
<?php echo $this->getJson($pgtoArraya); ?>
|
21 |
;
|
22 |
MoipWidget(settings);
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
});
|
25 |
var sucesso = function(data){
|
26 |
}
|
2 |
<?php $pgtoArraya = $session->getPgtoarry(); ?>
|
3 |
<?php $result_decode = $session->getResult_decode(); ?>
|
4 |
|
5 |
+
|
6 |
+
<div class="method-type-payment">
|
7 |
+
<h3>Quase lá! Agora só falta pagar o boleto.</h3>
|
8 |
+
</div>
|
9 |
+
<div class="method-type-action">
|
10 |
+
<p>Você será redirecionado para o seu banco em <strong><span id="count">10</span>s</strong>, para concluir o pagamento</p>
|
11 |
+
<button type="button" title="Finalizar compra" class="button btn-checkout" onclick="window.location='<?php echo $this->getUrlAmbiente()."Instrucao.do?token=". $result_decode['token'] ?>'"><span><span>Ir ao Banco <i class="fa fa-arrow-right"></i></span></span></button>
|
12 |
+
</div>
|
13 |
+
|
14 |
+
|
15 |
+
|
16 |
+
|
17 |
<script type="text/javascript">
|
18 |
//<![CDATA[
|
19 |
jQuery(document).ready(function(){
|
20 |
jQuery("#token").val("<?php echo $result_decode['token'] ?>");
|
21 |
+
var settings =
|
22 |
<?php echo $this->getJson($pgtoArraya); ?>
|
23 |
;
|
24 |
MoipWidget(settings);
|
25 |
+
var counter = 10;
|
26 |
+
setInterval(function() {
|
27 |
+
counter--;
|
28 |
+
if(counter < 0) {
|
29 |
+
window.location = '<?php echo $this->getUrlAmbiente()."Instrucao.do?token=". $result_decode['token'] ?>';
|
30 |
+
} else {
|
31 |
+
document.getElementById("count").innerHTML = counter;
|
32 |
+
}
|
33 |
+
}, 1000);
|
34 |
+
|
35 |
});
|
36 |
var sucesso = function(data){
|
37 |
}
|
app/design/frontend/base/default/template/MOIP/transparente/vertical_form.phtml
CHANGED
@@ -5,17 +5,21 @@
|
|
5 |
<?php $dn ="" ?>
|
6 |
<script type="text/javascript">
|
7 |
//<![CDATA[
|
8 |
-
|
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();
|
@@ -40,11 +44,11 @@ jQuery(document).ready(function() {
|
|
40 |
//]]>
|
41 |
</script>
|
42 |
<link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('MOIP/transparente/css/vertical_form.css'); ?>"media="all">
|
43 |
-
<
|
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,7 +60,7 @@ jQuery(document).ready(function() {
|
|
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">
|
@@ -86,8 +90,8 @@ jQuery(document).ready(function() {
|
|
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'); ?>
|
@@ -114,9 +118,9 @@ jQuery(document).ready(function() {
|
|
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>
|
@@ -195,12 +199,12 @@ jQuery(document).ready(function() {
|
|
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'); ?>
|
@@ -211,13 +215,13 @@ jQuery(document).ready(function() {
|
|
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>
|
@@ -250,19 +254,19 @@ jQuery(document).ready(function() {
|
|
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>
|
265 |
-
<div class="resume"><?php if(!$this->boletoDisponivel('valid')){echo $this->getTextoBoleto('preview');} ?></div>
|
266 |
</div>
|
267 |
<div class="method-price">
|
268 |
<?php if(!$this->boletoDisponivel('valid')): ?>
|
@@ -271,7 +275,7 @@ jQuery(document).ready(function() {
|
|
271 |
<p class="method-price-title"><?php if(!$this->boletoDisponivel('valid')){echo $this->getBoletoPrice();}else{echo "Indisponível";} ?></p>
|
272 |
</div>
|
273 |
</li>
|
274 |
-
|
275 |
<li class="transparente-payment-method-content row-fluid" id="transparente-boleto" style="display:none">
|
276 |
<div class="span3 method-image">
|
277 |
<img alt="Boleto Bancário" id="imageboleto" src="<?php echo $this->getBoletoImage(); ?>">
|
@@ -289,7 +293,7 @@ jQuery(document).ready(function() {
|
|
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>
|
@@ -330,5 +334,5 @@ jQuery(document).ready(function() {
|
|
330 |
</li>
|
331 |
<?php endif; ?>
|
332 |
</ul>
|
333 |
-
</
|
334 |
-
|
5 |
<?php $dn ="" ?>
|
6 |
<script type="text/javascript">
|
7 |
//<![CDATA[
|
8 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
jQuery(document).ready(function() {
|
10 |
+
jQuery('.input-switcher > li').not('.transparente-payment-method-content').bind({
|
11 |
+
click: function() {
|
12 |
+
jQuery(this).parent().find('input[type="radio"]').prop('checked',false);
|
13 |
+
jQuery('#checkout-payment-bandeira').hide();
|
14 |
+
jQuery('#checkout-payment-banco').hide();
|
15 |
+
jQuery(this).find('input[type="radio"]').prop('checked',true);
|
16 |
+
<?php if(Mage::getStoreConfig('moipall/config/enable_carrinho')): ?>
|
17 |
+
updatePaymentMethod('<?php echo $this->getMethodCode() ?>');
|
18 |
+
<?php endif ?>
|
19 |
+
|
20 |
+
}
|
21 |
+
});
|
22 |
+
|
23 |
<?php if(Mage::getStoreConfig('moipall/config/enable_carrinho')): ?>
|
24 |
if(jQuery("input.radio.payment_method_handle:checked").val() == "moip_transparente_standard"){
|
25 |
showBlocks();
|
44 |
//]]>
|
45 |
</script>
|
46 |
<link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('MOIP/transparente/css/vertical_form.css'); ?>"media="all">
|
47 |
+
<ul id="payment_form_<?php echo $this->getMethodCode() ?>">
|
48 |
<ul class="inline input-switcher transparente-payment-methods">
|
49 |
<?php if($this->mostraCartao()): ?>
|
50 |
<li data-target="transparente-cartao" class='transparente-payment-method-line'>
|
51 |
+
<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" <?php if(Mage::getStoreConfig('moipall/config/enable_carrinho')): ?>onclick="updatePaymentMethod('<?php echo $this->getMethodCode() ?>');"<?php endif ?>>
|
52 |
<img alt="Cartão de Crédito" src="<?php echo $this->getCartaoIcon(); ?>">
|
53 |
<div class="middle-method">
|
54 |
<div class="chamada">Cartão de Crédito</div>
|
60 |
</div>
|
61 |
</li>
|
62 |
<li class="transparente-payment-method-content row-fluid" id="transparente-cartao" style="display:none">
|
63 |
+
<h3>Cartão de Crédito</h3>
|
64 |
<?php if($cofre !="false"): ?>
|
65 |
<?php $cofre = Mage::helper('core')->jsonDecode($cofre); ?>
|
66 |
<ul class="form-list-cofre">
|
90 |
<div class="cc">
|
91 |
<label class="required" for="credito_parcela">Parcelas<em>*</em></label>
|
92 |
<div class="input-box">
|
93 |
+
|
94 |
+
|
95 |
<select name="payment[cofre_parcelamento]" id="credito_parcelamento" class="input-text required-entry" title="Número de Parcelas" >
|
96 |
<option value="" select>Selecione as parcelas</option>
|
97 |
<?php $parcelas = $this->getParcelamento('parcelas'); ?>
|
118 |
|
119 |
<?php endif; ?>
|
120 |
|
121 |
+
|
122 |
<ul class="form-list cartao">
|
123 |
+
|
124 |
<li class="wide cc-cvv">
|
125 |
<div class="cc">
|
126 |
<label class="required" for="credito_numero">Número<em>*</em></label>
|
199 |
</div>
|
200 |
</li>
|
201 |
<div class="alerta_data"></div>
|
202 |
+
|
203 |
<li class="wide">
|
204 |
<label class="required" for="credito_parcela">Opções de pagamento<em>*</em></label>
|
205 |
<div class="input-box">
|
206 |
+
|
207 |
+
|
208 |
<select name="payment[credito_parcelamento]" id="credito_parcelamento" class="input-text required-entry" title="Número de Parcelas de sua Compra" >
|
209 |
<option value="" select>Selecione as parcelas</option>
|
210 |
<?php $parcelas = $this->getParcelamento('parcelas'); ?>
|
215 |
<?php echo $this->getTextoParcelas() ?>
|
216 |
</div>
|
217 |
</li>
|
218 |
+
|
219 |
<li class="wide">
|
220 |
<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>
|
221 |
</li>
|
222 |
+
|
223 |
</ul>
|
224 |
+
|
225 |
<div id="formcli" style="display:none;">
|
226 |
<ul class="form-list dados-titular">
|
227 |
<h3>Dados do Titular</h3>
|
254 |
</li>
|
255 |
</ul>
|
256 |
</div>
|
|
|
|
|
257 |
|
258 |
+
|
259 |
+
|
260 |
+
|
261 |
</li>
|
262 |
<?php endif; ?>
|
263 |
<?php if($this->mostraBoleto()): ?>
|
264 |
<li data-target="transparente-boleto" class='transparente-payment-method-line'>
|
265 |
+
<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" <?php if(Mage::getStoreConfig('moipall/config/enable_carrinho')): ?>onclick="updatePaymentMethod('<?php echo $this->getMethodCode() ?>');"<?php endif ?>>
|
266 |
<img alt="Boleto Bancário" src="<?php echo $this->getBoletoIcon(); ?>">
|
267 |
<div class="middle-method">
|
268 |
<div class="chamada">Boleto</div>
|
269 |
+
<div class="resume"><?php if(!$this->boletoDisponivel('valid')){echo $this->getTextoBoleto('preview');} ?></div>
|
270 |
</div>
|
271 |
<div class="method-price">
|
272 |
<?php if(!$this->boletoDisponivel('valid')): ?>
|
275 |
<p class="method-price-title"><?php if(!$this->boletoDisponivel('valid')){echo $this->getBoletoPrice();}else{echo "Indisponível";} ?></p>
|
276 |
</div>
|
277 |
</li>
|
278 |
+
|
279 |
<li class="transparente-payment-method-content row-fluid" id="transparente-boleto" style="display:none">
|
280 |
<div class="span3 method-image">
|
281 |
<img alt="Boleto Bancário" id="imageboleto" src="<?php echo $this->getBoletoImage(); ?>">
|
293 |
<?php endif; ?>
|
294 |
<?php if($this->mostraTransferencia()): ?>
|
295 |
<li data-target="transparente-transferencia" class='transparente-payment-method-line'>
|
296 |
+
<input type="radio" class="forma_pg input-text validate-one-required-by-name" id="ted" name="payment[forma_pagamento]" value="DebitoBancario" <?php if(Mage::getStoreConfig('moipall/config/enable_carrinho')): ?>onclick="updatePaymentMethod('<?php echo $this->getMethodCode() ?>');"<?php endif ?> >
|
297 |
<img alt="Transferência Bancária" id="imageboleto" src="<?php echo $this->getTransferenciaIcon(); ?>">
|
298 |
<div class="middle-method">
|
299 |
<div class="chamada">Transferência</div>
|
334 |
</li>
|
335 |
<?php endif; ?>
|
336 |
</ul>
|
337 |
+
</ul>
|
338 |
+
|
js/MOIP/bootstrap-modal.js
ADDED
@@ -0,0 +1,1951 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* Bootstrap v3.1.0 (http://getbootstrap.com)
|
3 |
+
* Copyright 2011-2014 Twitter, Inc.
|
4 |
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
5 |
+
*/
|
6 |
+
|
7 |
+
if (typeof jQuery === 'undefined') { throw new Error('Bootstrap requires jQuery') }
|
8 |
+
|
9 |
+
/* ========================================================================
|
10 |
+
* Bootstrap: transition.js v3.1.0
|
11 |
+
* http://getbootstrap.com/javascript/#transitions
|
12 |
+
* ========================================================================
|
13 |
+
* Copyright 2011-2014 Twitter, Inc.
|
14 |
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
15 |
+
* ======================================================================== */
|
16 |
+
|
17 |
+
|
18 |
+
+function ($) {
|
19 |
+
'use strict';
|
20 |
+
|
21 |
+
// CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
|
22 |
+
// ============================================================
|
23 |
+
|
24 |
+
function transitionEnd() {
|
25 |
+
var el = document.createElement('bootstrap')
|
26 |
+
|
27 |
+
var transEndEventNames = {
|
28 |
+
'WebkitTransition' : 'webkitTransitionEnd',
|
29 |
+
'MozTransition' : 'transitionend',
|
30 |
+
'OTransition' : 'oTransitionEnd otransitionend',
|
31 |
+
'transition' : 'transitionend'
|
32 |
+
}
|
33 |
+
|
34 |
+
for (var name in transEndEventNames) {
|
35 |
+
if (el.style[name] !== undefined) {
|
36 |
+
return { end: transEndEventNames[name] }
|
37 |
+
}
|
38 |
+
}
|
39 |
+
|
40 |
+
return false // explicit for ie8 ( ._.)
|
41 |
+
}
|
42 |
+
|
43 |
+
// http://blog.alexmaccaw.com/css-transitions
|
44 |
+
$.fn.emulateTransitionEnd = function (duration) {
|
45 |
+
var called = false, $el = this
|
46 |
+
$(this).one($.support.transition.end, function () { called = true })
|
47 |
+
var callback = function () { if (!called) $($el).trigger($.support.transition.end) }
|
48 |
+
setTimeout(callback, duration)
|
49 |
+
return this
|
50 |
+
}
|
51 |
+
|
52 |
+
$(function () {
|
53 |
+
$.support.transition = transitionEnd()
|
54 |
+
})
|
55 |
+
|
56 |
+
}(jQuery);
|
57 |
+
|
58 |
+
/* ========================================================================
|
59 |
+
* Bootstrap: alert.js v3.1.0
|
60 |
+
* http://getbootstrap.com/javascript/#alerts
|
61 |
+
* ========================================================================
|
62 |
+
* Copyright 2011-2014 Twitter, Inc.
|
63 |
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
64 |
+
* ======================================================================== */
|
65 |
+
|
66 |
+
|
67 |
+
+function ($) {
|
68 |
+
'use strict';
|
69 |
+
|
70 |
+
// ALERT CLASS DEFINITION
|
71 |
+
// ======================
|
72 |
+
|
73 |
+
var dismiss = '[data-dismiss="alert"]'
|
74 |
+
var Alert = function (el) {
|
75 |
+
$(el).on('click', dismiss, this.close)
|
76 |
+
}
|
77 |
+
|
78 |
+
Alert.prototype.close = function (e) {
|
79 |
+
var $this = $(this)
|
80 |
+
var selector = $this.attr('data-target')
|
81 |
+
|
82 |
+
if (!selector) {
|
83 |
+
selector = $this.attr('href')
|
84 |
+
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
|
85 |
+
}
|
86 |
+
|
87 |
+
var $parent = $(selector)
|
88 |
+
|
89 |
+
if (e) e.preventDefault()
|
90 |
+
|
91 |
+
if (!$parent.length) {
|
92 |
+
$parent = $this.hasClass('alert') ? $this : $this.parent()
|
93 |
+
}
|
94 |
+
|
95 |
+
$parent.trigger(e = $.Event('close.bs.alert'))
|
96 |
+
|
97 |
+
if (e.isDefaultPrevented()) return
|
98 |
+
|
99 |
+
$parent.removeClass('in')
|
100 |
+
|
101 |
+
function removeElement() {
|
102 |
+
$parent.trigger('closed.bs.alert').remove()
|
103 |
+
}
|
104 |
+
|
105 |
+
$.support.transition && $parent.hasClass('fade') ?
|
106 |
+
$parent
|
107 |
+
.one($.support.transition.end, removeElement)
|
108 |
+
.emulateTransitionEnd(150) :
|
109 |
+
removeElement()
|
110 |
+
}
|
111 |
+
|
112 |
+
|
113 |
+
// ALERT PLUGIN DEFINITION
|
114 |
+
// =======================
|
115 |
+
|
116 |
+
var old = $.fn.alert
|
117 |
+
|
118 |
+
$.fn.alert = function (option) {
|
119 |
+
return this.each(function () {
|
120 |
+
var $this = $(this)
|
121 |
+
var data = $this.data('bs.alert')
|
122 |
+
|
123 |
+
if (!data) $this.data('bs.alert', (data = new Alert(this)))
|
124 |
+
if (typeof option == 'string') data[option].call($this)
|
125 |
+
})
|
126 |
+
}
|
127 |
+
|
128 |
+
$.fn.alert.Constructor = Alert
|
129 |
+
|
130 |
+
|
131 |
+
// ALERT NO CONFLICT
|
132 |
+
// =================
|
133 |
+
|
134 |
+
$.fn.alert.noConflict = function () {
|
135 |
+
$.fn.alert = old
|
136 |
+
return this
|
137 |
+
}
|
138 |
+
|
139 |
+
|
140 |
+
// ALERT DATA-API
|
141 |
+
// ==============
|
142 |
+
|
143 |
+
$(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close)
|
144 |
+
|
145 |
+
}(jQuery);
|
146 |
+
|
147 |
+
/* ========================================================================
|
148 |
+
* Bootstrap: button.js v3.1.0
|
149 |
+
* http://getbootstrap.com/javascript/#buttons
|
150 |
+
* ========================================================================
|
151 |
+
* Copyright 2011-2014 Twitter, Inc.
|
152 |
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
153 |
+
* ======================================================================== */
|
154 |
+
|
155 |
+
|
156 |
+
+function ($) {
|
157 |
+
'use strict';
|
158 |
+
|
159 |
+
// BUTTON PUBLIC CLASS DEFINITION
|
160 |
+
// ==============================
|
161 |
+
|
162 |
+
var Button = function (element, options) {
|
163 |
+
this.$element = $(element)
|
164 |
+
this.options = $.extend({}, Button.DEFAULTS, options)
|
165 |
+
this.isLoading = false
|
166 |
+
}
|
167 |
+
|
168 |
+
Button.DEFAULTS = {
|
169 |
+
loadingText: 'loading...'
|
170 |
+
}
|
171 |
+
|
172 |
+
Button.prototype.setState = function (state) {
|
173 |
+
var d = 'disabled'
|
174 |
+
var $el = this.$element
|
175 |
+
var val = $el.is('input') ? 'val' : 'html'
|
176 |
+
var data = $el.data()
|
177 |
+
|
178 |
+
state = state + 'Text'
|
179 |
+
|
180 |
+
if (!data.resetText) $el.data('resetText', $el[val]())
|
181 |
+
|
182 |
+
$el[val](data[state] || this.options[state])
|
183 |
+
|
184 |
+
// push to event loop to allow forms to submit
|
185 |
+
setTimeout($.proxy(function () {
|
186 |
+
if (state == 'loadingText') {
|
187 |
+
this.isLoading = true
|
188 |
+
$el.addClass(d).attr(d, d)
|
189 |
+
} else if (this.isLoading) {
|
190 |
+
this.isLoading = false
|
191 |
+
$el.removeClass(d).removeAttr(d)
|
192 |
+
}
|
193 |
+
}, this), 0)
|
194 |
+
}
|
195 |
+
|
196 |
+
Button.prototype.toggle = function () {
|
197 |
+
var changed = true
|
198 |
+
var $parent = this.$element.closest('[data-toggle="buttons"]')
|
199 |
+
|
200 |
+
if ($parent.length) {
|
201 |
+
var $input = this.$element.find('input')
|
202 |
+
if ($input.prop('type') == 'radio') {
|
203 |
+
if ($input.prop('checked') && this.$element.hasClass('active')) changed = false
|
204 |
+
else $parent.find('.active').removeClass('active')
|
205 |
+
}
|
206 |
+
if (changed) $input.prop('checked', !this.$element.hasClass('active')).trigger('change')
|
207 |
+
}
|
208 |
+
|
209 |
+
if (changed) this.$element.toggleClass('active')
|
210 |
+
}
|
211 |
+
|
212 |
+
|
213 |
+
// BUTTON PLUGIN DEFINITION
|
214 |
+
// ========================
|
215 |
+
|
216 |
+
var old = $.fn.button
|
217 |
+
|
218 |
+
$.fn.button = function (option) {
|
219 |
+
return this.each(function () {
|
220 |
+
var $this = $(this)
|
221 |
+
var data = $this.data('bs.button')
|
222 |
+
var options = typeof option == 'object' && option
|
223 |
+
|
224 |
+
if (!data) $this.data('bs.button', (data = new Button(this, options)))
|
225 |
+
|
226 |
+
if (option == 'toggle') data.toggle()
|
227 |
+
else if (option) data.setState(option)
|
228 |
+
})
|
229 |
+
}
|
230 |
+
|
231 |
+
$.fn.button.Constructor = Button
|
232 |
+
|
233 |
+
|
234 |
+
// BUTTON NO CONFLICT
|
235 |
+
// ==================
|
236 |
+
|
237 |
+
$.fn.button.noConflict = function () {
|
238 |
+
$.fn.button = old
|
239 |
+
return this
|
240 |
+
}
|
241 |
+
|
242 |
+
|
243 |
+
// BUTTON DATA-API
|
244 |
+
// ===============
|
245 |
+
|
246 |
+
$(document).on('click.bs.button.data-api', '[data-toggle^=button]', function (e) {
|
247 |
+
var $btn = $(e.target)
|
248 |
+
if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
|
249 |
+
$btn.button('toggle')
|
250 |
+
e.preventDefault()
|
251 |
+
})
|
252 |
+
|
253 |
+
}(jQuery);
|
254 |
+
|
255 |
+
/* ========================================================================
|
256 |
+
* Bootstrap: carousel.js v3.1.0
|
257 |
+
* http://getbootstrap.com/javascript/#carousel
|
258 |
+
* ========================================================================
|
259 |
+
* Copyright 2011-2014 Twitter, Inc.
|
260 |
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
261 |
+
* ======================================================================== */
|
262 |
+
|
263 |
+
|
264 |
+
+function ($) {
|
265 |
+
'use strict';
|
266 |
+
|
267 |
+
// CAROUSEL CLASS DEFINITION
|
268 |
+
// =========================
|
269 |
+
|
270 |
+
var Carousel = function (element, options) {
|
271 |
+
this.$element = $(element)
|
272 |
+
this.$indicators = this.$element.find('.carousel-indicators')
|
273 |
+
this.options = options
|
274 |
+
this.paused =
|
275 |
+
this.sliding =
|
276 |
+
this.interval =
|
277 |
+
this.$active =
|
278 |
+
this.$items = null
|
279 |
+
|
280 |
+
this.options.pause == 'hover' && this.$element
|
281 |
+
.on('mouseenter', $.proxy(this.pause, this))
|
282 |
+
.on('mouseleave', $.proxy(this.cycle, this))
|
283 |
+
}
|
284 |
+
|
285 |
+
Carousel.DEFAULTS = {
|
286 |
+
interval: 5000,
|
287 |
+
pause: 'hover',
|
288 |
+
wrap: true
|
289 |
+
}
|
290 |
+
|
291 |
+
Carousel.prototype.cycle = function (e) {
|
292 |
+
e || (this.paused = false)
|
293 |
+
|
294 |
+
this.interval && clearInterval(this.interval)
|
295 |
+
|
296 |
+
this.options.interval
|
297 |
+
&& !this.paused
|
298 |
+
&& (this.interval = setInterval($.proxy(this.next, this), this.options.interval))
|
299 |
+
|
300 |
+
return this
|
301 |
+
}
|
302 |
+
|
303 |
+
Carousel.prototype.getActiveIndex = function () {
|
304 |
+
this.$active = this.$element.find('.item.active')
|
305 |
+
this.$items = this.$active.parent().children()
|
306 |
+
|
307 |
+
return this.$items.index(this.$active)
|
308 |
+
}
|
309 |
+
|
310 |
+
Carousel.prototype.to = function (pos) {
|
311 |
+
var that = this
|
312 |
+
var activeIndex = this.getActiveIndex()
|
313 |
+
|
314 |
+
if (pos > (this.$items.length - 1) || pos < 0) return
|
315 |
+
|
316 |
+
if (this.sliding) return this.$element.one('slid.bs.carousel', function () { that.to(pos) })
|
317 |
+
if (activeIndex == pos) return this.pause().cycle()
|
318 |
+
|
319 |
+
return this.slide(pos > activeIndex ? 'next' : 'prev', $(this.$items[pos]))
|
320 |
+
}
|
321 |
+
|
322 |
+
Carousel.prototype.pause = function (e) {
|
323 |
+
e || (this.paused = true)
|
324 |
+
|
325 |
+
if (this.$element.find('.next, .prev').length && $.support.transition) {
|
326 |
+
this.$element.trigger($.support.transition.end)
|
327 |
+
this.cycle(true)
|
328 |
+
}
|
329 |
+
|
330 |
+
this.interval = clearInterval(this.interval)
|
331 |
+
|
332 |
+
return this
|
333 |
+
}
|
334 |
+
|
335 |
+
Carousel.prototype.next = function () {
|
336 |
+
if (this.sliding) return
|
337 |
+
return this.slide('next')
|
338 |
+
}
|
339 |
+
|
340 |
+
Carousel.prototype.prev = function () {
|
341 |
+
if (this.sliding) return
|
342 |
+
return this.slide('prev')
|
343 |
+
}
|
344 |
+
|
345 |
+
Carousel.prototype.slide = function (type, next) {
|
346 |
+
var $active = this.$element.find('.item.active')
|
347 |
+
var $next = next || $active[type]()
|
348 |
+
var isCycling = this.interval
|
349 |
+
var direction = type == 'next' ? 'left' : 'right'
|
350 |
+
var fallback = type == 'next' ? 'first' : 'last'
|
351 |
+
var that = this
|
352 |
+
|
353 |
+
if (!$next.length) {
|
354 |
+
if (!this.options.wrap) return
|
355 |
+
$next = this.$element.find('.item')[fallback]()
|
356 |
+
}
|
357 |
+
|
358 |
+
if ($next.hasClass('active')) return this.sliding = false
|
359 |
+
|
360 |
+
var e = $.Event('slide.bs.carousel', { relatedTarget: $next[0], direction: direction })
|
361 |
+
this.$element.trigger(e)
|
362 |
+
if (e.isDefaultPrevented()) return
|
363 |
+
|
364 |
+
this.sliding = true
|
365 |
+
|
366 |
+
isCycling && this.pause()
|
367 |
+
|
368 |
+
if (this.$indicators.length) {
|
369 |
+
this.$indicators.find('.active').removeClass('active')
|
370 |
+
this.$element.one('slid.bs.carousel', function () {
|
371 |
+
var $nextIndicator = $(that.$indicators.children()[that.getActiveIndex()])
|
372 |
+
$nextIndicator && $nextIndicator.addClass('active')
|
373 |
+
})
|
374 |
+
}
|
375 |
+
|
376 |
+
if ($.support.transition && this.$element.hasClass('slide')) {
|
377 |
+
$next.addClass(type)
|
378 |
+
$next[0].offsetWidth // force reflow
|
379 |
+
$active.addClass(direction)
|
380 |
+
$next.addClass(direction)
|
381 |
+
$active
|
382 |
+
.one($.support.transition.end, function () {
|
383 |
+
$next.removeClass([type, direction].join(' ')).addClass('active')
|
384 |
+
$active.removeClass(['active', direction].join(' '))
|
385 |
+
that.sliding = false
|
386 |
+
setTimeout(function () { that.$element.trigger('slid.bs.carousel') }, 0)
|
387 |
+
})
|
388 |
+
.emulateTransitionEnd($active.css('transition-duration').slice(0, -1) * 1000)
|
389 |
+
} else {
|
390 |
+
$active.removeClass('active')
|
391 |
+
$next.addClass('active')
|
392 |
+
this.sliding = false
|
393 |
+
this.$element.trigger('slid.bs.carousel')
|
394 |
+
}
|
395 |
+
|
396 |
+
isCycling && this.cycle()
|
397 |
+
|
398 |
+
return this
|
399 |
+
}
|
400 |
+
|
401 |
+
|
402 |
+
// CAROUSEL PLUGIN DEFINITION
|
403 |
+
// ==========================
|
404 |
+
|
405 |
+
var old = $.fn.carousel
|
406 |
+
|
407 |
+
$.fn.carousel = function (option) {
|
408 |
+
return this.each(function () {
|
409 |
+
var $this = $(this)
|
410 |
+
var data = $this.data('bs.carousel')
|
411 |
+
var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option)
|
412 |
+
var action = typeof option == 'string' ? option : options.slide
|
413 |
+
|
414 |
+
if (!data) $this.data('bs.carousel', (data = new Carousel(this, options)))
|
415 |
+
if (typeof option == 'number') data.to(option)
|
416 |
+
else if (action) data[action]()
|
417 |
+
else if (options.interval) data.pause().cycle()
|
418 |
+
})
|
419 |
+
}
|
420 |
+
|
421 |
+
$.fn.carousel.Constructor = Carousel
|
422 |
+
|
423 |
+
|
424 |
+
// CAROUSEL NO CONFLICT
|
425 |
+
// ====================
|
426 |
+
|
427 |
+
$.fn.carousel.noConflict = function () {
|
428 |
+
$.fn.carousel = old
|
429 |
+
return this
|
430 |
+
}
|
431 |
+
|
432 |
+
|
433 |
+
// CAROUSEL DATA-API
|
434 |
+
// =================
|
435 |
+
|
436 |
+
$(document).on('click.bs.carousel.data-api', '[data-slide], [data-slide-to]', function (e) {
|
437 |
+
var $this = $(this), href
|
438 |
+
var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
|
439 |
+
var options = $.extend({}, $target.data(), $this.data())
|
440 |
+
var slideIndex = $this.attr('data-slide-to')
|
441 |
+
if (slideIndex) options.interval = false
|
442 |
+
|
443 |
+
$target.carousel(options)
|
444 |
+
|
445 |
+
if (slideIndex = $this.attr('data-slide-to')) {
|
446 |
+
$target.data('bs.carousel').to(slideIndex)
|
447 |
+
}
|
448 |
+
|
449 |
+
e.preventDefault()
|
450 |
+
})
|
451 |
+
|
452 |
+
$(window).on('load', function () {
|
453 |
+
$('[data-ride="carousel"]').each(function () {
|
454 |
+
var $carousel = $(this)
|
455 |
+
$carousel.carousel($carousel.data())
|
456 |
+
})
|
457 |
+
})
|
458 |
+
|
459 |
+
}(jQuery);
|
460 |
+
|
461 |
+
/* ========================================================================
|
462 |
+
* Bootstrap: collapse.js v3.1.0
|
463 |
+
* http://getbootstrap.com/javascript/#collapse
|
464 |
+
* ========================================================================
|
465 |
+
* Copyright 2011-2014 Twitter, Inc.
|
466 |
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
467 |
+
* ======================================================================== */
|
468 |
+
|
469 |
+
|
470 |
+
+function ($) {
|
471 |
+
'use strict';
|
472 |
+
|
473 |
+
// COLLAPSE PUBLIC CLASS DEFINITION
|
474 |
+
// ================================
|
475 |
+
|
476 |
+
var Collapse = function (element, options) {
|
477 |
+
this.$element = $(element)
|
478 |
+
this.options = $.extend({}, Collapse.DEFAULTS, options)
|
479 |
+
this.transitioning = null
|
480 |
+
|
481 |
+
if (this.options.parent) this.$parent = $(this.options.parent)
|
482 |
+
if (this.options.toggle) this.toggle()
|
483 |
+
}
|
484 |
+
|
485 |
+
Collapse.DEFAULTS = {
|
486 |
+
toggle: true
|
487 |
+
}
|
488 |
+
|
489 |
+
Collapse.prototype.dimension = function () {
|
490 |
+
var hasWidth = this.$element.hasClass('width')
|
491 |
+
return hasWidth ? 'width' : 'height'
|
492 |
+
}
|
493 |
+
|
494 |
+
Collapse.prototype.show = function () {
|
495 |
+
if (this.transitioning || this.$element.hasClass('in')) return
|
496 |
+
|
497 |
+
var startEvent = $.Event('show.bs.collapse')
|
498 |
+
this.$element.trigger(startEvent)
|
499 |
+
if (startEvent.isDefaultPrevented()) return
|
500 |
+
|
501 |
+
var actives = this.$parent && this.$parent.find('> .panel > .in')
|
502 |
+
|
503 |
+
if (actives && actives.length) {
|
504 |
+
var hasData = actives.data('bs.collapse')
|
505 |
+
if (hasData && hasData.transitioning) return
|
506 |
+
actives.collapse('hide')
|
507 |
+
hasData || actives.data('bs.collapse', null)
|
508 |
+
}
|
509 |
+
|
510 |
+
var dimension = this.dimension()
|
511 |
+
|
512 |
+
this.$element
|
513 |
+
.removeClass('collapse')
|
514 |
+
.addClass('collapsing')
|
515 |
+
[dimension](0)
|
516 |
+
|
517 |
+
this.transitioning = 1
|
518 |
+
|
519 |
+
var complete = function () {
|
520 |
+
this.$element
|
521 |
+
.removeClass('collapsing')
|
522 |
+
.addClass('collapse in')
|
523 |
+
[dimension]('auto')
|
524 |
+
this.transitioning = 0
|
525 |
+
this.$element.trigger('shown.bs.collapse')
|
526 |
+
}
|
527 |
+
|
528 |
+
if (!$.support.transition) return complete.call(this)
|
529 |
+
|
530 |
+
var scrollSize = $.camelCase(['scroll', dimension].join('-'))
|
531 |
+
|
532 |
+
this.$element
|
533 |
+
.one($.support.transition.end, $.proxy(complete, this))
|
534 |
+
.emulateTransitionEnd(350)
|
535 |
+
[dimension](this.$element[0][scrollSize])
|
536 |
+
}
|
537 |
+
|
538 |
+
Collapse.prototype.hide = function () {
|
539 |
+
if (this.transitioning || !this.$element.hasClass('in')) return
|
540 |
+
|
541 |
+
var startEvent = $.Event('hide.bs.collapse')
|
542 |
+
this.$element.trigger(startEvent)
|
543 |
+
if (startEvent.isDefaultPrevented()) return
|
544 |
+
|
545 |
+
var dimension = this.dimension()
|
546 |
+
|
547 |
+
this.$element
|
548 |
+
[dimension](this.$element[dimension]())
|
549 |
+
[0].offsetHeight
|
550 |
+
|
551 |
+
this.$element
|
552 |
+
.addClass('collapsing')
|
553 |
+
.removeClass('collapse')
|
554 |
+
.removeClass('in')
|
555 |
+
|
556 |
+
this.transitioning = 1
|
557 |
+
|
558 |
+
var complete = function () {
|
559 |
+
this.transitioning = 0
|
560 |
+
this.$element
|
561 |
+
.trigger('hidden.bs.collapse')
|
562 |
+
.removeClass('collapsing')
|
563 |
+
.addClass('collapse')
|
564 |
+
}
|
565 |
+
|
566 |
+
if (!$.support.transition) return complete.call(this)
|
567 |
+
|
568 |
+
this.$element
|
569 |
+
[dimension](0)
|
570 |
+
.one($.support.transition.end, $.proxy(complete, this))
|
571 |
+
.emulateTransitionEnd(350)
|
572 |
+
}
|
573 |
+
|
574 |
+
Collapse.prototype.toggle = function () {
|
575 |
+
this[this.$element.hasClass('in') ? 'hide' : 'show']()
|
576 |
+
}
|
577 |
+
|
578 |
+
|
579 |
+
// COLLAPSE PLUGIN DEFINITION
|
580 |
+
// ==========================
|
581 |
+
|
582 |
+
var old = $.fn.collapse
|
583 |
+
|
584 |
+
$.fn.collapse = function (option) {
|
585 |
+
return this.each(function () {
|
586 |
+
var $this = $(this)
|
587 |
+
var data = $this.data('bs.collapse')
|
588 |
+
var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option)
|
589 |
+
|
590 |
+
if (!data && options.toggle && option == 'show') option = !option
|
591 |
+
if (!data) $this.data('bs.collapse', (data = new Collapse(this, options)))
|
592 |
+
if (typeof option == 'string') data[option]()
|
593 |
+
})
|
594 |
+
}
|
595 |
+
|
596 |
+
$.fn.collapse.Constructor = Collapse
|
597 |
+
|
598 |
+
|
599 |
+
// COLLAPSE NO CONFLICT
|
600 |
+
// ====================
|
601 |
+
|
602 |
+
$.fn.collapse.noConflict = function () {
|
603 |
+
$.fn.collapse = old
|
604 |
+
return this
|
605 |
+
}
|
606 |
+
|
607 |
+
|
608 |
+
// COLLAPSE DATA-API
|
609 |
+
// =================
|
610 |
+
|
611 |
+
$(document).on('click.bs.collapse.data-api', '[data-toggle=collapse]', function (e) {
|
612 |
+
var $this = $(this), href
|
613 |
+
var target = $this.attr('data-target')
|
614 |
+
|| e.preventDefault()
|
615 |
+
|| (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7
|
616 |
+
var $target = $(target)
|
617 |
+
var data = $target.data('bs.collapse')
|
618 |
+
var option = data ? 'toggle' : $this.data()
|
619 |
+
var parent = $this.attr('data-parent')
|
620 |
+
var $parent = parent && $(parent)
|
621 |
+
|
622 |
+
if (!data || !data.transitioning) {
|
623 |
+
if ($parent) $parent.find('[data-toggle=collapse][data-parent="' + parent + '"]').not($this).addClass('collapsed')
|
624 |
+
$this[$target.hasClass('in') ? 'addClass' : 'removeClass']('collapsed')
|
625 |
+
}
|
626 |
+
|
627 |
+
$target.collapse(option)
|
628 |
+
})
|
629 |
+
|
630 |
+
}(jQuery);
|
631 |
+
|
632 |
+
/* ========================================================================
|
633 |
+
* Bootstrap: dropdown.js v3.1.0
|
634 |
+
* http://getbootstrap.com/javascript/#dropdowns
|
635 |
+
* ========================================================================
|
636 |
+
* Copyright 2011-2014 Twitter, Inc.
|
637 |
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
638 |
+
* ======================================================================== */
|
639 |
+
|
640 |
+
|
641 |
+
+function ($) {
|
642 |
+
'use strict';
|
643 |
+
|
644 |
+
// DROPDOWN CLASS DEFINITION
|
645 |
+
// =========================
|
646 |
+
|
647 |
+
var backdrop = '.dropdown-backdrop'
|
648 |
+
var toggle = '[data-toggle=dropdown]'
|
649 |
+
var Dropdown = function (element) {
|
650 |
+
$(element).on('click.bs.dropdown', this.toggle)
|
651 |
+
}
|
652 |
+
|
653 |
+
Dropdown.prototype.toggle = function (e) {
|
654 |
+
var $this = $(this)
|
655 |
+
|
656 |
+
if ($this.is('.disabled, :disabled')) return
|
657 |
+
|
658 |
+
var $parent = getParent($this)
|
659 |
+
var isActive = $parent.hasClass('open')
|
660 |
+
|
661 |
+
clearMenus()
|
662 |
+
|
663 |
+
if (!isActive) {
|
664 |
+
if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) {
|
665 |
+
// if mobile we use a backdrop because click events don't delegate
|
666 |
+
$('<div class="dropdown-backdrop"/>').insertAfter($(this)).on('click', clearMenus)
|
667 |
+
}
|
668 |
+
|
669 |
+
var relatedTarget = { relatedTarget: this }
|
670 |
+
$parent.trigger(e = $.Event('show.bs.dropdown', relatedTarget))
|
671 |
+
|
672 |
+
if (e.isDefaultPrevented()) return
|
673 |
+
|
674 |
+
$parent
|
675 |
+
.toggleClass('open')
|
676 |
+
.trigger('shown.bs.dropdown', relatedTarget)
|
677 |
+
|
678 |
+
$this.focus()
|
679 |
+
}
|
680 |
+
|
681 |
+
return false
|
682 |
+
}
|
683 |
+
|
684 |
+
Dropdown.prototype.keydown = function (e) {
|
685 |
+
if (!/(38|40|27)/.test(e.keyCode)) return
|
686 |
+
|
687 |
+
var $this = $(this)
|
688 |
+
|
689 |
+
e.preventDefault()
|
690 |
+
e.stopPropagation()
|
691 |
+
|
692 |
+
if ($this.is('.disabled, :disabled')) return
|
693 |
+
|
694 |
+
var $parent = getParent($this)
|
695 |
+
var isActive = $parent.hasClass('open')
|
696 |
+
|
697 |
+
if (!isActive || (isActive && e.keyCode == 27)) {
|
698 |
+
if (e.which == 27) $parent.find(toggle).focus()
|
699 |
+
return $this.click()
|
700 |
+
}
|
701 |
+
|
702 |
+
var desc = ' li:not(.divider):visible a'
|
703 |
+
var $items = $parent.find('[role=menu]' + desc + ', [role=listbox]' + desc)
|
704 |
+
|
705 |
+
if (!$items.length) return
|
706 |
+
|
707 |
+
var index = $items.index($items.filter(':focus'))
|
708 |
+
|
709 |
+
if (e.keyCode == 38 && index > 0) index-- // up
|
710 |
+
if (e.keyCode == 40 && index < $items.length - 1) index++ // down
|
711 |
+
if (!~index) index = 0
|
712 |
+
|
713 |
+
$items.eq(index).focus()
|
714 |
+
}
|
715 |
+
|
716 |
+
function clearMenus(e) {
|
717 |
+
$(backdrop).remove()
|
718 |
+
$(toggle).each(function () {
|
719 |
+
var $parent = getParent($(this))
|
720 |
+
var relatedTarget = { relatedTarget: this }
|
721 |
+
if (!$parent.hasClass('open')) return
|
722 |
+
$parent.trigger(e = $.Event('hide.bs.dropdown', relatedTarget))
|
723 |
+
if (e.isDefaultPrevented()) return
|
724 |
+
$parent.removeClass('open').trigger('hidden.bs.dropdown', relatedTarget)
|
725 |
+
})
|
726 |
+
}
|
727 |
+
|
728 |
+
function getParent($this) {
|
729 |
+
var selector = $this.attr('data-target')
|
730 |
+
|
731 |
+
if (!selector) {
|
732 |
+
selector = $this.attr('href')
|
733 |
+
selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
734 |
+
}
|
735 |
+
|
736 |
+
var $parent = selector && $(selector)
|
737 |
+
|
738 |
+
return $parent && $parent.length ? $parent : $this.parent()
|
739 |
+
}
|
740 |
+
|
741 |
+
|
742 |
+
// DROPDOWN PLUGIN DEFINITION
|
743 |
+
// ==========================
|
744 |
+
|
745 |
+
var old = $.fn.dropdown
|
746 |
+
|
747 |
+
$.fn.dropdown = function (option) {
|
748 |
+
return this.each(function () {
|
749 |
+
var $this = $(this)
|
750 |
+
var data = $this.data('bs.dropdown')
|
751 |
+
|
752 |
+
if (!data) $this.data('bs.dropdown', (data = new Dropdown(this)))
|
753 |
+
if (typeof option == 'string') data[option].call($this)
|
754 |
+
})
|
755 |
+
}
|
756 |
+
|
757 |
+
$.fn.dropdown.Constructor = Dropdown
|
758 |
+
|
759 |
+
|
760 |
+
// DROPDOWN NO CONFLICT
|
761 |
+
// ====================
|
762 |
+
|
763 |
+
$.fn.dropdown.noConflict = function () {
|
764 |
+
$.fn.dropdown = old
|
765 |
+
return this
|
766 |
+
}
|
767 |
+
|
768 |
+
|
769 |
+
// APPLY TO STANDARD DROPDOWN ELEMENTS
|
770 |
+
// ===================================
|
771 |
+
|
772 |
+
$(document)
|
773 |
+
.on('click.bs.dropdown.data-api', clearMenus)
|
774 |
+
.on('click.bs.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
|
775 |
+
.on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle)
|
776 |
+
.on('keydown.bs.dropdown.data-api', toggle + ', [role=menu], [role=listbox]', Dropdown.prototype.keydown)
|
777 |
+
|
778 |
+
}(jQuery);
|
779 |
+
|
780 |
+
/* ========================================================================
|
781 |
+
* Bootstrap: modal.js v3.1.0
|
782 |
+
* http://getbootstrap.com/javascript/#modals
|
783 |
+
* ========================================================================
|
784 |
+
* Copyright 2011-2014 Twitter, Inc.
|
785 |
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
786 |
+
* ======================================================================== */
|
787 |
+
|
788 |
+
|
789 |
+
+function ($) {
|
790 |
+
'use strict';
|
791 |
+
|
792 |
+
// MODAL CLASS DEFINITION
|
793 |
+
// ======================
|
794 |
+
|
795 |
+
var Modal = function (element, options) {
|
796 |
+
this.options = options
|
797 |
+
this.$element = $(element)
|
798 |
+
this.$backdrop =
|
799 |
+
this.isShown = null
|
800 |
+
|
801 |
+
if (this.options.remote) {
|
802 |
+
this.$element
|
803 |
+
.find('.modal-content')
|
804 |
+
.load(this.options.remote, $.proxy(function () {
|
805 |
+
this.$element.trigger('loaded.bs.modal')
|
806 |
+
}, this))
|
807 |
+
}
|
808 |
+
}
|
809 |
+
|
810 |
+
Modal.DEFAULTS = {
|
811 |
+
backdrop: true,
|
812 |
+
keyboard: true,
|
813 |
+
show: true
|
814 |
+
}
|
815 |
+
|
816 |
+
Modal.prototype.toggle = function (_relatedTarget) {
|
817 |
+
return this[!this.isShown ? 'show' : 'hide'](_relatedTarget)
|
818 |
+
}
|
819 |
+
|
820 |
+
Modal.prototype.show = function (_relatedTarget) {
|
821 |
+
var that = this
|
822 |
+
var e = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
|
823 |
+
|
824 |
+
this.$element.trigger(e)
|
825 |
+
|
826 |
+
if (this.isShown || e.isDefaultPrevented()) return
|
827 |
+
|
828 |
+
this.isShown = true
|
829 |
+
|
830 |
+
this.escape()
|
831 |
+
|
832 |
+
this.$element.on('click.dismiss.bs.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this))
|
833 |
+
|
834 |
+
this.backdrop(function () {
|
835 |
+
var transition = $.support.transition && that.$element.hasClass('fade')
|
836 |
+
|
837 |
+
if (!that.$element.parent().length) {
|
838 |
+
that.$element.appendTo(document.body) // don't move modals dom position
|
839 |
+
}
|
840 |
+
|
841 |
+
that.$element
|
842 |
+
.show()
|
843 |
+
.scrollTop(0)
|
844 |
+
|
845 |
+
if (transition) {
|
846 |
+
that.$element[0].offsetWidth // force reflow
|
847 |
+
}
|
848 |
+
|
849 |
+
that.$element
|
850 |
+
.addClass('in')
|
851 |
+
.attr('aria-hidden', false)
|
852 |
+
|
853 |
+
that.enforceFocus()
|
854 |
+
|
855 |
+
var e = $.Event('shown.bs.modal', { relatedTarget: _relatedTarget })
|
856 |
+
|
857 |
+
transition ?
|
858 |
+
that.$element.find('.modal-dialog') // wait for modal to slide in
|
859 |
+
.one($.support.transition.end, function () {
|
860 |
+
that.$element.focus().trigger(e)
|
861 |
+
})
|
862 |
+
.emulateTransitionEnd(300) :
|
863 |
+
that.$element.focus().trigger(e)
|
864 |
+
})
|
865 |
+
}
|
866 |
+
|
867 |
+
Modal.prototype.hide = function (e) {
|
868 |
+
if (e) e.preventDefault()
|
869 |
+
|
870 |
+
e = $.Event('hide.bs.modal')
|
871 |
+
|
872 |
+
this.$element.trigger(e)
|
873 |
+
|
874 |
+
if (!this.isShown || e.isDefaultPrevented()) return
|
875 |
+
|
876 |
+
this.isShown = false
|
877 |
+
|
878 |
+
this.escape()
|
879 |
+
|
880 |
+
$(document).off('focusin.bs.modal')
|
881 |
+
|
882 |
+
this.$element
|
883 |
+
.removeClass('in')
|
884 |
+
.attr('aria-hidden', true)
|
885 |
+
.off('click.dismiss.bs.modal')
|
886 |
+
|
887 |
+
$.support.transition && this.$element.hasClass('fade') ?
|
888 |
+
this.$element
|
889 |
+
.one($.support.transition.end, $.proxy(this.hideModal, this))
|
890 |
+
.emulateTransitionEnd(300) :
|
891 |
+
this.hideModal()
|
892 |
+
}
|
893 |
+
|
894 |
+
Modal.prototype.enforceFocus = function () {
|
895 |
+
$(document)
|
896 |
+
.off('focusin.bs.modal') // guard against infinite focus loop
|
897 |
+
.on('focusin.bs.modal', $.proxy(function (e) {
|
898 |
+
if (this.$element[0] !== e.target && !this.$element.has(e.target).length) {
|
899 |
+
this.$element.focus()
|
900 |
+
}
|
901 |
+
}, this))
|
902 |
+
}
|
903 |
+
|
904 |
+
Modal.prototype.escape = function () {
|
905 |
+
if (this.isShown && this.options.keyboard) {
|
906 |
+
this.$element.on('keyup.dismiss.bs.modal', $.proxy(function (e) {
|
907 |
+
e.which == 27 && this.hide()
|
908 |
+
}, this))
|
909 |
+
} else if (!this.isShown) {
|
910 |
+
this.$element.off('keyup.dismiss.bs.modal')
|
911 |
+
}
|
912 |
+
}
|
913 |
+
|
914 |
+
Modal.prototype.hideModal = function () {
|
915 |
+
var that = this
|
916 |
+
this.$element.hide()
|
917 |
+
this.backdrop(function () {
|
918 |
+
that.removeBackdrop()
|
919 |
+
that.$element.trigger('hidden.bs.modal')
|
920 |
+
})
|
921 |
+
}
|
922 |
+
|
923 |
+
Modal.prototype.removeBackdrop = function () {
|
924 |
+
this.$backdrop && this.$backdrop.remove()
|
925 |
+
this.$backdrop = null
|
926 |
+
}
|
927 |
+
|
928 |
+
Modal.prototype.backdrop = function (callback) {
|
929 |
+
var animate = this.$element.hasClass('fade') ? 'fade' : ''
|
930 |
+
|
931 |
+
if (this.isShown && this.options.backdrop) {
|
932 |
+
var doAnimate = $.support.transition && animate
|
933 |
+
|
934 |
+
this.$backdrop = $('<div class="modal-backdrop ' + animate + '" />')
|
935 |
+
.appendTo(document.body)
|
936 |
+
|
937 |
+
this.$element.on('click.dismiss.bs.modal', $.proxy(function (e) {
|
938 |
+
if (e.target !== e.currentTarget) return
|
939 |
+
this.options.backdrop == 'static'
|
940 |
+
? this.$element[0].focus.call(this.$element[0])
|
941 |
+
: this.hide.call(this)
|
942 |
+
}, this))
|
943 |
+
|
944 |
+
if (doAnimate) this.$backdrop[0].offsetWidth // force reflow
|
945 |
+
|
946 |
+
this.$backdrop.addClass('in')
|
947 |
+
|
948 |
+
if (!callback) return
|
949 |
+
|
950 |
+
doAnimate ?
|
951 |
+
this.$backdrop
|
952 |
+
.one($.support.transition.end, callback)
|
953 |
+
.emulateTransitionEnd(150) :
|
954 |
+
callback()
|
955 |
+
|
956 |
+
} else if (!this.isShown && this.$backdrop) {
|
957 |
+
this.$backdrop.removeClass('in')
|
958 |
+
|
959 |
+
$.support.transition && this.$element.hasClass('fade') ?
|
960 |
+
this.$backdrop
|
961 |
+
.one($.support.transition.end, callback)
|
962 |
+
.emulateTransitionEnd(150) :
|
963 |
+
callback()
|
964 |
+
|
965 |
+
} else if (callback) {
|
966 |
+
callback()
|
967 |
+
}
|
968 |
+
}
|
969 |
+
|
970 |
+
|
971 |
+
// MODAL PLUGIN DEFINITION
|
972 |
+
// =======================
|
973 |
+
|
974 |
+
var old = $.fn.modal
|
975 |
+
|
976 |
+
$.fn.modal = function (option, _relatedTarget) {
|
977 |
+
return this.each(function () {
|
978 |
+
var $this = $(this)
|
979 |
+
var data = $this.data('bs.modal')
|
980 |
+
var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option)
|
981 |
+
|
982 |
+
if (!data) $this.data('bs.modal', (data = new Modal(this, options)))
|
983 |
+
if (typeof option == 'string') data[option](_relatedTarget)
|
984 |
+
else if (options.show) data.show(_relatedTarget)
|
985 |
+
})
|
986 |
+
}
|
987 |
+
|
988 |
+
$.fn.modal.Constructor = Modal
|
989 |
+
|
990 |
+
|
991 |
+
// MODAL NO CONFLICT
|
992 |
+
// =================
|
993 |
+
|
994 |
+
$.fn.modal.noConflict = function () {
|
995 |
+
$.fn.modal = old
|
996 |
+
return this
|
997 |
+
}
|
998 |
+
|
999 |
+
|
1000 |
+
// MODAL DATA-API
|
1001 |
+
// ==============
|
1002 |
+
|
1003 |
+
$(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) {
|
1004 |
+
var $this = $(this)
|
1005 |
+
var href = $this.attr('href')
|
1006 |
+
var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) //strip for ie7
|
1007 |
+
var option = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())
|
1008 |
+
|
1009 |
+
if ($this.is('a')) e.preventDefault()
|
1010 |
+
|
1011 |
+
$target
|
1012 |
+
.modal(option, this)
|
1013 |
+
.one('hide', function () {
|
1014 |
+
$this.is(':visible') && $this.focus()
|
1015 |
+
})
|
1016 |
+
})
|
1017 |
+
|
1018 |
+
$(document)
|
1019 |
+
.on('show.bs.modal', '.modal', function () { $(document.body).addClass('modal-open') })
|
1020 |
+
.on('hidden.bs.modal', '.modal', function () { $(document.body).removeClass('modal-open') })
|
1021 |
+
|
1022 |
+
}(jQuery);
|
1023 |
+
|
1024 |
+
/* ========================================================================
|
1025 |
+
* Bootstrap: tooltip.js v3.1.0
|
1026 |
+
* http://getbootstrap.com/javascript/#tooltip
|
1027 |
+
* Inspired by the original jQuery.tipsy by Jason Frame
|
1028 |
+
* ========================================================================
|
1029 |
+
* Copyright 2011-2014 Twitter, Inc.
|
1030 |
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
1031 |
+
* ======================================================================== */
|
1032 |
+
|
1033 |
+
|
1034 |
+
+function ($) {
|
1035 |
+
'use strict';
|
1036 |
+
|
1037 |
+
// TOOLTIP PUBLIC CLASS DEFINITION
|
1038 |
+
// ===============================
|
1039 |
+
|
1040 |
+
var Tooltip = function (element, options) {
|
1041 |
+
this.type =
|
1042 |
+
this.options =
|
1043 |
+
this.enabled =
|
1044 |
+
this.timeout =
|
1045 |
+
this.hoverState =
|
1046 |
+
this.$element = null
|
1047 |
+
|
1048 |
+
this.init('tooltip', element, options)
|
1049 |
+
}
|
1050 |
+
|
1051 |
+
Tooltip.DEFAULTS = {
|
1052 |
+
animation: true,
|
1053 |
+
placement: 'top',
|
1054 |
+
selector: false,
|
1055 |
+
template: '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
|
1056 |
+
trigger: 'hover focus',
|
1057 |
+
title: '',
|
1058 |
+
delay: 0,
|
1059 |
+
html: false,
|
1060 |
+
container: false
|
1061 |
+
}
|
1062 |
+
|
1063 |
+
Tooltip.prototype.init = function (type, element, options) {
|
1064 |
+
this.enabled = true
|
1065 |
+
this.type = type
|
1066 |
+
this.$element = $(element)
|
1067 |
+
this.options = this.getOptions(options)
|
1068 |
+
|
1069 |
+
var triggers = this.options.trigger.split(' ')
|
1070 |
+
|
1071 |
+
for (var i = triggers.length; i--;) {
|
1072 |
+
var trigger = triggers[i]
|
1073 |
+
|
1074 |
+
if (trigger == 'click') {
|
1075 |
+
this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this))
|
1076 |
+
} else if (trigger != 'manual') {
|
1077 |
+
var eventIn = trigger == 'hover' ? 'mouseenter' : 'focusin'
|
1078 |
+
var eventOut = trigger == 'hover' ? 'mouseleave' : 'focusout'
|
1079 |
+
|
1080 |
+
this.$element.on(eventIn + '.' + this.type, this.options.selector, $.proxy(this.enter, this))
|
1081 |
+
this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this))
|
1082 |
+
}
|
1083 |
+
}
|
1084 |
+
|
1085 |
+
this.options.selector ?
|
1086 |
+
(this._options = $.extend({}, this.options, { trigger: 'manual', selector: '' })) :
|
1087 |
+
this.fixTitle()
|
1088 |
+
}
|
1089 |
+
|
1090 |
+
Tooltip.prototype.getDefaults = function () {
|
1091 |
+
return Tooltip.DEFAULTS
|
1092 |
+
}
|
1093 |
+
|
1094 |
+
Tooltip.prototype.getOptions = function (options) {
|
1095 |
+
options = $.extend({}, this.getDefaults(), this.$element.data(), options)
|
1096 |
+
|
1097 |
+
if (options.delay && typeof options.delay == 'number') {
|
1098 |
+
options.delay = {
|
1099 |
+
show: options.delay,
|
1100 |
+
hide: options.delay
|
1101 |
+
}
|
1102 |
+
}
|
1103 |
+
|
1104 |
+
return options
|
1105 |
+
}
|
1106 |
+
|
1107 |
+
Tooltip.prototype.getDelegateOptions = function () {
|
1108 |
+
var options = {}
|
1109 |
+
var defaults = this.getDefaults()
|
1110 |
+
|
1111 |
+
this._options && $.each(this._options, function (key, value) {
|
1112 |
+
if (defaults[key] != value) options[key] = value
|
1113 |
+
})
|
1114 |
+
|
1115 |
+
return options
|
1116 |
+
}
|
1117 |
+
|
1118 |
+
Tooltip.prototype.enter = function (obj) {
|
1119 |
+
var self = obj instanceof this.constructor ?
|
1120 |
+
obj : $(obj.currentTarget)[this.type](this.getDelegateOptions()).data('bs.' + this.type)
|
1121 |
+
|
1122 |
+
clearTimeout(self.timeout)
|
1123 |
+
|
1124 |
+
self.hoverState = 'in'
|
1125 |
+
|
1126 |
+
if (!self.options.delay || !self.options.delay.show) return self.show()
|
1127 |
+
|
1128 |
+
self.timeout = setTimeout(function () {
|
1129 |
+
if (self.hoverState == 'in') self.show()
|
1130 |
+
}, self.options.delay.show)
|
1131 |
+
}
|
1132 |
+
|
1133 |
+
Tooltip.prototype.leave = function (obj) {
|
1134 |
+
var self = obj instanceof this.constructor ?
|
1135 |
+
obj : $(obj.currentTarget)[this.type](this.getDelegateOptions()).data('bs.' + this.type)
|
1136 |
+
|
1137 |
+
clearTimeout(self.timeout)
|
1138 |
+
|
1139 |
+
self.hoverState = 'out'
|
1140 |
+
|
1141 |
+
if (!self.options.delay || !self.options.delay.hide) return self.hide()
|
1142 |
+
|
1143 |
+
self.timeout = setTimeout(function () {
|
1144 |
+
if (self.hoverState == 'out') self.hide()
|
1145 |
+
}, self.options.delay.hide)
|
1146 |
+
}
|
1147 |
+
|
1148 |
+
Tooltip.prototype.show = function () {
|
1149 |
+
var e = $.Event('show.bs.' + this.type)
|
1150 |
+
|
1151 |
+
if (this.hasContent() && this.enabled) {
|
1152 |
+
this.$element.trigger(e)
|
1153 |
+
|
1154 |
+
if (e.isDefaultPrevented()) return
|
1155 |
+
var that = this;
|
1156 |
+
|
1157 |
+
var $tip = this.tip()
|
1158 |
+
|
1159 |
+
this.setContent()
|
1160 |
+
|
1161 |
+
if (this.options.animation) $tip.addClass('fade')
|
1162 |
+
|
1163 |
+
var placement = typeof this.options.placement == 'function' ?
|
1164 |
+
this.options.placement.call(this, $tip[0], this.$element[0]) :
|
1165 |
+
this.options.placement
|
1166 |
+
|
1167 |
+
var autoToken = /\s?auto?\s?/i
|
1168 |
+
var autoPlace = autoToken.test(placement)
|
1169 |
+
if (autoPlace) placement = placement.replace(autoToken, '') || 'top'
|
1170 |
+
|
1171 |
+
$tip
|
1172 |
+
.detach()
|
1173 |
+
.css({ top: 0, left: 0, display: 'block' })
|
1174 |
+
.addClass(placement)
|
1175 |
+
|
1176 |
+
this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element)
|
1177 |
+
|
1178 |
+
var pos = this.getPosition()
|
1179 |
+
var actualWidth = $tip[0].offsetWidth
|
1180 |
+
var actualHeight = $tip[0].offsetHeight
|
1181 |
+
|
1182 |
+
if (autoPlace) {
|
1183 |
+
var $parent = this.$element.parent()
|
1184 |
+
|
1185 |
+
var orgPlacement = placement
|
1186 |
+
var docScroll = document.documentElement.scrollTop || document.body.scrollTop
|
1187 |
+
var parentWidth = this.options.container == 'body' ? window.innerWidth : $parent.outerWidth()
|
1188 |
+
var parentHeight = this.options.container == 'body' ? window.innerHeight : $parent.outerHeight()
|
1189 |
+
var parentLeft = this.options.container == 'body' ? 0 : $parent.offset().left
|
1190 |
+
|
1191 |
+
placement = placement == 'bottom' && pos.top + pos.height + actualHeight - docScroll > parentHeight ? 'top' :
|
1192 |
+
placement == 'top' && pos.top - docScroll - actualHeight < 0 ? 'bottom' :
|
1193 |
+
placement == 'right' && pos.right + actualWidth > parentWidth ? 'left' :
|
1194 |
+
placement == 'left' && pos.left - actualWidth < parentLeft ? 'right' :
|
1195 |
+
placement
|
1196 |
+
|
1197 |
+
$tip
|
1198 |
+
.removeClass(orgPlacement)
|
1199 |
+
.addClass(placement)
|
1200 |
+
}
|
1201 |
+
|
1202 |
+
var calculatedOffset = this.getCalculatedOffset(placement, pos, actualWidth, actualHeight)
|
1203 |
+
|
1204 |
+
this.applyPlacement(calculatedOffset, placement)
|
1205 |
+
this.hoverState = null
|
1206 |
+
|
1207 |
+
var complete = function() {
|
1208 |
+
that.$element.trigger('shown.bs.' + that.type)
|
1209 |
+
}
|
1210 |
+
|
1211 |
+
$.support.transition && this.$tip.hasClass('fade') ?
|
1212 |
+
$tip
|
1213 |
+
.one($.support.transition.end, complete)
|
1214 |
+
.emulateTransitionEnd(150) :
|
1215 |
+
complete()
|
1216 |
+
}
|
1217 |
+
}
|
1218 |
+
|
1219 |
+
Tooltip.prototype.applyPlacement = function (offset, placement) {
|
1220 |
+
var replace
|
1221 |
+
var $tip = this.tip()
|
1222 |
+
var width = $tip[0].offsetWidth
|
1223 |
+
var height = $tip[0].offsetHeight
|
1224 |
+
|
1225 |
+
// manually read margins because getBoundingClientRect includes difference
|
1226 |
+
var marginTop = parseInt($tip.css('margin-top'), 10)
|
1227 |
+
var marginLeft = parseInt($tip.css('margin-left'), 10)
|
1228 |
+
|
1229 |
+
// we must check for NaN for ie 8/9
|
1230 |
+
if (isNaN(marginTop)) marginTop = 0
|
1231 |
+
if (isNaN(marginLeft)) marginLeft = 0
|
1232 |
+
|
1233 |
+
offset.top = offset.top + marginTop
|
1234 |
+
offset.left = offset.left + marginLeft
|
1235 |
+
|
1236 |
+
// $.fn.offset doesn't round pixel values
|
1237 |
+
// so we use setOffset directly with our own function B-0
|
1238 |
+
$.offset.setOffset($tip[0], $.extend({
|
1239 |
+
using: function (props) {
|
1240 |
+
$tip.css({
|
1241 |
+
top: Math.round(props.top),
|
1242 |
+
left: Math.round(props.left)
|
1243 |
+
})
|
1244 |
+
}
|
1245 |
+
}, offset), 0)
|
1246 |
+
|
1247 |
+
$tip.addClass('in')
|
1248 |
+
|
1249 |
+
// check to see if placing tip in new offset caused the tip to resize itself
|
1250 |
+
var actualWidth = $tip[0].offsetWidth
|
1251 |
+
var actualHeight = $tip[0].offsetHeight
|
1252 |
+
|
1253 |
+
if (placement == 'top' && actualHeight != height) {
|
1254 |
+
replace = true
|
1255 |
+
offset.top = offset.top + height - actualHeight
|
1256 |
+
}
|
1257 |
+
|
1258 |
+
if (/bottom|top/.test(placement)) {
|
1259 |
+
var delta = 0
|
1260 |
+
|
1261 |
+
if (offset.left < 0) {
|
1262 |
+
delta = offset.left * -2
|
1263 |
+
offset.left = 0
|
1264 |
+
|
1265 |
+
$tip.offset(offset)
|
1266 |
+
|
1267 |
+
actualWidth = $tip[0].offsetWidth
|
1268 |
+
actualHeight = $tip[0].offsetHeight
|
1269 |
+
}
|
1270 |
+
|
1271 |
+
this.replaceArrow(delta - width + actualWidth, actualWidth, 'left')
|
1272 |
+
} else {
|
1273 |
+
this.replaceArrow(actualHeight - height, actualHeight, 'top')
|
1274 |
+
}
|
1275 |
+
|
1276 |
+
if (replace) $tip.offset(offset)
|
1277 |
+
}
|
1278 |
+
|
1279 |
+
Tooltip.prototype.replaceArrow = function (delta, dimension, position) {
|
1280 |
+
this.arrow().css(position, delta ? (50 * (1 - delta / dimension) + '%') : '')
|
1281 |
+
}
|
1282 |
+
|
1283 |
+
Tooltip.prototype.setContent = function () {
|
1284 |
+
var $tip = this.tip()
|
1285 |
+
var title = this.getTitle()
|
1286 |
+
|
1287 |
+
$tip.find('.tooltip-inner')[this.options.html ? 'html' : 'text'](title)
|
1288 |
+
$tip.removeClass('fade in top bottom left right')
|
1289 |
+
}
|
1290 |
+
|
1291 |
+
Tooltip.prototype.hide = function () {
|
1292 |
+
var that = this
|
1293 |
+
var $tip = this.tip()
|
1294 |
+
var e = $.Event('hide.bs.' + this.type)
|
1295 |
+
|
1296 |
+
function complete() {
|
1297 |
+
if (that.hoverState != 'in') $tip.detach()
|
1298 |
+
that.$element.trigger('hidden.bs.' + that.type)
|
1299 |
+
}
|
1300 |
+
|
1301 |
+
this.$element.trigger(e)
|
1302 |
+
|
1303 |
+
if (e.isDefaultPrevented()) return
|
1304 |
+
|
1305 |
+
$tip.removeClass('in')
|
1306 |
+
|
1307 |
+
$.support.transition && this.$tip.hasClass('fade') ?
|
1308 |
+
$tip
|
1309 |
+
.one($.support.transition.end, complete)
|
1310 |
+
.emulateTransitionEnd(150) :
|
1311 |
+
complete()
|
1312 |
+
|
1313 |
+
this.hoverState = null
|
1314 |
+
|
1315 |
+
return this
|
1316 |
+
}
|
1317 |
+
|
1318 |
+
Tooltip.prototype.fixTitle = function () {
|
1319 |
+
var $e = this.$element
|
1320 |
+
if ($e.attr('title') || typeof($e.attr('data-original-title')) != 'string') {
|
1321 |
+
$e.attr('data-original-title', $e.attr('title') || '').attr('title', '')
|
1322 |
+
}
|
1323 |
+
}
|
1324 |
+
|
1325 |
+
Tooltip.prototype.hasContent = function () {
|
1326 |
+
return this.getTitle()
|
1327 |
+
}
|
1328 |
+
|
1329 |
+
Tooltip.prototype.getPosition = function () {
|
1330 |
+
var el = this.$element[0]
|
1331 |
+
return $.extend({}, (typeof el.getBoundingClientRect == 'function') ? el.getBoundingClientRect() : {
|
1332 |
+
width: el.offsetWidth,
|
1333 |
+
height: el.offsetHeight
|
1334 |
+
}, this.$element.offset())
|
1335 |
+
}
|
1336 |
+
|
1337 |
+
Tooltip.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) {
|
1338 |
+
return placement == 'bottom' ? { top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2 } :
|
1339 |
+
placement == 'top' ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2 } :
|
1340 |
+
placement == 'left' ? { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } :
|
1341 |
+
/* placement == 'right' */ { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width }
|
1342 |
+
}
|
1343 |
+
|
1344 |
+
Tooltip.prototype.getTitle = function () {
|
1345 |
+
var title
|
1346 |
+
var $e = this.$element
|
1347 |
+
var o = this.options
|
1348 |
+
|
1349 |
+
title = $e.attr('data-original-title')
|
1350 |
+
|| (typeof o.title == 'function' ? o.title.call($e[0]) : o.title)
|
1351 |
+
|
1352 |
+
return title
|
1353 |
+
}
|
1354 |
+
|
1355 |
+
Tooltip.prototype.tip = function () {
|
1356 |
+
return this.$tip = this.$tip || $(this.options.template)
|
1357 |
+
}
|
1358 |
+
|
1359 |
+
Tooltip.prototype.arrow = function () {
|
1360 |
+
return this.$arrow = this.$arrow || this.tip().find('.tooltip-arrow')
|
1361 |
+
}
|
1362 |
+
|
1363 |
+
Tooltip.prototype.validate = function () {
|
1364 |
+
if (!this.$element[0].parentNode) {
|
1365 |
+
this.hide()
|
1366 |
+
this.$element = null
|
1367 |
+
this.options = null
|
1368 |
+
}
|
1369 |
+
}
|
1370 |
+
|
1371 |
+
Tooltip.prototype.enable = function () {
|
1372 |
+
this.enabled = true
|
1373 |
+
}
|
1374 |
+
|
1375 |
+
Tooltip.prototype.disable = function () {
|
1376 |
+
this.enabled = false
|
1377 |
+
}
|
1378 |
+
|
1379 |
+
Tooltip.prototype.toggleEnabled = function () {
|
1380 |
+
this.enabled = !this.enabled
|
1381 |
+
}
|
1382 |
+
|
1383 |
+
Tooltip.prototype.toggle = function (e) {
|
1384 |
+
var self = e ? $(e.currentTarget)[this.type](this.getDelegateOptions()).data('bs.' + this.type) : this
|
1385 |
+
self.tip().hasClass('in') ? self.leave(self) : self.enter(self)
|
1386 |
+
}
|
1387 |
+
|
1388 |
+
Tooltip.prototype.destroy = function () {
|
1389 |
+
clearTimeout(this.timeout)
|
1390 |
+
this.hide().$element.off('.' + this.type).removeData('bs.' + this.type)
|
1391 |
+
}
|
1392 |
+
|
1393 |
+
|
1394 |
+
// TOOLTIP PLUGIN DEFINITION
|
1395 |
+
// =========================
|
1396 |
+
|
1397 |
+
var old = $.fn.tooltip
|
1398 |
+
|
1399 |
+
$.fn.tooltip = function (option) {
|
1400 |
+
return this.each(function () {
|
1401 |
+
var $this = $(this)
|
1402 |
+
var data = $this.data('bs.tooltip')
|
1403 |
+
var options = typeof option == 'object' && option
|
1404 |
+
|
1405 |
+
if (!data && option == 'destroy') return
|
1406 |
+
if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options)))
|
1407 |
+
if (typeof option == 'string') data[option]()
|
1408 |
+
})
|
1409 |
+
}
|
1410 |
+
|
1411 |
+
$.fn.tooltip.Constructor = Tooltip
|
1412 |
+
|
1413 |
+
|
1414 |
+
// TOOLTIP NO CONFLICT
|
1415 |
+
// ===================
|
1416 |
+
|
1417 |
+
$.fn.tooltip.noConflict = function () {
|
1418 |
+
$.fn.tooltip = old
|
1419 |
+
return this
|
1420 |
+
}
|
1421 |
+
|
1422 |
+
}(jQuery);
|
1423 |
+
|
1424 |
+
/* ========================================================================
|
1425 |
+
* Bootstrap: popover.js v3.1.0
|
1426 |
+
* http://getbootstrap.com/javascript/#popovers
|
1427 |
+
* ========================================================================
|
1428 |
+
* Copyright 2011-2014 Twitter, Inc.
|
1429 |
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
1430 |
+
* ======================================================================== */
|
1431 |
+
|
1432 |
+
|
1433 |
+
+function ($) {
|
1434 |
+
'use strict';
|
1435 |
+
|
1436 |
+
// POPOVER PUBLIC CLASS DEFINITION
|
1437 |
+
// ===============================
|
1438 |
+
|
1439 |
+
var Popover = function (element, options) {
|
1440 |
+
this.init('popover', element, options)
|
1441 |
+
}
|
1442 |
+
|
1443 |
+
if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js')
|
1444 |
+
|
1445 |
+
Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, {
|
1446 |
+
placement: 'right',
|
1447 |
+
trigger: 'click',
|
1448 |
+
content: '',
|
1449 |
+
template: '<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
|
1450 |
+
})
|
1451 |
+
|
1452 |
+
|
1453 |
+
// NOTE: POPOVER EXTENDS tooltip.js
|
1454 |
+
// ================================
|
1455 |
+
|
1456 |
+
Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype)
|
1457 |
+
|
1458 |
+
Popover.prototype.constructor = Popover
|
1459 |
+
|
1460 |
+
Popover.prototype.getDefaults = function () {
|
1461 |
+
return Popover.DEFAULTS
|
1462 |
+
}
|
1463 |
+
|
1464 |
+
Popover.prototype.setContent = function () {
|
1465 |
+
var $tip = this.tip()
|
1466 |
+
var title = this.getTitle()
|
1467 |
+
var content = this.getContent()
|
1468 |
+
|
1469 |
+
$tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title)
|
1470 |
+
$tip.find('.popover-content')[ // we use append for html objects to maintain js events
|
1471 |
+
this.options.html ? (typeof content == 'string' ? 'html' : 'append') : 'text'
|
1472 |
+
](content)
|
1473 |
+
|
1474 |
+
$tip.removeClass('fade top bottom left right in')
|
1475 |
+
|
1476 |
+
// IE8 doesn't accept hiding via the `:empty` pseudo selector, we have to do
|
1477 |
+
// this manually by checking the contents.
|
1478 |
+
if (!$tip.find('.popover-title').html()) $tip.find('.popover-title').hide()
|
1479 |
+
}
|
1480 |
+
|
1481 |
+
Popover.prototype.hasContent = function () {
|
1482 |
+
return this.getTitle() || this.getContent()
|
1483 |
+
}
|
1484 |
+
|
1485 |
+
Popover.prototype.getContent = function () {
|
1486 |
+
var $e = this.$element
|
1487 |
+
var o = this.options
|
1488 |
+
|
1489 |
+
return $e.attr('data-content')
|
1490 |
+
|| (typeof o.content == 'function' ?
|
1491 |
+
o.content.call($e[0]) :
|
1492 |
+
o.content)
|
1493 |
+
}
|
1494 |
+
|
1495 |
+
Popover.prototype.arrow = function () {
|
1496 |
+
return this.$arrow = this.$arrow || this.tip().find('.arrow')
|
1497 |
+
}
|
1498 |
+
|
1499 |
+
Popover.prototype.tip = function () {
|
1500 |
+
if (!this.$tip) this.$tip = $(this.options.template)
|
1501 |
+
return this.$tip
|
1502 |
+
}
|
1503 |
+
|
1504 |
+
|
1505 |
+
// POPOVER PLUGIN DEFINITION
|
1506 |
+
// =========================
|
1507 |
+
|
1508 |
+
var old = $.fn.popover
|
1509 |
+
|
1510 |
+
$.fn.popover = function (option) {
|
1511 |
+
return this.each(function () {
|
1512 |
+
var $this = $(this)
|
1513 |
+
var data = $this.data('bs.popover')
|
1514 |
+
var options = typeof option == 'object' && option
|
1515 |
+
|
1516 |
+
if (!data && option == 'destroy') return
|
1517 |
+
if (!data) $this.data('bs.popover', (data = new Popover(this, options)))
|
1518 |
+
if (typeof option == 'string') data[option]()
|
1519 |
+
})
|
1520 |
+
}
|
1521 |
+
|
1522 |
+
$.fn.popover.Constructor = Popover
|
1523 |
+
|
1524 |
+
|
1525 |
+
// POPOVER NO CONFLICT
|
1526 |
+
// ===================
|
1527 |
+
|
1528 |
+
$.fn.popover.noConflict = function () {
|
1529 |
+
$.fn.popover = old
|
1530 |
+
return this
|
1531 |
+
}
|
1532 |
+
|
1533 |
+
}(jQuery);
|
1534 |
+
|
1535 |
+
/* ========================================================================
|
1536 |
+
* Bootstrap: scrollspy.js v3.1.0
|
1537 |
+
* http://getbootstrap.com/javascript/#scrollspy
|
1538 |
+
* ========================================================================
|
1539 |
+
* Copyright 2011-2014 Twitter, Inc.
|
1540 |
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
1541 |
+
* ======================================================================== */
|
1542 |
+
|
1543 |
+
|
1544 |
+
+function ($) {
|
1545 |
+
'use strict';
|
1546 |
+
|
1547 |
+
// SCROLLSPY CLASS DEFINITION
|
1548 |
+
// ==========================
|
1549 |
+
|
1550 |
+
function ScrollSpy(element, options) {
|
1551 |
+
var href
|
1552 |
+
var process = $.proxy(this.process, this)
|
1553 |
+
|
1554 |
+
this.$element = $(element).is('body') ? $(window) : $(element)
|
1555 |
+
this.$body = $('body')
|
1556 |
+
this.$scrollElement = this.$element.on('scroll.bs.scroll-spy.data-api', process)
|
1557 |
+
this.options = $.extend({}, ScrollSpy.DEFAULTS, options)
|
1558 |
+
this.selector = (this.options.target
|
1559 |
+
|| ((href = $(element).attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
|
1560 |
+
|| '') + ' .nav li > a'
|
1561 |
+
this.offsets = $([])
|
1562 |
+
this.targets = $([])
|
1563 |
+
this.activeTarget = null
|
1564 |
+
|
1565 |
+
this.refresh()
|
1566 |
+
this.process()
|
1567 |
+
}
|
1568 |
+
|
1569 |
+
ScrollSpy.DEFAULTS = {
|
1570 |
+
offset: 10
|
1571 |
+
}
|
1572 |
+
|
1573 |
+
ScrollSpy.prototype.refresh = function () {
|
1574 |
+
var offsetMethod = this.$element[0] == window ? 'offset' : 'position'
|
1575 |
+
|
1576 |
+
this.offsets = $([])
|
1577 |
+
this.targets = $([])
|
1578 |
+
|
1579 |
+
var self = this
|
1580 |
+
var $targets = this.$body
|
1581 |
+
.find(this.selector)
|
1582 |
+
.map(function () {
|
1583 |
+
var $el = $(this)
|
1584 |
+
var href = $el.data('target') || $el.attr('href')
|
1585 |
+
var $href = /^#./.test(href) && $(href)
|
1586 |
+
|
1587 |
+
return ($href
|
1588 |
+
&& $href.length
|
1589 |
+
&& $href.is(':visible')
|
1590 |
+
&& [[ $href[offsetMethod]().top + (!$.isWindow(self.$scrollElement.get(0)) && self.$scrollElement.scrollTop()), href ]]) || null
|
1591 |
+
})
|
1592 |
+
.sort(function (a, b) { return a[0] - b[0] })
|
1593 |
+
.each(function () {
|
1594 |
+
self.offsets.push(this[0])
|
1595 |
+
self.targets.push(this[1])
|
1596 |
+
})
|
1597 |
+
}
|
1598 |
+
|
1599 |
+
ScrollSpy.prototype.process = function () {
|
1600 |
+
var scrollTop = this.$scrollElement.scrollTop() + this.options.offset
|
1601 |
+
var scrollHeight = this.$scrollElement[0].scrollHeight || this.$body[0].scrollHeight
|
1602 |
+
var maxScroll = scrollHeight - this.$scrollElement.height()
|
1603 |
+
var offsets = this.offsets
|
1604 |
+
var targets = this.targets
|
1605 |
+
var activeTarget = this.activeTarget
|
1606 |
+
var i
|
1607 |
+
|
1608 |
+
if (scrollTop >= maxScroll) {
|
1609 |
+
return activeTarget != (i = targets.last()[0]) && this.activate(i)
|
1610 |
+
}
|
1611 |
+
|
1612 |
+
if (activeTarget && scrollTop <= offsets[0]) {
|
1613 |
+
return activeTarget != (i = targets[0]) && this.activate(i)
|
1614 |
+
}
|
1615 |
+
|
1616 |
+
for (i = offsets.length; i--;) {
|
1617 |
+
activeTarget != targets[i]
|
1618 |
+
&& scrollTop >= offsets[i]
|
1619 |
+
&& (!offsets[i + 1] || scrollTop <= offsets[i + 1])
|
1620 |
+
&& this.activate( targets[i] )
|
1621 |
+
}
|
1622 |
+
}
|
1623 |
+
|
1624 |
+
ScrollSpy.prototype.activate = function (target) {
|
1625 |
+
this.activeTarget = target
|
1626 |
+
|
1627 |
+
$(this.selector)
|
1628 |
+
.parentsUntil(this.options.target, '.active')
|
1629 |
+
.removeClass('active')
|
1630 |
+
|
1631 |
+
var selector = this.selector +
|
1632 |
+
'[data-target="' + target + '"],' +
|
1633 |
+
this.selector + '[href="' + target + '"]'
|
1634 |
+
|
1635 |
+
var active = $(selector)
|
1636 |
+
.parents('li')
|
1637 |
+
.addClass('active')
|
1638 |
+
|
1639 |
+
if (active.parent('.dropdown-menu').length) {
|
1640 |
+
active = active
|
1641 |
+
.closest('li.dropdown')
|
1642 |
+
.addClass('active')
|
1643 |
+
}
|
1644 |
+
|
1645 |
+
active.trigger('activate.bs.scrollspy')
|
1646 |
+
}
|
1647 |
+
|
1648 |
+
|
1649 |
+
// SCROLLSPY PLUGIN DEFINITION
|
1650 |
+
// ===========================
|
1651 |
+
|
1652 |
+
var old = $.fn.scrollspy
|
1653 |
+
|
1654 |
+
$.fn.scrollspy = function (option) {
|
1655 |
+
return this.each(function () {
|
1656 |
+
var $this = $(this)
|
1657 |
+
var data = $this.data('bs.scrollspy')
|
1658 |
+
var options = typeof option == 'object' && option
|
1659 |
+
|
1660 |
+
if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options)))
|
1661 |
+
if (typeof option == 'string') data[option]()
|
1662 |
+
})
|
1663 |
+
}
|
1664 |
+
|
1665 |
+
$.fn.scrollspy.Constructor = ScrollSpy
|
1666 |
+
|
1667 |
+
|
1668 |
+
// SCROLLSPY NO CONFLICT
|
1669 |
+
// =====================
|
1670 |
+
|
1671 |
+
$.fn.scrollspy.noConflict = function () {
|
1672 |
+
$.fn.scrollspy = old
|
1673 |
+
return this
|
1674 |
+
}
|
1675 |
+
|
1676 |
+
|
1677 |
+
// SCROLLSPY DATA-API
|
1678 |
+
// ==================
|
1679 |
+
|
1680 |
+
$(window).on('load', function () {
|
1681 |
+
$('[data-spy="scroll"]').each(function () {
|
1682 |
+
var $spy = $(this)
|
1683 |
+
$spy.scrollspy($spy.data())
|
1684 |
+
})
|
1685 |
+
})
|
1686 |
+
|
1687 |
+
}(jQuery);
|
1688 |
+
|
1689 |
+
/* ========================================================================
|
1690 |
+
* Bootstrap: tab.js v3.1.0
|
1691 |
+
* http://getbootstrap.com/javascript/#tabs
|
1692 |
+
* ========================================================================
|
1693 |
+
* Copyright 2011-2014 Twitter, Inc.
|
1694 |
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
1695 |
+
* ======================================================================== */
|
1696 |
+
|
1697 |
+
|
1698 |
+
+function ($) {
|
1699 |
+
'use strict';
|
1700 |
+
|
1701 |
+
// TAB CLASS DEFINITION
|
1702 |
+
// ====================
|
1703 |
+
|
1704 |
+
var Tab = function (element) {
|
1705 |
+
this.element = $(element)
|
1706 |
+
}
|
1707 |
+
|
1708 |
+
Tab.prototype.show = function () {
|
1709 |
+
var $this = this.element
|
1710 |
+
var $ul = $this.closest('ul:not(.dropdown-menu)')
|
1711 |
+
var selector = $this.data('target')
|
1712 |
+
|
1713 |
+
if (!selector) {
|
1714 |
+
selector = $this.attr('href')
|
1715 |
+
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
1716 |
+
}
|
1717 |
+
|
1718 |
+
if ($this.parent('li').hasClass('active')) return
|
1719 |
+
|
1720 |
+
var previous = $ul.find('.active:last a')[0]
|
1721 |
+
var e = $.Event('show.bs.tab', {
|
1722 |
+
relatedTarget: previous
|
1723 |
+
})
|
1724 |
+
|
1725 |
+
$this.trigger(e)
|
1726 |
+
|
1727 |
+
if (e.isDefaultPrevented()) return
|
1728 |
+
|
1729 |
+
var $target = $(selector)
|
1730 |
+
|
1731 |
+
this.activate($this.parent('li'), $ul)
|
1732 |
+
this.activate($target, $target.parent(), function () {
|
1733 |
+
$this.trigger({
|
1734 |
+
type: 'shown.bs.tab',
|
1735 |
+
relatedTarget: previous
|
1736 |
+
})
|
1737 |
+
})
|
1738 |
+
}
|
1739 |
+
|
1740 |
+
Tab.prototype.activate = function (element, container, callback) {
|
1741 |
+
var $active = container.find('> .active')
|
1742 |
+
var transition = callback
|
1743 |
+
&& $.support.transition
|
1744 |
+
&& $active.hasClass('fade')
|
1745 |
+
|
1746 |
+
function next() {
|
1747 |
+
$active
|
1748 |
+
.removeClass('active')
|
1749 |
+
.find('> .dropdown-menu > .active')
|
1750 |
+
.removeClass('active')
|
1751 |
+
|
1752 |
+
element.addClass('active')
|
1753 |
+
|
1754 |
+
if (transition) {
|
1755 |
+
element[0].offsetWidth // reflow for transition
|
1756 |
+
element.addClass('in')
|
1757 |
+
} else {
|
1758 |
+
element.removeClass('fade')
|
1759 |
+
}
|
1760 |
+
|
1761 |
+
if (element.parent('.dropdown-menu')) {
|
1762 |
+
element.closest('li.dropdown').addClass('active')
|
1763 |
+
}
|
1764 |
+
|
1765 |
+
callback && callback()
|
1766 |
+
}
|
1767 |
+
|
1768 |
+
transition ?
|
1769 |
+
$active
|
1770 |
+
.one($.support.transition.end, next)
|
1771 |
+
.emulateTransitionEnd(150) :
|
1772 |
+
next()
|
1773 |
+
|
1774 |
+
$active.removeClass('in')
|
1775 |
+
}
|
1776 |
+
|
1777 |
+
|
1778 |
+
// TAB PLUGIN DEFINITION
|
1779 |
+
// =====================
|
1780 |
+
|
1781 |
+
var old = $.fn.tab
|
1782 |
+
|
1783 |
+
$.fn.tab = function ( option ) {
|
1784 |
+
return this.each(function () {
|
1785 |
+
var $this = $(this)
|
1786 |
+
var data = $this.data('bs.tab')
|
1787 |
+
|
1788 |
+
if (!data) $this.data('bs.tab', (data = new Tab(this)))
|
1789 |
+
if (typeof option == 'string') data[option]()
|
1790 |
+
})
|
1791 |
+
}
|
1792 |
+
|
1793 |
+
$.fn.tab.Constructor = Tab
|
1794 |
+
|
1795 |
+
|
1796 |
+
// TAB NO CONFLICT
|
1797 |
+
// ===============
|
1798 |
+
|
1799 |
+
$.fn.tab.noConflict = function () {
|
1800 |
+
$.fn.tab = old
|
1801 |
+
return this
|
1802 |
+
}
|
1803 |
+
|
1804 |
+
|
1805 |
+
// TAB DATA-API
|
1806 |
+
// ============
|
1807 |
+
|
1808 |
+
$(document).on('click.bs.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) {
|
1809 |
+
e.preventDefault()
|
1810 |
+
$(this).tab('show')
|
1811 |
+
})
|
1812 |
+
|
1813 |
+
}(jQuery);
|
1814 |
+
|
1815 |
+
/* ========================================================================
|
1816 |
+
* Bootstrap: affix.js v3.1.0
|
1817 |
+
* http://getbootstrap.com/javascript/#affix
|
1818 |
+
* ========================================================================
|
1819 |
+
* Copyright 2011-2014 Twitter, Inc.
|
1820 |
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
1821 |
+
* ======================================================================== */
|
1822 |
+
|
1823 |
+
|
1824 |
+
+function ($) {
|
1825 |
+
'use strict';
|
1826 |
+
|
1827 |
+
// AFFIX CLASS DEFINITION
|
1828 |
+
// ======================
|
1829 |
+
|
1830 |
+
var Affix = function (element, options) {
|
1831 |
+
this.options = $.extend({}, Affix.DEFAULTS, options)
|
1832 |
+
this.$window = $(window)
|
1833 |
+
.on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this))
|
1834 |
+
.on('click.bs.affix.data-api', $.proxy(this.checkPositionWithEventLoop, this))
|
1835 |
+
|
1836 |
+
this.$element = $(element)
|
1837 |
+
this.affixed =
|
1838 |
+
this.unpin =
|
1839 |
+
this.pinnedOffset = null
|
1840 |
+
|
1841 |
+
this.checkPosition()
|
1842 |
+
}
|
1843 |
+
|
1844 |
+
Affix.RESET = 'affix affix-top affix-bottom'
|
1845 |
+
|
1846 |
+
Affix.DEFAULTS = {
|
1847 |
+
offset: 0
|
1848 |
+
}
|
1849 |
+
|
1850 |
+
Affix.prototype.getPinnedOffset = function () {
|
1851 |
+
if (this.pinnedOffset) return this.pinnedOffset
|
1852 |
+
this.$element.removeClass(Affix.RESET).addClass('affix')
|
1853 |
+
var scrollTop = this.$window.scrollTop()
|
1854 |
+
var position = this.$element.offset()
|
1855 |
+
return (this.pinnedOffset = position.top - scrollTop)
|
1856 |
+
}
|
1857 |
+
|
1858 |
+
Affix.prototype.checkPositionWithEventLoop = function () {
|
1859 |
+
setTimeout($.proxy(this.checkPosition, this), 1)
|
1860 |
+
}
|
1861 |
+
|
1862 |
+
Affix.prototype.checkPosition = function () {
|
1863 |
+
if (!this.$element.is(':visible')) return
|
1864 |
+
|
1865 |
+
var scrollHeight = $(document).height()
|
1866 |
+
var scrollTop = this.$window.scrollTop()
|
1867 |
+
var position = this.$element.offset()
|
1868 |
+
var offset = this.options.offset
|
1869 |
+
var offsetTop = offset.top
|
1870 |
+
var offsetBottom = offset.bottom
|
1871 |
+
|
1872 |
+
if (this.affixed == 'top') position.top += scrollTop
|
1873 |
+
|
1874 |
+
if (typeof offset != 'object') offsetBottom = offsetTop = offset
|
1875 |
+
if (typeof offsetTop == 'function') offsetTop = offset.top(this.$element)
|
1876 |
+
if (typeof offsetBottom == 'function') offsetBottom = offset.bottom(this.$element)
|
1877 |
+
|
1878 |
+
var affix = this.unpin != null && (scrollTop + this.unpin <= position.top) ? false :
|
1879 |
+
offsetBottom != null && (position.top + this.$element.height() >= scrollHeight - offsetBottom) ? 'bottom' :
|
1880 |
+
offsetTop != null && (scrollTop <= offsetTop) ? 'top' : false
|
1881 |
+
|
1882 |
+
if (this.affixed === affix) return
|
1883 |
+
if (this.unpin) this.$element.css('top', '')
|
1884 |
+
|
1885 |
+
var affixType = 'affix' + (affix ? '-' + affix : '')
|
1886 |
+
var e = $.Event(affixType + '.bs.affix')
|
1887 |
+
|
1888 |
+
this.$element.trigger(e)
|
1889 |
+
|
1890 |
+
if (e.isDefaultPrevented()) return
|
1891 |
+
|
1892 |
+
this.affixed = affix
|
1893 |
+
this.unpin = affix == 'bottom' ? this.getPinnedOffset() : null
|
1894 |
+
|
1895 |
+
this.$element
|
1896 |
+
.removeClass(Affix.RESET)
|
1897 |
+
.addClass(affixType)
|
1898 |
+
.trigger($.Event(affixType.replace('affix', 'affixed')))
|
1899 |
+
|
1900 |
+
if (affix == 'bottom') {
|
1901 |
+
this.$element.offset({ top: scrollHeight - offsetBottom - this.$element.height() })
|
1902 |
+
}
|
1903 |
+
}
|
1904 |
+
|
1905 |
+
|
1906 |
+
// AFFIX PLUGIN DEFINITION
|
1907 |
+
// =======================
|
1908 |
+
|
1909 |
+
var old = $.fn.affix
|
1910 |
+
|
1911 |
+
$.fn.affix = function (option) {
|
1912 |
+
return this.each(function () {
|
1913 |
+
var $this = $(this)
|
1914 |
+
var data = $this.data('bs.affix')
|
1915 |
+
var options = typeof option == 'object' && option
|
1916 |
+
|
1917 |
+
if (!data) $this.data('bs.affix', (data = new Affix(this, options)))
|
1918 |
+
if (typeof option == 'string') data[option]()
|
1919 |
+
})
|
1920 |
+
}
|
1921 |
+
|
1922 |
+
$.fn.affix.Constructor = Affix
|
1923 |
+
|
1924 |
+
|
1925 |
+
// AFFIX NO CONFLICT
|
1926 |
+
// =================
|
1927 |
+
|
1928 |
+
$.fn.affix.noConflict = function () {
|
1929 |
+
$.fn.affix = old
|
1930 |
+
return this
|
1931 |
+
}
|
1932 |
+
|
1933 |
+
|
1934 |
+
// AFFIX DATA-API
|
1935 |
+
// ==============
|
1936 |
+
|
1937 |
+
$(window).on('load', function () {
|
1938 |
+
$('[data-spy="affix"]').each(function () {
|
1939 |
+
var $spy = $(this)
|
1940 |
+
var data = $spy.data()
|
1941 |
+
|
1942 |
+
data.offset = data.offset || {}
|
1943 |
+
|
1944 |
+
if (data.offsetBottom) data.offset.bottom = data.offsetBottom
|
1945 |
+
if (data.offsetTop) data.offset.top = data.offsetTop
|
1946 |
+
|
1947 |
+
$spy.affix(data)
|
1948 |
+
})
|
1949 |
+
})
|
1950 |
+
|
1951 |
+
}(jQuery);
|
js/MOIP/jquery_noconflict.js
CHANGED
@@ -1 +1,2 @@
|
|
1 |
-
jQuery.noConflict();
|
|
1 |
+
jQuery.noConflict();
|
2 |
+
var $j = jQuery.noConflict();
|
js/MOIP/script_mask.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
-
jQuery
|
2 |
jQuery('#billing\\:taxvat').mask("000.000.000-00", {placeholder: "___.___.___-__"});
|
3 |
jQuery('#shipping\\:taxvat').mask("000.000.000-00", {placeholder: "___.___.___-__"});
|
4 |
jQuery('#taxvat').mask("000.000.000-00", {placeholder: "___.___.___-__"});
|
5 |
jQuery('#credito_portador_cpf').mask("000.000.000-00", {placeholder: "___.___.___-__"});
|
6 |
-
jQuery('#credito_portador_nascimento').mask("99/99/9999", {placeholder: "__/__/____"});
|
7 |
jQuery('#cnpj').mask("00.000.000-0000-00", {placeholder: "__.___.___-____-__"});
|
8 |
jQuery('#billing\\:postcode').mask("00000-000", {placeholder: "_____-___"});
|
9 |
jQuery('#shipping\\:postcode').mask("00000-000", {placeholder: "_____-___"});
|
10 |
-
jQuery('#postcode').mask("00000-000", {placeholder: "_____-___"});
|
11 |
jQuery('#zip').mask("00000-000", {placeholder: "_____-___"});
|
12 |
jQuery('#billing\\:fax').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
|
13 |
jQuery('#billing\\:telephone').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
|
@@ -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 |
-
|
1 |
+
jQuery.noConflict();
|
2 |
jQuery('#billing\\:taxvat').mask("000.000.000-00", {placeholder: "___.___.___-__"});
|
3 |
jQuery('#shipping\\:taxvat').mask("000.000.000-00", {placeholder: "___.___.___-__"});
|
4 |
jQuery('#taxvat').mask("000.000.000-00", {placeholder: "___.___.___-__"});
|
5 |
jQuery('#credito_portador_cpf').mask("000.000.000-00", {placeholder: "___.___.___-__"});
|
6 |
+
jQuery('#credito_portador_nascimento').mask("99/99/9999", {placeholder: "__/__/____"});
|
7 |
jQuery('#cnpj').mask("00.000.000-0000-00", {placeholder: "__.___.___-____-__"});
|
8 |
jQuery('#billing\\:postcode').mask("00000-000", {placeholder: "_____-___"});
|
9 |
jQuery('#shipping\\:postcode').mask("00000-000", {placeholder: "_____-___"});
|
10 |
+
jQuery('#postcode').mask("00000-000", {placeholder: "_____-___"});
|
11 |
jQuery('#zip').mask("00000-000", {placeholder: "_____-___"});
|
12 |
jQuery('#billing\\:fax').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
|
13 |
jQuery('#billing\\:telephone').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
|
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-modal.js
DELETED
@@ -1,218 +0,0 @@
|
|
1 |
-
/* =========================================================
|
2 |
-
* bootstrap-modal.js v2.0.3
|
3 |
-
* http://twitter.github.com/bootstrap/javascript.html#modals
|
4 |
-
* =========================================================
|
5 |
-
* Copyright 2012 Twitter, Inc.
|
6 |
-
*
|
7 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
8 |
-
* you may not use this file except in compliance with the License.
|
9 |
-
* You may obtain a copy of the License at
|
10 |
-
*
|
11 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
12 |
-
*
|
13 |
-
* Unless required by applicable law or agreed to in writing, software
|
14 |
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
15 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16 |
-
* See the License for the specific language governing permissions and
|
17 |
-
* limitations under the License.
|
18 |
-
* ========================================================= */
|
19 |
-
|
20 |
-
|
21 |
-
!function ($) {
|
22 |
-
|
23 |
-
"use strict"; // jshint ;_;
|
24 |
-
|
25 |
-
|
26 |
-
/* MODAL CLASS DEFINITION
|
27 |
-
* ====================== */
|
28 |
-
|
29 |
-
var Modal = function (content, options) {
|
30 |
-
this.options = options
|
31 |
-
this.$element = $(content)
|
32 |
-
.delegate('[data-dismiss="modal"]', 'click.dismiss.modal', $.proxy(this.hide, this))
|
33 |
-
}
|
34 |
-
|
35 |
-
Modal.prototype = {
|
36 |
-
|
37 |
-
constructor: Modal
|
38 |
-
|
39 |
-
, toggle: function () {
|
40 |
-
return this[!this.isShown ? 'show' : 'hide']()
|
41 |
-
}
|
42 |
-
|
43 |
-
, show: function () {
|
44 |
-
var that = this
|
45 |
-
, e = $.Event('show')
|
46 |
-
|
47 |
-
this.$element.trigger(e)
|
48 |
-
|
49 |
-
if (this.isShown || e.isDefaultPrevented()) return
|
50 |
-
|
51 |
-
$('body').addClass('modal-open')
|
52 |
-
|
53 |
-
this.isShown = true
|
54 |
-
|
55 |
-
escape.call(this)
|
56 |
-
backdrop.call(this, function () {
|
57 |
-
var transition = $.support.transition && that.$element.hasClass('fade')
|
58 |
-
|
59 |
-
if (!that.$element.parent().length) {
|
60 |
-
that.$element.appendTo(document.body) //don't move modals dom position
|
61 |
-
}
|
62 |
-
|
63 |
-
that.$element
|
64 |
-
.show()
|
65 |
-
|
66 |
-
if (transition) {
|
67 |
-
that.$element[0].offsetWidth // force reflow
|
68 |
-
}
|
69 |
-
|
70 |
-
that.$element.addClass('in')
|
71 |
-
|
72 |
-
transition ?
|
73 |
-
that.$element.one($.support.transition.end, function () { that.$element.trigger('shown') }) :
|
74 |
-
that.$element.trigger('shown')
|
75 |
-
|
76 |
-
})
|
77 |
-
}
|
78 |
-
|
79 |
-
, hide: function (e) {
|
80 |
-
e && e.preventDefault()
|
81 |
-
|
82 |
-
var that = this
|
83 |
-
|
84 |
-
e = $.Event('hide')
|
85 |
-
|
86 |
-
this.$element.trigger(e)
|
87 |
-
|
88 |
-
if (!this.isShown || e.isDefaultPrevented()) return
|
89 |
-
|
90 |
-
this.isShown = false
|
91 |
-
|
92 |
-
$('body').removeClass('modal-open')
|
93 |
-
|
94 |
-
escape.call(this)
|
95 |
-
|
96 |
-
this.$element.removeClass('in')
|
97 |
-
|
98 |
-
$.support.transition && this.$element.hasClass('fade') ?
|
99 |
-
hideWithTransition.call(this) :
|
100 |
-
hideModal.call(this)
|
101 |
-
}
|
102 |
-
|
103 |
-
}
|
104 |
-
|
105 |
-
|
106 |
-
/* MODAL PRIVATE METHODS
|
107 |
-
* ===================== */
|
108 |
-
|
109 |
-
function hideWithTransition() {
|
110 |
-
var that = this
|
111 |
-
, timeout = setTimeout(function () {
|
112 |
-
that.$element.off($.support.transition.end)
|
113 |
-
hideModal.call(that)
|
114 |
-
}, 500)
|
115 |
-
|
116 |
-
this.$element.one($.support.transition.end, function () {
|
117 |
-
clearTimeout(timeout)
|
118 |
-
hideModal.call(that)
|
119 |
-
})
|
120 |
-
}
|
121 |
-
|
122 |
-
function hideModal(that) {
|
123 |
-
this.$element
|
124 |
-
.hide()
|
125 |
-
.trigger('hidden')
|
126 |
-
|
127 |
-
backdrop.call(this)
|
128 |
-
}
|
129 |
-
|
130 |
-
function backdrop(callback) {
|
131 |
-
var that = this
|
132 |
-
, animate = this.$element.hasClass('fade') ? 'fade' : ''
|
133 |
-
|
134 |
-
if (this.isShown && this.options.backdrop) {
|
135 |
-
var doAnimate = $.support.transition && animate
|
136 |
-
|
137 |
-
this.$backdrop = $('<div class="modal-backdrop ' + animate + '" />')
|
138 |
-
.appendTo(document.body)
|
139 |
-
|
140 |
-
if (this.options.backdrop != 'static') {
|
141 |
-
this.$backdrop.click($.proxy(this.hide, this))
|
142 |
-
}
|
143 |
-
|
144 |
-
if (doAnimate) this.$backdrop[0].offsetWidth // force reflow
|
145 |
-
|
146 |
-
this.$backdrop.addClass('in')
|
147 |
-
|
148 |
-
doAnimate ?
|
149 |
-
this.$backdrop.one($.support.transition.end, callback) :
|
150 |
-
callback()
|
151 |
-
|
152 |
-
} else if (!this.isShown && this.$backdrop) {
|
153 |
-
this.$backdrop.removeClass('in')
|
154 |
-
|
155 |
-
$.support.transition && this.$element.hasClass('fade')?
|
156 |
-
this.$backdrop.one($.support.transition.end, $.proxy(removeBackdrop, this)) :
|
157 |
-
removeBackdrop.call(this)
|
158 |
-
|
159 |
-
} else if (callback) {
|
160 |
-
callback()
|
161 |
-
}
|
162 |
-
}
|
163 |
-
|
164 |
-
function removeBackdrop() {
|
165 |
-
this.$backdrop.remove()
|
166 |
-
this.$backdrop = null
|
167 |
-
}
|
168 |
-
|
169 |
-
function escape() {
|
170 |
-
var that = this
|
171 |
-
if (this.isShown && this.options.keyboard) {
|
172 |
-
$(document).on('keyup.dismiss.modal', function ( e ) {
|
173 |
-
e.which == 27 && that.hide()
|
174 |
-
})
|
175 |
-
} else if (!this.isShown) {
|
176 |
-
$(document).off('keyup.dismiss.modal')
|
177 |
-
}
|
178 |
-
}
|
179 |
-
|
180 |
-
|
181 |
-
/* MODAL PLUGIN DEFINITION
|
182 |
-
* ======================= */
|
183 |
-
|
184 |
-
$.fn.modal = function (option) {
|
185 |
-
return this.each(function () {
|
186 |
-
var $this = $(this)
|
187 |
-
, data = $this.data('modal')
|
188 |
-
, options = $.extend({}, $.fn.modal.defaults, $this.data(), typeof option == 'object' && option)
|
189 |
-
if (!data) $this.data('modal', (data = new Modal(this, options)))
|
190 |
-
if (typeof option == 'string') data[option]()
|
191 |
-
else if (options.show) data.show()
|
192 |
-
})
|
193 |
-
}
|
194 |
-
|
195 |
-
$.fn.modal.defaults = {
|
196 |
-
backdrop: true
|
197 |
-
, keyboard: true
|
198 |
-
, show: true
|
199 |
-
}
|
200 |
-
|
201 |
-
$.fn.modal.Constructor = Modal
|
202 |
-
|
203 |
-
|
204 |
-
/* MODAL DATA-API
|
205 |
-
* ============== */
|
206 |
-
|
207 |
-
$(function () {
|
208 |
-
$('body').on('click.modal.data-api', '[data-toggle="modal"]', function ( e ) {
|
209 |
-
var $this = $(this), href
|
210 |
-
, $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
|
211 |
-
, option = $target.data('modal') ? 'toggle' : $.extend({}, $target.data(), $this.data())
|
212 |
-
|
213 |
-
e.preventDefault()
|
214 |
-
$target.modal(option)
|
215 |
-
})
|
216 |
-
})
|
217 |
-
|
218 |
-
}(window.jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/MOIP/transparente/bootstrap-tab.js
ADDED
@@ -0,0 +1,144 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* ========================================================
|
2 |
+
* bootstrap-tab.js v2.3.2
|
3 |
+
* http://twbs.github.com/bootstrap/javascript.html#tabs
|
4 |
+
* ========================================================
|
5 |
+
* Copyright 2013 Twitter, Inc.
|
6 |
+
*
|
7 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
8 |
+
* you may not use this file except in compliance with the License.
|
9 |
+
* You may obtain a copy of the License at
|
10 |
+
*
|
11 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
12 |
+
*
|
13 |
+
* Unless required by applicable law or agreed to in writing, software
|
14 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
15 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16 |
+
* See the License for the specific language governing permissions and
|
17 |
+
* limitations under the License.
|
18 |
+
* ======================================================== */
|
19 |
+
|
20 |
+
|
21 |
+
!function ($) {
|
22 |
+
|
23 |
+
"use strict"; // jshint ;_;
|
24 |
+
|
25 |
+
|
26 |
+
/* TAB CLASS DEFINITION
|
27 |
+
* ==================== */
|
28 |
+
|
29 |
+
var Tab = function (element) {
|
30 |
+
this.element = $(element)
|
31 |
+
}
|
32 |
+
|
33 |
+
Tab.prototype = {
|
34 |
+
|
35 |
+
constructor: Tab
|
36 |
+
|
37 |
+
, show: function () {
|
38 |
+
var $this = this.element
|
39 |
+
, $ul = $this.closest('ul:not(.dropdown-menu)')
|
40 |
+
, selector = $this.attr('data-target')
|
41 |
+
, previous
|
42 |
+
, $target
|
43 |
+
, e
|
44 |
+
|
45 |
+
if (!selector) {
|
46 |
+
selector = $this.attr('href')
|
47 |
+
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
48 |
+
}
|
49 |
+
|
50 |
+
if ( $this.parent('li').hasClass('active') ) return
|
51 |
+
|
52 |
+
previous = $ul.find('.active:last a')[0]
|
53 |
+
|
54 |
+
e = $.Event('show', {
|
55 |
+
relatedTarget: previous
|
56 |
+
})
|
57 |
+
|
58 |
+
$this.trigger(e)
|
59 |
+
|
60 |
+
if (e.isDefaultPrevented()) return
|
61 |
+
|
62 |
+
$target = $(selector)
|
63 |
+
|
64 |
+
this.activate($this.parent('li'), $ul)
|
65 |
+
this.activate($target, $target.parent(), function () {
|
66 |
+
$this.trigger({
|
67 |
+
type: 'shown'
|
68 |
+
, relatedTarget: previous
|
69 |
+
})
|
70 |
+
})
|
71 |
+
}
|
72 |
+
|
73 |
+
, activate: function ( element, container, callback) {
|
74 |
+
var $active = container.find('> .active')
|
75 |
+
, transition = callback
|
76 |
+
&& $.support.transition
|
77 |
+
&& $active.hasClass('fade')
|
78 |
+
|
79 |
+
function next() {
|
80 |
+
$active
|
81 |
+
.removeClass('active')
|
82 |
+
.find('> .dropdown-menu > .active')
|
83 |
+
.removeClass('active')
|
84 |
+
|
85 |
+
element.addClass('active')
|
86 |
+
|
87 |
+
if (transition) {
|
88 |
+
element[0].offsetWidth // reflow for transition
|
89 |
+
element.addClass('in')
|
90 |
+
} else {
|
91 |
+
element.removeClass('fade')
|
92 |
+
}
|
93 |
+
|
94 |
+
if ( element.parent('.dropdown-menu') ) {
|
95 |
+
element.closest('li.dropdown').addClass('active')
|
96 |
+
}
|
97 |
+
|
98 |
+
callback && callback()
|
99 |
+
}
|
100 |
+
|
101 |
+
transition ?
|
102 |
+
$active.one($.support.transition.end, next) :
|
103 |
+
next()
|
104 |
+
|
105 |
+
$active.removeClass('in')
|
106 |
+
}
|
107 |
+
}
|
108 |
+
|
109 |
+
|
110 |
+
/* TAB PLUGIN DEFINITION
|
111 |
+
* ===================== */
|
112 |
+
|
113 |
+
var old = $.fn.tab
|
114 |
+
|
115 |
+
$.fn.tab = function ( option ) {
|
116 |
+
return this.each(function () {
|
117 |
+
var $this = $(this)
|
118 |
+
, data = $this.data('tab')
|
119 |
+
if (!data) $this.data('tab', (data = new Tab(this)))
|
120 |
+
if (typeof option == 'string') data[option]()
|
121 |
+
})
|
122 |
+
}
|
123 |
+
|
124 |
+
$.fn.tab.Constructor = Tab
|
125 |
+
|
126 |
+
|
127 |
+
/* TAB NO CONFLICT
|
128 |
+
* =============== */
|
129 |
+
|
130 |
+
$.fn.tab.noConflict = function () {
|
131 |
+
$.fn.tab = old
|
132 |
+
return this
|
133 |
+
}
|
134 |
+
|
135 |
+
|
136 |
+
/* TAB DATA-API
|
137 |
+
* ============ */
|
138 |
+
|
139 |
+
$(document).on('click.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) {
|
140 |
+
e.preventDefault()
|
141 |
+
$(this).tab('show')
|
142 |
+
})
|
143 |
+
|
144 |
+
}(window.jQuery);
|
js/MOIP/transparente/bootstrap.min.js
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Bootstrap.js by @fat & @mdo
|
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,281 +1,143 @@
|
|
|
|
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 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
});
|
64 |
jQuery("#credito_expiracao_mes").change(function() {
|
65 |
-
|
66 |
var m = d.getMonth()+1;
|
67 |
var str= d.getFullYear()+'';
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
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 |
-
|
134 |
-
}
|
135 |
-
|
136 |
-
|
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,'');
|
185 |
-
jQuery(el).val( card );
|
186 |
-
var e = jQuery.Event('keydown',{
|
187 |
-
which: 37,
|
188 |
-
keyCode: 37
|
189 |
-
});
|
190 |
-
jQuery(el).trigger(e).promise().done(function(e){
|
191 |
-
key = creditcards.active !== null? creditcards.active : 1 ;
|
192 |
-
card.substr( 0 , creditcards.list[ key ].length );
|
193 |
-
var separation = new RegExp(creditcards.list[ key ].separation).exec( card ),
|
194 |
-
storage = '';
|
195 |
-
while( !separation && card.length > 1 ){
|
196 |
-
storage = card.charAt( card.length - 1 );
|
197 |
-
card = card.slice(0,-1);
|
198 |
-
separation = new RegExp(creditcards.list[ key ].separation).exec( card );
|
199 |
}
|
200 |
-
if( separation ){
|
201 |
-
var separated = [];
|
202 |
-
for( var i=0; i<separation.length; i++){
|
203 |
-
if( typeof separation[i] != 'undefined' ) separated.push( separation[i] );
|
204 |
-
}
|
205 |
-
var string = separated.slice(1).join(' ') + (storage!=''? ' '+storage : '' )
|
206 |
-
jQuery(el).val( string )
|
207 |
-
}
|
208 |
-
});
|
209 |
-
},0);
|
210 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
211 |
|
212 |
jQuery('#onestep_form :input').blur(function() {
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
});
|
217 |
jQuery('.tooltip-transparente-handler').hover(function() {
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
},function() {
|
222 |
-
|
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")){
|
@@ -285,31 +147,3 @@ function Novo(){
|
|
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 |
-
}
|
1 |
+
jQuery.noConflict();
|
2 |
jQuery('#credito_portador_telefone').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
|
3 |
jQuery('#credito_portador_cpf').mask("000.000.000-00", {placeholder: "___.___.___-__"});
|
4 |
+
jQuery('#credito_portador_nascimento').mask("99/99/9999", {placeholder: "__/__/____"});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
jQuery("#credito_expiracao_ano").change(function() {
|
7 |
var d = new Date();
|
8 |
var m = d.getMonth()+1;
|
9 |
var str= d.getFullYear()+'';
|
10 |
+
y_atual= str.match(/\d{2}$/);
|
11 |
+
var select_y = jQuery(this).val();
|
12 |
+
var select_m = jQuery("#credito_expiracao_mes").val();
|
13 |
+
|
14 |
+
if(select_y == y_atual){
|
15 |
+
if(select_m < m ){
|
16 |
+
jQuery(".alerta_data").show();
|
17 |
+
jQuery(".alerta_data").html('<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>');
|
18 |
+
jQuery("#checkout-onepage-buttom").attr("disabled","disabled");
|
19 |
+
}
|
20 |
+
else{
|
21 |
+
jQuery(".alerta_data").hide();
|
22 |
+
jQuery("#checkout-onepage-buttom").attr("disabled");
|
23 |
+
}
|
24 |
+
}
|
25 |
+
else{
|
26 |
+
jQuery(".alerta_data").hide();
|
27 |
+
jQuery("#checkout-onepage-buttom").removeAttr("disabled");
|
28 |
+
}
|
29 |
});
|
30 |
jQuery("#credito_expiracao_mes").change(function() {
|
31 |
+
var d = new Date();
|
32 |
var m = d.getMonth()+1;
|
33 |
var str= d.getFullYear()+'';
|
34 |
+
y_atual= str.match(/\d{2}$/);
|
35 |
+
var select_m = jQuery(this).val();
|
36 |
+
var select_y = jQuery("#credito_expiracao_ano").val();
|
37 |
+
if(select_y == y_atual && select_y != ""){
|
38 |
+
if(select_m < m ){
|
39 |
+
jQuery(".alerta_data").show();
|
40 |
+
jQuery(".alerta_data").html('<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>');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
}
|
42 |
+
else{
|
43 |
+
jQuery(".alerta_data").hide();
|
44 |
+
}
|
45 |
+
}
|
46 |
+
else{
|
47 |
+
jQuery(".alerta_data").hide();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
});
|
50 |
+
jQuery( "#credito_numero_moip" ).focusout(function() {
|
51 |
+
valor = jQuery( "#credito_numero_moip" ).val();
|
52 |
+
valide = moip.creditCard.isValid(valor);
|
53 |
+
if(valide){
|
54 |
+
result = moip.creditCard.cardType(valor);
|
55 |
+
jQuery("#credito_instituicao_moip").addClass('validation-passed');
|
56 |
+
jQuery("#credito_instituicao_moip").val(result.brand);
|
57 |
+
jQuery("#Moip_"+result.brand).css({
|
58 |
+
opacity: '1'
|
59 |
+
});
|
60 |
+
jQuery( "#cartao_valido" ).val('1');
|
61 |
+
} else{
|
62 |
+
jQuery("#credito_instituicao_moip").removeClass('validation-passed');
|
63 |
+
jQuery("#credito_instituicao_moip").addClass('validation-failed');
|
64 |
+
jQuery( "#cartao_valido" ).val();
|
65 |
+
}
|
66 |
+
}).blur(function() {
|
67 |
+
valor = jQuery( "#credito_numero_moip" ).val();
|
68 |
+
valide = moip.creditCard.isValid(valor);
|
69 |
+
if(valide){
|
70 |
+
result = moip.creditCard.cardType(valor);
|
71 |
+
jQuery("#credito_instituicao_moip").addClass('validation-passed');
|
72 |
+
jQuery("#credito_instituicao_moip").val(result.brand);
|
73 |
+
jQuery("#Moip_"+result.brand).show();
|
74 |
+
jQuery( "#cartao_valido" ).val('1');
|
75 |
+
} else {
|
76 |
+
jQuery("#credito_instituicao_moip").removeClass('validation-passed');
|
77 |
+
jQuery("#credito_instituicao_moip").addClass('validation-failed');
|
78 |
+
jQuery( "#cartao_valido" ).val();
|
79 |
+
}
|
80 |
+
|
81 |
+
});
|
82 |
+
|
83 |
+
|
84 |
+
jQuery( "#credito_codigo_seguranca" ).focusout(function() {
|
85 |
+
valide = moip.creditCard.isSecurityCodeValid(jQuery( "#credito_numero_moip" ).val(), jQuery( "#credito_codigo_seguranca" ).val());
|
86 |
+
if(valide){
|
87 |
+
jQuery("#credito_codigo_seguranca").addClass('validation-passed');
|
88 |
+
jQuery( "#cvv_valido" ).val('1');
|
89 |
+
} else {
|
90 |
+
jQuery("#credito_codigo_seguranca").removeClass('validation-passed');
|
91 |
+
jQuery("#credito_codigo_seguranca").addClass('validation-failed');
|
92 |
+
jQuery( "#cvv_valido" ).val();
|
93 |
+
}
|
94 |
+
jQuery(".dados-titular").show("slow");
|
95 |
+
jQuery("#formcli").show("slow");
|
96 |
+
document.getElementById('credito_portador_nome').value = document.getElementById('billing:firstname').value + ' ' + document.getElementById('billing:lastname').value;
|
97 |
+
document.getElementById('credito_portador_telefone').value = document.getElementById('billing:telephone').value;
|
98 |
+
document.getElementById('credito_portador_cpf').value = document.getElementById('billing:taxvat').value;
|
99 |
+
if (document.getElementById('billing:year').value) {
|
100 |
+
document.getElementById('credito_portador_nascimento').value = document.getElementById('billing:day').value + '/' + document.getElementById('billing:month').value + '/' + document.getElementById('billing:year').value
|
101 |
+
}
|
102 |
+
})
|
103 |
+
.blur(function() {
|
104 |
+
valide = moip.creditCard.isSecurityCodeValid(jQuery( "#credito_numero_moip" ).val(), jQuery( "#credito_codigo_seguranca" ).val());
|
105 |
+
if(valide){
|
106 |
+
jQuery("#credito_codigo_seguranca").addClass('validation-passed');
|
107 |
+
jQuery( "#cvv_valido" ).val('1');
|
108 |
+
} else {
|
109 |
+
jQuery("#credito_codigo_seguranca").removeClass('validation-passed');
|
110 |
+
jQuery("#credito_codigo_seguranca").addClass('validation-failed');
|
111 |
+
jQuery( "#cvv_valido" ).val();
|
112 |
+
}
|
113 |
+
jQuery(".dados-titular").show("slow");
|
114 |
+
jQuery("#formcli").show("slow");
|
115 |
+
document.getElementById('credito_portador_nome').value = document.getElementById('billing:firstname').value + ' ' + document.getElementById('billing:lastname').value;
|
116 |
+
document.getElementById('credito_portador_telefone').value = document.getElementById('billing:telephone').value;
|
117 |
+
document.getElementById('credito_portador_cpf').value = document.getElementById('billing:taxvat').value;
|
118 |
+
if (document.getElementById('billing:year').value) {
|
119 |
+
document.getElementById('credito_portador_nascimento').value = document.getElementById('billing:day').value + '/' + document.getElementById('billing:month').value + '/' + document.getElementById('billing:year').value
|
120 |
+
}
|
121 |
+
});
|
122 |
+
|
123 |
+
|
124 |
|
125 |
jQuery('#onestep_form :input').blur(function() {
|
126 |
+
if(jQuery(this).attr('id') != "billing:day" && jQuery(this).attr('id') != "billing:month"){
|
127 |
+
Validation.validate(jQuery(this).attr('id'));
|
128 |
+
}
|
129 |
});
|
130 |
jQuery('.tooltip-transparente-handler').hover(function() {
|
131 |
+
var hover_class = jQuery(this).parent().find('.tooltip-transparente').attr('class').split(' ').pop();
|
132 |
+
jQuery('.'+hover_class).addClass('tooltip-transparente-visible');
|
133 |
+
setTimeout(function(){jQuery('.'+hover_class).removeClass('tooltip-transparente-visible');}, 5000);
|
134 |
},function() {
|
135 |
+
jQuery('.tooltip-transparente').removeClass('tooltip-transparente-visible');
|
136 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
|
|
|
|
|
|
|
|
|
|
|
138 |
function Cofre(cofre_brand, numero_cofre){
|
139 |
jQuery("#brand_cofre").val(cofre_brand);
|
140 |
jQuery("#cofre_numero").val(numero_cofre);
|
|
|
141 |
}
|
142 |
function Novo(){
|
143 |
if(jQuery("#new_card").is(":checked")){
|
147 |
jQuery("#use_cofre").val('0');
|
148 |
}
|
149 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/MOIP/transparente/valide.js
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
/*! Moip.js - build date: 2014-02-18 */
|
2 |
+
jQuery.noConflict();
|
3 |
+
!function(a){function b(a){return a+="",a.replace(/[\s+|\.|\-]/g,"")}function c(){return this instanceof c?void 0:new c}var d=a.moip||{};a.moip=d,c.prototype={isValid:function(a){var d=c.prototype.cardType(a);if(a=b(a),d){if("Hipercard"===d.brand)return!0;for(var e=0,f=2-a.length%2;f<=a.length;f+=2)e+=parseInt(a.charAt(f-1),10);for(f=a.length%2+1;f<a.length;f+=2){var g=2*parseInt(a.charAt(f-1),10);e+=10>g?g:g-9}return e%10===0?!0:!1}return!1},cardType:function(a,c){var d,e,f={Visa:/^4\d{3}-?\d{4}-?\d{4}-?\d{4}$/,Mastercard:/^5[1-5]\d{2}-?\d{4}-?\d{4}-?\d{4}$/,AmericanExpress:/^3[4,7]\d{13}$/,Dinners:/^3[0,6,8]\d{12}$/,Hipercard:/^(606282\d{10}(\d{3})?)|(3841\d{15})$/},g={Visa:/^4\d{3}-?\d{2}/,Mastercard:/^5[1-5]\d{2}-?\d{2}/,AmericanExpress:/^3[4,7]\d{2}/,Dinners:/^3(?:0[0-5]|[68][0-9])+/,Hipercard:/^606282|3841\d{2}/};a=b(a),c&&(f=g);for(d in f)f.hasOwnProperty(d)&&a.match(f[d])&&(e={brand:d});return e},isSecurityCodeValid:function(a,b){var c,e=d.creditCard.cardType(a);c="AmericanExpress"===e.brand?4:3;var f=new RegExp("[0-9]{"+c+"}");return b.length===c&&f.test(b)},isExpiryDateValid:function(a,b){return a=parseInt(a,10),b=parseInt(b,10),1>a||a>12?!1:2!==(b+"").length&&4!==(b+"").length?!1:(2===(b+"").length&&(b=b>80?"19"+b:"20"+b),1e3>b||b>=3e3?!1:!c.prototype.isExpiredDate(a,b))},isExpiredDate:function(a,b){var c=new Date,d=("0"+(c.getMonth()+1)).slice(-2),e=c.getFullYear();if(a=("0"+a).slice(-2),2===b.toString().length){if(b>80)return!0;b="20"+b}var f=e+d,g=b+a;return parseInt(g,10)<parseInt(f,10)}},d.creditCard=c()}(window),function(a){var b=a.moip||{};a.moip=b,b.calculator={pricing:function(a){return this.buildJson(a)},buildJson:function(a){var b,c=[],d=[],e=[],f=[];if(b=this._calculateTransactionTax(a.amount,a.transaction_percentage,a.fixed),void 0!==a.antecipation_percentage&&void 0!==a.floating&&void 0!==a.installment){for(var g=0;11>=g;g++)c[g]=this._calculateInstallmentValue(a.amount,g+1),d[g]=this._calculateAntecipationPercentage(b,a,g,a.amount),e[g]=this._calculateTotalTax(d[g],b),f[g]=this._calculateLiquidValue(a.amount,e[g]);return{amount:a.amount,transaction_tax:b,antecipation_percentage:d,total_tax:e,liquid_value:f,installment_value:c}}return f=this._calculateLiquidValue(a.amount,b),{amount:a.amount,transaction_tax:b,liquid_value:f}},pricingWithInterest:function(a){for(var b=[],c=[],d=[],e=[],f=[],g=[],h=[],i=1;12>=i;i++)b[i-1]=this._calculateInterestRate(a.amount,a.interest_rate,i),c[i-1]=this._calculateAmount(b[i-1],i),d[i-1]=this._calculateTransactionTax(c[i-1],a.transaction_percentage,a.fixed),e[i-1]=this._calculateAntecipationPercentage(d[i-1],a,i-1,c[i-1]),f[i-1]=this._calculateAntecipationPercentageFromAmount(c[i-1],e[i-1]),g[i-1]=this._calculateTotalTax(e[i-1],d[i-1]),h[i-1]=this._calculateLiquidValue(c[i-1],g[i-1]);return{amount:c,transaction_tax:d,antecipation_percentage:f,total_tax:g,liquid_value:h,installment_value:b}},_calculateAntecipationPercentageFromAmount:function(a,b){return parseFloat(100*b/(a/100)).toFixed(2)},_calculateTransactionTax:function(a,b,c){return parseFloat(((a*(b/100)+c)/100).toFixed(2))},_calculateAntecipationPercentage:function(a,b,c,d){return parseFloat((parseFloat(b.antecipation_percentage/100/30*(30+15*c-b.floating))*parseFloat(d/100-a)).toFixed(2))},_calculateTotalTax:function(a,b){return parseFloat((a+b).toFixed(2))},_calculateLiquidValue:function(a,b){return parseFloat((a/100-parseFloat(b)).toFixed(2))},_calculateInstallmentValue:function(a,b){return parseFloat((a/b/100).toFixed(2))},_calculateInterestRate:function(a,b,c){return parseFloat(1===c?a/100:(this._coefficient(b,c)*(a/100)).toFixed(2))},_calculateAmount:function(a,b){return parseFloat(100*(a*b).toFixed(2))},_coefficient:function(a,b){return parseFloat((a/100/(1-1/Math.pow(a/100+1,b))).toFixed(10))}}}(window);
|
js/MOIP/validacao.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
|
2 |
function validaCPF(cpf,pType){var cpf_filtrado="",valor_1=" ",valor_2=" ",ch="";var valido=false;for(i=0;i<cpf.length;i++){ch=cpf.substring(i,i+1);if(ch>="0"&&ch<="9"){cpf_filtrado=cpf_filtrado.toString()+ch.toString()
|
3 |
valor_1=valor_2;valor_2=ch;}
|
4 |
if((valor_1!=" ")&&(!valido))valido=!(valor_1==valor_2);}
|
1 |
+
jQuery.noConflict();
|
2 |
function validaCPF(cpf,pType){var cpf_filtrado="",valor_1=" ",valor_2=" ",ch="";var valido=false;for(i=0;i<cpf.length;i++){ch=cpf.substring(i,i+1);if(ch>="0"&&ch<="9"){cpf_filtrado=cpf_filtrado.toString()+ch.toString()
|
3 |
valor_1=valor_2;valor_2=ch;}
|
4 |
if((valor_1!=" ")&&(!valido))valido=!(valor_1==valor_2);}
|
media/MOIP/all/logo.png
DELETED
Binary file
|
package.xml
CHANGED
@@ -1,43 +1,25 @@
|
|
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">
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>
|
10 |
-
|
11 |
-
Checkout On Page by Moip S/A</summary>
|
12 |
-
<description>Moip and Onestepcheckout
|
13 |
-
Check out the Features:
|
14 |

|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
Select to receive payment in installments or cash payment
|
26 |
-
Select the payment types you want to use
|
27 |
-
Select the module layout from admin
|
28 |
-
Change payment icons on admin
|
29 |
-
Block payments with boleto for low stock products (optional)
|
30 |
-
Integration with Google analytics for sales analysis
|
31 |
-
Repurchase by just inserting the payment informations
|
32 |
-
Repayment, if you customer input wrong date he can try repaying it without have to make a new purchase 
|
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>
|
43 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>o2ti_moip</name>
|
4 |
+
<version>1.3.11</version>
|
5 |
<stability>stable</stability>
|
6 |
+
<license uri="http://moip.com/licensa_checkout_transparente.txt">Exclusivo para clientes Moip Pagamentos S/A</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>Módulo oficial do Moip Pagamentos S/A.</summary>
|
10 |
+
<description>Moip transparente e Moip Carrinho.
|
|
|
|
|
|
|
11 |

|
12 |
+
Solução integrada para vendas via moip. gratuito e exclusivo para clientes Moip Pagamentos S/A.
|
13 |
+

|
14 |
+

|
15 |
+
</description>
|
16 |
+
<notes>Cron para Cancelamento de pagamentos não autorizados após tempo de vencimento da transação.
|
17 |
+

|
18 |
+
Alterações importantes nos códigos html, php, css, js e inclusão de arquivos scss.</notes>
|
19 |
+
<authors><author><name>MOIP</name><user>moip</user><email>contato@o2ti.com</email></author></authors>
|
20 |
+
<date>2015-03-30</date>
|
21 |
+
<time>19:13:25</time>
|
22 |
+
<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"><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><dir name="System"><dir name="Config"><file name="Editor.php" hash="620ffe2b11d51c059aae85d069d17dd9"/></dir></dir></dir><dir name="Checkout"><dir name="Onepage"><dir name="Billing"><file name="Sortbilling.php" hash="aac00cf619be021d627bc6d6e0632247"/></dir><file name="Billing.php" hash="9779d41d79ecb6231b5ec00248d13db3"/><dir name="Review"><file name="Info.php" hash="8585d5415e0589c9ffc53c160921cdb0"/><file name="Options.php" hash="7e3a4f53f4d687536ae3ff80728c0cc4"/></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="Optionaddfield.php" hash="574f6f8d27245ab4f0d0362372f5082d"/><file name="Optionhidefield.php" hash="0cf65ef82933d93293eaada3125c3b1d"/><file name="Pagelayout.php" hash="7d1ec4b8deaadb03878ce956f6300838"/><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="f9d9ffa99dd8a64903995969e2b427fd"/><file name="TestController.php" hash="0ee82be0e1607d92fb4afa2bc6886b57"/></dir><dir name="etc"><file name="config.xml" hash="dc4fb1e2279a901776033132479b7d6f"/><file name="system.xml" hash="1eabdb77e2aaa1f71d9fb95a163f748d"/></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="614fb83f768d8fd213f06eb0ef81c3d9"/><dir name="Product"><file name="List.php" hash="881a94bac6f0dfd100c39c1416c54b07"/><file name="View.php" hash="54f00539a0ce45c0aecdbd05d3a0323d"/></dir><dir name="Standard"><file name="CartSave.php" hash="271feee42c0ea2b86dca25ccc780b116"/><file name="Form.php" hash="90d28a32cb083eef9c4d7df63a5035d7"/><file name="Novaforma.php" hash="bb3d5b10530e42aaaf0512b1256ef520"/><file name="Redirect.php" hash="31ea8012c7558ede777c58c6048804ce"/><file name="SuccessDetails.php" hash="38bacf81b6bb7197812d382eb30c2849"/></dir></dir><dir name="Helper"><file name="Data.php" hash="e9499ad4765cdc49dd2700e88f37beb8"/></dir><dir name="Model"><file name="Api.php" hash="f3e3ea7e491e53a46a25f71426247a0e"/><dir name="Mysql4"><file name="Collection.php" hash="97a5f80b4f89f83884481284785e2eeb"/><file name="Write.php" hash="2f68ff14daed62d3af9992b949f38733"/></dir><file name="Observer.php" hash="8b3f3ef1db6589de3e143e6b757140eb"/><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="5dffd2ae6c71f4e23df433aa24edafe9"/><file name="Write.php" hash="2fa2858e62c781d368e9f53faa578dc5"/></dir><dir name="controllers"><file name="IndexController.php" hash="e7dbfec5101de06d44fd7f6c2339b4f6"/><file name="StandardController.php" hash="3025d13a2219e641ba82fe77df352183"/></dir><dir name="etc"><file name="adminhtml.xml" hash="1a54627d1dd35f685aa9fa2068ad7336"/><file name="config.xml" hash="4f7d75508f567fd2c65fb3e5c50a9762"/><file name="system.xml" hash="97d13266b218925ae2e3b02fd4aab64f"/></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="3c7c51dbc76c4b774698ba26ec7addaa"/><file name="moip_onestepcheckout.xml" hash="df63e627dc8fee0e31ce10315d176c37"/></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="7828ce8d385c78b8b8f89071195bc80d"/></dir><file name="billing.phtml" hash="ce3f9d48714df5f06a233706e2daf55e"/><file name="correio.phtml" hash="461b88fcbf6adffc4f23c5905932bafa"/><file name="coupon.phtml" hash="095411bee866c29e48e8775deabbd189"/><file name="forgotpassword.phtml" hash="fb8e27e3a2ae2f822ab36b05eca9eebd"/><file name="local.xml" hash="08c7ce351c502056fb9ee3a14a9b065a"/><file name="login-pre.phtml" hash="1785d6f363e53b0397ee3115bb65936c"/><file name="login.phtml" hash="ba775590b974792e95d14feebf715c59"/><dir name="payment"><file name="methods.phtml" hash="77924396f22ee880486b46529fb240e2"/></dir><file name="payment.phtml" hash="32875c3fbf14ec7bd7083ff9199377b5"/><dir name="review"><file name="button.phtml" hash="4d5c7c5a2d70f85ec324e79c7e81946b"/><file name="info.phtml" hash="485693ae4db30185f1705fb2fae128db"/><file name="item.phtml" hash="153d560f7aefb25831383cd32658839b"/><dir name="options"><file name="additional.phtml" hash="a915a8c848316dbe901c39f41bcfbdd2"/></dir><file name="options.phtml" hash="35d426f28c2b87a853f811ab7a18e544"/><file name="totals.phtml" hash="8494e003315689f579882bb61fe52be5"/></dir><file name="review.phtml" hash="df4d0aee4235dbaa99f6b2882047d11a"/><dir name="shipping"><file name="shipping_form.phtml" hash="054aac0830f442ef4caef98c19d94561"/></dir><file name="shipping.phtml" hash="454b3626e165c96dd60e03306180012e"/><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="f01a012fe52983e578b20f2c260ab0a1"/><file name="emptyupdate.phtml" hash="7bf34446254428a5c42740731127b435"/><file name="onepage.phtml" hash="a289ca7ecdaf73c6bc016623e7c76834"/><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="product"><dir name="view"><file name="parcelas.phtml" hash="919a1f3f97aba2c485552ba215f203cf"/></dir></dir><dir name="transparente"><file name="Novaforma.phtml" hash="49d046daa42bae37c1c5e80ff88c3e0d"/><file name="SuccessDetails.phtml" hash="831fdcda593d9203bd341b92488bdfc4"/><file name="boleto.phtml" hash="dd58d35e9f176c840316aad36b2e0417"/><file name="cartao.phtml" hash="e631821a006dfa47ee725669eb554c41"/><file name="cartoes_my_account.phtml" hash="82db91eba146f4905ce59e8d28be36a6"/><file name="emptyupdate.phtml" hash="5504d0197f33a3db19ae9f75b5a43b86"/><file name="horizontal_form.phtml" hash="ebac76d67a728bfc1acc5abf823d446f"/><file name="info.phtml" hash="efa95f1418ba35126dd299d8a90ff805"/><file name="layout_boleto.phtml" hash="8d91c7873e692648a7c1d9bd29091793"/><file name="redirect.phtml" hash="431fa80f574aebd84e2d75cdfabc73f5"/><file name="refaz.phtml" hash="7e7109f8e64378b8af216ecc4b8e1f6d"/><file name="script.phtml" hash="bf850650f313a2fd22ba10c78491f653"/><file name="transferencia.phtml" hash="33388aebced379f92f4384fef00462cc"/><file name="vertical_form.phtml" hash="f6aba6514cf03c33368d5e86f29868a1"/></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"/><dir name="info"><file name="pdf.phtml" hash="4b61a33fa3736e6c461cf4e9fd983398"/></dir><file name="info.phtml" hash="933f6e90f57a809def28b273d8d43247"/><file name="redirect.phtml" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></dir><dir name="layout"><file name="moip_onestepcheckout.xml" hash="5ec9376d582ab65ded306ebcdacb938d"/></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"/><file name="bootstrap-modal.css" hash="144a37e1f5d24a32c2980a41b6ded68c"/><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="d41d8cd98f00b204e9800998ecf8427e"/><file name="fancy_shadow_se.png" hash="a8afd5a008884380ee712d177105268f"/><file name="fancy_shadow_sw.png" hash="d41d8cd98f00b204e9800998ecf8427e"/><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="1cf18e7d2bd273a9551a1cf7b163b828"/></dir><dir name="images"><file name="01.png" hash="455f733819f23406f911cb6266174f3b"/><file name="02.png" hash="170ab9af7172d4be155f78da352636b4"/><file name="03.png" hash="ca4e0298a329e4864ff8526b2f030a22"/><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="a80724f9f6e84295c937eba66997d104"/><file name="bkg_form-search.gif" hash="2ca36eb80ea705e063409153f3821f78"/><file name="error-icon.jpg" hash="0a0fede5d57676a58d45ec359592f1a2"/><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="5e0b89f6b4a364890ebdd563bebb98f8"/><file name="validation_advice_bg.gif" hash="b85432906de8985a8b14eeb2dc652d3c"/></dir></dir><dir name="transparente"><dir name="css"><file name="bootstrap-modal.css" hash="144a37e1f5d24a32c2980a41b6ded68c"/><file name="bootstrap-tabs.css" hash="0d37f2e43f0bac781c40bb5ce86fd31b"/><file name="bootstrap.css" hash="c53e3be9ad1129f7a2637dcbf57ab936"/><file name="cartao_save.css" hash="eb154654514b7e1445a915ffa28802e6"/><file name="horizontal_form.css" hash="54c797c74a37786e22420df5b327efde"/><file name="prettify.css" hash="ecd4a5d6c0cbee10b168f6aa000c64ea"/><file name="product_view.css" hash="41c15cae3b8dd93b0c29fb80e555e238"/><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="mageweb"><dir name="js"><dir name="MOIP"><file name="bootstrap-modal.js" hash="33eee22cac655155b91eadd1e7b6e417"/><file name="jquery.js" hash="f8e2833ce2f57ec673b178be7eefbd82"/><file name="jquery.mask.min.js" hash="595577f781056bce7b8b34cabfaa4385"/><file name="jquery_noconflict.js" hash="f0918bfc32b0859c3142b663a609c1bd"/><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="e7bc16b39965ce9422320afa85dc25bf"/><dir name="transparente"><file name="bootstrap-tab.js" hash="c8389a839385762a509a71057ee05175"/><file name="checkout.js" hash="8a930b060861acaf98f162b1e64ec15c"/><file name="valide.js" hash="726fc2a6f0fbb5a95d3226330e7b5911"/></dir><file name="validacao.js" hash="d55733f1f339a55f033b1f4716a8d0e2"/></dir></dir></target></contents>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
<compatible/>
|
24 |
+
<dependencies><required><php><min>5.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>
|
25 |
</package>
|
skin/frontend/base/default/MOIP/onestepcheckout/css/bootstrap-modal.css
ADDED
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
.modal-open {
|
3 |
+
overflow: hidden;
|
4 |
+
}
|
5 |
+
.modal {
|
6 |
+
position: fixed;
|
7 |
+
top: 0;
|
8 |
+
right: 0;
|
9 |
+
bottom: 0;
|
10 |
+
left: 0;
|
11 |
+
z-index: 1050;
|
12 |
+
display: none;
|
13 |
+
overflow: auto;
|
14 |
+
overflow-y: scroll;
|
15 |
+
-webkit-overflow-scrolling: touch;
|
16 |
+
outline: 0;
|
17 |
+
}
|
18 |
+
.modal.fade .modal-dialog {
|
19 |
+
-webkit-transition: -webkit-transform .3s ease-out;
|
20 |
+
-moz-transition: -moz-transform .3s ease-out;
|
21 |
+
-o-transition: -o-transform .3s ease-out;
|
22 |
+
transition: transform .3s ease-out;
|
23 |
+
-webkit-transform: translate(0, -25%);
|
24 |
+
-ms-transform: translate(0, -25%);
|
25 |
+
transform: translate(0, -25%);
|
26 |
+
}
|
27 |
+
.modal.in .modal-dialog {
|
28 |
+
-webkit-transform: translate(0, 0);
|
29 |
+
-ms-transform: translate(0, 0);
|
30 |
+
transform: translate(0, 0);
|
31 |
+
}
|
32 |
+
.modal-dialog {
|
33 |
+
position: relative;
|
34 |
+
width: auto;
|
35 |
+
margin: 10px;
|
36 |
+
}
|
37 |
+
.modal-content {
|
38 |
+
position: relative;
|
39 |
+
background-color: #fff;
|
40 |
+
background-clip: padding-box;
|
41 |
+
border: 1px solid #999;
|
42 |
+
border: 1px solid rgba(0, 0, 0, .2);
|
43 |
+
border-radius: 6px;
|
44 |
+
outline: none;
|
45 |
+
-webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
|
46 |
+
box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
|
47 |
+
}
|
48 |
+
.modal-backdrop {
|
49 |
+
position: fixed;
|
50 |
+
top: 0;
|
51 |
+
right: 0;
|
52 |
+
bottom: 0;
|
53 |
+
left: 0;
|
54 |
+
z-index: 1040;
|
55 |
+
background-color: #000;
|
56 |
+
}
|
57 |
+
.modal-backdrop.fade {
|
58 |
+
filter: alpha(opacity=0);
|
59 |
+
opacity: 0;
|
60 |
+
}
|
61 |
+
.modal-backdrop.in {
|
62 |
+
filter: alpha(opacity=50);
|
63 |
+
opacity: .5;
|
64 |
+
}
|
65 |
+
.modal-header {
|
66 |
+
min-height: 16.428571429px;
|
67 |
+
padding: 15px;
|
68 |
+
border-bottom: 1px solid #e5e5e5;
|
69 |
+
}
|
70 |
+
.modal-header .close {
|
71 |
+
margin-top: -2px;
|
72 |
+
}
|
73 |
+
.modal-title {
|
74 |
+
margin: 0;
|
75 |
+
line-height: 1.428571429;
|
76 |
+
}
|
77 |
+
.modal-body {
|
78 |
+
position: relative;
|
79 |
+
padding: 20px;
|
80 |
+
}
|
81 |
+
.modal-footer {
|
82 |
+
padding: 19px 20px 20px;
|
83 |
+
margin-top: 15px;
|
84 |
+
text-align: right;
|
85 |
+
border-top: 1px solid #e5e5e5;
|
86 |
+
}
|
87 |
+
.modal-footer .btn + .btn {
|
88 |
+
margin-bottom: 0;
|
89 |
+
margin-left: 5px;
|
90 |
+
}
|
91 |
+
.modal-footer .btn-group .btn + .btn {
|
92 |
+
margin-left: -1px;
|
93 |
+
}
|
94 |
+
.modal-footer .btn-block + .btn-block {
|
95 |
+
margin-left: 0;
|
96 |
+
}
|
97 |
+
@media (min-width: 768px) {
|
98 |
+
.modal-dialog {
|
99 |
+
width: 600px;
|
100 |
+
margin: 30px auto;
|
101 |
+
}
|
102 |
+
.modal-content {
|
103 |
+
-webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
|
104 |
+
box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
|
105 |
+
}
|
106 |
+
.modal-sm {
|
107 |
+
width: 300px;
|
108 |
+
}
|
109 |
+
.modal-lg {
|
110 |
+
width: 900px;
|
111 |
+
}
|
112 |
+
}
|
skin/frontend/base/default/MOIP/onestepcheckout/css/images/fancy_shadow_s.png
CHANGED
Binary file
|
skin/frontend/base/default/MOIP/onestepcheckout/css/images/fancy_shadow_sw.png
CHANGED
Binary file
|
skin/frontend/base/default/MOIP/onestepcheckout/css/onestepcheckout.css
CHANGED
@@ -1,31 +1,6 @@
|
|
1 |
-
/*
|
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-
|
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;
|
27 |
-
width: 65%;
|
28 |
-
}
|
29 |
.onestepcheckout-numbers { border-radius: 6px 6px 0 0;background-repeat:no-repeat;float: left;height: 35px;margin-right: 4px;width: 40px;background-position: 14px 6px;font-weight:normal; padding-left:10px; padding-top:3px;}
|
30 |
.onestepcheckout-numbers-1{background-image:url("../images/01.png") !important;background-repeat: no-repeat !important;}
|
31 |
.onestepcheckout-numbers-2{background-image:url("../images/02.png") !important;background-repeat: no-repeat !important;}
|
@@ -33,8 +8,75 @@ width: 65%;
|
|
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;}
|
@@ -50,133 +92,86 @@ fieldset {border: 0;clear: both;}
|
|
50 |
.form-list .input-box input[type="radio"] { width: auto !important; float: left; clear: none; margin-right: 5px; }
|
51 |
.dados-pj { display: none }
|
52 |
.customer-dob .dob-day,
|
53 |
-
.customer-dob .dob-month { margin: 0; max-width:
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
.
|
60 |
-
|
61 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
.sp-methods .form-list { padding-left: 0px !important; }
|
63 |
-
#
|
64 |
-
.
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
h2{line-height: 1.50;}
|
76 |
-
.onestepcheckout-numbers{background-position: 14px 6px !important;}
|
77 |
|
78 |
-
.dados-pj, .dados-titular {
|
79 |
-
display: none;
|
80 |
-
|
81 |
-
.erro_frete, .erro_frete_sem_cep {
|
82 |
-
display: none;
|
83 |
-
}
|
84 |
|
85 |
|
86 |
-
.moip-osc-page-tittle {
|
87 |
-
margin-top: 43px;
|
88 |
-
line-height: 10px;
|
89 |
-
}
|
90 |
|
91 |
-
.moip-osc-column-2.span8.grid12-8 {
|
92 |
-
width: 64.67%;
|
93 |
-
margin: 0;
|
94 |
-
margin-left: 1%;
|
95 |
-
}
|
96 |
-
.erro_cep{
|
97 |
-
padding: 0 10px;
|
98 |
-
font-weight: bold;
|
99 |
-
}
|
100 |
-
.com_cep {
|
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 |
-
}
|
120 |
|
121 |
-
#inlinecorreio {
|
122 |
-
text-align: left;
|
123 |
-
}
|
124 |
-
button#correios_end {
|
125 |
-
float: right;
|
126 |
-
}
|
127 |
-
div#resultado {
|
128 |
-
float: left;
|
129 |
-
clear: both;
|
130 |
-
width: 100%;
|
131 |
-
}
|
132 |
-
.dados_result_end {
|
133 |
-
float: left;
|
134 |
-
width: 80%;
|
135 |
-
padding-left: 4%;
|
136 |
-
border-bottom: 2px solid #F0F0F0;
|
137 |
-
}
|
138 |
-
.seletec_result_end {
|
139 |
-
float: left;
|
140 |
-
width: 4%;
|
141 |
-
padding: 6%;
|
142 |
-
background: #F0F0F0;
|
143 |
-
border-bottom: 2px solid #F0F0F0;
|
144 |
-
}
|
145 |
-
span.rua, span.cidade, span.cep {
|
146 |
-
width: 100%;
|
147 |
-
float: left;
|
148 |
-
}
|
149 |
|
150 |
-
#buscar_nos_correios {
|
151 |
-
float: left;
|
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 |
|
@@ -209,3 +204,107 @@ margin: 3px 0 0px !important;
|
|
209 |
width: 25%;
|
210 |
float: none;
|
211 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* cabeçalho */
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
.moip-osc-checkoutcontainer .moip-osc-block-title h3 { margin: 0; padding: 5px; line-height: 1.50; }
|
3 |
+
.moip-osc-page-tittle {margin-top: 43px;line-height: 10px;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
.onestepcheckout-numbers { border-radius: 6px 6px 0 0;background-repeat:no-repeat;float: left;height: 35px;margin-right: 4px;width: 40px;background-position: 14px 6px;font-weight:normal; padding-left:10px; padding-top:3px;}
|
5 |
.onestepcheckout-numbers-1{background-image:url("../images/01.png") !important;background-repeat: no-repeat !important;}
|
6 |
.onestepcheckout-numbers-2{background-image:url("../images/02.png") !important;background-repeat: no-repeat !important;}
|
8 |
.onestepcheckout-numbers-4{background-image:url("../images/04.png") !important;background-repeat: no-repeat !important;}
|
9 |
.onestepcheckout-numbers-5{background-image:url("../images/05.png") !important;background-repeat: no-repeat !important;}
|
10 |
.onestepcheckout-numbers-6{background-image:url("../images/bkg-step-review.png") !important;background-repeat: no-repeat !important;}
|
11 |
+
.onestepcheckout-numbers{background-position: 14px 6px !important;}
|
12 |
+
|
13 |
+
/* bloco de conteudo para todos os passos */
|
14 |
+
.moip-osc-block-content {
|
15 |
+
padding: 15px;
|
16 |
+
border: 1px solid;
|
17 |
+
border-radius: 0 0 5px 5px;
|
18 |
+
margin-bottom: 20px;
|
19 |
+
}
|
20 |
+
#review_collum > .moip-osc-block-content {
|
21 |
+
padding: 0;
|
22 |
+
}
|
23 |
+
/* valores para grids 12 */
|
24 |
+
.grid12-1 { width:6.33%; }
|
25 |
+
.grid12-2 { width:14.66%; }
|
26 |
+
.grid12-3 { width:23%; }
|
27 |
+
.grid12-4 { width:31.33%; }
|
28 |
+
.grid12-5 { width:39.67%; }
|
29 |
+
.grid12-6 { width:48%; }
|
30 |
+
.grid12-7 { width:56.33%; }
|
31 |
+
.grid12-8 { width:64.67%; }
|
32 |
+
.grid12-9 { width:73%; }
|
33 |
+
.grid12-10 { width:81.33%; }
|
34 |
+
.grid12-11 { width:89.67%; }
|
35 |
+
.grid12-12,
|
36 |
+
.grid-full { width:98%; }
|
37 |
+
.grid12-1, .grid12-2, .grid12-3, .grid12-4, .grid12-5, .grid12-6, .grid12-7, .grid12-8, .grid12-9, .grid12-10, .grid12-11, .grid12-12, .grid-full, .grid-col2-sidebar, .grid-col2-main {
|
38 |
+
/* position: relative; */
|
39 |
+
display: inline;
|
40 |
+
float: left;
|
41 |
+
margin-left: 1%;
|
42 |
+
margin-right: 1%;
|
43 |
+
}
|
44 |
+
|
45 |
+
@media only screen and (max-width:759px) {
|
46 |
+
/**
|
47 |
+
* Fusion Grid Layout - Mobile layout, 12 column grid, 15px gutters
|
48 |
+
* -------------------------------------------------------------------- */
|
49 |
+
/* grid widths */
|
50 |
+
body .grid12-1,
|
51 |
+
body .grid12-2,
|
52 |
+
body .grid12-3,
|
53 |
+
body .grid12-4,
|
54 |
+
body .grid12-5,
|
55 |
+
body .grid12-6,
|
56 |
+
body .grid12-7,
|
57 |
+
body .grid12-8,
|
58 |
+
body .grid12-9,
|
59 |
+
body .grid12-10,
|
60 |
+
body .grid12-11,
|
61 |
+
body .grid12-12 {
|
62 |
+
clear: both;
|
63 |
+
width: 100%;
|
64 |
+
}
|
65 |
+
|
66 |
+
}
|
67 |
+
.force-nodisplay{
|
68 |
+
display: none !important;
|
69 |
+
}
|
70 |
input.validation-passed{background-image:url("../images/passed-icon.jpg") !important;background-repeat: no-repeat !important; background-position: right !important;}
|
71 |
input.validation-failed{background-image:url("../images/error-icon.jpg") !important;background-repeat: no-repeat !important; background-position: right !important;}
|
72 |
+
input.radio.validation-failed {-webkit-appearance: none;background: none !important;border-radius: 100%;border: 4px solid #FF0000 !important;display: inline-block;height: 10px;margin-bottom: 0;position: relative;padding: 5px;width: 12px;}
|
73 |
+
#advice-validate-one-required-by-name-debito_instituicao, #advice-validate-one-required-by-name-cartao_salvo {position: relative;min-width: 191px;}
|
74 |
+
|
75 |
+
|
76 |
+
textarea#gift-message-whole-message {width: 250px;}
|
77 |
+
.checkbox {z-index: 9;}
|
78 |
+
|
79 |
+
|
80 |
|
81 |
/* form list */
|
82 |
fieldset {border: 0;clear: both;}
|
92 |
.form-list .input-box input[type="radio"] { width: auto !important; float: left; clear: none; margin-right: 5px; }
|
93 |
.dados-pj { display: none }
|
94 |
.customer-dob .dob-day,
|
95 |
+
.customer-dob .dob-month { margin: 0; max-width: 35px !important; min-width: 35px !important; }
|
96 |
+
.form-list .wide {float: left;clear: both;width: 102%;}
|
97 |
+
.form-list .customer-dob .dob-year {width: 52px !important;margin: 0 !important;padding: 0 !important;float: left;min-width: 50px !important;}
|
98 |
+
.form-list .customer-dob .dob-day, .form-list .customer-dob .dob-month {width: 35px !important;padding: 0 !important;margin-right: 10px !important;}
|
99 |
+
.form-list .control label {float: none;width: 100% !important;}
|
100 |
+
|
101 |
+
ul.erros_cadastro_valores {text-align: left;color: red;}
|
102 |
+
h2.endereco_title, h3.como_comprar_title, h3.dados_pessoais {clear: both;}
|
103 |
+
|
104 |
+
|
105 |
+
#loading-mask {
|
106 |
+
position: fixed;
|
107 |
+
top: 0;
|
108 |
+
left: 0;
|
109 |
+
width: 100%;
|
110 |
+
height: 100%;
|
111 |
+
background: rgba(255, 255, 255, 0.5);
|
112 |
+
left: 0px;
|
113 |
+
min-height: 710px;
|
114 |
+
display: none;
|
115 |
+
top: 0px;
|
116 |
+
}
|
117 |
+
#loading-mask #loading_mask_loader {
|
118 |
+
background: none repeat scroll 0 0 #fff;
|
119 |
+
border: 1px solid #ccc;
|
120 |
+
box-shadow: 0 0 5px 3px rgba(0, 0, 0, 0.2);
|
121 |
+
box-sizing: border-box;
|
122 |
+
display: block;
|
123 |
+
left: 42%;
|
124 |
+
line-height: 20px;
|
125 |
+
margin-top: 0;
|
126 |
+
padding: 20px;
|
127 |
+
position: absolute;
|
128 |
+
text-align: center;
|
129 |
+
top: 32%;
|
130 |
+
width: 300px;
|
131 |
+
right: 50%;
|
132 |
+
}
|
133 |
+
img.loading_img {margin: 0 auto;}
|
134 |
+
img.Loading {
|
135 |
+
margin: 0 auto;
|
136 |
+
}
|
137 |
+
button.no-button {
|
138 |
+
padding: 0;
|
139 |
+
background: 0;
|
140 |
+
border: 0;
|
141 |
+
text-decoration: underline;
|
142 |
+
cursor: pointer;
|
143 |
+
}
|
144 |
+
.update_shipping,.update_payment { width: 100%; text-align: center; font-size: 14px; min-height: 115px; padding-top: 50px; }
|
145 |
.sp-methods .form-list { padding-left: 0px !important; }
|
146 |
+
#shipping_show {margin-top: 10px !important;float: left}
|
147 |
+
.erro_cep{padding: 0 10px;font-weight: bold;}
|
148 |
+
.com_cep {color: red;padding: 10px;}
|
149 |
+
|
150 |
+
|
151 |
+
|
152 |
+
|
153 |
+
|
154 |
+
|
155 |
+
|
156 |
+
|
157 |
+
|
158 |
+
|
159 |
+
.checkout-onepage-index .col-main {width: 100% !important;}
|
160 |
+
|
161 |
+
|
162 |
+
label.label_pf_pj {float: none;}
|
163 |
+
|
164 |
h2{line-height: 1.50;}
|
|
|
165 |
|
166 |
+
.dados-pj, .dados-titular {display: none;}
|
167 |
+
.erro_frete, .erro_frete_sem_cep {display: none;}
|
168 |
+
|
|
|
|
|
|
|
169 |
|
170 |
|
|
|
|
|
|
|
|
|
171 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
173 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
|
176 |
|
177 |
|
204 |
width: 25%;
|
205 |
float: none;
|
206 |
}
|
207 |
+
.moip-osc-checkoutcontainer .moip-osc-block-title h3 {
|
208 |
+
margin: 0;
|
209 |
+
padding: 5px;
|
210 |
+
line-height: 1.5;
|
211 |
+
font-size: 16px;
|
212 |
+
}
|
213 |
+
|
214 |
+
|
215 |
+
form-list .control label, .sp-methods dt label, #checkout-shipping-method-load .sp-methods dd label, #co-shipping-method-form .sp-methods dd label, .product-options ul.options-list label {
|
216 |
+
width: 100% !important;
|
217 |
+
|
218 |
+
}
|
219 |
+
.alinha_form {
|
220 |
+
min-height: 108px;
|
221 |
+
}
|
222 |
+
#criar_loga {
|
223 |
+
min-height: 255px;
|
224 |
+
height: 255px;
|
225 |
+
}
|
226 |
+
.discount-form {
|
227 |
+
margin-top: 15px;
|
228 |
+
padding-top: 15px;
|
229 |
+
}
|
230 |
+
|
231 |
+
input[type="checkbox"], input[type="radio"] {
|
232 |
+
float: left;
|
233 |
+
margin: 0;
|
234 |
+
margin-right: 10px;
|
235 |
+
}
|
236 |
+
|
237 |
+
.btn-update-qty {cursor: pointer; float: right;}
|
238 |
+
|
239 |
+
/*
|
240 |
+
|
241 |
+
input[name="billing[firstname]"]::-webkit-input-placeholder::before { font-family: FontAwesome; content:"\f007 "; color: #000 }
|
242 |
+
input[name="billing[firstname]"]::-moz-placeholder::before { font-family: FontAwesome; content:"\f007 "; color: #000 }
|
243 |
+
input[name="billing[firstname]"]:-ms-input-placeholder::before { font-family: FontAwesome; content:"\f007 "; color: #000 }
|
244 |
+
input[name="billing[firstname]"]::input:-moz-placeholder::before { font-family: FontAwesome; content:"\f007 "; color: #000 }
|
245 |
+
|
246 |
+
input[name="billing[lastname]"]::-webkit-input-placeholder::before { font-family: FontAwesome; content:"\f007 "; color: #000 }
|
247 |
+
input[name="billing[lastname]"]::-moz-placeholder::before { font-family: FontAwesome; content:"\f007 "; color: #000 }
|
248 |
+
input[name="billing[lastname]"]:-ms-input-placeholder::before { font-family: FontAwesome; content:"\f007 "; color: #000 }
|
249 |
+
input[name="billing[lastname]"]::input:-moz-placeholder::before { font-family: FontAwesome; content:"\f007 "; color: #000 }
|
250 |
+
|
251 |
+
|
252 |
+
input[name="billing[email]"]::-webkit-input-placeholder::before { font-family: FontAwesome; content:"\f0e0 "; color: #000 }
|
253 |
+
input[name="billing[email]"]::-moz-placeholder::before { font-family: FontAwesome; content:"\f0e0 "; color: #000 }
|
254 |
+
input[name="billing[email]"]:-ms-input-placeholder::before { font-family: FontAwesome; content:"\f0e0 "; color: #000 }
|
255 |
+
input[name="billing[email]"]::input:-moz-placeholder::before { font-family: FontAwesome; content:"\f0e0 "; color: #000 }
|
256 |
+
|
257 |
+
input[name="billing[customer_password]"]::-webkit-input-placeholder::before { font-family: FontAwesome; content:"\f070 "; color: #000 }
|
258 |
+
input[name="billing[customer_password]"]::-moz-placeholder::before { font-family: FontAwesome; content:"\f070 "; color: #000 }
|
259 |
+
input[name="billing[customer_password]"]:-ms-input-placeholder::before { font-family: FontAwesome; content:"\f070 "; color: #000 }
|
260 |
+
input[name="billing[customer_password]"]::input:-moz-placeholder::before { font-family: FontAwesome; content:"\f070 "; color: #000 }
|
261 |
+
|
262 |
+
input[name="billing[confirm_password]"]::-webkit-input-placeholder::before { font-family: FontAwesome; content:"\f070 "; color: #000 }
|
263 |
+
input[name="billing[confirm_password]"]::-moz-placeholder::before { font-family: FontAwesome; content:"\f070 "; color: #000 }
|
264 |
+
input[name="billing[confirm_password]"]:-ms-input-placeholder::before { font-family: FontAwesome; content:"\f070 "; color: #000 }
|
265 |
+
input[name="billing[confirm_password]"]::input:-moz-placeholder::before { font-family: FontAwesome; content:"\f070 "; color: #000 }
|
266 |
+
|
267 |
+
|
268 |
+
input[name="billing[taxvat]"]::-webkit-input-placeholder::before { font-family: FontAwesome; content:"\f1ea "; color: #000 }
|
269 |
+
input[name="billing[taxvat]"]::-moz-placeholder::before { font-family: FontAwesome; content:"\f1ea "; color: #000 }
|
270 |
+
input[name="billing[taxvat]"]:-ms-input-placeholder::before { font-family: FontAwesome; content:"\f1ea "; color: #000 }
|
271 |
+
input[name="billing[taxvat]"]::input:-moz-placeholder::before { font-family: FontAwesome; content:"\f1ea "; color: #000 }
|
272 |
+
|
273 |
+
input[name="billing[telephone]"]::-webkit-input-placeholder::before { font-family: FontAwesome; content:"\f10b "; color: #000 }
|
274 |
+
input[name="billing[telephone]"]::-moz-placeholder::before { font-family: FontAwesome; content:"\f10b "; color: #000 }
|
275 |
+
input[name="billing[telephone]"]:-ms-input-placeholder::before { font-family: FontAwesome; content:"\f10b "; color: #000 }
|
276 |
+
input[name="billing[telephone]"]::input:-moz-placeholder::before { font-family: FontAwesome; content:"\f10b "; color: #000 }
|
277 |
+
|
278 |
+
|
279 |
+
input[name="billing[postcode]"]::-webkit-input-placeholder::before { font-family: FontAwesome; content:"\f124 "; color: #000 }
|
280 |
+
input[name="billing[postcode]"]::-moz-placeholder::before { font-family: FontAwesome; content:"\f124 "; color: #000 }
|
281 |
+
input[name="billing[postcode]"]:-ms-input-placeholder::before { font-family: FontAwesome; content:"\f124 "; color: #000 }
|
282 |
+
input[name="billing[postcode]"]::input:-moz-placeholder::before { font-family: FontAwesome; content:"\f124 "; color: #000 }
|
283 |
+
|
284 |
+
input[name="billing[street][0]"]::-webkit-input-placeholder::before { font-family: FontAwesome; content:"\f124 "; color: #000 }
|
285 |
+
input[name="billing[street][0]"]::-moz-placeholder::before { font-family: FontAwesome; content:"\f124 "; color: #000 }
|
286 |
+
input[name="billing[street][0]"]:-ms-input-placeholder::before { font-family: FontAwesome; content:"\f124 "; color: #000 }
|
287 |
+
input[name="billing[street][0]"]::input:-moz-placeholder::before { font-family: FontAwesome; content:"\f124 "; color: #000 }
|
288 |
+
|
289 |
+
input[name="billing[street][1]"]::-webkit-input-placeholder::before { font-family: FontAwesome; content:"\f124 "; color: #000 }
|
290 |
+
input[name="billing[street][1]"]::-moz-placeholder::before { font-family: FontAwesome; content:"\f124 "; color: #000 }
|
291 |
+
input[name="billing[street][1]"]:-ms-input-placeholder::before { font-family: FontAwesome; content:"\f124 "; color: #000 }
|
292 |
+
input[name="billing[street][1]"]::input:-moz-placeholder::before { font-family: FontAwesome; content:"\f124 "; color: #000 }
|
293 |
+
|
294 |
+
input[name="billing[street][2]"]::-webkit-input-placeholder::before { font-family: FontAwesome; content:"\f124 "; color: #000 }
|
295 |
+
input[name="billing[street][2]"]::-moz-placeholder::before { font-family: FontAwesome; content:"\f124 "; color: #000 }
|
296 |
+
input[name="billing[street][2]"]:-ms-input-placeholder::before { font-family: FontAwesome; content:"\f124 "; color: #000 }
|
297 |
+
input[name="billing[street][2]"]::input:-moz-placeholder::before { font-family: FontAwesome; content:"\f124 "; color: #000 }
|
298 |
+
|
299 |
+
input[name="billing[street][3]"]::-webkit-input-placeholder::before { font-family: FontAwesome; content:"\f124 "; color: #000 }
|
300 |
+
input[name="billing[street][3]"]::-moz-placeholder::before { font-family: FontAwesome; content:"\f124 "; color: #000 }
|
301 |
+
input[name="billing[street][3]"]:-ms-input-placeholder::before { font-family: FontAwesome; content:"\f124 "; color: #000 }
|
302 |
+
input[name="billing[street][3]"]::input:-moz-placeholder::before { font-family: FontAwesome; content:"\f124 "; color: #000 }
|
303 |
+
|
304 |
+
|
305 |
+
|
306 |
+
input[name="billing[city]"]::-webkit-input-placeholder::before { font-family: FontAwesome; content:"\f124 "; color: #000 }
|
307 |
+
input[name="billing[city]"]::-moz-placeholder::before { font-family: FontAwesome; content:"\f124 "; color: #000 }
|
308 |
+
input[name="billing[city]"]:-ms-input-placeholder::before { font-family: FontAwesome; content:"\f124 "; color: #000 }
|
309 |
+
input[name="billing[city]"]::input:-moz-placeholder::before { font-family: FontAwesome; content:"\f124 "; color: #000 }
|
310 |
+
icones... placeholder */
|
skin/frontend/base/default/MOIP/onestepcheckout/images/01.png
CHANGED
Binary file
|
skin/frontend/base/default/MOIP/onestepcheckout/images/02.png
CHANGED
Binary file
|
skin/frontend/base/default/MOIP/onestepcheckout/images/03.png
CHANGED
Binary file
|
skin/frontend/base/default/MOIP/onestepcheckout/images/bkg-step-review.png
CHANGED
Binary file
|
skin/frontend/base/default/MOIP/onestepcheckout/images/error-icon.jpg
CHANGED
Binary file
|
skin/frontend/base/default/MOIP/onestepcheckout/images/passed-icon.jpg
CHANGED
Binary file
|
skin/frontend/base/default/MOIP/transparente/css/bootstrap-modal.css
ADDED
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
.modal-open {
|
3 |
+
overflow: hidden;
|
4 |
+
}
|
5 |
+
.modal {
|
6 |
+
position: fixed;
|
7 |
+
top: 0;
|
8 |
+
right: 0;
|
9 |
+
bottom: 0;
|
10 |
+
left: 0;
|
11 |
+
z-index: 1050;
|
12 |
+
display: none;
|
13 |
+
overflow: auto;
|
14 |
+
overflow-y: scroll;
|
15 |
+
-webkit-overflow-scrolling: touch;
|
16 |
+
outline: 0;
|
17 |
+
}
|
18 |
+
.modal.fade .modal-dialog {
|
19 |
+
-webkit-transition: -webkit-transform .3s ease-out;
|
20 |
+
-moz-transition: -moz-transform .3s ease-out;
|
21 |
+
-o-transition: -o-transform .3s ease-out;
|
22 |
+
transition: transform .3s ease-out;
|
23 |
+
-webkit-transform: translate(0, -25%);
|
24 |
+
-ms-transform: translate(0, -25%);
|
25 |
+
transform: translate(0, -25%);
|
26 |
+
}
|
27 |
+
.modal.in .modal-dialog {
|
28 |
+
-webkit-transform: translate(0, 0);
|
29 |
+
-ms-transform: translate(0, 0);
|
30 |
+
transform: translate(0, 0);
|
31 |
+
}
|
32 |
+
.modal-dialog {
|
33 |
+
position: relative;
|
34 |
+
width: auto;
|
35 |
+
margin: 10px;
|
36 |
+
}
|
37 |
+
.modal-content {
|
38 |
+
position: relative;
|
39 |
+
background-color: #fff;
|
40 |
+
background-clip: padding-box;
|
41 |
+
border: 1px solid #999;
|
42 |
+
border: 1px solid rgba(0, 0, 0, .2);
|
43 |
+
border-radius: 6px;
|
44 |
+
outline: none;
|
45 |
+
-webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
|
46 |
+
box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
|
47 |
+
}
|
48 |
+
.modal-backdrop {
|
49 |
+
position: fixed;
|
50 |
+
top: 0;
|
51 |
+
right: 0;
|
52 |
+
bottom: 0;
|
53 |
+
left: 0;
|
54 |
+
z-index: 1040;
|
55 |
+
background-color: #000;
|
56 |
+
}
|
57 |
+
.modal-backdrop.fade {
|
58 |
+
filter: alpha(opacity=0);
|
59 |
+
opacity: 0;
|
60 |
+
}
|
61 |
+
.modal-backdrop.in {
|
62 |
+
filter: alpha(opacity=50);
|
63 |
+
opacity: .5;
|
64 |
+
}
|
65 |
+
.modal-header {
|
66 |
+
min-height: 16.428571429px;
|
67 |
+
padding: 15px;
|
68 |
+
border-bottom: 1px solid #e5e5e5;
|
69 |
+
}
|
70 |
+
.modal-header .close {
|
71 |
+
margin-top: -2px;
|
72 |
+
}
|
73 |
+
.modal-title {
|
74 |
+
margin: 0;
|
75 |
+
line-height: 1.428571429;
|
76 |
+
}
|
77 |
+
.modal-body {
|
78 |
+
position: relative;
|
79 |
+
padding: 20px;
|
80 |
+
}
|
81 |
+
.modal-footer {
|
82 |
+
padding: 19px 20px 20px;
|
83 |
+
margin-top: 15px;
|
84 |
+
text-align: right;
|
85 |
+
border-top: 1px solid #e5e5e5;
|
86 |
+
}
|
87 |
+
.modal-footer .btn + .btn {
|
88 |
+
margin-bottom: 0;
|
89 |
+
margin-left: 5px;
|
90 |
+
}
|
91 |
+
.modal-footer .btn-group .btn + .btn {
|
92 |
+
margin-left: -1px;
|
93 |
+
}
|
94 |
+
.modal-footer .btn-block + .btn-block {
|
95 |
+
margin-left: 0;
|
96 |
+
}
|
97 |
+
@media (min-width: 768px) {
|
98 |
+
.modal-dialog {
|
99 |
+
width: 600px;
|
100 |
+
margin: 30px auto;
|
101 |
+
}
|
102 |
+
.modal-content {
|
103 |
+
-webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
|
104 |
+
box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
|
105 |
+
}
|
106 |
+
.modal-sm {
|
107 |
+
width: 300px;
|
108 |
+
}
|
109 |
+
.modal-lg {
|
110 |
+
width: 900px;
|
111 |
+
}
|
112 |
+
}
|
skin/frontend/base/default/MOIP/transparente/css/bootstrap-tabs.css
ADDED
@@ -0,0 +1,736 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.nav {
|
2 |
+
padding-left: 0;
|
3 |
+
margin-bottom: 0;
|
4 |
+
list-style: none;
|
5 |
+
}
|
6 |
+
.nav > li {
|
7 |
+
position: relative;
|
8 |
+
display: block;
|
9 |
+
}
|
10 |
+
.nav > li > a {
|
11 |
+
position: relative;
|
12 |
+
display: block;
|
13 |
+
padding: 10px 15px;
|
14 |
+
}
|
15 |
+
.nav > li > a:hover,
|
16 |
+
.nav > li > a:focus {
|
17 |
+
text-decoration: none;
|
18 |
+
background-color: #eee;
|
19 |
+
}
|
20 |
+
.nav > li.disabled > a {
|
21 |
+
color: #777;
|
22 |
+
}
|
23 |
+
.nav > li.disabled > a:hover,
|
24 |
+
.nav > li.disabled > a:focus {
|
25 |
+
color: #777;
|
26 |
+
text-decoration: none;
|
27 |
+
cursor: not-allowed;
|
28 |
+
background-color: transparent;
|
29 |
+
}
|
30 |
+
.nav .open > a,
|
31 |
+
.nav .open > a:hover,
|
32 |
+
.nav .open > a:focus {
|
33 |
+
background-color: #eee;
|
34 |
+
border-color: #337ab7;
|
35 |
+
}
|
36 |
+
.nav .nav-divider {
|
37 |
+
height: 1px;
|
38 |
+
margin: 9px 0;
|
39 |
+
overflow: hidden;
|
40 |
+
background-color: #e5e5e5;
|
41 |
+
}
|
42 |
+
.nav > li > a > img {
|
43 |
+
max-width: none;
|
44 |
+
width: 50px;
|
45 |
+
margin: 0 auto;
|
46 |
+
}
|
47 |
+
.nav-tabs {
|
48 |
+
border-bottom: 1px solid #ddd;
|
49 |
+
}
|
50 |
+
.nav-tabs > li {
|
51 |
+
float: left;
|
52 |
+
margin-bottom: -1px;
|
53 |
+
}
|
54 |
+
.nav-tabs > li > a {
|
55 |
+
margin-right: 2px;
|
56 |
+
line-height: 1.42857143;
|
57 |
+
border: 1px solid transparent;
|
58 |
+
border-radius: 4px 4px 0 0;
|
59 |
+
}
|
60 |
+
.nav-tabs > li > a:hover {
|
61 |
+
border-color: #eee #eee #ddd;
|
62 |
+
}
|
63 |
+
.nav-tabs > li.active > a,
|
64 |
+
.nav-tabs > li.active > a:hover,
|
65 |
+
.nav-tabs > li.active > a:focus {
|
66 |
+
color: #555;
|
67 |
+
cursor: default;
|
68 |
+
background-color: #fff;
|
69 |
+
border: 1px solid #ddd;
|
70 |
+
border-bottom-color: transparent;
|
71 |
+
}
|
72 |
+
.nav-tabs.nav-justified {
|
73 |
+
width: 100%;
|
74 |
+
border-bottom: 0;
|
75 |
+
}
|
76 |
+
.nav-tabs.nav-justified > li {
|
77 |
+
float: none;
|
78 |
+
}
|
79 |
+
.nav-tabs.nav-justified > li > a {
|
80 |
+
margin-bottom: 5px;
|
81 |
+
text-align: center;
|
82 |
+
}
|
83 |
+
.nav-tabs.nav-justified > .dropdown .dropdown-menu {
|
84 |
+
top: auto;
|
85 |
+
left: auto;
|
86 |
+
}
|
87 |
+
@media (min-width: 768px) {
|
88 |
+
.nav-tabs.nav-justified > li {
|
89 |
+
display: table-cell;
|
90 |
+
width: 1%;
|
91 |
+
}
|
92 |
+
.nav-tabs.nav-justified > li > a {
|
93 |
+
margin-bottom: 0;
|
94 |
+
}
|
95 |
+
}
|
96 |
+
.nav-tabs.nav-justified > li > a {
|
97 |
+
margin-right: 0;
|
98 |
+
border-radius: 4px;
|
99 |
+
}
|
100 |
+
.nav-tabs.nav-justified > .active > a,
|
101 |
+
.nav-tabs.nav-justified > .active > a:hover,
|
102 |
+
.nav-tabs.nav-justified > .active > a:focus {
|
103 |
+
border: 1px solid #ddd;
|
104 |
+
}
|
105 |
+
@media (min-width: 768px) {
|
106 |
+
.nav-tabs.nav-justified > li > a {
|
107 |
+
border-bottom: 1px solid #ddd;
|
108 |
+
border-radius: 4px 4px 0 0;
|
109 |
+
}
|
110 |
+
.nav-tabs.nav-justified > .active > a,
|
111 |
+
.nav-tabs.nav-justified > .active > a:hover,
|
112 |
+
.nav-tabs.nav-justified > .active > a:focus {
|
113 |
+
border-bottom-color: #fff;
|
114 |
+
}
|
115 |
+
}
|
116 |
+
.nav-pills > li {
|
117 |
+
float: left;
|
118 |
+
}
|
119 |
+
.nav-pills > li > a {
|
120 |
+
border-radius: 4px;
|
121 |
+
}
|
122 |
+
.nav-pills > li + li {
|
123 |
+
margin-left: 2px;
|
124 |
+
}
|
125 |
+
.nav-pills > li.active > a,
|
126 |
+
.nav-pills > li.active > a:hover,
|
127 |
+
.nav-pills > li.active > a:focus {
|
128 |
+
color: #fff;
|
129 |
+
background-color: #337ab7;
|
130 |
+
}
|
131 |
+
.nav-stacked > li {
|
132 |
+
float: none;
|
133 |
+
}
|
134 |
+
.nav-stacked > li + li {
|
135 |
+
margin-top: 2px;
|
136 |
+
margin-left: 0;
|
137 |
+
}
|
138 |
+
.nav-justified {
|
139 |
+
width: 100%;
|
140 |
+
}
|
141 |
+
.nav-justified > li {
|
142 |
+
float: none;
|
143 |
+
}
|
144 |
+
.nav-justified > li > a {
|
145 |
+
margin-bottom: 5px;
|
146 |
+
text-align: center;
|
147 |
+
}
|
148 |
+
.nav-justified > .dropdown .dropdown-menu {
|
149 |
+
top: auto;
|
150 |
+
left: auto;
|
151 |
+
}
|
152 |
+
@media (min-width: 768px) {
|
153 |
+
.nav-justified > li {
|
154 |
+
display: table-cell;
|
155 |
+
width: 1%;
|
156 |
+
}
|
157 |
+
.nav-justified > li > a {
|
158 |
+
margin-bottom: 0;
|
159 |
+
}
|
160 |
+
}
|
161 |
+
.nav-tabs-justified {
|
162 |
+
border-bottom: 0;
|
163 |
+
}
|
164 |
+
.nav-tabs-justified > li > a {
|
165 |
+
margin-right: 0;
|
166 |
+
border-radius: 4px;
|
167 |
+
}
|
168 |
+
.nav-tabs-justified > .active > a,
|
169 |
+
.nav-tabs-justified > .active > a:hover,
|
170 |
+
.nav-tabs-justified > .active > a:focus {
|
171 |
+
border: 1px solid #ddd;
|
172 |
+
}
|
173 |
+
@media (min-width: 768px) {
|
174 |
+
.nav-tabs-justified > li > a {
|
175 |
+
border-bottom: 1px solid #ddd;
|
176 |
+
border-radius: 4px 4px 0 0;
|
177 |
+
}
|
178 |
+
.nav-tabs-justified > .active > a,
|
179 |
+
.nav-tabs-justified > .active > a:hover,
|
180 |
+
.nav-tabs-justified > .active > a:focus {
|
181 |
+
border-bottom-color: #fff;
|
182 |
+
}
|
183 |
+
}
|
184 |
+
.tab-content > .tab-pane {
|
185 |
+
display: none;
|
186 |
+
visibility: hidden;
|
187 |
+
}
|
188 |
+
.tab-content > .active {
|
189 |
+
display: block;
|
190 |
+
visibility: visible;
|
191 |
+
}
|
192 |
+
.nav-tabs .dropdown-menu {
|
193 |
+
margin-top: -1px;
|
194 |
+
border-top-left-radius: 0;
|
195 |
+
border-top-right-radius: 0;
|
196 |
+
}
|
197 |
+
.navbar {
|
198 |
+
position: relative;
|
199 |
+
min-height: 50px;
|
200 |
+
margin-bottom: 20px;
|
201 |
+
border: 1px solid transparent;
|
202 |
+
}
|
203 |
+
@media (min-width: 768px) {
|
204 |
+
.navbar {
|
205 |
+
border-radius: 4px;
|
206 |
+
}
|
207 |
+
}
|
208 |
+
@media (min-width: 768px) {
|
209 |
+
.navbar-header {
|
210 |
+
float: left;
|
211 |
+
}
|
212 |
+
}
|
213 |
+
.navbar-collapse {
|
214 |
+
padding-right: 15px;
|
215 |
+
padding-left: 15px;
|
216 |
+
overflow-x: visible;
|
217 |
+
-webkit-overflow-scrolling: touch;
|
218 |
+
border-top: 1px solid transparent;
|
219 |
+
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
|
220 |
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
|
221 |
+
}
|
222 |
+
.navbar-collapse.in {
|
223 |
+
overflow-y: auto;
|
224 |
+
}
|
225 |
+
@media (min-width: 768px) {
|
226 |
+
.navbar-collapse {
|
227 |
+
width: auto;
|
228 |
+
border-top: 0;
|
229 |
+
-webkit-box-shadow: none;
|
230 |
+
box-shadow: none;
|
231 |
+
}
|
232 |
+
.navbar-collapse.collapse {
|
233 |
+
display: block !important;
|
234 |
+
height: auto !important;
|
235 |
+
padding-bottom: 0;
|
236 |
+
overflow: visible !important;
|
237 |
+
visibility: visible !important;
|
238 |
+
}
|
239 |
+
.navbar-collapse.in {
|
240 |
+
overflow-y: visible;
|
241 |
+
}
|
242 |
+
.navbar-fixed-top .navbar-collapse,
|
243 |
+
.navbar-static-top .navbar-collapse,
|
244 |
+
.navbar-fixed-bottom .navbar-collapse {
|
245 |
+
padding-right: 0;
|
246 |
+
padding-left: 0;
|
247 |
+
}
|
248 |
+
}
|
249 |
+
.navbar-fixed-top .navbar-collapse,
|
250 |
+
.navbar-fixed-bottom .navbar-collapse {
|
251 |
+
max-height: 340px;
|
252 |
+
}
|
253 |
+
@media (max-device-width: 480px) and (orientation: landscape) {
|
254 |
+
.navbar-fixed-top .navbar-collapse,
|
255 |
+
.navbar-fixed-bottom .navbar-collapse {
|
256 |
+
max-height: 200px;
|
257 |
+
}
|
258 |
+
}
|
259 |
+
.container > .navbar-header,
|
260 |
+
.container-fluid > .navbar-header,
|
261 |
+
.container > .navbar-collapse,
|
262 |
+
.container-fluid > .navbar-collapse {
|
263 |
+
margin-right: -15px;
|
264 |
+
margin-left: -15px;
|
265 |
+
}
|
266 |
+
@media (min-width: 768px) {
|
267 |
+
.container > .navbar-header,
|
268 |
+
.container-fluid > .navbar-header,
|
269 |
+
.container > .navbar-collapse,
|
270 |
+
.container-fluid > .navbar-collapse {
|
271 |
+
margin-right: 0;
|
272 |
+
margin-left: 0;
|
273 |
+
}
|
274 |
+
}
|
275 |
+
.navbar-static-top {
|
276 |
+
z-index: 1000;
|
277 |
+
border-width: 0 0 1px;
|
278 |
+
}
|
279 |
+
@media (min-width: 768px) {
|
280 |
+
.navbar-static-top {
|
281 |
+
border-radius: 0;
|
282 |
+
}
|
283 |
+
}
|
284 |
+
.navbar-fixed-top,
|
285 |
+
.navbar-fixed-bottom {
|
286 |
+
position: fixed;
|
287 |
+
right: 0;
|
288 |
+
left: 0;
|
289 |
+
z-index: 1030;
|
290 |
+
}
|
291 |
+
@media (min-width: 768px) {
|
292 |
+
.navbar-fixed-top,
|
293 |
+
.navbar-fixed-bottom {
|
294 |
+
border-radius: 0;
|
295 |
+
}
|
296 |
+
}
|
297 |
+
.navbar-fixed-top {
|
298 |
+
top: 0;
|
299 |
+
border-width: 0 0 1px;
|
300 |
+
}
|
301 |
+
.navbar-fixed-bottom {
|
302 |
+
bottom: 0;
|
303 |
+
margin-bottom: 0;
|
304 |
+
border-width: 1px 0 0;
|
305 |
+
}
|
306 |
+
.navbar-brand {
|
307 |
+
float: left;
|
308 |
+
height: 50px;
|
309 |
+
padding: 15px 15px;
|
310 |
+
font-size: 18px;
|
311 |
+
line-height: 20px;
|
312 |
+
}
|
313 |
+
.navbar-brand:hover,
|
314 |
+
.navbar-brand:focus {
|
315 |
+
text-decoration: none;
|
316 |
+
}
|
317 |
+
.navbar-brand > img {
|
318 |
+
display: block;
|
319 |
+
}
|
320 |
+
@media (min-width: 768px) {
|
321 |
+
.navbar > .container .navbar-brand,
|
322 |
+
.navbar > .container-fluid .navbar-brand {
|
323 |
+
margin-left: -15px;
|
324 |
+
}
|
325 |
+
}
|
326 |
+
.navbar-toggle {
|
327 |
+
position: relative;
|
328 |
+
float: right;
|
329 |
+
padding: 9px 10px;
|
330 |
+
margin-top: 8px;
|
331 |
+
margin-right: 15px;
|
332 |
+
margin-bottom: 8px;
|
333 |
+
background-color: transparent;
|
334 |
+
background-image: none;
|
335 |
+
border: 1px solid transparent;
|
336 |
+
border-radius: 4px;
|
337 |
+
}
|
338 |
+
.navbar-toggle:focus {
|
339 |
+
outline: 0;
|
340 |
+
}
|
341 |
+
.navbar-toggle .icon-bar {
|
342 |
+
display: block;
|
343 |
+
width: 22px;
|
344 |
+
height: 2px;
|
345 |
+
border-radius: 1px;
|
346 |
+
}
|
347 |
+
.navbar-toggle .icon-bar + .icon-bar {
|
348 |
+
margin-top: 4px;
|
349 |
+
}
|
350 |
+
@media (min-width: 768px) {
|
351 |
+
.navbar-toggle {
|
352 |
+
display: none;
|
353 |
+
}
|
354 |
+
}
|
355 |
+
.navbar-nav {
|
356 |
+
margin: 7.5px -15px;
|
357 |
+
}
|
358 |
+
.navbar-nav > li > a {
|
359 |
+
padding-top: 10px;
|
360 |
+
padding-bottom: 10px;
|
361 |
+
line-height: 20px;
|
362 |
+
}
|
363 |
+
@media (max-width: 767px) {
|
364 |
+
.navbar-nav .open .dropdown-menu {
|
365 |
+
position: static;
|
366 |
+
float: none;
|
367 |
+
width: auto;
|
368 |
+
margin-top: 0;
|
369 |
+
background-color: transparent;
|
370 |
+
border: 0;
|
371 |
+
-webkit-box-shadow: none;
|
372 |
+
box-shadow: none;
|
373 |
+
}
|
374 |
+
.navbar-nav .open .dropdown-menu > li > a,
|
375 |
+
.navbar-nav .open .dropdown-menu .dropdown-header {
|
376 |
+
padding: 5px 15px 5px 25px;
|
377 |
+
}
|
378 |
+
.navbar-nav .open .dropdown-menu > li > a {
|
379 |
+
line-height: 20px;
|
380 |
+
}
|
381 |
+
.navbar-nav .open .dropdown-menu > li > a:hover,
|
382 |
+
.navbar-nav .open .dropdown-menu > li > a:focus {
|
383 |
+
background-image: none;
|
384 |
+
}
|
385 |
+
}
|
386 |
+
@media (min-width: 768px) {
|
387 |
+
.navbar-nav {
|
388 |
+
float: left;
|
389 |
+
margin: 0;
|
390 |
+
}
|
391 |
+
.navbar-nav > li {
|
392 |
+
float: left;
|
393 |
+
}
|
394 |
+
.navbar-nav > li > a {
|
395 |
+
padding-top: 15px;
|
396 |
+
padding-bottom: 15px;
|
397 |
+
}
|
398 |
+
}
|
399 |
+
.navbar-form {
|
400 |
+
padding: 10px 15px;
|
401 |
+
margin-top: 8px;
|
402 |
+
margin-right: -15px;
|
403 |
+
margin-bottom: 8px;
|
404 |
+
margin-left: -15px;
|
405 |
+
border-top: 1px solid transparent;
|
406 |
+
border-bottom: 1px solid transparent;
|
407 |
+
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1);
|
408 |
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1);
|
409 |
+
}
|
410 |
+
@media (min-width: 768px) {
|
411 |
+
.navbar-form .form-group {
|
412 |
+
display: inline-block;
|
413 |
+
margin-bottom: 0;
|
414 |
+
vertical-align: middle;
|
415 |
+
}
|
416 |
+
.navbar-form .form-control {
|
417 |
+
display: inline-block;
|
418 |
+
width: auto;
|
419 |
+
vertical-align: middle;
|
420 |
+
}
|
421 |
+
.navbar-form .form-control-static {
|
422 |
+
display: inline-block;
|
423 |
+
}
|
424 |
+
.navbar-form .input-group {
|
425 |
+
display: inline-table;
|
426 |
+
vertical-align: middle;
|
427 |
+
}
|
428 |
+
.navbar-form .input-group .input-group-addon,
|
429 |
+
.navbar-form .input-group .input-group-btn,
|
430 |
+
.navbar-form .input-group .form-control {
|
431 |
+
width: auto;
|
432 |
+
}
|
433 |
+
.navbar-form .input-group > .form-control {
|
434 |
+
width: 100%;
|
435 |
+
}
|
436 |
+
.navbar-form .control-label {
|
437 |
+
margin-bottom: 0;
|
438 |
+
vertical-align: middle;
|
439 |
+
}
|
440 |
+
.navbar-form .radio,
|
441 |
+
.navbar-form .checkbox {
|
442 |
+
display: inline-block;
|
443 |
+
margin-top: 0;
|
444 |
+
margin-bottom: 0;
|
445 |
+
vertical-align: middle;
|
446 |
+
}
|
447 |
+
.navbar-form .radio label,
|
448 |
+
.navbar-form .checkbox label {
|
449 |
+
padding-left: 0;
|
450 |
+
}
|
451 |
+
.navbar-form .radio input[type="radio"],
|
452 |
+
.navbar-form .checkbox input[type="checkbox"] {
|
453 |
+
position: relative;
|
454 |
+
margin-left: 0;
|
455 |
+
}
|
456 |
+
.navbar-form .has-feedback .form-control-feedback {
|
457 |
+
top: 0;
|
458 |
+
}
|
459 |
+
}
|
460 |
+
@media (max-width: 767px) {
|
461 |
+
.navbar-form .form-group {
|
462 |
+
margin-bottom: 5px;
|
463 |
+
}
|
464 |
+
.navbar-form .form-group:last-child {
|
465 |
+
margin-bottom: 0;
|
466 |
+
}
|
467 |
+
}
|
468 |
+
@media (min-width: 768px) {
|
469 |
+
.navbar-form {
|
470 |
+
width: auto;
|
471 |
+
padding-top: 0;
|
472 |
+
padding-bottom: 0;
|
473 |
+
margin-right: 0;
|
474 |
+
margin-left: 0;
|
475 |
+
border: 0;
|
476 |
+
-webkit-box-shadow: none;
|
477 |
+
box-shadow: none;
|
478 |
+
}
|
479 |
+
}
|
480 |
+
.navbar-nav > li > .dropdown-menu {
|
481 |
+
margin-top: 0;
|
482 |
+
border-top-left-radius: 0;
|
483 |
+
border-top-right-radius: 0;
|
484 |
+
}
|
485 |
+
.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
|
486 |
+
border-top-left-radius: 4px;
|
487 |
+
border-top-right-radius: 4px;
|
488 |
+
border-bottom-right-radius: 0;
|
489 |
+
border-bottom-left-radius: 0;
|
490 |
+
}
|
491 |
+
.navbar-btn {
|
492 |
+
margin-top: 8px;
|
493 |
+
margin-bottom: 8px;
|
494 |
+
}
|
495 |
+
.navbar-btn.btn-sm {
|
496 |
+
margin-top: 10px;
|
497 |
+
margin-bottom: 10px;
|
498 |
+
}
|
499 |
+
.navbar-btn.btn-xs {
|
500 |
+
margin-top: 14px;
|
501 |
+
margin-bottom: 14px;
|
502 |
+
}
|
503 |
+
.navbar-text {
|
504 |
+
margin-top: 15px;
|
505 |
+
margin-bottom: 15px;
|
506 |
+
}
|
507 |
+
@media (min-width: 768px) {
|
508 |
+
.navbar-text {
|
509 |
+
float: left;
|
510 |
+
margin-right: 15px;
|
511 |
+
margin-left: 15px;
|
512 |
+
}
|
513 |
+
}
|
514 |
+
@media (min-width: 768px) {
|
515 |
+
.navbar-left {
|
516 |
+
float: left !important;
|
517 |
+
}
|
518 |
+
.navbar-right {
|
519 |
+
float: right !important;
|
520 |
+
margin-right: -15px;
|
521 |
+
}
|
522 |
+
.navbar-right ~ .navbar-right {
|
523 |
+
margin-right: 0;
|
524 |
+
}
|
525 |
+
}
|
526 |
+
.navbar-default {
|
527 |
+
background-color: #f8f8f8;
|
528 |
+
border-color: #e7e7e7;
|
529 |
+
}
|
530 |
+
.navbar-default .navbar-brand {
|
531 |
+
color: #777;
|
532 |
+
}
|
533 |
+
.navbar-default .navbar-brand:hover,
|
534 |
+
.navbar-default .navbar-brand:focus {
|
535 |
+
color: #5e5e5e;
|
536 |
+
background-color: transparent;
|
537 |
+
}
|
538 |
+
.navbar-default .navbar-text {
|
539 |
+
color: #777;
|
540 |
+
}
|
541 |
+
.navbar-default .navbar-nav > li > a {
|
542 |
+
color: #777;
|
543 |
+
}
|
544 |
+
.navbar-default .navbar-nav > li > a:hover,
|
545 |
+
.navbar-default .navbar-nav > li > a:focus {
|
546 |
+
color: #333;
|
547 |
+
background-color: transparent;
|
548 |
+
}
|
549 |
+
.navbar-default .navbar-nav > .active > a,
|
550 |
+
.navbar-default .navbar-nav > .active > a:hover,
|
551 |
+
.navbar-default .navbar-nav > .active > a:focus {
|
552 |
+
color: #555;
|
553 |
+
background-color: #e7e7e7;
|
554 |
+
}
|
555 |
+
.navbar-default .navbar-nav > .disabled > a,
|
556 |
+
.navbar-default .navbar-nav > .disabled > a:hover,
|
557 |
+
.navbar-default .navbar-nav > .disabled > a:focus {
|
558 |
+
color: #ccc;
|
559 |
+
background-color: transparent;
|
560 |
+
}
|
561 |
+
.navbar-default .navbar-toggle {
|
562 |
+
border-color: #ddd;
|
563 |
+
}
|
564 |
+
.navbar-default .navbar-toggle:hover,
|
565 |
+
.navbar-default .navbar-toggle:focus {
|
566 |
+
background-color: #ddd;
|
567 |
+
}
|
568 |
+
.navbar-default .navbar-toggle .icon-bar {
|
569 |
+
background-color: #888;
|
570 |
+
}
|
571 |
+
.navbar-default .navbar-collapse,
|
572 |
+
.navbar-default .navbar-form {
|
573 |
+
border-color: #e7e7e7;
|
574 |
+
}
|
575 |
+
.navbar-default .navbar-nav > .open > a,
|
576 |
+
.navbar-default .navbar-nav > .open > a:hover,
|
577 |
+
.navbar-default .navbar-nav > .open > a:focus {
|
578 |
+
color: #555;
|
579 |
+
background-color: #e7e7e7;
|
580 |
+
}
|
581 |
+
@media (max-width: 767px) {
|
582 |
+
.navbar-default .navbar-nav .open .dropdown-menu > li > a {
|
583 |
+
color: #777;
|
584 |
+
}
|
585 |
+
.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
|
586 |
+
.navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
|
587 |
+
color: #333;
|
588 |
+
background-color: transparent;
|
589 |
+
}
|
590 |
+
.navbar-default .navbar-nav .open .dropdown-menu > .active > a,
|
591 |
+
.navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
|
592 |
+
.navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
|
593 |
+
color: #555;
|
594 |
+
background-color: #e7e7e7;
|
595 |
+
}
|
596 |
+
.navbar-default .navbar-nav .open .dropdown-menu > .disabled > a,
|
597 |
+
.navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover,
|
598 |
+
.navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus {
|
599 |
+
color: #ccc;
|
600 |
+
background-color: transparent;
|
601 |
+
}
|
602 |
+
}
|
603 |
+
.navbar-default .navbar-link {
|
604 |
+
color: #777;
|
605 |
+
}
|
606 |
+
.navbar-default .navbar-link:hover {
|
607 |
+
color: #333;
|
608 |
+
}
|
609 |
+
.navbar-default .btn-link {
|
610 |
+
color: #777;
|
611 |
+
}
|
612 |
+
.navbar-default .btn-link:hover,
|
613 |
+
.navbar-default .btn-link:focus {
|
614 |
+
color: #333;
|
615 |
+
}
|
616 |
+
.navbar-default .btn-link[disabled]:hover,
|
617 |
+
fieldset[disabled] .navbar-default .btn-link:hover,
|
618 |
+
.navbar-default .btn-link[disabled]:focus,
|
619 |
+
fieldset[disabled] .navbar-default .btn-link:focus {
|
620 |
+
color: #ccc;
|
621 |
+
}
|
622 |
+
.navbar-inverse {
|
623 |
+
background-color: #222;
|
624 |
+
border-color: #080808;
|
625 |
+
}
|
626 |
+
.navbar-inverse .navbar-brand {
|
627 |
+
color: #9d9d9d;
|
628 |
+
}
|
629 |
+
.navbar-inverse .navbar-brand:hover,
|
630 |
+
.navbar-inverse .navbar-brand:focus {
|
631 |
+
color: #fff;
|
632 |
+
background-color: transparent;
|
633 |
+
}
|
634 |
+
.navbar-inverse .navbar-text {
|
635 |
+
color: #9d9d9d;
|
636 |
+
}
|
637 |
+
.navbar-inverse .navbar-nav > li > a {
|
638 |
+
color: #9d9d9d;
|
639 |
+
}
|
640 |
+
.navbar-inverse .navbar-nav > li > a:hover,
|
641 |
+
.navbar-inverse .navbar-nav > li > a:focus {
|
642 |
+
color: #fff;
|
643 |
+
background-color: transparent;
|
644 |
+
}
|
645 |
+
.navbar-inverse .navbar-nav > .active > a,
|
646 |
+
.navbar-inverse .navbar-nav > .active > a:hover,
|
647 |
+
.navbar-inverse .navbar-nav > .active > a:focus {
|
648 |
+
color: #fff;
|
649 |
+
background-color: #080808;
|
650 |
+
}
|
651 |
+
.navbar-inverse .navbar-nav > .disabled > a,
|
652 |
+
.navbar-inverse .navbar-nav > .disabled > a:hover,
|
653 |
+
.navbar-inverse .navbar-nav > .disabled > a:focus {
|
654 |
+
color: #444;
|
655 |
+
background-color: transparent;
|
656 |
+
}
|
657 |
+
.navbar-inverse .navbar-toggle {
|
658 |
+
border-color: #333;
|
659 |
+
}
|
660 |
+
.navbar-inverse .navbar-toggle:hover,
|
661 |
+
.navbar-inverse .navbar-toggle:focus {
|
662 |
+
background-color: #333;
|
663 |
+
}
|
664 |
+
.navbar-inverse .navbar-toggle .icon-bar {
|
665 |
+
background-color: #fff;
|
666 |
+
}
|
667 |
+
.navbar-inverse .navbar-collapse,
|
668 |
+
.navbar-inverse .navbar-form {
|
669 |
+
border-color: #101010;
|
670 |
+
}
|
671 |
+
.navbar-inverse .navbar-nav > .open > a,
|
672 |
+
.navbar-inverse .navbar-nav > .open > a:hover,
|
673 |
+
.navbar-inverse .navbar-nav > .open > a:focus {
|
674 |
+
color: #fff;
|
675 |
+
background-color: #080808;
|
676 |
+
}
|
677 |
+
@media (max-width: 767px) {
|
678 |
+
.navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header {
|
679 |
+
border-color: #080808;
|
680 |
+
}
|
681 |
+
.navbar-inverse .navbar-nav .open .dropdown-menu .divider {
|
682 |
+
background-color: #080808;
|
683 |
+
}
|
684 |
+
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a {
|
685 |
+
color: #9d9d9d;
|
686 |
+
}
|
687 |
+
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover,
|
688 |
+
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus {
|
689 |
+
color: #fff;
|
690 |
+
background-color: transparent;
|
691 |
+
}
|
692 |
+
.navbar-inverse .navbar-nav .open .dropdown-menu > .active > a,
|
693 |
+
.navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover,
|
694 |
+
.navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus {
|
695 |
+
color: #fff;
|
696 |
+
background-color: #080808;
|
697 |
+
}
|
698 |
+
.navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a,
|
699 |
+
.navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover,
|
700 |
+
.navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus {
|
701 |
+
color: #444;
|
702 |
+
background-color: transparent;
|
703 |
+
}
|
704 |
+
}
|
705 |
+
.navbar-inverse .navbar-link {
|
706 |
+
color: #9d9d9d;
|
707 |
+
}
|
708 |
+
.navbar-inverse .navbar-link:hover {
|
709 |
+
color: #fff;
|
710 |
+
}
|
711 |
+
.navbar-inverse .btn-link {
|
712 |
+
color: #9d9d9d;
|
713 |
+
}
|
714 |
+
.navbar-inverse .btn-link:hover,
|
715 |
+
.navbar-inverse .btn-link:focus {
|
716 |
+
color: #fff;
|
717 |
+
}
|
718 |
+
.navbar-inverse .btn-link[disabled]:hover,
|
719 |
+
fieldset[disabled] .navbar-inverse .btn-link:hover,
|
720 |
+
.navbar-inverse .btn-link[disabled]:focus,
|
721 |
+
fieldset[disabled] .navbar-inverse .btn-link:focus {
|
722 |
+
color: #444;
|
723 |
+
}
|
724 |
+
|
725 |
+
.nav:after,
|
726 |
+
.navbar:after,
|
727 |
+
.navbar-header:after,
|
728 |
+
.navbar-collapse:after,
|
729 |
+
.pager:after,
|
730 |
+
.panel-body:after,
|
731 |
+
.modal-footer:after {
|
732 |
+
clear: both;
|
733 |
+
}
|
734 |
+
.tab-content {
|
735 |
+
padding: 15px;
|
736 |
+
}
|
skin/frontend/base/default/MOIP/transparente/css/bootstrap.css
CHANGED
@@ -1,32 +1,118 @@
|
|
1 |
-
|
2 |
-
.modal-open
|
3 |
-
|
4 |
-
|
5 |
-
.modal
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
.modal
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
.
|
28 |
-
|
29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
.repay-form{list-style: none;display: block;}
|
31 |
.repay-form li{display: block; clear: both;margin: 5px 0}
|
32 |
.repay-form li > label{display: block; width: 110px;float: left;text-align:right; padding-right:5px}
|
@@ -35,54 +121,37 @@
|
|
35 |
|
36 |
/* layout */
|
37 |
|
38 |
-
.
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
|
|
45 |
float: left;
|
46 |
-
|
47 |
}
|
48 |
|
49 |
-
.method-type{
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
.order-id-wrapper h4{clear:both;color:#666;line-height:1.4;padding:10px 0;}
|
54 |
-
.order-id-wrapper p{clear:both;color:#666;line-height:1.4;padding:5px 0;}
|
55 |
-
.order-id-wrapper strong{font-weight:bold;}
|
56 |
-
.order-id-wrapper .order-id{background: #333333;color:#fff;font-weight: bold;font-size: 16pt;padding: 5px 15px;border-radius: 5px;clear: both;float: left;display: block;}
|
57 |
-
|
58 |
-
.warning-block{background: url(../imagem/warning.png) no-repeat 30px 30px #fff9f9;padding: 40px 30px 40px 115px;color:red;float:left;font-size:14px;margin:10px 0;}
|
59 |
-
.warning-block strong{font-weight:bold;}
|
60 |
-
|
61 |
-
.back-to-store{display:block;text-decoration:none;float:right;color:white;text-transform:uppercase;padding:5px 10px;font-weight:bold;font-size:14pt;border-radius:6px;width: 235px;text-align:center;background: #cccccc; /* Old browsers *//* IE9 SVG, needs conditional override of 'filter' to 'none' */background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2NjY2NjYyIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM5Nzk3OTciIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);background: -moz-linear-gradient(top, #cccccc 0%, #979797 100%); /* FF3.6+ */background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#cccccc), color-stop(100%,#979797)); /* Chrome,Safari4+ */background: -webkit-linear-gradient(top, #cccccc 0%,#979797 100%); /* Chrome10+,Safari5.1+ */background: -o-linear-gradient(top, #cccccc 0%,#979797 100%); /* Opera 11.10+ */background: -ms-linear-gradient(top, #cccccc 0%,#979797 100%); /* IE10+ */background: linear-gradient(to bottom, #cccccc 0%,#979797 100%); /* W3C */filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cccccc', endColorstr='#979797',GradientType=0 ); /* IE6-8 */}
|
62 |
-
|
63 |
-
.boleto-title{background:url(../imagem/boleto-icon.png) no-repeat 10px 10px;padding: 20px 0;padding-left:120px;}
|
64 |
-
|
65 |
-
.btn-transparente{display:block;float:left;clear:both;border-radius:10px;color:#fff;font-size:16pt;font-weight:bold;text-align: centeR;text-transform: uppercase;position:relative;padding: 15px 20px;clear:both;margin-left:70px;margin-top:60px;margin-bottom:25px;background: #ff9900; /* Old browsers *//* IE9 SVG, needs conditional override of 'filter' to 'none' */background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmOTkwMCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZjY2MDAiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);background: -moz-linear-gradient(top, #ff9900 0%, #ff6600 100%); /* FF3.6+ */background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff9900), color-stop(100%,#ff6600)); /* Chrome,Safari4+ */background: -webkit-linear-gradient(top, #ff9900 0%,#ff6600 100%); /* Chrome10+,Safari5.1+ */background: -o-linear-gradient(top, #ff9900 0%,#ff6600 100%); /* Opera 11.10+ */background: -ms-linear-gradient(top, #ff9900 0%,#ff6600 100%); /* IE10+ */background: linear-gradient(to bottom, #ff9900 0%,#ff6600 100%); /* W3C */filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff9900', endColorstr='#ff6600',GradientType=0 ); /* IE6-8 */}
|
66 |
-
.btn-transparente img{position:absolute;left:-70px;top:-20px;}
|
67 |
-
.btn-boleto{padding: 15px 20px 15px 55px;border: 0;}
|
68 |
-
.btn-boleto span{display:block;clear:both;text-align: centeR;font-size:13pt;font-weight: lighter;margin:0;margin-top:10px;font-family:'Open Sans'}
|
69 |
|
70 |
-
.
|
71 |
-
|
72 |
-
|
|
|
73 |
|
74 |
-
|
75 |
-
|
76 |
-
|
|
|
77 |
|
78 |
-
.
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
#pgcartao{float:left;cleaR:both;margin-top:30px;}
|
86 |
-
#statustransparenteadd{color:#666;font-size:11pt;line-height:1.3;}
|
87 |
-
#idtransparente{color:#333;margin:10px 0;font-size:14pt;}
|
88 |
-
#idtransparente:before{content:"Número da transação Transparente: "}
|
1 |
+
|
2 |
+
.modal-open {
|
3 |
+
overflow: hidden;
|
4 |
+
}
|
5 |
+
.modal {
|
6 |
+
position: fixed;
|
7 |
+
top: 0;
|
8 |
+
right: 0;
|
9 |
+
bottom: 0;
|
10 |
+
left: 0;
|
11 |
+
z-index: 1050;
|
12 |
+
display: none;
|
13 |
+
overflow: auto;
|
14 |
+
overflow-y: scroll;
|
15 |
+
-webkit-overflow-scrolling: touch;
|
16 |
+
outline: 0;
|
17 |
+
}
|
18 |
+
.modal.fade .modal-dialog {
|
19 |
+
-webkit-transition: -webkit-transform .3s ease-out;
|
20 |
+
-moz-transition: -moz-transform .3s ease-out;
|
21 |
+
-o-transition: -o-transform .3s ease-out;
|
22 |
+
transition: transform .3s ease-out;
|
23 |
+
-webkit-transform: translate(0, -25%);
|
24 |
+
-ms-transform: translate(0, -25%);
|
25 |
+
transform: translate(0, -25%);
|
26 |
+
}
|
27 |
+
.modal.in .modal-dialog {
|
28 |
+
-webkit-transform: translate(0, 0);
|
29 |
+
-ms-transform: translate(0, 0);
|
30 |
+
transform: translate(0, 0);
|
31 |
+
}
|
32 |
+
.modal-dialog {
|
33 |
+
position: relative;
|
34 |
+
width: auto;
|
35 |
+
margin: 10px;
|
36 |
+
}
|
37 |
+
.modal-content {
|
38 |
+
position: relative;
|
39 |
+
background-color: #fff;
|
40 |
+
background-clip: padding-box;
|
41 |
+
border: 1px solid #999;
|
42 |
+
border: 1px solid rgba(0, 0, 0, .2);
|
43 |
+
border-radius: 6px;
|
44 |
+
outline: none;
|
45 |
+
-webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
|
46 |
+
box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
|
47 |
+
}
|
48 |
+
.modal-backdrop {
|
49 |
+
position: fixed;
|
50 |
+
top: 0;
|
51 |
+
right: 0;
|
52 |
+
bottom: 0;
|
53 |
+
left: 0;
|
54 |
+
z-index: 1040;
|
55 |
+
background-color: #000;
|
56 |
+
}
|
57 |
+
.modal-backdrop.fade {
|
58 |
+
filter: alpha(opacity=0);
|
59 |
+
opacity: 0;
|
60 |
+
}
|
61 |
+
.modal-backdrop.in {
|
62 |
+
filter: alpha(opacity=50);
|
63 |
+
opacity: .5;
|
64 |
+
}
|
65 |
+
.modal-header {
|
66 |
+
min-height: 16.428571429px;
|
67 |
+
padding: 15px;
|
68 |
+
border-bottom: 1px solid #e5e5e5;
|
69 |
+
}
|
70 |
+
.modal-header .close {
|
71 |
+
margin-top: -2px;
|
72 |
+
}
|
73 |
+
.modal-title {
|
74 |
+
margin: 0;
|
75 |
+
line-height: 1.428571429;
|
76 |
+
}
|
77 |
+
.modal-body {
|
78 |
+
position: relative;
|
79 |
+
padding: 20px;
|
80 |
+
}
|
81 |
+
.modal-footer {
|
82 |
+
padding: 19px 20px 20px;
|
83 |
+
margin-top: 15px;
|
84 |
+
text-align: right;
|
85 |
+
border-top: 1px solid #e5e5e5;
|
86 |
+
}
|
87 |
+
.modal-footer .btn + .btn {
|
88 |
+
margin-bottom: 0;
|
89 |
+
margin-left: 5px;
|
90 |
+
}
|
91 |
+
.modal-footer .btn-group .btn + .btn {
|
92 |
+
margin-left: -1px;
|
93 |
+
}
|
94 |
+
.modal-footer .btn-block + .btn-block {
|
95 |
+
margin-left: 0;
|
96 |
+
}
|
97 |
+
@media (min-width: 768px) {
|
98 |
+
.modal-dialog {
|
99 |
+
width: 600px;
|
100 |
+
margin: 30px auto;
|
101 |
+
}
|
102 |
+
.modal-content {
|
103 |
+
-webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
|
104 |
+
box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
|
105 |
+
}
|
106 |
+
.modal-sm {
|
107 |
+
width: 300px;
|
108 |
+
}
|
109 |
+
.modal-lg {
|
110 |
+
width: 900px;
|
111 |
+
}
|
112 |
+
}
|
113 |
+
|
114 |
+
|
115 |
+
|
116 |
.repay-form{list-style: none;display: block;}
|
117 |
.repay-form li{display: block; clear: both;margin: 5px 0}
|
118 |
.repay-form li > label{display: block; width: 110px;float: left;text-align:right; padding-right:5px}
|
121 |
|
122 |
/* layout */
|
123 |
|
124 |
+
.order-id {
|
125 |
+
background: #333333;
|
126 |
+
color: #fff;
|
127 |
+
font-weight: bold;
|
128 |
+
font-size: 16pt;
|
129 |
+
padding: 5px 15px;
|
130 |
+
border-radius: 5px;
|
131 |
+
clear: both;
|
132 |
float: left;
|
133 |
+
display: block;
|
134 |
}
|
135 |
|
136 |
+
.method-type-payment {
|
137 |
+
width: 100%;
|
138 |
+
text-align: center;
|
139 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
|
141 |
+
.method-type-action {
|
142 |
+
width: 100%;
|
143 |
+
text-align: center;
|
144 |
+
}
|
145 |
|
146 |
+
form#refazercartao {
|
147 |
+
background: #f5f5f5;
|
148 |
+
padding: 15px;
|
149 |
+
}
|
150 |
|
151 |
+
.corpo_transparente {
|
152 |
+
padding-top: 2%;
|
153 |
+
border-bottom: 1px solid rgb(229, 229, 229);
|
154 |
+
padding-bottom: 3%;
|
155 |
+
border-top: 1px solid rgb(229, 229, 229);
|
156 |
+
margin-bottom: 45px;
|
157 |
+
}
|
|
|
|
|
|
|
|
skin/frontend/base/default/MOIP/transparente/css/horizontal_form.css
CHANGED
@@ -10,13 +10,15 @@ ul.form-list.dados-titular > li > label{clear: none !important; width: 105px;flo
|
|
10 |
ul.form-list.dados-titular > li > div{ width: 50% !important;clear: none !important; float: left;}
|
11 |
#formcli > ul > li > label > em {right: 2px !important;}
|
12 |
ul.inline li{float: left;width: 30%;margin-right: 2%; text-align: center;}
|
13 |
-
ul.inline li img{width:
|
14 |
|
15 |
-
.transparente-payment-method-content{display: none;clear: both; width:
|
16 |
|
17 |
ul.inline.input-switcher-4 > li{width: 23%}
|
18 |
-
ul.inline.input-switcher-5 > li
|
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;}
|
@@ -58,4 +60,7 @@ li.cofre {
|
|
58 |
input#cartao_salvo {
|
59 |
margin-top: 20px;
|
60 |
margin-left: 6px;
|
|
|
|
|
|
|
61 |
}
|
10 |
ul.form-list.dados-titular > li > div{ width: 50% !important;clear: none !important; float: left;}
|
11 |
#formcli > ul > li > label > em {right: 2px !important;}
|
12 |
ul.inline li{float: left;width: 30%;margin-right: 2%; text-align: center;}
|
13 |
+
ul.inline li img{width: 70%; height: auto; clear: both; display: block;margin-bottom: 5px;}
|
14 |
|
15 |
+
.transparente-payment-method-content{display: none;clear: both; width: 100%;}
|
16 |
|
17 |
ul.inline.input-switcher-4 > li{width: 23%}
|
18 |
+
ul.inline.input-switcher-5 > li img{width: 45px;display: none;}
|
19 |
+
.tab-pane.hide{
|
20 |
+
display: none;
|
21 |
+
}
|
22 |
.tooltip-transparente-handler{position: relative !important;}
|
23 |
.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;}
|
24 |
.tooltip-transparente-visible{display: block;}
|
60 |
input#cartao_salvo {
|
61 |
margin-top: 20px;
|
62 |
margin-left: 6px;
|
63 |
+
}
|
64 |
+
.alerta_data {
|
65 |
+
float: left;
|
66 |
}
|
skin/frontend/base/default/MOIP/transparente/css/product_view.css
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* =============== Parcelas Moip ================== */
|
2 |
+
#parcelas_integrais.skip-active { display: block;}
|
3 |
+
a.skip-link.skip-parcelas_integrais {font-size: 12px;color: #000;text-decoration: underline;float: right;width: 100%;text-align: right;}
|
4 |
+
#parcelas_integrais { background: #fff;padding: 10px;color: #999;border: 1px solid #ccc;box-shadow: 0px -1px 16px 1px rgba(0, 0, 0, 0.2);position: absolute;width: 360px;margin: 5px;z-index: 9;margin-top: 25px;}
|
5 |
+
#parcelas_integrais:after, #parcelas_integrais:before { bottom: 100%; left: 25%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none;}
|
6 |
+
#parcelas_integrais:after { border-color: transparent; border-bottom-color: #fff; border-width: 10px; margin-left: -20px;}
|
7 |
+
#parcelas_integrais:before { border-color: rgba(255, 255, 255, 0.35);border-bottom-color: transparent;border-width: 1px;margin-left: -1px;}
|
8 |
+
ul.product_view_bandeiras > li > img {width: 55px;margin-left: 21px;margin-bottom: 10px;}
|
9 |
+
.skip-link.skip-parcelas_integrais {cursor: pointer;}
|
10 |
+
span.parcela {font-size: 18px;font-weight: bold;}
|
11 |
+
.grid12-1 { width:6.33%; }
|
12 |
+
.grid12-2 { width:14.66%; }
|
13 |
+
.grid12-3 { width:23%; }
|
14 |
+
.grid12-4 { width:31.33%; }
|
15 |
+
.grid12-5 { width:39.67%; }
|
16 |
+
.grid12-6 { width:48%; }
|
17 |
+
.grid12-7 { width:56.33%; }
|
18 |
+
.grid12-8 { width:64.67%; }
|
19 |
+
.grid12-9 { width:73%; }
|
20 |
+
.grid12-10 { width:81.33%; }
|
21 |
+
.grid12-11 { width:89.67%; }
|
22 |
+
.grid12-12,
|
23 |
+
.grid-full { width:98%; }
|
24 |
+
.grid12-1, .grid12-2, .grid12-3, .grid12-4, .grid12-5, .grid12-6, .grid12-7, .grid12-8, .grid12-9, .grid12-10, .grid12-11, .grid12-12, .grid-full, .grid-col2-sidebar, .grid-col2-main {
|
25 |
+
/* position: relative; */
|
26 |
+
display: inline;
|
27 |
+
float: left;
|
28 |
+
margin-left: 1%;
|
29 |
+
margin-right: 1%;
|
30 |
+
}
|
31 |
+
|
32 |
+
@media only screen and (max-width:759px) {
|
33 |
+
/**
|
34 |
+
* Fusion Grid Layout - Mobile layout, 12 column grid, 15px gutters
|
35 |
+
* -------------------------------------------------------------------- */
|
36 |
+
/* grid widths */
|
37 |
+
body .grid12-1,
|
38 |
+
body .grid12-2,
|
39 |
+
body .grid12-3,
|
40 |
+
body .grid12-4,
|
41 |
+
body .grid12-5,
|
42 |
+
body .grid12-6,
|
43 |
+
body .grid12-7,
|
44 |
+
body .grid12-8,
|
45 |
+
body .grid12-9,
|
46 |
+
body .grid12-10,
|
47 |
+
body .grid12-11,
|
48 |
+
body .grid12-12 {
|
49 |
+
clear: both;
|
50 |
+
width: 100%;
|
51 |
+
}
|
52 |
+
|
53 |
+
}
|