o2ti_moip - Version 1.2.2

Version Notes

Alteração Método de Parcelamento.

Download this release

Release Info

Developer O2TI
Extension o2ti_moip
Version 1.2.2
Comparing to
See all releases


Code changes from version 1.2.1 to 1.2.2

Files changed (348) hide show
  1. app/code/local/O2TI/.DS_Store +0 -0
  2. app/code/local/O2TI/Moip/Block/Info.php +1 -0
  3. app/code/local/O2TI/Moip/Block/Standard/Form.php +20 -18
  4. app/code/local/O2TI/Moip/Model/Api.php +172 -107
  5. app/code/local/O2TI/Moip/Model/Standard.php +29 -15
  6. app/code/local/O2TI/Moip/controllers/StandardController.php +21 -8
  7. app/code/local/O2TI/Moip/etc/config.xml +18 -3
  8. app/code/local/O2TI/Moip/etc/system.xml +293 -38
  9. app/code/local/O2TI/Moip/sql/moip_setup/mysql4-upgrade-0.1.0-0.2.0.php +10 -0
  10. app/code/local/O2TI/Moip/sql/moip_setup/mysql4-upgrade-0.1.0-0.2.1.php +1 -15
  11. app/code/local/O2TI/Moip/sql/moip_setup/mysql4-upgrade-0.2.1-0.2.3.php +1 -5
  12. app/code/local/O2TI/Moip/sql/moip_setup/mysql4-upgrade-0.2.1-0.2.4.php +2 -2
  13. app/code/local/O2TI/Onestepcheckout/controllers/IndexController.php +1 -9
  14. app/code/local/O2TI/Onestepcheckout/etc/config.xml +4 -16
  15. app/code/local/O2TI/Onestepcheckout/etc/system.xml +5 -14
  16. app/design/adminhtml/default/default/template/O2TI/moip/info.phtml +9 -0
  17. app/design/adminhtml/default/default/template/O2TI/pagseguro/form.phtml +0 -682
  18. app/design/adminhtml/default/default/template/O2TI/pagseguro/info.phtml +0 -48
  19. app/design/adminhtml/default/default/template/O2TI/pagseguro/redirect.phtml +0 -587
  20. app/design/frontend/{default → base}/default/layout/o2ti_moip.xml +0 -0
  21. app/design/frontend/{default → base}/default/layout/o2ti_onestepcheckout.xml +0 -0
  22. app/design/frontend/base/default/template/O2TI/customer/widget/dob.phtml +103 -0
  23. app/design/frontend/base/default/template/O2TI/customer/widget/taxvat.phtml +17 -0
  24. app/design/frontend/{default → base}/default/template/O2TI/moip/Novaforma.phtml +0 -0
  25. app/design/frontend/{default → base}/default/template/O2TI/moip/boleto.phtml +5 -1
  26. app/design/frontend/{default → base}/default/template/O2TI/moip/cartao.phtml +3 -1
  27. app/design/frontend/{default → base}/default/template/O2TI/moip/emptyupdate.phtml +0 -0
  28. app/design/frontend/{default → base}/default/template/O2TI/moip/form.phtml +0 -0
  29. app/design/frontend/{default → base}/default/template/O2TI/moip/horizontal_form.phtml +89 -99
  30. app/design/frontend/{default → base}/default/template/O2TI/moip/info.phtml +25 -9
  31. app/design/frontend/{default → base}/default/template/O2TI/moip/layout_boleto.phtml +0 -0
  32. app/design/frontend/base/default/template/O2TI/moip/redirect.phtml +1 -0
  33. app/design/frontend/{default → base}/default/template/O2TI/moip/refaz.phtml +22 -8
  34. app/design/frontend/{default → base}/default/template/O2TI/moip/transferencia.phtml +3 -2
  35. app/design/frontend/{default → base}/default/template/O2TI/moip/vertical_form.phtml +10 -4
  36. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard.phtml +8 -3
  37. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/agreements.phtml +0 -0
  38. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/billing.phtml +6 -13
  39. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/billing/billing_form.phtml +10 -2
  40. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/correio.phtml +0 -0
  41. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/coupon.phtml +2 -0
  42. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/forgotpassword.phtml +2 -0
  43. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/local.xml +0 -0
  44. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/login.phtml +2 -1
  45. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/payment.phtml +0 -0
  46. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/payment/methods.phtml +1 -12
  47. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/review.phtml +0 -0
  48. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/review/button.phtml +0 -0
  49. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/review/info.phtml +0 -0
  50. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/review/item.phtml +0 -0
  51. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/review/options.phtml +0 -0
  52. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/review/options/additional.phtml +0 -0
  53. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/review/totals.phtml +0 -0
  54. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/shipping.phtml +5 -10
  55. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/shipping/shipping_form.phtml +0 -0
  56. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/shipping_method.phtml +0 -0
  57. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/shipping_method/available.phtml +4 -16
  58. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/emptyupdate.phtml +0 -0
  59. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/onepage.phtml +0 -0
  60. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/sales/order/info.phtml +0 -0
  61. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/sales/order/info/customermessages.phtml +0 -0
  62. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/sales/order/info/customermessages.phtml~ +0 -0
  63. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/sales/order/info/deliverydate.phtml +0 -0
  64. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/sales/order/info/deliverydate.phtml~ +0 -0
  65. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/sales/order/view/tab/info.phtml +0 -0
  66. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/sales/order/view/tab/info/customermessages.phtml +0 -0
  67. app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/sales/order/view/tab/info/deliverydate.phtml +0 -0
  68. app/design/frontend/default/default/template/O2TI/cadastro/customer/form/edit.phtml +0 -145
  69. app/design/frontend/default/default/template/O2TI/cadastro/persistent/checkout/onepage/billing.phtml +0 -247
  70. app/design/frontend/default/default/template/O2TI/cadastro/persistent/customer/form/register.phtml +0 -218
  71. app/design/frontend/default/default/template/O2TI/moip/redirect.phtml +0 -500
  72. js/O2TI/onestepcheckout/change-events.js +4 -45
  73. package.xml +6 -7
  74. skin/adminhtml/default/default/O2TI/moip/css/bootstrap.css +62 -10
  75. skin/adminhtml/default/default/O2TI/moip/css/formulario.css +23 -29
  76. skin/{frontend → adminhtml}/default/default/O2TI/moip/css/formulario_horizontal.css +0 -0
  77. skin/adminhtml/default/default/O2TI/moip/css/prettify.css +0 -0
  78. skin/adminhtml/default/default/O2TI/moip/imagem/ababoleto.png +0 -0
  79. skin/adminhtml/default/default/O2TI/moip/imagem/abacartao.png +0 -0
  80. skin/adminhtml/default/default/O2TI/moip/imagem/abatransf.png +0 -0
  81. skin/{frontend/default/default/O2TI/moip/imagem → adminhtml/default/default/O2TI/moip/imagem/azul}/ababoleto.png +0 -0
  82. skin/{frontend/default/default/O2TI/moip/imagem → adminhtml/default/default/O2TI/moip/imagem/azul}/abacartao.png +0 -0
  83. skin/{frontend/default/default/O2TI/moip/imagem → adminhtml/default/default/O2TI/moip/imagem/azul}/abatransf.png +0 -0
  84. skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/bank-icon.png +0 -0
  85. skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/bank-title.png +0 -0
  86. skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/boleto-icon.png +0 -0
  87. skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/branco/ababoleto.png +0 -0
  88. skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/branco/abacartao.png +0 -0
  89. skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/branco/abatransf.png +0 -0
  90. skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/branco/e-sedex.gif +0 -0
  91. skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/branco/e-sedex.png +0 -0
  92. skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/branco/pac.gif +0 -0
  93. skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/branco/pac.png +0 -0
  94. skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/branco/sedex.gif +0 -0
  95. skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/branco/sedex.png +0 -0
  96. skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/cc-title.png +0 -0
  97. skin/adminhtml/default/default/O2TI/moip/imagem/codigo-seguranca.png +0 -0
  98. skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/moipbanner2.png +0 -0
  99. skin/adminhtml/default/default/O2TI/moip/imagem/pedroteixeira_correios_40010.gif +0 -0
  100. skin/adminhtml/default/default/O2TI/moip/imagem/pedroteixeira_correios_40096.gif +0 -0
  101. skin/adminhtml/default/default/O2TI/moip/imagem/pedroteixeira_correios_41068.gif +0 -0
  102. skin/adminhtml/default/default/O2TI/moip/imagem/pedroteixeira_correios_41106.gif +0 -0
  103. skin/adminhtml/default/default/O2TI/moip/imagem/pedroteixeira_correios_81019.gif +0 -0
  104. skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/preto/ababoleto.png +0 -0
  105. skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/preto/abacartao.png +0 -0
  106. skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/preto/abatransf.png +0 -0
  107. skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/printer.png +0 -0
  108. skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/verde/ababoleto.png +0 -0
  109. skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/verde/abacartao.png +0 -0
  110. skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/verde/abatransf.png +0 -0
  111. skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/vermelho/ababoleto.png +0 -0
  112. skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/vermelho/abacartao.png +0 -0
  113. skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/vermelho/abatransf.png +0 -0
  114. skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/warning.png +0 -0
  115. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/960grid_onestepcheckout.css +0 -0
  116. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/blank.gif +0 -0
  117. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_close.png +0 -0
  118. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_loading.png +0 -0
  119. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_nav_left.png +0 -0
  120. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_nav_right.png +0 -0
  121. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_overlay.png +0 -0
  122. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_shadow_e.png +0 -0
  123. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_shadow_n.png +0 -0
  124. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_shadow_ne.png +0 -0
  125. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_shadow_nw.png +0 -0
  126. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_shadow_s.png +0 -0
  127. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_shadow_se.png +0 -0
  128. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_shadow_sw.png +0 -0
  129. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_shadow_w.png +0 -0
  130. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_title_left.png +0 -0
  131. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_title_main.png +0 -0
  132. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_title_over.png +0 -0
  133. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_title_right.png +0 -0
  134. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancybox-x.png +0 -0
  135. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancybox-y.png +0 -0
  136. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancybox.png +0 -0
  137. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  138. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  139. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-bg_flat_10_000000_40x100.png +0 -0
  140. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  141. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  142. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  143. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-bg_gloss-wave_35_000_500x100.png +0 -0
  144. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  145. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  146. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  147. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-icons_222222_256x240.png +0 -0
  148. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-icons_228ef1_256x240.png +0 -0
  149. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-icons_ef8c08_256x240.png +0 -0
  150. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-icons_ffd27a_256x240.png +0 -0
  151. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-icons_ffffff_256x240.png +0 -0
  152. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/jquery.fancybox-1.3.1.css +0 -0
  153. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/onestepcheckout.css +0 -0
  154. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/01.png +0 -0
  155. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/02.png +0 -0
  156. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/03.png +0 -0
  157. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/04.png +0 -0
  158. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/05.png +0 -0
  159. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/2_clock.png +0 -0
  160. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/ajax-loader-tr.gif +0 -0
  161. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/bkg-giftmessage.png +0 -0
  162. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/bkg-step-review.png +0 -0
  163. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/bkg_form-search.gif +0 -0
  164. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/bkg_header.jpg +0 -0
  165. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/blank.gif +0 -0
  166. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/btn_checkout.gif +0 -0
  167. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/clock.gif +0 -0
  168. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/clock.png +0 -0
  169. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/demo-large_03.png +0 -0
  170. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/demo-large_04.png +0 -0
  171. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/demo-large_05.png +0 -0
  172. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/demo-large_051.png +0 -0
  173. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/demo-large_06.png +0 -0
  174. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/demo-large_07.png +0 -0
  175. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_close.png +0 -0
  176. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_loading.png +0 -0
  177. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_nav_left.png +0 -0
  178. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_nav_right.png +0 -0
  179. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_overlay.png +0 -0
  180. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_shadow_e.png +0 -0
  181. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_shadow_n.png +0 -0
  182. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_shadow_ne.png +0 -0
  183. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_shadow_nw.png +0 -0
  184. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_shadow_s.png +0 -0
  185. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_shadow_se.png +0 -0
  186. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_shadow_sw.png +0 -0
  187. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_shadow_w.png +0 -0
  188. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_title_left.png +0 -0
  189. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_title_main.png +0 -0
  190. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_title_over.png +0 -0
  191. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_title_right.png +0 -0
  192. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancybox-x.png +0 -0
  193. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancybox-y.png +0 -0
  194. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancybox.png +0 -0
  195. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/grid-cal.gif +0 -0
  196. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/line-gradient.gif +0 -0
  197. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/loja_segura.jpg +0 -0
  198. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/opc-ajax-loader.gif +0 -0
  199. skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/validation_advice_bg.gif +0 -0
  200. skin/frontend/{default → base}/default/O2TI/moip/css/bootstrap.css +0 -0
  201. skin/frontend/{default → base}/default/O2TI/moip/css/formulario.css +0 -0
  202. skin/frontend/base/default/O2TI/moip/css/formulario_horizontal.css +44 -0
  203. skin/frontend/{default → base}/default/O2TI/moip/css/prettify.css +0 -0
  204. skin/frontend/{default → base}/default/O2TI/moip/imagem/AmericanExpress.png +0 -0
  205. skin/frontend/{default → base}/default/O2TI/moip/imagem/BancoDoBrasil.png +0 -0
  206. skin/frontend/{default → base}/default/O2TI/moip/imagem/Banrisul.png +0 -0
  207. skin/frontend/{default → base}/default/O2TI/moip/imagem/Bradesco.png +0 -0
  208. skin/frontend/{default → base}/default/O2TI/moip/imagem/Diners.png +0 -0
  209. skin/frontend/{default → base}/default/O2TI/moip/imagem/Hipercard.png +0 -0
  210. skin/frontend/{default → base}/default/O2TI/moip/imagem/Itau.png +0 -0
  211. skin/frontend/{default → base}/default/O2TI/moip/imagem/Mastercard.png +0 -0
  212. skin/frontend/{default → base}/default/O2TI/moip/imagem/Visa.png +0 -0
  213. skin/frontend/{default/default/O2TI/moip/imagem/azul → base/default/O2TI/moip/imagem}/ababoleto.png +0 -0
  214. skin/frontend/{default/default/O2TI/moip/imagem/azul → base/default/O2TI/moip/imagem}/abacartao.png +0 -0
  215. skin/frontend/{default/default/O2TI/moip/imagem/azul → base/default/O2TI/moip/imagem}/abatransf.png +0 -0
  216. skin/frontend/{default → base}/default/O2TI/moip/imagem/ajax-loader.gif +0 -0
  217. skin/frontend/base/default/O2TI/moip/imagem/azul/ababoleto.png +0 -0
  218. skin/frontend/base/default/O2TI/moip/imagem/azul/abacartao.png +0 -0
  219. skin/frontend/base/default/O2TI/moip/imagem/azul/abatransf.png +0 -0
  220. skin/frontend/base/default/O2TI/moip/imagem/bank-icon.png +0 -0
  221. skin/frontend/base/default/O2TI/moip/imagem/bank-title.png +0 -0
  222. skin/frontend/{default → base}/default/O2TI/moip/imagem/bb.png +0 -0
  223. skin/frontend/base/default/O2TI/moip/imagem/boleto-icon.png +0 -0
  224. skin/frontend/{default → base}/default/O2TI/moip/imagem/boleto.png +0 -0
  225. skin/frontend/base/default/O2TI/moip/imagem/branco/ababoleto.png +0 -0
  226. skin/frontend/base/default/O2TI/moip/imagem/branco/abacartao.png +0 -0
  227. skin/frontend/base/default/O2TI/moip/imagem/branco/abatransf.png +0 -0
  228. skin/frontend/{default/default/O2TI/moip/imagem/pedroteixeira_correios_40096.gif → base/default/O2TI/moip/imagem/branco/e-sedex.gif} +0 -0
  229. skin/frontend/base/default/O2TI/moip/imagem/branco/e-sedex.png +0 -0
  230. skin/frontend/{default/default/O2TI/moip/imagem/pedroteixeira_correios_41068.gif → base/default/O2TI/moip/imagem/branco/pac.gif} +0 -0
  231. skin/frontend/base/default/O2TI/moip/imagem/branco/pac.png +0 -0
  232. skin/frontend/{default/default/O2TI/moip/imagem/pedroteixeira_correios_81019.gif → base/default/O2TI/moip/imagem/branco/sedex.gif} +0 -0
  233. skin/frontend/base/default/O2TI/moip/imagem/branco/sedex.png +0 -0
  234. skin/frontend/base/default/O2TI/moip/imagem/cc-title.png +0 -0
  235. skin/frontend/{default → base}/default/O2TI/moip/imagem/codigo-seguranca.png +0 -0
  236. skin/frontend/{default → base}/default/O2TI/moip/imagem/flatrate_flatrate.gif +0 -0
  237. skin/frontend/{default → base}/default/O2TI/moip/imagem/freeshipping_freeshipping.gif +0 -0
  238. skin/frontend/{default → base}/default/O2TI/moip/imagem/info.png +0 -0
  239. skin/frontend/{default → base}/default/O2TI/moip/imagem/logomoip.png +0 -0
  240. skin/frontend/{default → base}/default/O2TI/moip/imagem/logomoipck.png +0 -0
  241. skin/frontend/{default → base}/default/O2TI/moip/imagem/moip.png +0 -0
  242. skin/frontend/{default → base}/default/O2TI/moip/imagem/moipamerican.png +0 -0
  243. skin/frontend/base/default/O2TI/moip/imagem/moipbanner2.png +0 -0
  244. skin/frontend/{default → base}/default/O2TI/moip/imagem/moipdiners.png +0 -0
  245. skin/frontend/{default → base}/default/O2TI/moip/imagem/moiphiper.png +0 -0
  246. skin/frontend/{default → base}/default/O2TI/moip/imagem/moipmaster.png +0 -0
  247. skin/frontend/{default → base}/default/O2TI/moip/imagem/moipvisa.png +0 -0
  248. skin/frontend/{default → base}/default/O2TI/moip/imagem/pedroteixeira_correios_40010.gif +0 -0
  249. skin/frontend/base/default/O2TI/moip/imagem/pedroteixeira_correios_40096.gif +0 -0
  250. skin/frontend/base/default/O2TI/moip/imagem/pedroteixeira_correios_41068.gif +0 -0
  251. skin/frontend/{default → base}/default/O2TI/moip/imagem/pedroteixeira_correios_41106.gif +0 -0
  252. skin/frontend/base/default/O2TI/moip/imagem/pedroteixeira_correios_81019.gif +0 -0
  253. skin/frontend/base/default/O2TI/moip/imagem/preto/ababoleto.png +0 -0
  254. skin/frontend/base/default/O2TI/moip/imagem/preto/abacartao.png +0 -0
  255. skin/frontend/base/default/O2TI/moip/imagem/preto/abatransf.png +0 -0
  256. skin/frontend/base/default/O2TI/moip/imagem/printer.png +0 -0
  257. skin/frontend/base/default/O2TI/moip/imagem/verde/ababoleto.png +0 -0
  258. skin/frontend/base/default/O2TI/moip/imagem/verde/abacartao.png +0 -0
  259. skin/frontend/base/default/O2TI/moip/imagem/verde/abatransf.png +0 -0
  260. skin/frontend/base/default/O2TI/moip/imagem/vermelho/ababoleto.png +0 -0
  261. skin/frontend/base/default/O2TI/moip/imagem/vermelho/abacartao.png +0 -0
  262. skin/frontend/base/default/O2TI/moip/imagem/vermelho/abatransf.png +0 -0
  263. skin/frontend/base/default/O2TI/moip/imagem/warning.png +0 -0
  264. skin/frontend/base/default/O2TI/onestepcheckout/css/960grid_onestepcheckout.css +33 -0
  265. skin/frontend/base/default/O2TI/onestepcheckout/css/images/blank.gif +0 -0
  266. skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_close.png +0 -0
  267. skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_loading.png +0 -0
  268. skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_nav_left.png +0 -0
  269. skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_nav_right.png +0 -0
  270. skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_overlay.png +0 -0
  271. skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_shadow_e.png +0 -0
  272. skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_shadow_n.png +0 -0
  273. skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_shadow_ne.png +0 -0
  274. skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_shadow_nw.png +0 -0
  275. skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_shadow_s.png +0 -0
  276. skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_shadow_se.png +0 -0
  277. skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_shadow_sw.png +0 -0
  278. skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_shadow_w.png +0 -0
  279. skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_title_left.png +0 -0
  280. skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_title_main.png +0 -0
  281. skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_title_over.png +0 -0
  282. skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_title_right.png +0 -0
  283. skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancybox-x.png +0 -0
  284. skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancybox-y.png +0 -0
  285. skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancybox.png +0 -0
  286. skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  287. skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  288. skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-bg_flat_10_000000_40x100.png +0 -0
  289. skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  290. skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  291. skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  292. skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-bg_gloss-wave_35_000_500x100.png +0 -0
  293. skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  294. skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  295. skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  296. skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-icons_222222_256x240.png +0 -0
  297. skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-icons_228ef1_256x240.png +0 -0
  298. skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-icons_ef8c08_256x240.png +0 -0
  299. skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-icons_ffd27a_256x240.png +0 -0
  300. skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-icons_ffffff_256x240.png +0 -0
  301. skin/frontend/base/default/O2TI/onestepcheckout/css/jquery.fancybox-1.3.1.css +253 -0
  302. skin/frontend/base/default/O2TI/onestepcheckout/css/onestepcheckout.css +41 -0
  303. skin/frontend/base/default/O2TI/onestepcheckout/images/01.png +0 -0
  304. skin/frontend/base/default/O2TI/onestepcheckout/images/02.png +0 -0
  305. skin/frontend/base/default/O2TI/onestepcheckout/images/03.png +0 -0
  306. skin/frontend/base/default/O2TI/onestepcheckout/images/04.png +0 -0
  307. skin/frontend/base/default/O2TI/onestepcheckout/images/05.png +0 -0
  308. skin/frontend/base/default/O2TI/onestepcheckout/images/2_clock.png +0 -0
  309. skin/frontend/base/default/O2TI/onestepcheckout/images/ajax-loader-tr.gif +0 -0
  310. skin/frontend/base/default/O2TI/onestepcheckout/images/bkg-giftmessage.png +0 -0
  311. skin/frontend/base/default/O2TI/onestepcheckout/images/bkg-step-review.png +0 -0
  312. skin/frontend/base/default/O2TI/onestepcheckout/images/bkg_form-search.gif +0 -0
  313. skin/frontend/base/default/O2TI/onestepcheckout/images/bkg_header.jpg +0 -0
  314. skin/frontend/base/default/O2TI/onestepcheckout/images/blank.gif +0 -0
  315. skin/frontend/base/default/O2TI/onestepcheckout/images/btn_checkout.gif +0 -0
  316. skin/frontend/base/default/O2TI/onestepcheckout/images/clock.gif +0 -0
  317. skin/frontend/base/default/O2TI/onestepcheckout/images/clock.png +0 -0
  318. skin/frontend/base/default/O2TI/onestepcheckout/images/demo-large_03.png +0 -0
  319. skin/frontend/base/default/O2TI/onestepcheckout/images/demo-large_04.png +0 -0
  320. skin/frontend/base/default/O2TI/onestepcheckout/images/demo-large_05.png +0 -0
  321. skin/frontend/base/default/O2TI/onestepcheckout/images/demo-large_051.png +0 -0
  322. skin/frontend/base/default/O2TI/onestepcheckout/images/demo-large_06.png +0 -0
  323. skin/frontend/base/default/O2TI/onestepcheckout/images/demo-large_07.png +0 -0
  324. skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_close.png +0 -0
  325. skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_loading.png +0 -0
  326. skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_nav_left.png +0 -0
  327. skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_nav_right.png +0 -0
  328. skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_overlay.png +0 -0
  329. skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_shadow_e.png +0 -0
  330. skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_shadow_n.png +0 -0
  331. skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_shadow_ne.png +0 -0
  332. skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_shadow_nw.png +0 -0
  333. skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_shadow_s.png +0 -0
  334. skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_shadow_se.png +0 -0
  335. skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_shadow_sw.png +0 -0
  336. skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_shadow_w.png +0 -0
  337. skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_title_left.png +0 -0
  338. skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_title_main.png +0 -0
  339. skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_title_over.png +0 -0
  340. skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_title_right.png +0 -0
  341. skin/frontend/base/default/O2TI/onestepcheckout/images/fancybox-x.png +0 -0
  342. skin/frontend/base/default/O2TI/onestepcheckout/images/fancybox-y.png +0 -0
  343. skin/frontend/base/default/O2TI/onestepcheckout/images/fancybox.png +0 -0
  344. skin/frontend/base/default/O2TI/onestepcheckout/images/grid-cal.gif +0 -0
  345. skin/frontend/base/default/O2TI/onestepcheckout/images/line-gradient.gif +0 -0
  346. skin/frontend/base/default/O2TI/onestepcheckout/images/loja_segura.jpg +0 -0
  347. skin/frontend/base/default/O2TI/onestepcheckout/images/opc-ajax-loader.gif +0 -0
  348. skin/frontend/base/default/O2TI/onestepcheckout/images/validation_advice_bg.gif +0 -0
app/code/local/O2TI/.DS_Store ADDED
Binary file
app/code/local/O2TI/Moip/Block/Info.php CHANGED
@@ -147,6 +147,7 @@ class O2TI_Moip_Block_Info extends Mage_Payment_Block_Info
147
  $dados['realorder_id'] = $result->getRealorder_id();
148
  $dados['order_idmoip'] = $result->getorder_idmoip();
149
  $dados['boleto_line'] = $result->getBoleto_line();
 
150
  $dados['brand'] = $result->getBrand();
151
  $dados['creditcard_parc'] = $result->getCreditcard_parc();
152
  $dados['first6'] = $result->getFirst6();
147
  $dados['realorder_id'] = $result->getRealorder_id();
148
  $dados['order_idmoip'] = $result->getorder_idmoip();
149
  $dados['boleto_line'] = $result->getBoleto_line();
150
+ $dados['customer_id'] = $result->getCustomerId();
151
  $dados['brand'] = $result->getBrand();
152
  $dados['creditcard_parc'] = $result->getCreditcard_parc();
153
  $dados['first6'] = $result->getFirst6();
app/code/local/O2TI/Moip/Block/Standard/Form.php CHANGED
@@ -257,7 +257,7 @@ class O2TI_Moip_Block_Standard_Form extends Mage_Payment_Block_Form {
257
 
258
  //confs de parcelamento
259
  public function getParcelamento($dataToReturn) {
260
- $parcelas = "";
261
  $k = "";
262
  $parcelax = "";
263
  $precox = "";
@@ -268,22 +268,24 @@ class O2TI_Moip_Block_Standard_Form extends Mage_Payment_Block_Form {
268
  $cartTotal = Mage::getModel('checkout/session')->getQuote()->getGrandTotal();
269
 
270
  if ($cartTotal > 5) {
271
- $parcelas .= "<option value=\"\">Selecione o número de parcelas</option>";
272
- $parcelas .= "<option value=\"1\">Pagamento à vista</option>";
273
  $parcelamento = $api->getParcelamento($cartTotal);
274
-
275
- foreach ($parcelamento as $k => $v) {
276
- if ($k <= Mage::getSingleton('moip/standard')->getConfigData('nummaxparcelamax')) {
277
- $precox = str_replace(",", "", $v['total']);
278
- $parcelax = str_replace(",", "", $v['valor']);
279
- if ($v['juros'] == "1.99"):
280
- $asterisco = "*";
281
- else:
282
- $asterisco = " ";
283
- endif;
284
- $parcelas .= "<option value=\"".$k."\"> ".$k."x " . Mage::helper('core')->currency($parcelax, true, false) .$asterisco. " | Total: " .Mage::helper('core')->currency($precox, true, false)."</option>";
 
 
 
 
 
285
  }
286
- }
287
  }else {
288
  $parcelas = "<option value=\"1\"> Pagamento à vista </option>";
289
  }
@@ -312,13 +314,13 @@ class O2TI_Moip_Block_Standard_Form extends Mage_Payment_Block_Form {
312
  }
313
  public function getTextoParcelas() {
314
  $parcelamento = Mage::getSingleton('moip/standard')->getInfoParcelamento();
315
- if ($parcelamento['juros1'] == 0) {
316
- echo "<div id=\"addparcelasdesc\"> Sem juros até ".$parcelamento['ate1']." parcelas ";
317
  if ($parcelamento['ate1'] < 13) {
318
  return ", após juros de 1,99% ao mês.</div>";
319
  }
320
  }else {
321
- return "<div id=\"addparcelasdesc\"> Com juros de ".$parcelamento['juros1']."% ao mês.</div>";
322
  }
323
  }
324
 
257
 
258
  //confs de parcelamento
259
  public function getParcelamento($dataToReturn) {
260
+ $parcelas = array();
261
  $k = "";
262
  $parcelax = "";
263
  $precox = "";
268
  $cartTotal = Mage::getModel('checkout/session')->getQuote()->getGrandTotal();
269
 
270
  if ($cartTotal > 5) {
 
 
271
  $parcelamento = $api->getParcelamento($cartTotal);
272
+ $parcela_decode = json_decode($parcelamento,true);
273
+ foreach ($parcela_decode as $key => $value) {
274
+
275
+ if ($key <= Mage::getSingleton('moip/standard')->getConfigData('nummaxparcelamax')) {
276
+
277
+
278
+ $juros = $parcela_decode[$key]['juros'];
279
+ $parcelas_result = $parcela_decode[$key]['parcela'];
280
+ $total_parcelado = $parcela_decode[$key]['total_parcelado'];
281
+ if($juros > 0)
282
+ $asterisco = '*';
283
+ else
284
+ $asterisco = '';
285
+ $parcelas[]= '<option value="'.$key.'">'.$key.'x de '.$parcelas_result.' no total de '.$total_parcelado.' '.$asterisco.'</option>';
286
+
287
+ }
288
  }
 
289
  }else {
290
  $parcelas = "<option value=\"1\"> Pagamento à vista </option>";
291
  }
314
  }
315
  public function getTextoParcelas() {
316
  $parcelamento = Mage::getSingleton('moip/standard')->getInfoParcelamento();
317
+ if ($parcelamento['c_juros1'] == 0) {
318
+ echo "<div id=\"addparcelasdesc\"> Sem juros até ".$parcelamento['c_ate1']." parcelas";
319
  if ($parcelamento['ate1'] < 13) {
320
  return ", após juros de 1,99% ao mês.</div>";
321
  }
322
  }else {
323
+ return "<div id=\"addparcelasdesc\"> Com juros de ".$parcelamento['c_juros1']."% ao mês.</div>";
324
  }
325
  }
326
 
app/code/local/O2TI/Moip/Model/Api.php CHANGED
@@ -75,14 +75,16 @@ class O2TI_Moip_Model_Api {
75
  }
76
 
77
  public function generatePedido($data, $pgto) {
78
-
 
 
79
  $standard = Mage::getSingleton('moip/standard');
80
  $parcelamento = $standard->getInfoParcelamento();
81
  $meio = $pgto["forma_pagamento"];
82
  $vcmentoboleto = $pgto["vcmentoboleto"];
83
  $forma_pgto = "";
84
  $validacao_nasp = $standard->getConfigData('validador_retorno');
85
- $url_retorno = Mage::getBaseUrl('web', true)."/Moip/standard/success/validacao/".$validacao_nasp."/";
86
  $valorcompra = $data['valor'];
87
  $vcmentoboleto = $standard->getConfigData('vcmentoboleto');
88
  $vcmento = date('c', strtotime("+" . $vcmentoboleto . " days"));
@@ -90,34 +92,66 @@ class O2TI_Moip_Model_Api {
90
  if($pgto['tipoderecebimento'] =="0"):
91
  $tipoderecebimento = "Parcelado";
92
  else:
93
- $tipoderecebimento = "";
94
  endif;
95
  $parcelamento = $standard->getInfoParcelamento();
96
- $max_parcelas = $parcelamento['ate1'];
97
- $min_parcelas = $parcelamento['de1'];
98
- $juros = $parcelamento['juros1'];
99
- if($max_parcelas == 12){
100
- $pacelamento_xml = array(
101
- 'Parcelamento' => array(
102
- 'MinimoParcelas' => $min_parcelas,
103
- 'MaximoParcelas' => $max_parcelas,
104
- 'Juros' => $juros,
105
- ),
106
- );
107
- } else{
108
- $pacelamento_xml = array(
109
- 'Parcelamento' => array(
110
- 'MinimoParcelas' => $min_parcelas,
111
- 'MaximoParcelas' => $max_parcelas,
112
- 'Juros' => $juros,
113
- ),
114
- 'Parcelamento' => array(
115
- 'MinimoParcelas' => $max_parcelas+1,
116
- 'MaximoParcelas' => '12',
117
- 'Juros' => '1.99',
118
- ),
119
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
120
  }
 
 
 
121
  if ($meio == "BoletoBancario"):
122
  if (Mage::getStoreConfig('o2tiall/pagamento_avancado/pagamento_boleto')):
123
  if ($valorcompra >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor')):
@@ -171,7 +205,7 @@ class O2TI_Moip_Model_Api {
171
  "CEP" => $data['pagador_cep'],
172
  "TelefoneFixo" => $data['pagador_ddd'] . $data['pagador_telefone']
173
  );
174
- $id_proprio = $alterapedido.$pgto['conta_moip'].'_'.$data['id_transacao'];
175
  $dados = array(
176
  "Razao" => "Pagamento do pedido #" . $data['id_transacao'],
177
  "Valores" => array('Valor' => number_format($valorcompra, 2, '.', '')),
@@ -192,10 +226,6 @@ class O2TI_Moip_Model_Api {
192
  $xml = $this->generateXml($json);
193
  return $xml;
194
  }
195
-
196
-
197
-
198
-
199
  public function generateUrl($token) {
200
  if ($this->getAmbiente() == "teste")
201
  $url = $token;
@@ -204,89 +234,124 @@ class O2TI_Moip_Model_Api {
204
  return $url;
205
  }
206
 
207
- public function getParcelamento($valor) {
208
  $standard = Mage::getSingleton('moip/standard');
209
  $parcelamento = $standard->getInfoParcelamento();
210
- $result = array();
211
- if ($parcelamento['ate1'] >= 1) {
212
- $result1 = $this->getJurosComposto($valor, $parcelamento['juros1'], $parcelamento['ate1']);
213
- foreach ($result1 as $k => $v) {
214
- if ($k >= $parcelamento['de1'])
215
- $result[$k] = $v;
216
- }
217
- }
218
- if ($parcelamento['ate1'] < 13) {
219
- $result1 = $this->getJurosComposto($valor, "1.99", "12");
220
- foreach ($result1 as $k => $v) {
221
- if ($k > $parcelamento['ate1'])
222
- $result[$k] = $v;
223
- }
224
  }
225
- return $result;
226
- }
227
 
228
- public function getJurosComposto($valor, $juros, $parcelasR) {
229
- $parc1 = "";
230
- $parc = "";
231
- $juros = $juros / 100;
232
- $valParcela = $valor * pow((1 + $juros), $parcelasR);
233
- $valParcela = $valParcela / $parcelasR;
234
- if ($juros <= 0 || empty($juros)):
235
- $valor = $valor;
236
- else:
237
- $valor = (($valor / 100) * $juros) + $valor;
238
- endif;
239
- $j = '';
240
- $splitss = (int) ($valor / 5);
241
- if ($splitss <= 12):
242
- $div = $splitss;
243
- else:
244
- $div = 12;
245
- endif;
246
- if ($valor <= 5):
247
- $div = 1;
248
- endif;
249
- $standard = Mage::getModel('moip/standard');
250
- $nummaxparcelamax = $standard->getConfigData('nummaxparcelamax');
251
- $valorminimo = $standard->getConfigData('valorminimoparcela');
252
- $parc1 .= '<ValorDaParcela Total="' . number_format($valor, 2) . '" Juros="0" Valor="' . number_format($valor, 2) . '">1</ValorDaParcela>';
253
- for ($j = 2; $j <= $parcelasR; $j++) {
254
- $cf = pow((1 + $juros), $j);
255
- $cf = (1 / $cf);
256
- $cf = (1 - $cf);
257
- if($cf > 0)
258
- $cf = ($juros / $cf);
259
- $parcelas = ($valor * $cf);
260
- $parcelas = $parcelas;
261
- $valors = $valor;
262
- if ($juros != 0 && $parcelas >= $valorminimo && $j <= $nummaxparcelamax):
263
- $parc .= '<ValorDaParcela Total="' . number_format(($parcelas * $j), 2) . '" Juros="' . ($juros * 100) . '" Valor="' . number_format($parcelas, 2) . '">' . $j . '</ValorDaParcela>';
264
- endif;
265
 
266
- if ($juros == 0 && $j <= $parcelasR && ($valor / $j) >= $valorminimo):
267
- $parc .= '<ValorDaParcela Total="' . number_format($valor, 2) . '" Juros="0" Valor="' . number_format(($valor / $j), 2) . '">' . $j . '</ValorDaParcela>';
268
- endif;
 
 
 
 
 
 
 
 
 
 
 
269
  }
270
- $responseMoIP = '<ns1:ChecarValoresParcelamentoResponse xmlns:ns1="http://www.moip.com.br/ws/alpha/">
271
- <Resposta>
272
- ' . $parc1 . '
273
- ' . $parc . '
274
- </Resposta>
275
- </ns1:ChecarValoresParcelamentoResponse>';
276
- $res = simplexml_load_string($responseMoIP);
277
- $result = array();
278
- $i = 1;
279
- foreach ($res as $resposta) {
280
- foreach ($resposta as $data) {
281
- if ($data->getName() == "ValorDaParcela") {
282
- $result[$i]['total'] = $data->attributes()->Total;
283
- $result[$i]['valor'] = $data->attributes()->Valor;
284
- $result[$i]['juros'] = $data->attributes()->Juros;
285
- $i++;
286
  }
287
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
288
  }
289
- return $result;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
290
  }
291
 
292
  }
75
  }
76
 
77
  public function generatePedido($data, $pgto) {
78
+ if($pgto['credito_parcelamento'] == ""){
79
+ $pgto['credito_parcelamento'] = 2;
80
+ }
81
  $standard = Mage::getSingleton('moip/standard');
82
  $parcelamento = $standard->getInfoParcelamento();
83
  $meio = $pgto["forma_pagamento"];
84
  $vcmentoboleto = $pgto["vcmentoboleto"];
85
  $forma_pgto = "";
86
  $validacao_nasp = $standard->getConfigData('validador_retorno');
87
+ $url_retorno = Mage::getBaseUrl()."Moip/standard/success/validacao/".$validacao_nasp."/";
88
  $valorcompra = $data['valor'];
89
  $vcmentoboleto = $standard->getConfigData('vcmentoboleto');
90
  $vcmento = date('c', strtotime("+" . $vcmentoboleto . " days"));
92
  if($pgto['tipoderecebimento'] =="0"):
93
  $tipoderecebimento = "Parcelado";
94
  else:
95
+ $tipoderecebimento = "Avista";
96
  endif;
97
  $parcelamento = $standard->getInfoParcelamento();
98
+ $tipo_parcelamento = Mage::getSingleton('moip/standard')->getConfigData('jurostipo');
99
+
100
+ if($tipo_parcelamento == 1){
101
+
102
+ $max_parcelas = $parcelamento['c_ate1'];
103
+ $min_parcelas = $parcelamento['c_de1'];
104
+ $juros = $parcelamento['c_juros1'];
105
+
106
+ if($max_parcelas == 12){
107
+ $pacelamento_xml = array(
108
+ 'Parcelamento' => array(
109
+ 'MinimoParcelas' => $min_parcelas,
110
+ 'MaximoParcelas' => $max_parcelas,
111
+ 'Recebimento'=>$tipoderecebimento,
112
+ 'Juros' => $juros,
113
+ ),
114
+ );
115
+ } else{
116
+ $pacelamento_xml = array(
117
+ 'Parcelamento' => array(
118
+ 'MinimoParcelas' => $min_parcelas,
119
+ 'MaximoParcelas' => $max_parcelas,
120
+ 'Recebimento'=>$tipoderecebimento,
121
+ 'Juros' => $juros,
122
+ ),
123
+ 'Parcelamento' => array(
124
+ 'MinimoParcelas' => $max_parcelas+1,
125
+ 'MaximoParcelas' => '12',
126
+ 'Recebimento'=>$tipoderecebimento,
127
+ 'Juros' => '1.99',
128
+ ),
129
+ );
130
+ }
131
+ } else {
132
+ $parcelas = array('');
133
+ for ($i=1; $i <= 12; $i++) {
134
+ $juros_parcela = 's_juros'.$i;
135
+ $parcelas[$i] = array('Parcelamento' => array(
136
+ 'MinimoParcelas' => $i,
137
+ 'MaximoParcelas' => $i+1,
138
+ 'Juros' => $parcelamento[$juros_parcela],
139
+ 'Repassar' => 'true',
140
+ ),
141
+ );
142
+ if($i == 12){
143
+ for ($i=2; $i <= 12; $i++) {
144
+ $pacelamento_xml[$i] = $parcelas[$pgto['credito_parcelamento']];
145
+ }
146
+ }
147
+
148
+ }
149
+ $pacelamento_xml = end($pacelamento_xml);
150
+
151
  }
152
+
153
+
154
+
155
  if ($meio == "BoletoBancario"):
156
  if (Mage::getStoreConfig('o2tiall/pagamento_avancado/pagamento_boleto')):
157
  if ($valorcompra >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor')):
205
  "CEP" => $data['pagador_cep'],
206
  "TelefoneFixo" => $data['pagador_ddd'] . $data['pagador_telefone']
207
  );
208
+ $id_proprio = $pgto['conta_moip'].'_'.$data['id_transacao'];
209
  $dados = array(
210
  "Razao" => "Pagamento do pedido #" . $data['id_transacao'],
211
  "Valores" => array('Valor' => number_format($valorcompra, 2, '.', '')),
226
  $xml = $this->generateXml($json);
227
  return $xml;
228
  }
 
 
 
 
229
  public function generateUrl($token) {
230
  if ($this->getAmbiente() == "teste")
231
  $url = $token;
234
  return $url;
235
  }
236
 
237
+ public function getParcelamentoComposto($valor) {
238
  $standard = Mage::getSingleton('moip/standard');
239
  $parcelamento = $standard->getInfoParcelamento();
240
+ $parcelas = array();
241
+ $juros = array();
242
+ $primeiro = 1;
243
+ $max_div = $valor/(int)Mage::getSingleton('moip/standard')->getConfigData('valorminimoparcela');
244
+
245
+ if($parcelamento['c_ate1'] < $max_div){
246
+ $max_div = $parcelamento['c_ate1'];
 
 
 
 
 
 
 
247
  }
 
 
248
 
249
+ for ($i=1; $i <= $max_div; $i++) {
250
+ if($i > 1){
251
+ $total_parcelado[$i] = $this->getJurosComposto($valor, $parcelamento['c_juros1'], $i)*$i;
252
+ $parcelas[$i] = $this->getJurosComposto($valor, $parcelamento['c_juros1'], $i);
253
+ $juros[$i] = $parcelamento['c_juros1'];
254
+ }
255
+ else {
256
+ $total_parcelado[$i] = $valor;
257
+ $parcelas[$i] = $valor*$i;
258
+ $juros[$i] = 0;
259
+ }
260
+ if($i <= Mage::getSingleton('moip/standard')->getConfigData('nummaxparcelamax')){
261
+ $json_parcelas[$i] = array(
262
+ 'parcela' => Mage::helper('core')->currency($parcelas[$i], true, false),
263
+ 'total_parcelado' => Mage::helper('core')->currency($total_parcelado[$i], true, false),
264
+ 'juros' => $juros[$i]
265
+ );
266
+ $primeiro++;
267
+ }
268
+ }
269
+ if($primeiro < 12 && $primeiro < ($valor/(int)Mage::getSingleton('moip/standard')->getConfigData('valorminimoparcela')) )
270
+ {
271
+ while ($primeiro <= 12) {
272
+ $total_parcelado[$primeiro] = number_format($this->getJurosComposto($valor, '1.99', $i)*$primeiro, 2, '.', '');
273
+ $parcelas[$primeiro] = $this->getJurosComposto($valor, '1.99', $primeiro);
274
+ $juros[$primeiro] = '1.99';
275
+
276
+ $json_parcelas[$primeiro] = array(
277
+ 'parcela' => Mage::helper('core')->currency($parcelas[$primeiro], true, false),
278
+ 'total_parcelado' => Mage::helper('core')->currency($total_parcelado[$primeiro], true, false),
279
+ 'juros' => '1.99'
280
+ );
281
+ $primeiro++;
282
+ }
283
+ }
284
+ $json_parcelas = json_encode($json_parcelas);
285
+ return $json_parcelas;
286
 
287
+ }
288
+
289
+ public function getParcelamentoSimples($valor) {
290
+ $standard = Mage::getSingleton('moip/standard');
291
+ $parcelamento = $standard->getInfoParcelamento();
292
+ $parcelas = array();
293
+ $juros = array();
294
+ $primeiro = 1;
295
+ $max_div = (int)($valor/Mage::getSingleton('moip/standard')->getConfigData('valorminimoparcela'));
296
+
297
+ if(Mage::getSingleton('moip/standard')->getConfigData('nummaxparcelamax') > $max_div){
298
+ $max_div = $max_div;
299
+ } else {
300
+ $max_div = Mage::getSingleton('moip/standard')->getConfigData('nummaxparcelamax');
301
  }
302
+
303
+ for ($i=1; $i <= $max_div; $i++) {
304
+ $juros_parcela = 's_juros'.$i;
305
+
306
+ if($i > 1){
307
+ $taxa = $parcelamento[$juros_parcela] / 100;
308
+ $valor_add = $valor * $taxa;
309
+ $total_parcelado[$i] = $valor + $valor_add;
310
+ $parcelas[$i] = ($valor + $valor_add)/$i;
311
+ $juros[$i] = $parcelamento[$juros_parcela];
 
 
 
 
 
 
312
  }
313
+ else {
314
+ $total_parcelado[$i] = $valor;
315
+ $parcelas[$i] = $valor*$i;
316
+ $juros[$i] = 0;
317
+ }
318
+ if($i <= Mage::getSingleton('moip/standard')->getConfigData('nummaxparcelamax')){
319
+ $json_parcelas[$i] = array(
320
+ 'parcela' => Mage::helper('core')->currency($parcelas[$i], true, false),
321
+ 'total_parcelado' => Mage::helper('core')->currency($total_parcelado[$i], true, false),
322
+ 'juros' => $juros[$i]
323
+ );
324
+ }
325
+ }
326
+ $json_parcelas = json_encode($json_parcelas);
327
+ return $json_parcelas;
328
+
329
+ }
330
+
331
+ public function getParcelamento($valor) {
332
+
333
+ $tipo_parcelamento = Mage::getSingleton('moip/standard')->getConfigData('jurostipo');
334
+
335
+ if($tipo_parcelamento == 1){
336
+ $tipo = $this->getParcelamentoComposto($valor);
337
+ } else {
338
+ $tipo = $this->getParcelamentoSimples($valor);
339
  }
340
+
341
+ return $tipo;
342
+
343
+ }
344
+
345
+ public function getJurosSimples($valor, $juros, $parcela) {
346
+
347
+ return $valParcela;
348
+ }
349
+
350
+ public function getJurosComposto($valor, $juros, $parcela) {
351
+ $taxa = $juros / 100;
352
+ $valParcela = $valor * pow((1 + $taxa), $parcela);
353
+ $valParcela = $valParcela/$parcela;
354
+ return $valParcela;
355
  }
356
 
357
  }
app/code/local/O2TI/Moip/Model/Standard.php CHANGED
@@ -163,22 +163,36 @@ class O2TI_Moip_Model_Standard extends Mage_Payment_Model_Method_Abstract {
163
  public function getInfoParcelamento() {
164
  $config = array();
165
  $max = 12;
166
- $config['de1'] = (int) $this->getConfigData('parcelamento_de1');
167
- $config['ate1'] = (int) $this->getConfigData('parcelamento_ate1');
168
- $config['juros1'] = $this->getConfigData('parcelamento_juros1');
169
- $config['de2'] = $this->getConfigData('parcelamento_de2');
170
- $config['ate2'] = (int) $this->getConfigData('parcelamento_ate2');
171
- $config['juros2'] = $this->getConfigData('parcelamento_juros2');
172
- $config['de3'] = (int) $this->getConfigData('parcelamento_de3');
173
- $config['ate3'] = (int) $this->getConfigData('parcelamento_ate3');
174
- $config['juros3'] = $this->getConfigData('parcelamento_juros3');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
175
  $config['vcmentoboleto'] = $this->getConfigData('vcmentoboleto');
176
- if ($config['ate1'] > $max)
177
- $config['ate1'] = $max;
178
- if ($config['ate2'] > $max)
179
- $config['ate2'] = $max;
180
- if ($config['ate3'] > $max)
181
- $config['ate3'] = $max;
182
  return $config;
183
  }
184
  function getListaProdutos() {
163
  public function getInfoParcelamento() {
164
  $config = array();
165
  $max = 12;
166
+ $config['c_de1'] = (int) $this->getConfigData('parcelamento_c_de1');
167
+ $config['c_ate1'] = (int) $this->getConfigData('parcelamento_c_ate1');
168
+ $config['c_juros1'] = $this->getConfigData('parcelamento_c_juros1');
169
+ $config['c_de2'] = $this->getConfigData('parcelamento_c_de2');
170
+ $config['c_ate2'] = (int) $this->getConfigData('parcelamento_c_ate2');
171
+ $config['c_juros2'] = $this->getConfigData('parcelamento_c_juros2');
172
+ $config['c_de3'] = (int) $this->getConfigData('parcelamento_c_de3');
173
+ $config['c_ate3'] = (int) $this->getConfigData('parcelamento_c_ate3');
174
+ $config['c_juros3'] = $this->getConfigData('parcelamento_c_juros3');
175
+
176
+
177
+
178
+
179
+
180
+ $config['s_juros1'] = $this->getConfigData('parcelamento_s_juros1');
181
+ $config['s_juros2'] = $this->getConfigData('parcelamento_s_juros2');
182
+ $config['s_juros3'] = $this->getConfigData('parcelamento_s_juros3');
183
+ $config['s_juros4'] = $this->getConfigData('parcelamento_s_juros4');
184
+ $config['s_juros5'] = $this->getConfigData('parcelamento_s_juros5');
185
+ $config['s_juros6'] = $this->getConfigData('parcelamento_s_juros6');
186
+ $config['s_juros7'] = $this->getConfigData('parcelamento_s_juros7');
187
+ $config['s_juros8'] = $this->getConfigData('parcelamento_s_juros8');
188
+ $config['s_juros9'] = $this->getConfigData('parcelamento_s_juros9');
189
+ $config['s_juros10'] = $this->getConfigData('parcelamento_s_juros10');
190
+ $config['s_juros11'] = $this->getConfigData('parcelamento_s_juros11');
191
+ $config['s_juros12'] = $this->getConfigData('parcelamento_s_juros12');
192
+
193
+
194
  $config['vcmentoboleto'] = $this->getConfigData('vcmentoboleto');
195
+
 
 
 
 
 
196
  return $config;
197
  }
198
  function getListaProdutos() {
app/code/local/O2TI/Moip/controllers/StandardController.php CHANGED
@@ -48,6 +48,8 @@ class O2TI_Moip_StandardController extends Mage_Core_Controller_Front_Action {
48
  if($res->Resposta->Status == "Sucesso"){
49
  $result['status'] = (string)$res->Resposta->Status;
50
  $result['token'] = (string)$res->Resposta->Token;
 
 
51
  $session->setResult_decode($result);
52
 
53
  return $result;
@@ -77,7 +79,7 @@ class O2TI_Moip_StandardController extends Mage_Core_Controller_Front_Action {
77
  $session->setPgtoarry($pgtoArray);
78
  $session->setClient_array($fields);
79
  $this->loadLayout();
80
- $this->getLayout()->getBlock('content')->append($this->getLayout()->createBlock('O2TI_Moip_Block_Standard_Redirect'));
81
  if($pgtoArray['forma_pagamento'] == "BoletoBancario"){
82
  $this->getLayout()->getBlock('content')->append('moip.boleto');
83
  }
@@ -119,12 +121,16 @@ class O2TI_Moip_StandardController extends Mage_Core_Controller_Front_Action {
119
  $order = Mage::getModel('sales/order')->load($order_magento, 'increment_id');
120
  $id_order = $order->getId();
121
  $states_atual = $order->getStatus();
122
- if($states_atual == "pending" && $data['status_pagamento'] != "2"){
123
  try{
124
  $order->sendNewOrderEmail();
125
  }
126
  catch (Exception $ex) { };
127
  }
 
 
 
 
128
  if ($order->isCanceled() && $data['status_pagamento'] != "5") {
129
  if (Mage::helper('sales/reorder')->canReorder($order)) {
130
  $order->setState(Mage_Sales_Model_Order::STATE_NEW);
@@ -167,7 +173,7 @@ class O2TI_Moip_StandardController extends Mage_Core_Controller_Front_Action {
167
  if($states_atual != 'processing'){
168
  $state = Mage_Sales_Model_Order::STATE_PROCESSING;
169
  $status = 'processing';
170
- $comment = $this->getStatusPagamentoMoip($status);
171
  $invoice = $order->prepareInvoice();
172
  if ($this->getStandard()->canCapture())
173
  {
@@ -184,24 +190,28 @@ class O2TI_Moip_StandardController extends Mage_Core_Controller_Front_Action {
184
  case "2":
185
  $state = Mage_Sales_Model_Order::STATE_HOLDED;
186
  $status = 'holded';
187
- $comment = $this->getStatusPagamentoMoip($data['status_pagamento']);
188
  break;
189
  case "3":
190
  if($states_atual != 'processing' && $states_atual != 'holded'){
191
  $state = Mage_Sales_Model_Order::STATE_HOLDED;
192
  $status = 'holded';
193
- $comment = $this->getStatusPagamentoMoip($data['status_pagamento']);
194
  } else {
195
  $naexecuta = 1;
196
  }
197
  break;
198
-
199
  case "5":
200
  $state = Mage_Sales_Model_Order::STATE_CANCELED;
201
  $status = 'canceled';
202
- $comment = $this->getStatusPagamentoMoip($data['status_pagamento']);
203
  $order->cancel();
204
  break;
 
 
 
 
 
205
  }
206
  if($naexecuta != 1){
207
  $order->setState($state, $status, $comment, $notified = true, $includeComment = true);
@@ -210,6 +220,9 @@ class O2TI_Moip_StandardController extends Mage_Core_Controller_Front_Action {
210
  echo 'Processo de retorno concluido para o pedido #'.$id_order.' Status '.$status;
211
  Mage::log("Cliente do pedido ".$id_order. " - Status - " .$status, null, 'O2TI_Moip.log', true);
212
  }
 
 
 
213
  }
214
  }
215
 
@@ -260,7 +273,7 @@ class O2TI_Moip_StandardController extends Mage_Core_Controller_Front_Action {
260
  break;
261
  default:
262
  $param = "nao criado";
263
- break;
264
  }
265
  return $param;
266
  }
48
  if($res->Resposta->Status == "Sucesso"){
49
  $result['status'] = (string)$res->Resposta->Status;
50
  $result['token'] = (string)$res->Resposta->Token;
51
+ Mage::log($result['token'], null, 'O2TI_Moip.log', true);
52
+ Mage::log($xml, null, 'O2TI_Moip.log', true);
53
  $session->setResult_decode($result);
54
 
55
  return $result;
79
  $session->setPgtoarry($pgtoArray);
80
  $session->setClient_array($fields);
81
  $this->loadLayout();
82
+ #$this->getLayout()->getBlock('content')->append($this->getLayout()->createBlock('O2TI_Moip_Block_Standard_Redirect'));
83
  if($pgtoArray['forma_pagamento'] == "BoletoBancario"){
84
  $this->getLayout()->getBlock('content')->append('moip.boleto');
85
  }
121
  $order = Mage::getModel('sales/order')->load($order_magento, 'increment_id');
122
  $id_order = $order->getId();
123
  $states_atual = $order->getStatus();
124
+ if($states_atual == "pending"){
125
  try{
126
  $order->sendNewOrderEmail();
127
  }
128
  catch (Exception $ex) { };
129
  }
130
+ if($states_atual == 'processing'){
131
+ $naexecuta = 1;
132
+ }
133
+ Mage::log("Nasp acionou para o pedido ".$order_magento. " - Status - " .$data['status_pagamento'], null, 'O2TI_Moip.log', true);
134
  if ($order->isCanceled() && $data['status_pagamento'] != "5") {
135
  if (Mage::helper('sales/reorder')->canReorder($order)) {
136
  $order->setState(Mage_Sales_Model_Order::STATE_NEW);
173
  if($states_atual != 'processing'){
174
  $state = Mage_Sales_Model_Order::STATE_PROCESSING;
175
  $status = 'processing';
176
+ $comment = $this->getStatusPagamentoMoip($status).' - Codig. Moip: '.$data['cod_moip'];
177
  $invoice = $order->prepareInvoice();
178
  if ($this->getStandard()->canCapture())
179
  {
190
  case "2":
191
  $state = Mage_Sales_Model_Order::STATE_HOLDED;
192
  $status = 'holded';
193
+ $comment = $this->getStatusPagamentoMoip($data['status_pagamento']).' - Codig. Moip: '.$data['cod_moip'];
194
  break;
195
  case "3":
196
  if($states_atual != 'processing' && $states_atual != 'holded'){
197
  $state = Mage_Sales_Model_Order::STATE_HOLDED;
198
  $status = 'holded';
199
+ $comment = $this->getStatusPagamentoMoip($data['status_pagamento']).' - Codig. Moip: '.$data['cod_moip'];
200
  } else {
201
  $naexecuta = 1;
202
  }
203
  break;
 
204
  case "5":
205
  $state = Mage_Sales_Model_Order::STATE_CANCELED;
206
  $status = 'canceled';
207
+ $comment = $this->getStatusPagamentoMoip($data['status_pagamento']).' - Codig. Moip: '.$data['cod_moip'].' - Motivo: '.utf8_encode($data['classificacao']);
208
  $order->cancel();
209
  break;
210
+ case "6":
211
+ $state = Mage_Sales_Model_Order::STATE_HOLDED;
212
+ $status = 'holded';
213
+ $comment = $this->getStatusPagamentoMoip($data['status_pagamento']).' - Codig. Moip: '.$data['cod_moip'];
214
+ break;
215
  }
216
  if($naexecuta != 1){
217
  $order->setState($state, $status, $comment, $notified = true, $includeComment = true);
220
  echo 'Processo de retorno concluido para o pedido #'.$id_order.' Status '.$status;
221
  Mage::log("Cliente do pedido ".$id_order. " - Status - " .$status, null, 'O2TI_Moip.log', true);
222
  }
223
+ else {
224
+ Mage::log("Nao atualizado moip Cliente do pedido ".$id_order. " - Status - " .$status, null, 'O2TI_Moip.log', true);
225
+ }
226
  }
227
  }
228
 
273
  break;
274
  default:
275
  $param = "nao criado";
276
+ break;
277
  }
278
  return $param;
279
  }
app/code/local/O2TI/Moip/etc/config.xml CHANGED
@@ -139,6 +139,8 @@
139
  <mensagem_redirect_moip><![CDATA[<p>Seu pedido não foi processado, favor efetuar o pagamento.</p><p>Você será redirecionado para o <b>Moip</b> em alguns instantes.</p>]]>
140
  </mensagem_redirect_moip>
141
  <title>Pagamento 100% Seguro - MoIP | Grupo IG</title>
 
 
142
  <validopara_moip>1</validopara_moip>
143
  <conta_moip>elisei</conta_moip>
144
  <apelido>Instalação Padrão O2TI | ALTERE PARA O NOME DA SUA EMPRESA</apelido>
@@ -146,9 +148,22 @@
146
  <tipoderecebimento>1</tipoderecebimento>
147
  <pagamento_direto>1</pagamento_direto>
148
  <parcelamento>1</parcelamento>
149
- <parcelamento_de1>1</parcelamento_de1>
150
- <parcelamento_ate1>12</parcelamento_ate1>
151
- <parcelamento_juros1>1.99</parcelamento_juros1>
 
 
 
 
 
 
 
 
 
 
 
 
 
152
  <nummaxparcelamax>12</nummaxparcelamax>
153
  <valorminimoparcela>5</valorminimoparcela>
154
  <vcmentoboleto>3</vcmentoboleto>
139
  <mensagem_redirect_moip><![CDATA[<p>Seu pedido não foi processado, favor efetuar o pagamento.</p><p>Você será redirecionado para o <b>Moip</b> em alguns instantes.</p>]]>
140
  </mensagem_redirect_moip>
141
  <title>Pagamento 100% Seguro - MoIP | Grupo IG</title>
142
+ <order_status>pending</order_status>
143
+ <validador_retorno>qualquervalorsemespacooucaracterespecia13</validador_retorno>
144
  <validopara_moip>1</validopara_moip>
145
  <conta_moip>elisei</conta_moip>
146
  <apelido>Instalação Padrão O2TI | ALTERE PARA O NOME DA SUA EMPRESA</apelido>
148
  <tipoderecebimento>1</tipoderecebimento>
149
  <pagamento_direto>1</pagamento_direto>
150
  <parcelamento>1</parcelamento>
151
+ <parcelamento_c_de1>1</parcelamento_c_de1>
152
+ <parcelamento_c_ate1>12</parcelamento_c_ate1>
153
+ <parcelamento_c_juros1>1.99</parcelamento_c_juros1>
154
+ <jurostipo>1</jurostipo>
155
+ <parcelamento_s_juros2>1.25</parcelamento_s_juros2>
156
+ <parcelamento_s_juros3>2.49</parcelamento_s_juros3>
157
+ <parcelamento_s_juros4>3.74</parcelamento_s_juros4>
158
+ <parcelamento_s_juros5>4.98</parcelamento_s_juros5>
159
+ <parcelamento_s_juros6>6.23</parcelamento_s_juros6>
160
+ <parcelamento_s_juros7>7.47</parcelamento_s_juros7>
161
+ <parcelamento_s_juros8>8.72</parcelamento_s_juros8>
162
+ <parcelamento_s_juros9>9.96</parcelamento_s_juros9>
163
+ <parcelamento_s_juros10>11.21</parcelamento_s_juros10>
164
+ <parcelamento_s_juros11>12.45</parcelamento_s_juros11>
165
+ <parcelamento_s_juros12>13.70</parcelamento_s_juros12>
166
+ <formas_pagamento>BoletoBancario,DebitoBancario,CartaoCredito</formas_pagamento>
167
  <nummaxparcelamax>12</nummaxparcelamax>
168
  <valorminimoparcela>5</valorminimoparcela>
169
  <vcmentoboleto>3</vcmentoboleto>
app/code/local/O2TI/Moip/etc/system.xml CHANGED
@@ -111,7 +111,7 @@
111
  <show_in_website>1</show_in_website>
112
  <show_in_store>1</show_in_store>
113
  </apelido>
114
- <tipoderecebimento translate="label">
115
  <label>Receber o valor do parcelamento à vista?</label>
116
  <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
117
  <p>Deixe marcado como sim para o recebimento convencional no moip, não altere se não possuir autorização para recebimento parcelado.</p>
@@ -124,85 +124,340 @@
124
  <show_in_website>1</show_in_website>
125
  <show_in_store>1</show_in_store>
126
  </tipoderecebimento>
127
- <pagamento_direto translate="label">
128
- <label>Usar Transparente</label>
129
- <frontend_type>select</frontend_type>
130
- <source_model>adminhtml/system_config_source_yesno</source_model>
131
- <sort_order>9</sort_order>
132
- <show_in_default>1</show_in_default>
133
- <show_in_website>1</show_in_website>
134
- <show_in_store>1</show_in_store>
135
- </pagamento_direto>
136
  <formas_pagamento translate="label">
137
  <label>Formas de Pagamento</label>
138
  <frontend_type>multiselect</frontend_type>
139
  <source_model>O2TI_Moip_Model_Source_FormasPagamento</source_model>
140
- <sort_order>10</sort_order>
141
  <show_in_default>1</show_in_default>
142
  <show_in_website>1</show_in_website>
143
  <show_in_store>1</show_in_store>
144
  </formas_pagamento>
145
- <parcelamento translate="label">
146
- <label>Ativar parcelamento?</label>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
147
  <frontend_type>select</frontend_type>
148
  <source_model>adminhtml/system_config_source_yesno</source_model>
149
- <sort_order>11</sort_order>
150
  <show_in_default>1</show_in_default>
151
  <show_in_website>1</show_in_website>
152
  <show_in_store>1</show_in_store>
153
- </parcelamento>
154
- <parcelamento_de1 translate="label">
155
  <label>1° - Parcelas de:</label>
 
 
 
156
  <frontend_type>text</frontend_type>
157
- <sort_order>12</sort_order>
158
  <show_in_default>1</show_in_default>
159
  <show_in_website>1</show_in_website>
160
  <show_in_store>1</show_in_store>
161
- </parcelamento_de1>
162
- <parcelamento_ate1 translate="label">
163
  <label>1° - Parcelas até:</label>
 
 
 
164
  <frontend_type>text</frontend_type>
165
- <sort_order>13</sort_order>
166
  <show_in_default>1</show_in_default>
167
  <show_in_website>1</show_in_website>
168
  <show_in_store>1</show_in_store>
169
- </parcelamento_ate1>
170
- <parcelamento_juros1 translate="label">
171
  <label>1° - Juros de (%):</label>
172
  <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
173
  <p>Faixas de parcelamento com cartão de crédito. (somente para Transparente)</p>
174
  </div></div>]]>
175
  </comment>
 
 
 
176
  <frontend_type>text</frontend_type>
177
- <sort_order>14</sort_order>
178
  <show_in_default>1</show_in_default>
179
  <show_in_website>1</show_in_website>
180
  <show_in_store>1</show_in_store>
181
- </parcelamento_juros1>
182
- <nummaxparcelamax translate="label">
183
- <label>Número Máximo de Parcelas Permitido</label>
 
 
 
 
 
 
 
184
  <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
185
- <p>Por default são 12 parcelas.</p>
186
  </div></div>]]>
187
  </comment>
 
 
 
188
  <frontend_type>text</frontend_type>
189
- <sort_order>15</sort_order>
190
  <show_in_default>1</show_in_default>
191
  <show_in_website>1</show_in_website>
192
  <show_in_store>1</show_in_store>
193
- </nummaxparcelamax>
194
- <valorminimoparcela translate="label">
195
- <label>Valor Mínimo das Parcelas</label>
 
 
196
  <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
197
- <p>Não pode ser menor que 5 reais.</p>
198
  </div></div>]]>
199
  </comment>
 
 
 
200
  <frontend_type>text</frontend_type>
201
- <sort_order>16</sort_order>
202
  <show_in_default>1</show_in_default>
203
  <show_in_website>1</show_in_website>
204
  <show_in_store>1</show_in_store>
205
- </valorminimoparcela>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
206
  <vcmentoboleto translate="label">
207
  <label>Dias de Vencimento para o Boleto:</label>
208
  <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
@@ -210,7 +465,7 @@
210
  </div></div>]]>
211
  </comment>
212
  <frontend_type>text</frontend_type>
213
- <sort_order>17</sort_order>
214
  <show_in_default>1</show_in_default>
215
  <show_in_website>1</show_in_website>
216
  <show_in_store>1</show_in_store>
@@ -223,7 +478,7 @@
223
  </div></div>]]>
224
  </comment>
225
  <frontend_type>text</frontend_type>
226
- <sort_order>18</sort_order>
227
  <show_in_default>1</show_in_default>
228
  <show_in_website>1</show_in_website>
229
  <show_in_store>1</show_in_store>
@@ -232,7 +487,7 @@
232
  <allowspecific translate="label">
233
  <label>Pagamento a partir de países aplicáveis</label>
234
  <frontend_type>allowspecific</frontend_type>
235
- <sort_order>19</sort_order>
236
  <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
237
  <show_in_default>1</show_in_default>
238
  <show_in_website>1</show_in_website>
@@ -241,7 +496,7 @@
241
  <specificcountry translate="label">
242
  <label>Pagamento a partir de determinados países</label>
243
  <frontend_type>multiselect</frontend_type>
244
- <sort_order>21</sort_order>
245
  <source_model>adminhtml/system_config_source_country</source_model>
246
  <show_in_default>1</show_in_default>
247
  <show_in_website>1</show_in_website>
111
  <show_in_website>1</show_in_website>
112
  <show_in_store>1</show_in_store>
113
  </apelido>
114
+ <tipoderecebimento translate="label">
115
  <label>Receber o valor do parcelamento à vista?</label>
116
  <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
117
  <p>Deixe marcado como sim para o recebimento convencional no moip, não altere se não possuir autorização para recebimento parcelado.</p>
124
  <show_in_website>1</show_in_website>
125
  <show_in_store>1</show_in_store>
126
  </tipoderecebimento>
127
+
 
 
 
 
 
 
 
 
128
  <formas_pagamento translate="label">
129
  <label>Formas de Pagamento</label>
130
  <frontend_type>multiselect</frontend_type>
131
  <source_model>O2TI_Moip_Model_Source_FormasPagamento</source_model>
132
+ <sort_order>09</sort_order>
133
  <show_in_default>1</show_in_default>
134
  <show_in_website>1</show_in_website>
135
  <show_in_store>1</show_in_store>
136
  </formas_pagamento>
137
+
138
+ <nummaxparcelamax translate="label">
139
+ <label>Número Máximo de Parcelas Permitido</label>
140
+ <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
141
+ <p>Por default são 12 parcelas.</p>
142
+ </div></div>]]>
143
+ </comment>
144
+ <frontend_type>text</frontend_type>
145
+ <sort_order>10</sort_order>
146
+ <show_in_default>1</show_in_default>
147
+ <show_in_website>1</show_in_website>
148
+ <show_in_store>1</show_in_store>
149
+ </nummaxparcelamax>
150
+ <valorminimoparcela translate="label">
151
+ <label>Valor Mínimo das Parcelas</label>
152
+ <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
153
+ <p>Não pode ser menor que 5 reais.</p>
154
+ </div></div>]]>
155
+ </comment>
156
+ <frontend_type>text</frontend_type>
157
+ <sort_order>11</sort_order>
158
+ <show_in_default>1</show_in_default>
159
+ <show_in_website>1</show_in_website>
160
+ <show_in_store>1</show_in_store>
161
+ </valorminimoparcela>
162
+
163
+
164
+ <jurostipo translate="label">
165
+ <label>Usar juros composto?</label>
166
  <frontend_type>select</frontend_type>
167
  <source_model>adminhtml/system_config_source_yesno</source_model>
168
+ <sort_order>12</sort_order>
169
  <show_in_default>1</show_in_default>
170
  <show_in_website>1</show_in_website>
171
  <show_in_store>1</show_in_store>
172
+ </jurostipo>
173
+ <parcelamento_c_de1 translate="label">
174
  <label>1° - Parcelas de:</label>
175
+ <depends>
176
+ <jurostipo>1</jurostipo>
177
+ </depends>
178
  <frontend_type>text</frontend_type>
179
+ <sort_order>13</sort_order>
180
  <show_in_default>1</show_in_default>
181
  <show_in_website>1</show_in_website>
182
  <show_in_store>1</show_in_store>
183
+ </parcelamento_c_de1>
184
+ <parcelamento_c_ate1 translate="label">
185
  <label>1° - Parcelas até:</label>
186
+ <depends>
187
+ <jurostipo>1</jurostipo>
188
+ </depends>
189
  <frontend_type>text</frontend_type>
190
+ <sort_order>14</sort_order>
191
  <show_in_default>1</show_in_default>
192
  <show_in_website>1</show_in_website>
193
  <show_in_store>1</show_in_store>
194
+ </parcelamento_c_ate1>
195
+ <parcelamento_c_juros1 translate="label">
196
  <label>1° - Juros de (%):</label>
197
  <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
198
  <p>Faixas de parcelamento com cartão de crédito. (somente para Transparente)</p>
199
  </div></div>]]>
200
  </comment>
201
+ <depends>
202
+ <jurostipo>1</jurostipo>
203
+ </depends>
204
  <frontend_type>text</frontend_type>
205
+ <sort_order>15</sort_order>
206
  <show_in_default>1</show_in_default>
207
  <show_in_website>1</show_in_website>
208
  <show_in_store>1</show_in_store>
209
+ </parcelamento_c_juros1>
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+ <parcelamento_s_juros2 translate="label">
218
+ <label>2° - Juros de (%):</label>
219
  <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
220
+ <p>Faixas de parcelamento com cartão de crédito. (somente para Transparente)</p>
221
  </div></div>]]>
222
  </comment>
223
+ <depends>
224
+ <jurostipo>0</jurostipo>
225
+ </depends>
226
  <frontend_type>text</frontend_type>
227
+ <sort_order>31</sort_order>
228
  <show_in_default>1</show_in_default>
229
  <show_in_website>1</show_in_website>
230
  <show_in_store>1</show_in_store>
231
+ </parcelamento_s_juros2>
232
+
233
+
234
+ <parcelamento_s_juros3 translate="label">
235
+ <label>3° - Juros de (%):</label>
236
  <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
237
+ <p>Faixas de parcelamento com cartão de crédito. (somente para Transparente)</p>
238
  </div></div>]]>
239
  </comment>
240
+ <depends>
241
+ <jurostipo>0</jurostipo>
242
+ </depends>
243
  <frontend_type>text</frontend_type>
244
+ <sort_order>32</sort_order>
245
  <show_in_default>1</show_in_default>
246
  <show_in_website>1</show_in_website>
247
  <show_in_store>1</show_in_store>
248
+ </parcelamento_s_juros3>
249
+
250
+
251
+
252
+ <parcelamento_s_juros4 translate="label">
253
+ <label>4° - Juros de (%):</label>
254
+ <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
255
+ <p>Faixas de parcelamento com cartão de crédito. (somente para Transparente)</p>
256
+ </div></div>]]>
257
+ </comment>
258
+ <depends>
259
+ <jurostipo>0</jurostipo>
260
+ </depends>
261
+ <frontend_type>text</frontend_type>
262
+ <sort_order>35</sort_order>
263
+ <show_in_default>1</show_in_default>
264
+ <show_in_website>1</show_in_website>
265
+ <show_in_store>1</show_in_store>
266
+ </parcelamento_s_juros4>
267
+
268
+
269
+
270
+
271
+ <parcelamento_s_juros5 translate="label">
272
+ <label>5° - Juros de (%):</label>
273
+ <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
274
+ <p>Faixas de parcelamento com cartão de crédito. (somente para Transparente)</p>
275
+ </div></div>]]>
276
+ </comment>
277
+ <depends>
278
+ <jurostipo>0</jurostipo>
279
+ </depends>
280
+ <frontend_type>text</frontend_type>
281
+ <sort_order>38</sort_order>
282
+ <show_in_default>1</show_in_default>
283
+ <show_in_website>1</show_in_website>
284
+ <show_in_store>1</show_in_store>
285
+ </parcelamento_s_juros5>
286
+
287
+
288
+ <parcelamento_s_juros6 translate="label">
289
+ <label>6° - Juros de (%):</label>
290
+ <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
291
+ <p>Faixas de parcelamento com cartão de crédito. (somente para Transparente)</p>
292
+ </div></div>]]>
293
+ </comment>
294
+ <depends>
295
+ <jurostipo>0</jurostipo>
296
+ </depends>
297
+ <frontend_type>text</frontend_type>
298
+ <sort_order>41</sort_order>
299
+ <show_in_default>1</show_in_default>
300
+ <show_in_website>1</show_in_website>
301
+ <show_in_store>1</show_in_store>
302
+ </parcelamento_s_juros6>
303
+
304
+
305
+
306
+ <parcelamento_s_juros7 translate="label">
307
+ <label>7° - Juros de (%):</label>
308
+ <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
309
+ <p>Faixas de parcelamento com cartão de crédito. (somente para Transparente)</p>
310
+ </div></div>]]>
311
+ </comment>
312
+ <depends>
313
+ <jurostipo>0</jurostipo>
314
+ </depends>
315
+ <frontend_type>text</frontend_type>
316
+ <sort_order>44</sort_order>
317
+ <show_in_default>1</show_in_default>
318
+ <show_in_website>1</show_in_website>
319
+ <show_in_store>1</show_in_store>
320
+ </parcelamento_s_juros7>
321
+
322
+
323
+
324
+
325
+ <parcelamento_s_juros8 translate="label">
326
+ <label>8° - Juros de (%):</label>
327
+ <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
328
+ <p>Faixas de parcelamento com cartão de crédito. (somente para Transparente)</p>
329
+ </div></div>]]>
330
+ </comment>
331
+ <depends>
332
+ <jurostipo>0</jurostipo>
333
+ </depends>
334
+ <frontend_type>text</frontend_type>
335
+ <sort_order>47</sort_order>
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
+ </parcelamento_s_juros8>
340
+
341
+
342
+
343
+
344
+ <parcelamento_s_juros9 translate="label">
345
+ <label>9° - Juros de (%):</label>
346
+ <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
347
+ <p>Faixas de parcelamento com cartão de crédito. (somente para Transparente)</p>
348
+ </div></div>]]>
349
+ </comment>
350
+ <depends>
351
+ <jurostipo>0</jurostipo>
352
+ </depends>
353
+ <frontend_type>text</frontend_type>
354
+ <sort_order>50</sort_order>
355
+ <show_in_default>1</show_in_default>
356
+ <show_in_website>1</show_in_website>
357
+ <show_in_store>1</show_in_store>
358
+ </parcelamento_s_juros9>
359
+
360
+
361
+ <parcelamento_s_juros10 translate="label">
362
+ <label>10° - Juros de (%):</label>
363
+ <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
364
+ <p>Faixas de parcelamento com cartão de crédito. (somente para Transparente)</p>
365
+ </div></div>]]>
366
+ </comment>
367
+ <depends>
368
+ <jurostipo>0</jurostipo>
369
+ </depends>
370
+ <frontend_type>text</frontend_type>
371
+ <sort_order>53</sort_order>
372
+ <show_in_default>1</show_in_default>
373
+ <show_in_website>1</show_in_website>
374
+ <show_in_store>1</show_in_store>
375
+ </parcelamento_s_juros10>
376
+
377
+
378
+
379
+
380
+ <parcelamento_s_juros11 translate="label">
381
+ <label>11° - Juros de (%):</label>
382
+ <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
383
+ <p>Faixas de parcelamento com cartão de crédito. (somente para Transparente)</p>
384
+ </div></div>]]>
385
+ </comment>
386
+ <depends>
387
+ <jurostipo>0</jurostipo>
388
+ </depends>
389
+ <frontend_type>text</frontend_type>
390
+ <sort_order>56</sort_order>
391
+ <show_in_default>1</show_in_default>
392
+ <show_in_website>1</show_in_website>
393
+ <show_in_store>1</show_in_store>
394
+ </parcelamento_s_juros11>
395
+
396
+
397
+
398
+ <parcelamento_s_juros12 translate="label">
399
+ <label>12° - Juros de (%):</label>
400
+ <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
401
+ <p>Faixas de parcelamento com cartão de crédito. (somente para Transparente)</p>
402
+ </div></div>]]>
403
+ </comment>
404
+ <depends>
405
+ <jurostipo>0</jurostipo>
406
+ </depends>
407
+ <frontend_type>text</frontend_type>
408
+ <sort_order>59</sort_order>
409
+ <show_in_default>1</show_in_default>
410
+ <show_in_website>1</show_in_website>
411
+ <show_in_store>1</show_in_store>
412
+ </parcelamento_s_juros12>
413
+
414
+
415
+
416
+
417
+
418
+
419
+
420
+
421
+
422
+
423
+
424
+
425
+
426
+
427
+
428
+
429
+
430
+
431
+
432
+
433
+
434
+
435
+
436
+
437
+
438
+
439
+
440
+
441
+
442
+
443
+
444
+
445
+
446
+
447
+
448
+
449
+
450
+
451
+
452
+
453
+
454
+
455
+
456
+
457
+
458
+
459
+
460
+
461
  <vcmentoboleto translate="label">
462
  <label>Dias de Vencimento para o Boleto:</label>
463
  <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
465
  </div></div>]]>
466
  </comment>
467
  <frontend_type>text</frontend_type>
468
+ <sort_order>80</sort_order>
469
  <show_in_default>1</show_in_default>
470
  <show_in_website>1</show_in_website>
471
  <show_in_store>1</show_in_store>
478
  </div></div>]]>
479
  </comment>
480
  <frontend_type>text</frontend_type>
481
+ <sort_order>81</sort_order>
482
  <show_in_default>1</show_in_default>
483
  <show_in_website>1</show_in_website>
484
  <show_in_store>1</show_in_store>
487
  <allowspecific translate="label">
488
  <label>Pagamento a partir de países aplicáveis</label>
489
  <frontend_type>allowspecific</frontend_type>
490
+ <sort_order>82</sort_order>
491
  <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
492
  <show_in_default>1</show_in_default>
493
  <show_in_website>1</show_in_website>
496
  <specificcountry translate="label">
497
  <label>Pagamento a partir de determinados países</label>
498
  <frontend_type>multiselect</frontend_type>
499
+ <sort_order>83</sort_order>
500
  <source_model>adminhtml/system_config_source_country</source_model>
501
  <show_in_default>1</show_in_default>
502
  <show_in_website>1</show_in_website>
app/code/local/O2TI/Moip/sql/moip_setup/mysql4-upgrade-0.1.0-0.2.0.php CHANGED
@@ -9,3 +9,13 @@
9
  * @copyright Copyright (c) 2013 O2ti Soluções Web
10
  * @license Licença válida por tempo indeterminado
11
  */
 
 
 
 
 
 
 
 
 
 
9
  * @copyright Copyright (c) 2013 O2ti Soluções Web
10
  * @license Licença válida por tempo indeterminado
11
  */
12
+ $installer = $this;
13
+ $installer->startSetup();
14
+
15
+
16
+ $installer->run('');
17
+
18
+ $installer->startSetup();
19
+
20
+ $installer->endSetup();
21
+ ?>
app/code/local/O2TI/Moip/sql/moip_setup/mysql4-upgrade-0.1.0-0.2.1.php CHANGED
@@ -13,21 +13,7 @@ $installer = $this;
13
  $installer->startSetup();
14
 
15
 
16
- $installer->run("
17
- CREATE TABLE IF NOT EXISTS `moip` (
18
- `transaction_id` int(11) NOT NULL AUTO_INCREMENT,
19
- `realorder_id` int(11) NOT NULL,
20
- `sale_id` int(11) NOT NULL,
21
- `xml_sent` text NOT NULL,
22
- `xml_return` text NOT NULL,
23
- `status` varchar(20) NOT NULL,
24
- `formapg` varchar(60) NOT NULL,
25
- `bandeira` varchar(60) NOT NULL,
26
- `digito` varchar(60) NOT NULL,
27
- `vencimento` datetime NOT NULL,
28
- `datetime` datetime NOT NULL,
29
- PRIMARY KEY (`transaction_id`)
30
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;");
31
 
32
  $installer->startSetup();
33
 
13
  $installer->startSetup();
14
 
15
 
16
+ $installer->run('');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
  $installer->startSetup();
19
 
app/code/local/O2TI/Moip/sql/moip_setup/mysql4-upgrade-0.2.1-0.2.3.php CHANGED
@@ -13,11 +13,7 @@ $installer = $this;
13
  $installer->startSetup();
14
 
15
 
16
- $installer->run("ALTER TABLE `moip` ADD `num_parcelas` INT NOT NULL AFTER `datetime` ,
17
- ADD `ult_dig` VARCHAR( 30 ) NOT NULL AFTER `num_parcelas` ,
18
- ADD `taxa_moip` VARCHAR( 30 ) NOT NULL AFTER `ult_dig` ,
19
- ADD `valor_pago` VARCHAR( 30 ) NOT NULL AFTER `taxa_moip` ,
20
- ADD `aceito_cofre` INT NOT NULL AFTER `valor_pago`");
21
 
22
  $installer->startSetup();
23
 
13
  $installer->startSetup();
14
 
15
 
16
+ $installer->run('');
 
 
 
 
17
 
18
  $installer->startSetup();
19
 
app/code/local/O2TI/Moip/sql/moip_setup/mysql4-upgrade-0.2.1-0.2.4.php CHANGED
@@ -11,10 +11,10 @@
11
  */
12
  $installer = $this;
13
  $installer->startSetup();
14
-
15
 
16
  $installer->run("
17
- CREATE TABLE IF NOT EXISTS `o2ti_moip` (
18
  `order_id` int(11) NOT NULL AUTO_INCREMENT,
19
  `realorder_id` int(11) DEFAULT NULL,
20
  `meio_pg` longtext DEFAULT NULL,
11
  */
12
  $installer = $this;
13
  $installer->startSetup();
14
+ $tablePrefix = (string) Mage::getConfig()->getTablePrefix();
15
 
16
  $installer->run("
17
+ CREATE TABLE IF NOT EXISTS `{tablePrefix}o2ti_moip` (
18
  `order_id` int(11) NOT NULL AUTO_INCREMENT,
19
  `realorder_id` int(11) DEFAULT NULL,
20
  `meio_pg` longtext DEFAULT NULL,
app/code/local/O2TI/Onestepcheckout/controllers/IndexController.php CHANGED
@@ -535,15 +535,7 @@ class O2TI_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
535
  else
536
  $result = $this->getOnepage()->saveShipping($data, $customerAddressId);
537
  }
538
- else {
539
- $this->_getQuote()->getShippingAddress()
540
- ->setCountryId('')
541
- ->setPostcode('')
542
- ->setCollectShippingRates(true);
543
- $this->_getQuote()->save();
544
- $this->loadLayout()->renderLayout();
545
- return;
546
- }
547
  }
548
 
549
  $this->loadLayout()->renderLayout();
535
  else
536
  $result = $this->getOnepage()->saveShipping($data, $customerAddressId);
537
  }
538
+
 
 
 
 
 
 
 
 
539
  }
540
 
541
  $this->loadLayout()->renderLayout();
app/code/local/O2TI/Onestepcheckout/etc/config.xml CHANGED
@@ -148,13 +148,7 @@
148
  <onestepcheckout>
149
  <class>O2TI_Onestepcheckout_Block</class>
150
  </onestepcheckout>
151
- <adminhtml>
152
- <rewrite>
153
- <sales_order_grid>O2TI_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Sales_Order_Grid</sales_order_grid>
154
- </rewrite>
155
- <rewrite> <system_config_form_field_regexception>O2TI_Onestepcheckout_Block_Adminhtml_Onestepcheckout_System_Config_Form_Field_Addtimerange</system_config_form_field_regexception>
156
- </rewrite>
157
- </adminhtml>
158
  </blocks>
159
  <helpers>
160
  <onestepcheckout>
@@ -162,15 +156,6 @@
162
  </onestepcheckout>
163
  </helpers>
164
  <events>
165
- <model_config_data_save_before>
166
- <observers>
167
- <onstepcheckout>
168
- <type>singleton</type>
169
- <class>onestepcheckout/observer</class>
170
- <method>model_config_data_save_before</method>
171
- </onstepcheckout>
172
- </observers>
173
- </model_config_data_save_before>
174
  <checkout_cart_add_product_complete>
175
  <observers>
176
  <onstepcheckout>
@@ -240,9 +225,12 @@
240
  <create_account>1</create_account>
241
  <style_color>000000</style_color>
242
  <botao_color>000000</botao_color>
 
243
  </config>
244
  <layout>
 
245
  <page_titulo>Pagamento</page_titulo>
 
246
  <page_layout>3</page_layout>
247
  <style_cor>000000</style_cor>
248
  <botao_cor>000000</botao_cor>
148
  <onestepcheckout>
149
  <class>O2TI_Onestepcheckout_Block</class>
150
  </onestepcheckout>
151
+
 
 
 
 
 
 
152
  </blocks>
153
  <helpers>
154
  <onestepcheckout>
156
  </onestepcheckout>
157
  </helpers>
158
  <events>
 
 
 
 
 
 
 
 
 
159
  <checkout_cart_add_product_complete>
160
  <observers>
161
  <onstepcheckout>
225
  <create_account>1</create_account>
226
  <style_color>000000</style_color>
227
  <botao_color>000000</botao_color>
228
+ <default_country>BR</default_country>
229
  </config>
230
  <layout>
231
+ <use_secure>1</use_secure>
232
  <page_titulo>Pagamento</page_titulo>
233
+ <page_conteudo>Sua compra segura via MoIP</page_conteudo>
234
  <page_layout>3</page_layout>
235
  <style_cor>000000</style_cor>
236
  <botao_cor>000000</botao_cor>
app/code/local/O2TI/Onestepcheckout/etc/system.xml CHANGED
@@ -266,16 +266,7 @@
266
  <show_in_website>1</show_in_website>
267
  <show_in_store>1</show_in_store>
268
  <fields>
269
- <street translate="label">
270
- <label>Endereço</label>
271
- <frontend_type>select</frontend_type>
272
- <source_model>onestepcheckout/system_config_source_optionaddfield</source_model>
273
- <sort_order>1</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
- <comment>Obrigatório para o meio de pagamento</comment>
278
- </street>
279
  <street_lines translate="label comment">
280
  <label>Número de linhas do endereço </label>
281
  <sort_order>2</sort_order>
@@ -336,7 +327,7 @@
336
  </fields>
337
  </addfield>
338
  <termcondition translate="label">
339
- <label>Termos e condições</label>
340
  <frontend_type>text</frontend_type>
341
  <sort_order>6</sort_order>
342
  <show_in_default>1</show_in_default>
@@ -344,7 +335,7 @@
344
  <show_in_store>1</show_in_store>
345
  <fields>
346
  <allow_options translate="label">
347
- <label>Habilitar termos e condições</label>
348
  <frontend_type>select</frontend_type>
349
  <source_model>adminhtml/system_config_source_yesno</source_model>
350
  <sort_order>1</sort_order>
@@ -368,7 +359,7 @@
368
  <show_in_default>1</show_in_default>
369
  <show_in_website>1</show_in_website>
370
  <show_in_store>1</show_in_store>
371
- <comment>informe a largura</comment>
372
  </boxwidth>
373
  <boxheight translate="label">
374
  <label>Altura</label>
@@ -377,7 +368,7 @@
377
  <show_in_default>1</show_in_default>
378
  <show_in_website>1</show_in_website>
379
  <show_in_store>1</show_in_store>
380
- <comment>Informe a altura</comment>
381
  </boxheight>
382
  </fields>
383
  </termcondition>
266
  <show_in_website>1</show_in_website>
267
  <show_in_store>1</show_in_store>
268
  <fields>
269
+
 
 
 
 
 
 
 
 
 
270
  <street_lines translate="label comment">
271
  <label>Número de linhas do endereço </label>
272
  <sort_order>2</sort_order>
327
  </fields>
328
  </addfield>
329
  <termcondition translate="label">
330
+ <label>Box Modal</label>
331
  <frontend_type>text</frontend_type>
332
  <sort_order>6</sort_order>
333
  <show_in_default>1</show_in_default>
335
  <show_in_store>1</show_in_store>
336
  <fields>
337
  <allow_options translate="label">
338
+ <label>Habilitar Modal de termos e condições</label>
339
  <frontend_type>select</frontend_type>
340
  <source_model>adminhtml/system_config_source_yesno</source_model>
341
  <sort_order>1</sort_order>
359
  <show_in_default>1</show_in_default>
360
  <show_in_website>1</show_in_website>
361
  <show_in_store>1</show_in_store>
362
+ <comment>informe a largura, nao colocar px ou %, apenas números</comment>
363
  </boxwidth>
364
  <boxheight translate="label">
365
  <label>Altura</label>
368
  <show_in_default>1</show_in_default>
369
  <show_in_website>1</show_in_website>
370
  <show_in_store>1</show_in_store>
371
+ <comment>Informe a altura, nao colocar px ou %, apenas números</comment>
372
  </boxheight>
373
  </fields>
374
  </termcondition>
app/design/adminhtml/default/default/template/O2TI/moip/info.phtml CHANGED
@@ -23,6 +23,9 @@ $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>
27
  <?php endif ?>
28
 
@@ -34,6 +37,9 @@ $css_email_img = "position: absolute !important;left: -70px !important;top: -20p
34
  </div></br>
35
  <div class="boleto_line_title"><h4>Ou Cópie o endereço:</h4></div>
36
  <div class="boleto_line"><input type="text" class="input-text" value="<?php echo $info['url'] ?>" readonly="true" style="width:350px"></div>
 
 
 
37
  <?php endif ?>
38
 
39
 
@@ -44,5 +50,8 @@ $css_email_img = "position: absolute !important;left: -70px !important;top: -20p
44
  <div style="clear:both;width:100%"><button type="button" title="Finalizar compra" style="<?php echo $css_email.$css_trans ?>" onclick="window.location='<?php echo $info['url'] ?>'"><div style="<?php echo $css_email_img; ?>background:url(<?php echo $this->getSkinUrl('O2TI/moip/imagem/bank-icon.png');echo") no-repeat;"; ?>"/></div>Ir ao Banco</button></div>
45
  <div class="boleto_line_title" style="clear:both;width:100%"><h4>Ou Cole a Url na Barra do Navegador:</h4></div>
46
  <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>
 
 
 
47
  </div>
48
  <?php endif ?>
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 moip</a></strong></div>
28
+ </div>
29
  </div>
30
  <?php endif ?>
31
 
37
  </div></br>
38
  <div class="boleto_line_title"><h4>Ou Cópie o endereço:</h4></div>
39
  <div class="boleto_line"><input type="text" class="input-text" value="<?php echo $info['url'] ?>" readonly="true" style="width:350px"></div>
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 moip</a></strong></div>
42
+ </div>
43
  <?php endif ?>
44
 
45
 
50
  <div style="clear:both;width:100%"><button type="button" title="Finalizar compra" style="<?php echo $css_email.$css_trans ?>" onclick="window.location='<?php echo $info['url'] ?>'"><div style="<?php echo $css_email_img; ?>background:url(<?php echo $this->getSkinUrl('O2TI/moip/imagem/bank-icon.png');echo") no-repeat;"; ?>"/></div>Ir ao Banco</button></div>
51
  <div class="boleto_line_title" style="clear:both;width:100%"><h4>Ou Cole a Url na Barra do Navegador:</h4></div>
52
  <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>
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 moip</a></strong></div>
55
+ </div>
56
  </div>
57
  <?php endif ?>
app/design/adminhtml/default/default/template/O2TI/pagseguro/form.phtml DELETED
@@ -1,682 +0,0 @@
1
- <?php
2
- $standad = Mage::getSingleton('moip/standard');
3
- $api = Mage::getSingleton('moip/api');
4
- $api->setContaMoip($standad->getConfigData('conta_moip'));
5
- $api->setAmbiente($standad->getConfigData('ambiente'));
6
- $parcelas = "";
7
- $descontotexto = "";
8
- $asterisco = "";
9
- $nome = "";
10
- $telefone = "";
11
- $cpf = "";
12
- $dn = "";
13
- $icone_cartao = $this->getSkinUrl('O2TI/moip/imagem/abacartao.png');
14
- $icone_boleto = $this->getSkinUrl('O2TI/moip/imagem/ababoleto.png');
15
- $icone_transf = $this->getSkinUrl('O2TI/moip/imagem/abatransf.png');
16
- $cartao_visa = $this->getSkinUrl('O2TI/moip/imagem/Visa.png');
17
- $cartao_master = $this->getSkinUrl('O2TI/moip/imagem/Mastercard.png');
18
- $cartao_diners = $this->getSkinUrl('O2TI/moip/imagem/Diners.png');
19
- $cartao_american = $this->getSkinUrl('O2TI/moip/imagem/AmericanExpress.png');
20
- $cartao_hipercard = $this->getSkinUrl('O2TI/moip/imagem/Hipercard.png');
21
- $boleto = $this->getSkinUrl('O2TI/moip/imagem/Bradesco.png');
22
- $cartao_bb = $this->getSkinUrl('O2TI/moip/imagem/BancoDoBrasil.png');
23
- $cartao_bradesco = $this->getSkinUrl('O2TI/moip/imagem/Bradesco.png');
24
- $cartao_itau = $this->getSkinUrl('O2TI/moip/imagem/Itau.png');
25
- $cartao_banrisul = $this->getSkinUrl('O2TI/moip/imagem/Banrisul.png');
26
- if(Mage::getStoreConfig('o2tiall/config/trocar_icone')):
27
- $icone_cartao = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/icone_cartao');
28
- $icone_boleto = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/icone_boleto');
29
- $icone_transf = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/icone_transf');
30
- endif;
31
- if(Mage::getStoreConfig('o2tiall/config/trocar_bandeira_cartao')):
32
- $cartao_visa = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_visa');
33
- $cartao_master = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_master');
34
- $cartao_diners = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_diners');
35
- $cartao_american = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_american');
36
- $cartao_hipercard = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_hipercard');
37
- endif;
38
- if(Mage::getStoreConfig('o2tiall/config/trocar_bandeira_cartao')):
39
- $cartao_bb = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_bb');
40
- $cartao_bradesco = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_bradesco');
41
- $cartao_itau = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_itau');
42
- $cartao_banrisul = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_banrisul');
43
- endif;
44
- if(Mage::getStoreConfig('o2tiall/config/trocar_bandeira_cartao')):
45
- $boleto = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/boleto');
46
- endif;
47
- $mostraboleto = 1;
48
- $nivelestoque = $standad->getConfigData('estoqueboleto');
49
- $idcount = 0;
50
- $_Produtos = Mage::getSingleton('checkout/cart')->getQuote()->getAllItems();
51
- foreach ($_Produtos as $value)
52
- {
53
- $item_ID = $value->getProductId();
54
- $_Product = Mage::getModel('catalog/product')->load($item_ID);
55
- $model = Mage::getModel('catalog/product');
56
- $_product = $model->load($item_ID);
57
- $stocklevel[$idcount] = (int)Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty();
58
- $nomeprod[$idcount] = $model->getName();
59
- $idcount = $idcount + 1;
60
- }
61
- $idcount = $idcount - 1;
62
- $teste = 0;
63
- while($teste <= $idcount )
64
- {
65
- if ($stocklevel[$teste] <= $nivelestoque){
66
- $prodbaixostock = "O Produto <b>". $nomeprod[$teste] . "</b> está com o estoque baixo (<b>menos de ". $stocklevel[$teste] ." unidades</b>) e não poderá ser pago com boleto. </br>A quantidade mínima de um produto em estoque para compra por boleto deverá ser de: <b>". $nivelestoque . " Produtos.</b> ";
67
- $mostraboleto = 0;
68
- }
69
- $teste++;
70
- }
71
-
72
- $descont_boleto = Mage::getStoreConfig('parcelamento_de2');
73
- $virtual = Mage::helper('onestepcheckout')->onlyProductDownloadable();
74
- if ($virtual){
75
- $data = $standad->getQuote()->getBillingAddress();
76
- }
77
- else {
78
- $data = $standad->getQuote()->getShippingAddress();
79
- }
80
- $valor_pedido = $data->getGrandTotal();
81
- $valor_parc = $data->getGrandTotal();
82
- $valor_parc = number_format($valor_parc,2);
83
-
84
- if($valor_pedido > 5):
85
- $parcelamento = $api->getParcelamento($data->getGrandTotal());
86
- foreach ($parcelamento as $k => $v):
87
- if($v['juros'] == "1.99"):
88
- $asterisco = "*";
89
- else:
90
- $parcelas_sem_juros = $k;
91
- endif;
92
-
93
- $parcelas .= "<option value=\"".$k."\"> ".$k."x R$ " . $v['valor'] . "".$asterisco." | Total: R$ " .$v['total']."</option>";
94
- endforeach;
95
- else:
96
- $parcelas .= "<option value=\"1\"> Pagamento à vista </option>";
97
- endif;
98
-
99
-
100
- if (Mage::getStoreConfig('o2tiall/pagamento_avancado/pagamento_boleto')):
101
- if ($valor_pedido >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor')):
102
- $descontotexto = "Com desconto de: ".Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc')."%.";
103
- $descontotexto1 = $descontotexto ."<br/>Págavel em qualquer banco, casas lotéricas ou via internet bank.";
104
- $desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc')/100;
105
- endif;
106
-
107
- if (Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor2') != "" && $valor_pedido >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor2') && $valor_pedido < Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3') ):
108
- $descontotexto = "Com desconto de: ".Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc2')."%.";
109
- $descontotexto1 = $descontotexto ."<br/>Págavel em qualquer banco, casas lotéricas ou via internet bank.";
110
- $desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc2')/100;
111
- endif;
112
-
113
- if (Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3') != "" && $valor_pedido >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3') ):
114
- $descontotexto = "Com desconto de: ".Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc3')."%.";
115
- $descontotexto1 = $descontotexto ."<br/>Págavel em qualquer banco, casas lotéricas ou via internet bank.";
116
- $desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc3')/100;
117
- endif;
118
-
119
-
120
- else:
121
- $descontotexto1 = "Págavel em qualquer banco, casas lotéricas ou via internet bank.";
122
- $desconto = $data->getGrandTotal();
123
- endif;
124
-
125
-
126
- if (Mage::getStoreConfig('o2tiall/pagamento_avancado/transf_desc')):
127
- if ($valor_pedido >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor')):
128
- $descontotexto = "Com desconto de: ".Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc')."%.";
129
- $descontotexto1 = $descontotexto ."<br/>Págavel únicamente através internet bank.";
130
- $desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc')/100;
131
- endif;
132
-
133
- if (Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor2') != "" && $valor_pedido >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor2') && $valor_pedido < Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3') ):
134
- $descontotexto = "Com desconto de: ".Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc2')."%.";
135
- $descontotexto1 = $descontotexto ."<br/>Págavel únicamente através internet bank.";
136
- $desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc2')/100;
137
- endif;
138
-
139
- if (Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3') != "" && $valor_pedido >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3') ):
140
- $descontotexto = "Com desconto de: ".Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc3')."%.";
141
- $descontotexto1 = $descontotexto ."<br/>Págavel únicamente através internet bank.";
142
- $desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc3')/100;
143
- endif;
144
-
145
-
146
- else:
147
- $descontotexto1 = "Págavel em qualquer banco, casas lotéricas ou via internet bank.";
148
- $desconto = $data->getGrandTotal();
149
- endif;
150
-
151
- if(Mage::getSingleton('customer/session')->isLoggedIn()){
152
- $nome = Mage::getSingleton('customer/session')->getCustomer()->getName();
153
- $telefone = Mage::getSingleton('customer/session')->getCustomer()->getTelephone();
154
- $cpf = Mage::getSingleton('customer/session')->getCustomer()->getTaxvat();
155
- $dn = Mage::getSingleton('customer/session')->getCustomer()->getdob();
156
- $dn = date("d/m/Y", strtotime($dn));
157
- }
158
- ?>
159
-
160
- <script type="text/javascript">
161
-
162
- jQuery(document).ready(function(){
163
- <?php if (!in_array("CartaoCredito", $standad->getFormasPagamento()) ): ?>
164
- jQuery('#linhaparcelas').css({display:"none"});
165
- <?php endif;?>
166
- <?php if (!in_array("BoletoBancario", $standad->getFormasPagamento()) ): ?>
167
- jQuery('#linhaboleto').css({display:"none"});
168
- <?php endif;?>
169
- <?php if (!in_array("DebitoBancario", $standad->getFormasPagamento()) ): ?>
170
- jQuery('#linhatransf').css({display:"none"});
171
- <?php endif;?>
172
- });
173
-
174
- fechar = function(){
175
- <?php if (in_array("CartaoCredito", $standad->getFormasPagamento()) ): ?>
176
- jQuery('#linhacartao').css({display:"none"});
177
- <?php endif;?>
178
- <?php if (in_array("BoletoBancario", $standad->getFormasPagamento()) ): ?>
179
- jQuery('#conteudoboleto').css({display:"none"});
180
- <?php endif;?>
181
- <?php if (in_array("DebitoBancario", $standad->getFormasPagamento()) ): ?>
182
- jQuery('#conteudotransf').css({display:"none"});
183
- <?php endif;?>
184
- }
185
- parcelas = function(){
186
- fechar();
187
- jQuery('#linhacartao').hide();
188
- jQuery("#linhacartao").slideDown("slow");
189
- jQuery('#linhacartao').css({display:"block"});
190
-
191
- }
192
- boleto = function(){
193
- fechar();
194
- jQuery('#conteudoboleto').hide();
195
- jQuery("#conteudoboleto").slideDown("slow");
196
- jQuery('#conteudoboleto').css({display:"block"});
197
- }
198
- transf = function(){
199
- fechar();
200
- jQuery('#conteudotransf').hide();
201
- jQuery("#conteudotransf").slideDown("slow");
202
- jQuery('#conteudotransf').css({display:"block"});
203
- }
204
- function countChar(val) {
205
- var cvv = val.value.length;
206
- if(cvv > 2){
207
- jQuery('#formcli').hide();
208
- jQuery("#formcli").slideDown("slow");
209
- jQuery('#formcli').css({display:"block"});
210
- document.getElementById('credito_portador_nome').value = document.getElementById('billing:firstname').value + ' ' + document.getElementById('billing:lastname').value;
211
- document.getElementById('credito_portador_telefone').value = document.getElementById('billing:telephone').value;
212
- document.getElementById('credito_portador_cpf').value = document.getElementById('billing:taxvat').value;
213
- if(document.getElementById('billing:year').value)
214
- {
215
- document.getElementById('credito_portador_nascimento').value = document.getElementById('billing:day').value + '/' + document.getElementById('billing:month').value + '/' + document.getElementById('billing:year').value
216
- }
217
- }
218
- };
219
- //validacao do moip - inicio
220
- jQuery('.btn-checkout').on("click",function(e)
221
- {
222
- if(jQuery('input[name=payment\\[method\\]]:checked').val() == "o2ti_moip_standard"){
223
- if(!jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val()){
224
- if(!jQuery('#advice-required-o2ti').length)
225
- {
226
- logic=false;
227
- jQuery('#checkout-payment-o2ti').css({display:"block"});
228
- jQuery('#checkout-payment-o2ti').html('Selecione a forma de pagamento.');
229
- return false;
230
- }
231
- }
232
- else
233
- jQuery('#checkout-payment-o2ti').css({display:"none"});
234
- jQuery('#advice-required-entry_payment_o2ti').remove();
235
- }
236
- if(jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val() == "CartaoCredito")
237
- {
238
- if(!jQuery("input[name=payment\\[credito_instituicao\\]]:checked").val())
239
- {
240
- if(!jQuery('#advice-required-o2ti').length)
241
- {
242
- logic=false;
243
- jQuery('#checkout-payment-bandeira').css({display:"block"});
244
- jQuery('#checkout-payment-bandeira').html('Selecione a bandeira do cart&atilde;o.');
245
- return false;
246
- }
247
- }
248
- else
249
- jQuery('#checkout-payment-bandeira').css({display:"none"});
250
- jQuery('#advice-required-entry_payment_bandeira').remove();
251
- }
252
- if(jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val() == "DebitoBancario")
253
- {
254
- if(!jQuery("input[name=payment\\[debito_instituicao\\]]:checked").val())
255
- {
256
- if(!jQuery('#advice-required-o2ti').length)
257
- {
258
- logic=false;
259
- jQuery('#checkout-payment-banco').css({display:"block"});
260
- jQuery('#checkout-payment-banco').html('Selecione o seu banco.');
261
- return false;
262
- }
263
-
264
- }
265
- else
266
- jQuery('#checkout-payment-banco').css({display:"none"});
267
- }
268
- });
269
-
270
- //validacao do moip - fim
271
- bb = function(){
272
- document.getElementById('checkout-payment-o2ti-deb').style.display='none';
273
- document.getElementById('debbb').style.opacity='1';
274
- document.getElementById('debbradesco').style.opacity='0.4';
275
- document.getElementById('debitau').style.opacity='0.4';
276
- document.getElementById('Banrisul').style.opacity='0.4';
277
- document.getElementById('pagdebito').style.display='block';
278
- document.getElementById('checkout-payment-banco').style.display='none';
279
- };
280
- bradesco = function(){
281
- document.getElementById('checkout-payment-o2ti-deb').style.display='none';
282
- document.getElementById('debbb').style.opacity='0.4';
283
- document.getElementById('debbradesco').style.opacity='1';
284
- document.getElementById('debitau').style.opacity='0.4';
285
- document.getElementById('Banrisul').style.opacity='0.4';
286
- document.getElementById('pagdebito').style.display='block';
287
- document.getElementById('checkout-payment-banco').style.display='none';
288
- };
289
- itau = function(){
290
- document.getElementById('checkout-payment-o2ti-deb').style.display='none';
291
- document.getElementById('debbb').style.opacity='0.4';
292
- document.getElementById('debbradesco').style.opacity='0.4';
293
- document.getElementById('debitau').style.opacity='1';
294
- document.getElementById('Banrisul').style.opacity='0.4';
295
- document.getElementById('pagdebito').style.display='block';
296
- document.getElementById('checkout-payment-banco').style.display='none';
297
- };
298
- banrisul = function(){
299
- document.getElementById('checkout-payment-o2ti-deb').style.display='none';
300
- document.getElementById('debbb').style.opacity='0.4';
301
- document.getElementById('debbradesco').style.opacity='0.4';
302
- document.getElementById('debitau').style.opacity='0.4';
303
- document.getElementById('Banrisul').style.opacity='1';
304
- document.getElementById('pagdebito').style.display='block';
305
- document.getElementById('checkout-payment-banco').style.display='none';
306
- };
307
- visa = function(){
308
- document.getElementById('Visa').style.opacity='1';
309
- document.getElementById('Mastercard').style.opacity='0.4';
310
- document.getElementById('Diners').style.opacity='0.4';
311
- document.getElementById('AmericanExpress').style.opacity='0.4';
312
- document.getElementById('Hipercard').style.opacity='0.4';
313
- document.getElementById('checkout-payment-bandeira').style.display='none';
314
- };
315
- mastercard = function(){
316
- document.getElementById('Visa').style.opacity='0.4';
317
- document.getElementById('Mastercard').style.opacity='1';
318
- document.getElementById('Diners').style.opacity='0.4';
319
- document.getElementById('AmericanExpress').style.opacity='0.4';
320
- document.getElementById('Hipercard').style.opacity='0.4';
321
- document.getElementById('checkout-payment-bandeira').style.display='none';
322
- };
323
- americanexpress = function(){
324
- document.getElementById('Visa').style.opacity='0.4';
325
- document.getElementById('Mastercard').style.opacity='0.4';
326
- document.getElementById('Diners').style.opacity='0.4';
327
- document.getElementById('AmericanExpress').style.opacity='1';
328
- document.getElementById('Hipercard').style.opacity='0.4';
329
- document.getElementById('checkout-payment-bandeira').style.display='none';
330
- };
331
- diners = function(){
332
- document.getElementById('Visa').style.opacity='0.4';
333
- document.getElementById('Mastercard').style.opacity='0.4';
334
- document.getElementById('Diners').style.opacity='1';
335
- document.getElementById('AmericanExpress').style.opacity='0.4';
336
- document.getElementById('Hipercard').style.opacity='0.4';
337
- document.getElementById('checkout-payment-bandeira').style.display='none';
338
- };
339
- hipercard = function(){
340
- document.getElementById('Visa').style.opacity='0.4';
341
- document.getElementById('Mastercard').style.opacity='0.4';
342
- document.getElementById('Diners').style.opacity='0.4';
343
- document.getElementById('AmericanExpress').style.opacity='0.4';
344
- document.getElementById('Hipercard').style.opacity='1';
345
- document.getElementById('checkout-payment-bandeira').style.display='none';
346
- };
347
- </script>
348
-
349
- <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('O2TI/moip/css/formulario.css'); ?> "media="all">
350
- <div id="checkouto2ti">
351
- <ul id="payment_form_<?php echo $this->getMethodCode() ?>">
352
-
353
-
354
-
355
-
356
- <?php if ($mostraboleto != "1"): ?>
357
- <label>
358
-
359
- <?php if (in_array("BoletoBancario", $standad->getFormasPagamento()) ): ?>
360
- <input onclick="boleto();" type="radio" name="payment[forma_pagamento]" title="Boleto" value="" class="forma_pg">
361
-
362
- <div id="linhaboleto" onclick="boleto();">
363
- <div id="icone">
364
- <img alt="Boleto Bancário" id="imageboleto" src="<?php echo $icone_boleto; ?>">
365
- </div>
366
- <div id="desc">
367
- <h3>Boleto</h3>
368
- <span class="desc">
369
- Indisponível
370
- </span>
371
- </div>
372
- <div id="valor">
373
- <h3>Valor</h3>
374
- R$ <?php echo number_format($desconto,2) ?>
375
- </div>
376
- </div>
377
- </label>
378
- <div style="clear:both;"></div>
379
- <div id="conteudoboleto">
380
- <h3>Boleto Bancário</h3>
381
- <div id="icone">
382
- <img alt="Boleto Bancário" id="imageboleto" src="<?php echo $boleto; ?>">
383
- </div>
384
- <div id="desc2">
385
- <?php echo $prodbaixostock; ?>
386
- </div>
387
- </div>
388
-
389
- <?php endif;?>
390
- <?php endif; ?>
391
-
392
-
393
- <div style="clear:both;"></div>
394
-
395
- <?php if ($mostraboleto == "1"): ?>
396
- <label>
397
- <?php if (in_array("BoletoBancario", $standad->getFormasPagamento()) ): ?>
398
- <input onclick="boleto();" type="radio" name="payment[forma_pagamento]" title="Boleto" value="BoletoBancario" class="forma_pg">
399
-
400
- <div id="linhaboleto" onclick="boleto();">
401
- <div id="icone">
402
- <img alt="Boleto Bancário" id="imageboleto" src="<?php echo $icone_boleto; ?>">
403
- </div>
404
- <div id="desc">
405
- <h3>Boleto</h3>
406
- <span class="desc">
407
- <?php echo $descontotexto; ?>
408
- </span>
409
- </div>
410
- <div id="valor">
411
- <h3>Valor</h3>
412
- R$ <?php echo number_format($desconto,2) ?>
413
- </div>
414
- </div>
415
- </label>
416
- <div style="clear:both;"></div>
417
- <div id="conteudoboleto">
418
- <h3>Boleto Bancário</h3>
419
- <div id="icone">
420
- <img alt="Boleto Bancário" id="imageboleto" src="<?php echo $boleto; ?>">
421
- </div>
422
- <div id="desc2">
423
- <?php echo $descontotexto1; ?>
424
- </div>
425
- </div>
426
- <?php endif; ?>
427
- <?php endif; ?>
428
-
429
-
430
-
431
-
432
-
433
- <div style="clear:both;"></div>
434
-
435
-
436
-
437
-
438
-
439
- <label onclick="parcelas();">
440
-
441
-
442
- <?php if (in_array("CartaoCredito", $standad->getFormasPagamento()) ): ?>
443
- <input onclick="parcelas();" id="cartao_radio" type="radio" name="payment[forma_pagamento]" title="Cartão de Crédito" value="CartaoCredito" class="forma_pg">
444
-
445
-
446
- <div id="linhaparcelas">
447
- <div id="icone">
448
- <img alt="Cartão de Crédito" id="imageboleto" src="<?php echo $icone_cartao; ?>">
449
- </div>
450
- <div id="desc">
451
- <h3>Cartão de Crédito</h3>
452
- <span class="desc">
453
- Pague em até <?php echo $k; ?>x
454
- </span>
455
- </div>
456
- <div id="valor">
457
- Parcelas <?php echo $k; ?>x de
458
- R$ <?php echo $v['valor']; ?>
459
- </div>
460
- </div>
461
- <?php endif;?>
462
- </label>
463
- <div style="clear:both;"></div>
464
- <div id="linhacartao">
465
- <h3>Cartão de Crédito</h3>
466
- <li class="wide">
467
- <label class="required" for="credito_bandeira" >Selecione a Bandeira:</label>
468
- <div class="input-box" style="text-align:center;">
469
-
470
- <label id="band">
471
- <input id="bandeiramoip" type="radio" name="payment[credito_instituicao]" onclick="visa();" value="Visa"><img src="<?php echo $cartao_visa; ?>" onclick=";" id="Visa" alt="Visa" border="0">
472
- </label>
473
-
474
- <label id="band">
475
- <input id="bandeiramoip" type="radio" name="payment[credito_instituicao]" onclick="mastercard();" value="Mastercard"><img src="<?php echo $cartao_master; ?>" onclick="" id="Mastercard" alt="Mastercard" border="0">
476
- </label>
477
-
478
-
479
- <label id="band">
480
- <input id="bandeiramoip" type="radio" name="payment[credito_instituicao]" onclick="americanexpress();" value="AmericanExpress"><img src="<?php echo $cartao_american; ?>" onclick="" id="AmericanExpress" alt="AmericanExpress" border="0">
481
- </label>
482
- </div>
483
- <div class="input-box" style="text-align:center;">
484
- <label id="band">
485
- <input id="bandeiramoip" type="radio" name="payment[credito_instituicao]" onclick="diners();" value="Diners"> <img onclick="" src="<?php echo $cartao_diners; ?>" id="Diners" alt="Diners" border="0">
486
- </label>
487
-
488
-
489
- <label id="band">
490
- <input id="bandeiramoip" type="radio" name="payment[credito_instituicao]" onclick="hipercard();" value="Hipercard"><img onclick="" src="<?php echo $cartao_hipercard; ?>" id="Hipercard" alt="Hipercard" border="0">
491
- </label>
492
-
493
- </div>
494
- </li>
495
-
496
- <div id="checkout-payment-bandeira" class="validation-advice" style="display:none;position:relative;" ></div>
497
-
498
- <li class="wide">
499
- <label class="required" for="credito_numero">Número:</label>
500
- <div class="input-box">
501
- <input type="text" name="payment[credito_numero]" id="credito_numero" class="input-text required-entry validate-cc-number" >
502
- </div>
503
- </li>
504
-
505
-
506
- <li class="wide">
507
- <label class="required" for="Validade">Validade:</label>
508
- <div class="input-box">
509
- <select name="payment[credito_expiracao_mes]" id="credito_expiracao_mes" class="input-text required-entry" >
510
- <option value="">Mês</option>
511
- <option value="01">01</option>
512
- <option value="02">02</option>
513
- <option value="03">03</option>
514
- <option value="04">04</option>
515
- <option value="05">05</option>
516
- <option value="06">06</option>
517
- <option value="07">07</option>
518
- <option value="08">08</option>
519
- <option value="09">09</option>
520
- <option value="10">10</option>
521
- <option value="11">11</option>
522
- <option value="12">12</option>
523
- </select>
524
- <select name="payment[credito_expiracao_ano]" id="credito_expiracao_ano" class="input-text required-entry" >
525
- <option value="">Ano</option>
526
- <option value="13">13</option>
527
- <option value="14">14</option>
528
- <option value="15">15</option>
529
- <option value="16">16</option>
530
- <option value="17">17</option>
531
- <option value="18">18</option>
532
- <option value="19">19</option>
533
- <option value="20">20</option>
534
- <option value="21">21</option>
535
- <option value="22">22</option>
536
- <option value="23">23</option>
537
- <option value="24">24</option>
538
- <option value="25">25</option>
539
- </select>
540
- </div>
541
- </li>
542
- <li class="wide">
543
- <label class="required" for="cvv">Código de segurança:</label>
544
- <div class="input-box">
545
- <span class="tooltip">
546
- <input type="text" name="payment[credito_codigo_seguranca]" onkeyup="countChar(this)" class="input-text required-entry" id="credito_codigo_seguranca" >
547
- <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('O2TI/moip/imagem/codigo-seguranca.png'); ?>" id="imageseguramoip" border="0"></span></span>
548
- </div>
549
- </li>
550
- <?php
551
- $data = $standad->getQuote()->getShippingAddress();
552
- $data->getGrandTotal();
553
- ?>
554
-
555
- <li class="wide">
556
- <label class="required" for="credito_parcela">Opções de pagamento:</label>
557
- <div class="input-box">
558
- <select name="payment[credito_parcelamento]" id="credito_parcelamento" class="input-text required-entry" >
559
- <?php echo $parcelas; ?>
560
- </select>
561
-
562
- <div id="addparcelas">
563
- <?php
564
-
565
- if ($parcelas_sem_juros >= 1)
566
- {
567
- echo "<div id=\"addparcelasdesc\"> Sem juros até ".$parcelas_sem_juros." parcelas";
568
- if ($parcelas_sem_juros < $k)
569
- {
570
- echo ", após juros de ". $v['juros'] ." a.m.</div>";
571
- }
572
- }
573
- if ($parcelas_sem_juros == "12")
574
- {
575
- echo "<div id=\"addparcelasdesc\"> Com juros de ".$v['juros'] ." a.m.</div>";
576
- }
577
- ?>
578
- </div>
579
- </div>
580
- </li>
581
-
582
- <div id="formcli" style="display:none;">
583
- <h3>Dados do Titular</h3>
584
- <div id="pjmoip" style="display:none;width:80%; float:left;color:red;">Atenção para Pessoa Júridica você deverá informar os dados do seu cartão empresarial, não os dados da empresa.</div>
585
-
586
- <li class="wide">
587
- <label class="required" for="credito_parcela">Nome no Cartão:</label>
588
- <div class="input-box">
589
- <span class="tooltip" >
590
- <input type="text" name="payment[credito_portador_nome]" value="<?php echo $nome; ?>" class="required-entry" id="credito_portador_nome" >
591
- <span class="custom help"><em>Nome do titular</em>deverá ser obrigatoriamente como descrito no cartão.</span></span>
592
- </div>
593
- </li>
594
- <li class="wide">
595
- <label class="required" for="credito_parcela">CPF:</label>
596
- <div class="input-box">
597
- <input type="text" name="payment[credito_portador_cpf]" class="required-entry validar_cpf" placeholder="Ex. 111.111.111-11" onkeypress="return txtBoxFormat(this, '999.999.999-99', event);" maxlength="14" id="credito_portador_cpf" value="<?php echo $cpf; ?>" >
598
- </div>
599
- </li>
600
- <li class="wide">
601
- <label class="required" for="credito_parcela">Telefone:</label>
602
- <div class="input-box">
603
- <span class="tooltip" >
604
- <input type="text" name="payment[credito_portador_telefone]" id="credito_portador_telefone" onkeypress="return txtBoxFormat(this, '(99)9999-9999', event);" maxlength="14" value="<?php echo $telefone; ?>" placeholder="Ex. (19)9999-9999" class="input-text required-entry">
605
- <span class="custom help"><em>Telefone de contato</em>Muitas vezes é necessária a confirmação manual de seus dados por nossa equipe de crédito, por favor informe um telefone em que seja fácil te localizar.</span></span>
606
- </div>
607
- </li>
608
- <li class="wide">
609
- <label class="required" for="credito_parcela">Data nascimento:</label>
610
- <div class="input-box">
611
- <input type="text" name="payment[credito_portador_nascimento]" id="credito_portador_nascimento" onkeypress="return txtBoxFormat(this, '99/99/9999', event);" maxlength="10" value="<?php if ($dn !='') { echo $dn; } ?>" placeholder="Ex. 10/10/1985" class="input-text required-entry" >
612
- </div>
613
- </li>
614
- </div>
615
- </div>
616
-
617
-
618
- <div style="clear:both;"></div>
619
-
620
-
621
-
622
-
623
-
624
- <label>
625
-
626
- <?php if (in_array("DebitoBancario", $standad->getFormasPagamento()) ): ?>
627
- <input onclick="transf();" type="radio" class="forma_pg" name="payment[forma_pagamento]" value="DebitoBancario" >
628
-
629
- <div id="linhatransf" onclick="transf();">
630
- <div id="icone">
631
- <img alt="Transferência Bancária" id="imageboleto" src="<?php echo $icone_transf; ?>">
632
- </div>
633
- <div id="desc">
634
- <h3>Transferência Bancária</h3>
635
- <span class="desc">
636
- <?php echo $descontotexto; ?>
637
- </span>
638
- </div>
639
- <div id="valor">
640
- <h3>Valor</h3>
641
- R$ <?php echo number_format($desconto,2) ?>
642
- </div>
643
- </div>
644
- <?php endif;?>
645
- </label>
646
- <div style="clear:both;"></div>
647
- <div id="conteudotransf">
648
- <h3>Transferência Online</h3>
649
- <div id="pagdebito">
650
- Após finalizar o pedido você será redirecionado ao site do seu banco...</br>
651
- <?php echo $descontotexto1; ?>
652
- </br>
653
- </div>
654
- <div id="moip_debito_bandeiras">
655
- <label>
656
- <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" onclick="bb();" value="BancoDoBrasil">
657
- <img src="<?php echo $cartao_bb; ?>" alt="Banco do Brasil" id="debbb" >
658
- </label>
659
- <label>
660
- <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" onclick="bradesco();" value="Bradesco">
661
- <img src="<?php echo $cartao_bradesco; ?>" id="debbradesco" alt="Bradesco">
662
- </label>
663
- <label>
664
- <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" onclick="itau();" value="Itau" >
665
- <img src="<?php echo $cartao_itau; ?>" id="debitau" alt="Itaú" >
666
- </label>
667
- <label>
668
- <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" onclick="banrisul();" value="Banrisul">
669
- <img src="<?php echo $cartao_banrisul; ?>" id="Banrisul" alt="Banrisul" >
670
- </label>
671
- </div>
672
- <div id="checkout-payment-banco" class="validation-advice" style="position:relative;display:none;"></div>
673
- <div id="checkout-payment-o2ti-deb" class="validation-advice" style="position:relative;display:none;" >
674
- Por favor, selecione o banco!
675
- </div>
676
- </div>
677
- <div style="clear:both;"></div>
678
-
679
- </ul>
680
- </div>
681
- <div id="checkout-payment-o2ti" class="validation-advice" style="position:relative;display:none;"></div>
682
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/adminhtml/default/default/template/O2TI/pagseguro/info.phtml DELETED
@@ -1,48 +0,0 @@
1
- <?php
2
- /* Mage::getModel("sales/order")->getCollection()->getLastItem()->getIncrementId(); */
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"): ?>
12
- <div class="cartao" style="width:100%">
13
- <h4>Pago em <?php echo $info['creditcard_parc']; ?> parcelas via:</h4>
14
- </div>
15
- <div class="cartao" style="width:100%">
16
- <div class="image" style="width:30%; float:left;">
17
- <?php $imagem = $info['image']; ?>
18
- <div class="image" style="padding:5px"><img src="<?php echo $imagem; ?>"></div>
19
- </div>
20
- <div class="dados" style="width:70%; float:left">
21
- <label>6 Primeiros dígitos do cartão</label>
22
- <div class="input-text"><strong><?php echo $info['first6'] ?></strong></div>
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>
27
- <?php endif ?>
28
-
29
-
30
- <?php if($info['result_meio'] == "Boleto Bancário"): ?>
31
- <div class="metodo title"><h3><?php echo $info['result_meio'] ?></h3></div>
32
- <div style="clear:both; width:100%;">
33
- <button style="<?php echo $css_email.$css_boleto ?>" onclick="window.location='<?php echo $info['url'] ?>'" ><div style="<?php echo $css_email_img; ?>background:url(<?php echo $this->getSkinUrl('O2TI/moip/imagem/printer.png');echo") no-repeat;"; ?>"/></div>Visualize o boleto aqui</span></button>
34
- </div></br>
35
- <div class="boleto_line_title"><h4>Ou Cópie o endereço:</h4></div>
36
- <div class="boleto_line"><input type="text" class="input-text" value="<?php echo $info['url'] ?>" readonly="true" style="width:350px"></div>
37
- <?php endif ?>
38
-
39
-
40
-
41
- <?php if($info['result_meio'] == "Transferência Bancária"): ?>
42
- <div class="metodo title"><h3><?php echo $info['result_meio'] ?></h3></div>
43
- <div class="trans" style="width:100%">
44
- <div style="clear:both;width:100%"><button type="button" title="Finalizar compra" style="<?php echo $css_email.$css_trans ?>" onclick="window.location='<?php echo $info['url'] ?>'"><div style="<?php echo $css_email_img; ?>background:url(<?php echo $this->getSkinUrl('O2TI/moip/imagem/bank-icon.png');echo") no-repeat;"; ?>"/></div>Ir ao Banco</button></div>
45
- <div class="boleto_line_title" style="clear:both;width:100%"><h4>Ou Cole a Url na Barra do Navegador:</h4></div>
46
- <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>
47
- </div>
48
- <?php endif ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/adminhtml/default/default/template/O2TI/pagseguro/redirect.phtml DELETED
@@ -1,587 +0,0 @@
1
- <?php
2
- $token = "";
3
- $moipToken = "";
4
- $tokenpagamento = "";
5
- $refazerpagamento = "";
6
- $data = $this->getRequest()->getParams();
7
- $standard = Mage::getModel('moip/standard');
8
- $form = new Varien_Data_Form();
9
- $api = Mage::getModel('moip/api');
10
- $api->setAmbiente($standard->getConfigData('ambiente'));
11
- $idgoogle = Mage::getStoreConfig('o2tiall/google/idgoogle');
12
- $meio = $api->generatemeip(Mage::registry('formapgto'));
13
- $opcaopg = $api->generatemeiopago(Mage::registry('formapg'));
14
- $parcelamento = $standard->getInfoParcelamento();
15
- $enviapara = $standard->getConfigData('ambiente');
16
- $urldosite = $urldosite = Mage::getBaseUrl('web', true);
17
- if (Mage::registry('erro') !=""){
18
- echo Mage::registry('erro');
19
- Mage::log(Mage::registry('erro'), null, 'O2TI_Moip.log', true);
20
- Mage::log(Mage::registry('xml'), null, 'O2TI_Moip.log', true);
21
- }
22
- if ($enviapara == "teste") {
23
- Mage::log(Mage::registry('erro'), null, 'O2TI_Moip.log', true);
24
- Mage::log(Mage::registry('xml'), null, 'O2TI_Moip.log', true);
25
- Mage::log(Mage::registry('token'), null, 'O2TI_Moip.log', true);
26
- $urldomoip = "https://desenvolvedor.moip.com.br/sandbox";
27
- }
28
- else {
29
- $urldomoip = "https://www.moip.com.br/";
30
- }
31
- if ($opcaopg['forma_pagamento'] == "DebitoBancario") {
32
- $bandeira = $opcaopg['debito_instituicao'];
33
- $vencpedido = date('c', strtotime("+2 days"));
34
- }
35
- if ($opcaopg['forma_pagamento'] == "CartaoCredito" || $opcaopg['forma_pagamento'] == "Cofre") {
36
- $bandeira = $opcaopg['credito_instituicao'];
37
- $vencpedido = date('c', strtotime("+2 days"));
38
- }
39
- if ($opcaopg['forma_pagamento'] == "BoletoBancario") {
40
- $bandeira = "Bradesco";
41
- $vencpedido = $opcaopg['timevencimentoboleto'];
42
- }
43
-
44
- if (!$data['token']) {
45
-
46
- //primeira compra grava os dados.
47
-
48
- if (!$moipToken) {
49
- $moipToken = Mage::registry('token');
50
- $url = $moipToken;
51
- $xmlgerado = Mage::registry('xml');
52
- $xml_sent = (string)$xmlgerado;
53
- $standard = Mage::getSingleton('moip/standard');
54
- $sale_id = Mage::getSingleton('checkout/session')->getLastRealOrderId();
55
- $realorder_id = Mage::getSingleton('checkout/session')->getLastOrderId();
56
- $incrementId = $realorder_id;
57
- $order = Mage::getModel('sales/order')->load($incrementId);
58
- $session = Mage::getSingleton('customer/session');
59
- $customer = $session->getCustomer();
60
- $oque = $order->getIsVirtual();
61
- if ($oque) {
62
- $shippingId = $order->getBillingAddress()->getId();
63
- }
64
- else {
65
- $shippingId = $order->getShippingAddress()->getId();
66
- }
67
- $customer_id = $order->getCustomerId();
68
- $status = "Sucesso";
69
- $connR = Mage::getSingleton('core/resource')->getConnection('core_read');
70
- $sql = "SELECT *
71
- FROM moip
72
- WHERE sale_id IN (".$sale_id.") AND status ='Sucesso'";
73
- $_venda = $connR->fetchAll($sql);
74
- foreach ($_venda as $venda) {
75
- $tokenpagamento = $venda['xml_return'];
76
- }
77
- if ($tokenpagamento == "") {
78
- $conn = Mage::getSingleton('core/resource')->getConnection('core_write');
79
- $results = $conn->query("INSERT INTO `moip` (`transaction_id` ,`realorder_id` ,`sale_id` ,`xml_sent` ,`xml_return` ,`status` ,`formapg` ,`bandeira` ,`digito` ,`vencimento` ,`datetime`) VALUES (NULL , '".$realorder_id."', '".$sale_id."', '".$xml_sent."', '".$moipToken."', '".$status."', '".$opcaopg['forma_pagamento']."', '".$bandeira."', '', '".$vencpedido."', '".date('Y-m-d H:i:s')."');");
80
- $tokenpagamento = $moipToken;
81
- $url = $moipToken;
82
- }
83
- }
84
- else {
85
- //usado para o reload da pagina pelos infelizes clientes que navegam com ie.
86
- $tokenpagamento = $moipToken;
87
- $url = $tokenpagamento;
88
- $status = "Sucesso";
89
- }
90
- }
91
-
92
- //refaz o pedido vindo do my account.
93
- else {
94
-
95
- $LastRealOrderId = $data['realorder'];
96
- $conn = Mage::getSingleton('core/resource')->getConnection('core_read');
97
- $sql = "SELECT * FROM moip WHERE sale_id IN ({$LastRealOrderId})";
98
- $_venda = $conn->fetchAll($sql);
99
- foreach ($_venda as $venda) {
100
- $tokenpagamento = $venda['xml_return'];
101
- $url = $venda['xml_return'];
102
- $incrementId = $venda['realorder_id'];
103
- $order = $data['realorder'];
104
- $opcaopg['forma_pagamento'] = $venda['formapg'];
105
- $bandeira = $venda['bandeira'];
106
- $connRW = Mage::getSingleton('core/resource')->getConnection('core_write');
107
- $results = $connRW->query("UPDATE `moip` SET vencimento='".$vencpedido."' WHERE sale_id IN (".$LastRealOrderId.");");
108
- }
109
- $refazerpagamento = 1;
110
- $url = $venda['xml_return'];
111
- $order = Mage::getModel('sales/order')->load($incrementId);
112
- $session = Mage::getSingleton('customer/session');
113
-
114
- $oque = $order->getIsVirtual();
115
- if ($oque) {
116
- $shippingId = $order->getBillingAddress()->getId();
117
- }
118
- else {
119
- $shippingId = $order->getShippingAddress()->getId();
120
- }
121
- }
122
-
123
-
124
-
125
-
126
- $address = Mage::getModel('sales/order_address')->load($shippingId);
127
- $urldosite = Mage::getBaseUrl('web', true);
128
- $totalparaparcelado = $order->getGrandTotal();
129
- ?>
130
- <!-- entrou no pagamento -->
131
- <script type="text/javascript">
132
- var _gaq = _gaq || [];
133
- _gaq.push(['_setAccount', '<?php echo $idgoogle ?>']);
134
- _gaq.push(['_setDomainName', '<?php echo $urldosite ?>']);
135
- _gaq.push(['_addIgnoreRef', '<?php echo $urldosite ?>']);//dominio para evitar duplicidade
136
- _gaq.push(['_trackPageview']);
137
- _gaq.push(['_addTrans',
138
- '<?php echo $sale_id ?>',
139
- '<?php echo Mage::app()->getStore() ?>',
140
- '<?php echo ($totalparaparcelado - $order->getShippingAmount()) ?>',
141
- '0',
142
- '<?php echo $order->getShippingAmount() ?>',
143
- '<?php echo $address->getCity() ?>',
144
- '<?php echo $address->getRegion() ?>',
145
- '<?php echo $address->getCountry_id() ?>'
146
- ]);
147
- <?php $orderItems = $order -> getItemsCollection();
148
- foreach ($orderItems as $item) {
149
- $product_sku = $item -> sku;
150
- $product_name = $item -> getName();
151
- $_product = Mage::getModel('catalog/product') -> load($item->getProductId());
152
- $cats = $_product -> getCategoryIds();
153
- $category_name = Mage::getModel('catalog/category') -> load($cats[0]) -> getName();
154
- $price = $item->getPrice();
155
- $qty = $item -> getQtyOrdered();
156
- echo "
157
- _gaq.push(['_addItem',
158
- '$incrementId',
159
- '$product_sku',
160
- '$product_name',
161
- '$category_name',
162
- '$price',
163
- '$qty'
164
- ]);
165
- ";
166
- }
167
- ?>
168
- _gaq.push(['_trackTrans']);
169
- (function() {
170
- var ga = document.createElement('script');
171
- ga.type = 'text/javascript';
172
- ga.async = true;
173
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
174
- var s = document.getElementsByTagName('script')[0];
175
- s.parentNode.insertBefore(ga, s);
176
- })();
177
- </script>
178
-
179
-
180
-
181
-
182
- <!-- Corpo comum ao pagamento -->
183
- <div id="moip_corpo">
184
-
185
- <script type="text/javascript" charset="ISO-8859-1" src="<?php echo $urldomoip ?>/transparente/MoipWidget-v2.js"
186
- onerror="erro_mail('erro caiu o moip widget')" ></script>
187
- <div id="MoipWidget" data-token="<?php echo $url ?>" callback-method-error="erroValidacao" callback-method-success="sucesso" ></div>
188
- <h2>Pedido realizado via Moip S/A</h2>
189
- <div class="row-fluid">
190
- <div class="span3">
191
- <div id="icone_pg" >
192
- <img src="<?php echo $this->getSkinUrl('O2TI/moip/imagem/logomoip.png'); ?>" border="0" >
193
- <img src="<?php echo $this->getSkinUrl('O2TI/moip/imagem/'.$bandeira.'.png'); ?>" border="0" >
194
- </div>
195
- </div>
196
- <div class="span9">
197
-
198
- </div>
199
- </div>
200
- <div id="Descr_pg">
201
- <?php if($opcaopg['forma_pagamento'] == "DebitoBancario"):?>
202
- <meta http-equiv='Refresh' content='5;URL=<?php echo $urldomoip ?>/Instrucao.do?token=<?php echo $url ?>'>
203
- <h3>Transferência Bancária</h3>
204
- <p>Você será redirecionado para o seu banco em 5 segundos, caso isto não ocorra, por favor clique no link abaixo para ser redirecionado ao seu banco.</p>
205
- </br>
206
- <button type="button" title="Finalizar compra" class="button btn-proceed-checkout btn-checkout" onclick="window.location='<?php echo $urldomoip ?>/Instrucao.do?token=<?php echo $url ?>'"><span><span>Ir ao Banco</span></span></button>
207
- <?php endif; ?>
208
- <?php if($opcaopg['forma_pagamento']== "BoletoBancario"):?>
209
-
210
- <script type="text/javascript"> jQuery(document).ready(function(){
211
- jQuery('#showXml').modal('toggle');
212
- });
213
-
214
- function abre_boleto()
215
- {
216
- jQuery('#showXml').modal('toggle');
217
- };</script>
218
- <h3>Boleto Bancário</h3>
219
- <h3>Clique no botão abaixo para imprimir o seu boleto.</h3>
220
- <button class="btn btn-primary btn buttonmoip" onclick="abre_boleto()")" >Imprimir Boleto</button>
221
- </div>
222
- <div class="modal" id="showXml" >
223
- <div class="modal-header">
224
- <button class="close" data-dismiss="modal">x</button>
225
- <h3>Boleto Bancário - Bradesco</h3>
226
- </div>
227
- <div class="modal-body"></div>
228
- </div>
229
- <?php endif; ?>
230
- <?php
231
- $tipoderecebimento = $standard->getConfigData('tipoderecebimento');
232
- if($tipoderecebimento == "0"){
233
- $tipoderecebimento = "Parcelado";
234
- }else{
235
- $tipoderecebimento = "AVista";
236
- }
237
- if($opcaopg['forma_pagamento'] == "CartaoCredito" || $opcaopg['forma_pagamento'] == "Cofre" ): ?>
238
- <h3>Cartão de Crédito</h3>
239
- <div class="loader"/>Por favor, aguarde!</br><img src="<?php echo $this->getSkinUrl('O2TI/moip/imagem/ajax-loader.gif'); ?>" border="0"></div>
240
- <div id="Errocartao"></div>
241
- <script type="text/javascript">
242
- jQuery(document).ready(function() {
243
- jQuery("#token").val(jQuery("#MoipWidget").attr("data-token"));
244
- jQuery("#sendToMoip2").click(function() {
245
- sendToCreditCard2();
246
- jQuery(".loader").css({
247
- display: "block"
248
- });
249
- jQuery("#Errocartao").css({
250
- display: "none"
251
- });
252
- jQuery("#statusmoip").css({
253
- display: "none"
254
- });
255
- jQuery("#moiperro").css({
256
- display: "none"
257
- });
258
- jQuery("#statusmoipadd").css({
259
- display: "none"
260
- });
261
- jQuery("#idmoip").css({
262
- display: "none"
263
- });
264
- });
265
- });
266
- sendToCreditCard2 = function() {
267
- var settings = {
268
- "Forma": "CartaoCredito",
269
- "Instituicao": jQuery("#instituicao").val(),
270
- "Parcelas": jQuery("#Parcelas").val(),
271
- "Recebimento": "<?php echo $tipoderecebimento ?>",
272
- "CartaoCredito": {
273
- "Numero": jQuery("input[name=Numero]").val(),
274
- "Expiracao": jQuery("input[name=Expiracao]").val(),
275
- "CodigoSeguranca": jQuery("input[name=CodigoSeguranca]").val(),
276
- "Portador": {
277
- "Nome": jQuery("input[name=Portador]").val(),
278
- "DataNascimento": jQuery("input[name=DataNascimento]").val(),
279
- "Telefone": jQuery("input[name=Telefone]").val(),
280
- "Identidade": jQuery("input[name=CPF]").val()
281
- }
282
- }
283
- }
284
- MoipWidget(settings);
285
- };
286
- </script>
287
- <div id="refazercartao" style="display:none;width:87%;">
288
-
289
- <div class="well">
290
- <h3>Não foi possível concluir o pagamento, por favor reveja os dados e tente novamente.</h3>
291
- <ul class="repay-form">
292
- <li>
293
- <h3>Dados do Cartão</h3>
294
- </li>
295
- <li>
296
- <label>Parcelas:</label>
297
- <select id="Parcelas" >
298
- <?php
299
- $valor = $totalparaparcelado;
300
- $parcelamento = $api->getParcelamento(number_format($valor, 2, ".", "."));
301
- ?>
302
- <?php foreach ($parcelamento as $k => $v):?>
303
- <option value="<?php echo $k ?>"><?php echo $k . "x R$ " . $v['valor'] . " | Total: R$ " .$v['total']."" ?></option>
304
- <?php endforeach; ?>
305
- </select>
306
- </li>
307
- <li>
308
- <label>Institui&ccedil;&atilde;o:</label>
309
- <select id="instituicao">
310
- <option value="Visa">Visa</option>
311
- <option value="Mastercard">Mastercard</option>
312
- <option value="AmericanExpress">AmericanExpress</option>
313
- <option value="Hipercard">Hipercard</option>
314
- <option value="Diners">Diners</option>
315
- </select>
316
- </li>
317
- <li>
318
- <div>
319
- <label>Numero do Cart&atilde;o:</label>
320
- <input type="text" id="Numero" name="Numero" value="">
321
- </div>
322
- <div>
323
- <label>CVV:</label>
324
- <input type="text" id="CodigoSeguranca" name="CodigoSeguranca" value="" size="4">
325
- </div>
326
- </li>
327
- <li>
328
- <label>Expira&ccedil;&atilde;o:</label>
329
- <input type="text" id="Expiracao" name="Expiracao" value="" onkeypress="return txtBoxFormat(this, '99/99', event);" maxlength="5" placeholder="Ex. 10/15" size="5">
330
- </li>
331
- <li>
332
- <h3>Dados do Títular do Cartão</h3>
333
- </li>
334
- <li>
335
- <label>Portador:</label>
336
- <input type="text" id="Portador" name="Portador" value="">
337
- </li>
338
- <li>
339
- <label>CPF:</label>
340
- <input type="text" id="CPF" name="CPF" value="">
341
- </li>
342
- <li>
343
- <label>Data Nascimento:</label>
344
- <input type="text" id="DataNascimento" name="DataNascimento" onkeypress="return txtBoxFormat(this, '99/99/9999', event);" maxlength="10" placeholder="Ex. 10/10/1985" value=""><br>
345
- </li>
346
- <li>
347
- <label>Telefone:</label>
348
- <input type="text" id="Telefone" name="Telefone" value="" onkeypress="return txtBoxFormat(this, '(99)9999-9999', event);" placeholder="Ex. (11)9999-9999" maxlength="14" ><br>
349
- </li>
350
- <li>
351
- <button id="sendToMoip2" class="btn buttonmoip">Pagar Agora</button>
352
- </li>
353
- </ul>
354
- </div>
355
- </div>
356
- <div id="pgcartao">
357
- <div id="statusmoip"></div>
358
- <div id="statusmoipadd"></div>
359
- <div id="moiperro"></div>
360
- <div id="idmoip"></div>
361
- </div>
362
- </div>
363
- <?php endif; ?>
364
-
365
- </div>
366
-
367
- <div id="Descr_pedido" >
368
- <h3>Detalhes de seu pedido</h3>
369
- <div id="Descr_corpo">
370
- <h4>O Número do seu pedido é:</h4>
371
- #<?php echo $sale_id ?>
372
- <h4>Seu pedido será enviado por:</h4>
373
- <?php echo $order->getShippingDescription(); ?>
374
- </div>
375
- <div id="Descr_produto" >
376
- <h4>Descrição do seu pedido</h4>
377
- <table class="data-table" id="my-order-table" summary="<?php echo $this->__('Items Ordered') ?>">
378
- <col />
379
- <col width="1" />
380
- <col width="1" />
381
- <col width="1" />
382
- <col width="1" />
383
- <col width="1" />
384
- <col width="1" />
385
- <thead>
386
- <tr>
387
- <th></th>
388
- <th class="a-left"><?php echo $this->__('Product Name') ?></th>
389
- <th class="a-center"><?php echo $this->__('Price') ?></th>
390
- <th></th>
391
- <th class="a-center"><?php echo $this->__('Qty') ?></th>
392
- <th></th>
393
- <th class="a-right"><?php echo $this->__('Subtotal') ?></th>
394
- </tr>
395
- </thead>
396
- <tfoot>
397
- <?php foreach ($this->getTotals() as $_code => $_total): ?>
398
- <?php if ($_total->getBlockName()): ?>
399
- <?php echo $this->getChildHtml($_total->getBlockName(), false); ?>
400
- <?php else:?>
401
- <tr class="<?php echo $_code?>">
402
- <td class="a-right" <?php echo $this->getLabelProperties()?> colspan="6">
403
- <?php if ($_total->getStrong()):?>
404
- <strong><?php echo $this->escapeHtml($_total->getLabel());?></strong>
405
- <?php else:?>
406
- <?php if($_total->getLabel() == "Frete"): ?>
407
- <?php echo $order->getShippingDescription() ?>
408
- <?php else: ?>
409
- <?php echo $this->escapeHtml($_total->getLabel());?>
410
- <?php endif; ?>
411
- <?php endif; ?>
412
- </td>
413
- <td class="a-right" <?php echo $this->getValueProperties()?>>
414
- <?php if ($_total->getStrong()):?>
415
- <strong><?php echo $this->formatValue($_total) ?></strong>
416
- <?php else:?>
417
- <?php echo $this->formatValue($_total) ?>
418
- <?php endif; ?>
419
- </td>
420
- </tr>
421
- <?php endif?>
422
- <?php endforeach?>
423
- </tfoot>
424
- <?php $_items = $order->getItemsCollection(); ?>
425
- <?php $_index = 0; ?>
426
- <?php $_count = $_items->count(); ?>
427
- <tbody>
428
- <?php foreach ($_items as $_item): ?>
429
- <tr>
430
- <td class="a-left product-image"><img src="<?php echo Mage::helper('catalog/image')->init(Mage::getModel('catalog/product')->load($_item->getProductId()), 'thumbnail')->resize(75, 75) ?>" alt="" /></td>
431
- <td class="a-left product-name"><?php echo $_item->getName() ?></td>
432
- <td class="a-right product-price"><?php echo Mage::helper('core')->currency($_item->getPrice(),true,false) ?></td>
433
- <td class="a-center">x</td>
434
- <td class="a-center product-qty"><?php echo number_format($_item->getQtyOrdered(), 0) ?></td>
435
- <td class="a-center">=</td>
436
- <td class="a-right product-total-price"><?php echo Mage::helper('core')->currency($_item->getQtyOrdered()*$_item->getPrice(),true,false) ?></td>
437
- </tr>
438
- <?php endforeach; ?>
439
- <?php if($this->helper('giftmessage/message')->getIsMessagesAvailable('order_item', $_item) && $_item->getGiftMessageId()): ?>
440
- <tr class="border<?php echo ($_index++ > $_count ?' last':'') ?>" id="order-item-gift-message-<?php echo $_item->getId() ?>" style="display:none;">
441
- <?php $_giftMessage=$this->helper('giftmessage/message')->getGiftMessageForEntity($_item); ?>
442
- <td class="gift-message-row" colspan="7">
443
- <a href="#" title="<?php echo $this->__('Close') ?>" onclick="return giftMessageToogle('<?php echo $_item->getId() ?>');" class="btn-close"><?php echo $this->__('Close') ?></a>
444
- <dl class="gift-message">
445
- <dt><strong><?php echo $this->__('From:') ?></strong> <?php echo $this->htmlEscape($_giftMessage->getRecipient()) ?></dt>
446
- <dt><strong><?php echo $this->__('To:') ?></strong> <?php echo $this->htmlEscape($_giftMessage->getSender()) ?></dt>
447
- <dd><?php echo $this->helper('giftmessage/message')->getEscapedGiftMessage($_item) ?></dd>
448
- </dl>
449
- </td>
450
- </tr>
451
- <?php endif ?>
452
- </tbody>
453
- </table>
454
- <script type="text/javascript">decorateTable('my-order-table', {'tbody' : ['odd', 'even'], 'tbody tr' : ['first', 'last']})</script>
455
- </div>
456
- </div>
457
- <script type="text/javascript">
458
- jQuery(document).ready(function(){
459
- jQuery("#resultado").hide();
460
- jQuery("#token").val("<?php echo $url; ?>");
461
- var settings = {
462
- <?php if($refazerpagamento != "1") { echo $meio; } ?>
463
- <?php if($refazerpagamento == "1" && $opcaopg['forma_pagamento'] == "BoletoBancario" ) { echo ('"Forma": "BoletoBancario"');} ?>
464
- <?php if($refazerpagamento == "1" && $opcaopg['forma_pagamento'] == "DebitoBancario" ) { echo ('"Forma": "DebitoBancario","Instituicao":"'.$bandeira.'"');} ?>
465
- };
466
- MoipWidget(settings);
467
- <?php
468
- if($refazerpagamento == "1" && $opcaopg['forma_pagamento'] == "CartaoCredito" ) { echo ('jQuery("#refazercartao").css({display:"block"});');
469
- echo('jQuery("#Errocartao").css({display:"none"});');
470
- }
471
- ?>
472
- });
473
-
474
- var sucesso = function(data){
475
- meio = data.TaxaMoIP;
476
- jQuery("#statusmoip").html("");
477
- jQuery("#statusmoipadd").html("");
478
- jQuery("#idmoip").html("");
479
- jQuery("#moiperro").html("");
480
- jQuery("#Errocartao").css({display:"block"});
481
- jQuery("#statusmoip").css({display:"block"});
482
- jQuery("#moiperro").css({display:"block"});
483
- jQuery("#statusmoipadd").css({display:"block"});
484
- jQuery("#idmoip").css({display:"block"});
485
-
486
- if (meio == undefined){
487
- jQuery(".loader").css({display:"none"});
488
- jQuery("#pgboletoedeb").removeAttr('disabled');
489
- <?php if($opcaopg['forma_pagamento'] == "BoletoBancario"): ?>
490
- jQuery(".modal-body").append("<iframe hspace=\"0\" vspace=\"0\" width=\"650\" height=\"900\" scrolling= \"no\" frameBorder=\"0\" allowtransparency=\"true\" src=\"<?php echo $urldomoip ?>/Instrucao.do?token=<?php echo $url ?>\"> </iframe>");
491
- <?php endif; ?>
492
- }else{
493
- jQuery("#pgcartao").removeAttr('disabled');
494
- if (data.Status == "Cancelado"){
495
- jQuery("#refazercartao").css({display:"block"});
496
- jQuery(".loader").css({display:"none"});
497
- jQuery("#statusmoip").html("<h3>Pagamento Cancelado</h3>");
498
- jQuery("#statusmoipadd").html("Transação não aprovada.");
499
- jQuery("#idmoip").html("O número de sua transação no Moip é: ");
500
- jQuery("#idmoip").html(data.CodigoMoIP);
501
- jQuery("#moiperro").html("<h4>Motivo:</h4>");
502
- var motivo = JSON.stringify(data.Classificacao.Descricao);
503
- erro_mail(motivo);
504
- if(motivo == '"Desconhecido"'){
505
- jQuery("#moiperro").html("Seus dados estão incorretos ou não podemos envia-los a operadora de crédito.");
506
- }
507
- if(motivo == '"Transação não processada"'){
508
- jQuery("#moiperro").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.");
509
- }
510
- if(motivo == '"Política de segurança do Moip"'){
511
- jQuery("#moiperro").html("Pagamento não autorizado.</br>Entre em contato com o seu banco antes de uma nova tentativa.");
512
- }
513
- if(motivo == '"Política de segurança do Banco Emissor"'){
514
- jQuery("#moiperro").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..");
515
- }
516
- if(motivo == '"Cartão vencido"'){
517
- jQuery("#moiperro").html("A validade do seu Cartão expirou.</br>Escolha outra forma de pagamento para concluir o pagamento.");
518
- }
519
- if(motivo == '"Dados inválidos"'){
520
- jQuery("#moiperro").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.");
521
- }
522
- }
523
- if (data.Status == "EmAnalise"){
524
- jQuery(".loader").css({display:"none"});
525
- jQuery("#statusmoip").html("<h3>Pagamento Aguardando Aprovação</h3>");
526
- jQuery("#statusmoipadd").html("Por favor, aguarde a em analise da transação. Assim que for alterado o status você será informado via e-mail.");
527
- jQuery("#idmoip").html("O número de sua transação no Moip é: ");
528
- jQuery("#idmoip").html(data.CodigoMoIP);
529
- }
530
- if (data.Status == "Autorizado"){
531
- jQuery(".loader").css({display:"none"});
532
- jQuery("#statusmoip").html("<h3>Pagamento Aprovado</h3>");
533
- jQuery("#statusmoipadd").html("Por favor, aguarde o processo de envio.");
534
- jQuery("#idmoip").html("O número de sua transação no Moip é: ");
535
- jQuery("#idmoip").html(data.CodigoMoIP);
536
- }
537
- }
538
- };
539
- var erroValidacao = function(data) {
540
- for (i=0; i<data.length; i++) {
541
- Moip = data[i];
542
- infosMoip = 'Ops, parece que há algo errado:';
543
- for(j in Moip){
544
- atributo = j;
545
- if(atributo == "Mensagem"){
546
- valor = Moip[j];
547
- infosMoip += '<li class="erro" style="list-style: none;margin-left: 29px;font-weight: bold;">'+valor +'</li>';
548
- erro_mail(valor);
549
- if(valor != "Informe o token da Instrução"){
550
- jQuery("#refazercartao").css({display:"block"});
551
- }
552
- }
553
- }
554
-
555
- jQuery("#Errocartao").html("");
556
- jQuery("#Errocartao").css({display:"block"});
557
- jQuery("#Errocartao").html(infosMoip);
558
- infosMoip = '';
559
- jQuery(".loader").css({display:"none"});
560
- <?php if($refazerpagamento == "1" && $opcaopg['forma_pagamento'] == "CartaoCredito" ) { echo('jQuery("#Errocartao").html("");'); } ?>
561
- <?php if($refazerpagamento == "1" && $opcaopg['forma_pagamento'] == "CartaoCredito" ) { echo('jQuery("#Errocartao2").html(infosMoip);'); } ?>
562
- <?php if($refazerpagamento == "1" && $opcaopg['forma_pagamento'] == "CartaoCredito" ) { echo('jQuery(".loader").css({display:"none"});'); } ?>
563
- }
564
- };
565
- function erro_mail(valor)
566
- {
567
- var xmlhttp;
568
- if (window.XMLHttpRequest)
569
- {
570
- xmlhttp=new XMLHttpRequest();
571
- }
572
- else
573
- {
574
- xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
575
- }
576
- xmlhttp.open("GET","<?php echo $urldosite?>index.php/Moip/Standard/email_erro_pgto?erro="+valor+"&pedido=<?php echo $sale_id ?>&navegador="+navigator.userAgent+"",true);
577
- xmlhttp.send();
578
- }
579
- </script>
580
-
581
- <?php
582
- echo Mage::getStoreConfig('o2tiall/google/outros_funil');
583
- try{
584
- $order->sendNewOrderEmail();
585
- }
586
- catch (Exception $ex) { };
587
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/{default → base}/default/layout/o2ti_moip.xml RENAMED
File without changes
app/design/frontend/{default → base}/default/layout/o2ti_onestepcheckout.xml RENAMED
File without changes
app/design/frontend/base/default/template/O2TI/customer/widget/dob.phtml ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-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@magentocommerce.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.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2010 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
+ /**
28
+ USAGE:
29
+
30
+ Simple:
31
+
32
+ <?php echo $this->getLayout()->createBlock('customer/widget_dob')
33
+ ->setDate($this->getCustomer()->getDob())
34
+ ->toHtml() ?>
35
+
36
+ For checkout/onepage/billing.phtml:
37
+
38
+ <?php echo $this->getLayout()->createBlock('customer/widget_dob')
39
+ ->setDate($this->getCustomer()->getDob())
40
+ ->setFieldIdFormat('billing:%s')
41
+ ->setFieldNameFormat('billing[%s]')
42
+ ->toHtml() ?>
43
+
44
+ NOTE: Regarding styles - if we leave it this way, we'll move it to boxes.css
45
+ Alternatively we could calculate widths automatically using block input parameters.
46
+ */
47
+
48
+ /**
49
+ * @see Mage_Customer_Block_Widget_Dob
50
+ */
51
+ ?>
52
+ <script type="text/javascript">
53
+ <!--
54
+ //Pula de uma Campo a Outro Automatico
55
+ function ProxCamp(fields) {
56
+ fields.value=soNumeros(fields.value)
57
+ if (fields.value.length == fields.maxLength) {
58
+ for (var i = 0; i < fields.form.length; i++) {
59
+ if (fields.form[i] == fields && fields.form[(i + 1)] && fields.form[(i + 1)].type != "hidden") {
60
+ fields.form[(i + 1)].focus();
61
+ break;
62
+ }
63
+ }
64
+ }
65
+ }
66
+ function soNumeros(v){
67
+ return v.replace(/\D/g,"")
68
+ }
69
+ //-->
70
+ </script>
71
+ <label for="<?php echo $this->getFieldId('month')?>"<?php if ($this->isRequired()) echo ' class="required"' ?>><?php if ($this->isRequired()) echo '<em>*</em>' ?><?php echo $this->__('Date of Birth') ?></label>
72
+ <div class="input-box customer-dob">
73
+ <?php
74
+ $this->setDateInput('d',
75
+ '<div class="dob-day" style="max-width:40px;float:left; ">
76
+ <input onkeyup="ProxCamp(this);" id="' . $this->getFieldId('day') . '" name="' . $this->getFieldName('day') . '" value="' . $this->getDay() . '" title="' . $this->__('Day') . '" style="max-width:20px" placeholder="' . $this->__('DD') . '" maxlength="2" class="input-text validate-custom" ' . $this->getFieldParams() . '/>
77
+ </div>'
78
+ );
79
+
80
+ $this->setDateInput('m',
81
+ '<div class="dob-month" style="max-width:40px; margin-left:5px;float:left;">
82
+ <input onkeyup="ProxCamp(this);" id="' . $this->getFieldId('month') . '" name="' . $this->getFieldName('month') . '" value="' . $this->getMonth() . '" title="' . $this->__('Month') . '" style="max-width:20px" placeholder="' . $this->__('MM') . '" maxlength="2" class="input-text validate-custom" ' . $this->getFieldParams() . ' />
83
+ </div>'
84
+ );
85
+
86
+ $this->setDateInput('y',
87
+ '<div class="dob-year" style="max-width:40px; margin-left:5px;float:left;" >
88
+ <input onkeyup="ProxCamp(this);" id="' . $this->getFieldId('year') . '" name="' . $this->getFieldName('year') . '" value="' . $this->getYear() . '" title="' . $this->__('Year') . '" style="max-width:40px" placeholder="' . $this->__('YYYY') . '" maxlength="4" class="input-text validate-custom" ' . $this->getFieldParams() . ' />
89
+ </div>'
90
+ );
91
+ ?>
92
+ <?php echo $this->getSortedDateInputs() ?>
93
+ <div class="dob-full" style="display:none;">
94
+ <input type="hidden" id="<?php echo $this->getFieldId('dob')?>" name="<?php echo $this->getFieldName('dob')?>" />
95
+ </div>
96
+
97
+ <div class="validation-advice" style="display:none;"></div>
98
+ </div>
99
+ <script type="text/javascript">
100
+ //<![CDATA[
101
+ var customer_dob = new Varien.DOB('.customer-dob', <?php echo $this->isRequired() ? 'true' : 'false' ?>, '<?php echo $this->getDateFormat() ?>');
102
+ //]]>
103
+ </script>
app/design/frontend/base/default/template/O2TI/customer/widget/taxvat.phtml ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if(version_compare(Mage::getVersion(),'1.7.0.0','>=')): ?>
2
+ <label for="<?php echo $this->getFieldId('taxvat')?>"<?php if ($this->isRequired()) echo ' class="required"' ?>><?php if ($this->isRequired()) echo '<em>*</em>' ?><?php echo $this->__('CPF ') ?></label>
3
+ <div class="input-box">
4
+ <input type="text" id="<?php echo $this->getFieldId('taxvat')?>" name="<?php echo $this->getFieldName('taxvat')?>" value="<?php echo $this->escapeHtml($this->getTaxvat()) ?>" title="<?php echo $this->__('CPF') ?>" placeholder="123.456.789-10" maxlength="14" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('taxvat') ?>" <?php echo $this->getFieldParams() ?> onkeypress="return txtBoxFormat(this, '999.999.999-99', event);"/>
5
+ </div>
6
+ <?php else: ?>
7
+ <label for="<?php echo $this->getFieldId('taxvat')?>"<?php if ($this->isRequired()) echo ' class="required"' ?>><?php if ($this->isRequired()) echo '<em>*</em>' ?><?php echo $this->__('CPF ') ?></label>
8
+ <div class="input-box">
9
+ <input type="text" id="<?php echo $this->getFieldId('taxvat')?>" name="<?php echo $this->getFieldName('taxvat')?>" value="<?php echo $this->htmlEscape($this->getTaxvat()) ?>" title="<?php echo $this->__('CPF') ?>" placeholder="123.456.789-10" maxlength="14" class="input-text<?php if ($this->isRequired()):?> required-entry<?php endif; ?>" <?php echo $this->getFieldParams() ?> onkeypress="return txtBoxFormat(this, '999.999.999-99', event);"/>
10
+ </div>
11
+ <?php endif; ?>
12
+ <script type="text/javascript">
13
+ //<![CDATA[
14
+ $('billing:taxvat').addClassName('validar_cpf');
15
+ Validation.add('validar_cpf', 'O CPF ou CNPJ informado \xE9 invalido', function(v){return validaCPF(v,0);});
16
+ //]]>
17
+ </script>
app/design/frontend/{default → base}/default/template/O2TI/moip/Novaforma.phtml RENAMED
File without changes
app/design/frontend/{default → base}/default/template/O2TI/moip/boleto.phtml RENAMED
@@ -35,7 +35,7 @@ if (Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste") {
35
  <?php $order = Mage::getModel('sales/order')->loadByIncrementId($pgtoArray['id_transacao']); ?>
36
  <?php $this->getSaveDate($pgtoArray['id_transacao'], $result_decode, $customerData, $pgtoArraya, $client_array); ?>
37
 
38
- <script type="text/javascript" charset="ISO-8859-1" src="<?php echo $urljs ?>/transparente/MoipWidget-v2.js" onerror="erro_mail('erro caiu o moip widget')" ></script>
39
  <div id="MoipWidget" data-token="<?php echo $result_decode['token'] ?>" callback-method-error="erroValidacao" callback-method-success="sucesso"></div>
40
  <div class="row grid-full">
41
  <div class="grid12-12">
@@ -70,6 +70,7 @@ if (Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste") {
70
 
71
  <!-- js importantes não alterem -->
72
  <script type="text/javascript">
 
73
  jQuery(document).ready(function(){
74
  jQuery('body').append('<div class="modal" id="showXml" ><div class="modal-header"><button class="close" data-dismiss="modal">x</button><h3>Boleto Bancário - Bradesco</h3></div><div class="modal-body"></div></div>');
75
  jQuery('#showXml').modal('toggle');
@@ -77,8 +78,10 @@ if (Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste") {
77
  function abre_boleto(){
78
  jQuery('#showXml').modal('toggle');
79
  };
 
80
  </script>
81
  <script type="text/javascript">
 
82
  jQuery(document).ready(function(){
83
  jQuery("#token").val("<?php echo $result_decode['token'] ?>");
84
  var settings =
@@ -94,4 +97,5 @@ if (Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste") {
94
  var erroValidacao = function(data){
95
  alert(data);
96
  };
 
97
  </script>
35
  <?php $order = Mage::getModel('sales/order')->loadByIncrementId($pgtoArray['id_transacao']); ?>
36
  <?php $this->getSaveDate($pgtoArray['id_transacao'], $result_decode, $customerData, $pgtoArraya, $client_array); ?>
37
 
38
+ <script type="text/javascript" charset="ISO-8859-1" src="<?php echo $urljs ?>transparente/MoipWidget-v2.js" onerror="erro_mail('erro caiu o moip widget')" ></script>
39
  <div id="MoipWidget" data-token="<?php echo $result_decode['token'] ?>" callback-method-error="erroValidacao" callback-method-success="sucesso"></div>
40
  <div class="row grid-full">
41
  <div class="grid12-12">
70
 
71
  <!-- js importantes não alterem -->
72
  <script type="text/javascript">
73
+ //<![CDATA[
74
  jQuery(document).ready(function(){
75
  jQuery('body').append('<div class="modal" id="showXml" ><div class="modal-header"><button class="close" data-dismiss="modal">x</button><h3>Boleto Bancário - Bradesco</h3></div><div class="modal-body"></div></div>');
76
  jQuery('#showXml').modal('toggle');
78
  function abre_boleto(){
79
  jQuery('#showXml').modal('toggle');
80
  };
81
+ //]]>
82
  </script>
83
  <script type="text/javascript">
84
+ //<![CDATA[
85
  jQuery(document).ready(function(){
86
  jQuery("#token").val("<?php echo $result_decode['token'] ?>");
87
  var settings =
97
  var erroValidacao = function(data){
98
  alert(data);
99
  };
100
+ //]]>
101
  </script>
app/design/frontend/{default → base}/default/template/O2TI/moip/cartao.phtml RENAMED
@@ -34,7 +34,7 @@ if (Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste") {
34
  <?php $order = Mage::getModel('sales/order')->loadByIncrementId($pgtoArray['id_transacao']); ?>
35
  <?php $this->getSaveDate($pgtoArray['id_transacao'], $result_decode, $customerData, $pgtoArraya, $client_array); ?>
36
 
37
- <script type="text/javascript" charset="ISO-8859-1" src="<?php echo $urljs ?>/transparente/MoipWidget-v2.js" onerror="erro_mail('erro caiu o moip widget')" ></script>
38
  <div id="MoipWidget" data-token="<?php echo $result_decode['token'] ?>" callback-method-error="erroValidacao" callback-method-success="sucesso"></div>
39
  <div class="row grid-full">
40
  <div class="section clearer grid12-12 ">
@@ -85,6 +85,7 @@ if (Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste") {
85
  </div>
86
 
87
  <script type="text/javascript">
 
88
  var sucesso = function(data){
89
  if (data.Status == "Cancelado"){
90
  jQuery(".repeat_cartao").show();
@@ -204,4 +205,5 @@ if (Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste") {
204
  MoipWidget(settings);
205
  jQuery(".loading-mask").hide();
206
  }
 
207
  </script>
34
  <?php $order = Mage::getModel('sales/order')->loadByIncrementId($pgtoArray['id_transacao']); ?>
35
  <?php $this->getSaveDate($pgtoArray['id_transacao'], $result_decode, $customerData, $pgtoArraya, $client_array); ?>
36
 
37
+ <script type="text/javascript" charset="ISO-8859-1" src="<?php echo $urljs ?>transparente/MoipWidget-v2.js" onerror="erro_mail('erro caiu o moip widget')" ></script>
38
  <div id="MoipWidget" data-token="<?php echo $result_decode['token'] ?>" callback-method-error="erroValidacao" callback-method-success="sucesso"></div>
39
  <div class="row grid-full">
40
  <div class="section clearer grid12-12 ">
85
  </div>
86
 
87
  <script type="text/javascript">
88
+ //<![CDATA[
89
  var sucesso = function(data){
90
  if (data.Status == "Cancelado"){
91
  jQuery(".repeat_cartao").show();
205
  MoipWidget(settings);
206
  jQuery(".loading-mask").hide();
207
  }
208
+ //]]>
209
  </script>
app/design/frontend/{default → base}/default/template/O2TI/moip/emptyupdate.phtml RENAMED
File without changes
app/design/frontend/{default → base}/default/template/O2TI/moip/form.phtml RENAMED
File without changes
app/design/frontend/{default → base}/default/template/O2TI/moip/horizontal_form.phtml RENAMED
@@ -7,45 +7,12 @@
7
  ?>
8
 
9
  <script type="text/javascript">
10
- fechar = function(){
11
- jQuery('.moip-payment-method-content').slideUp();
12
- }
13
- function setCcType(ccType)
14
- {
15
- jQuery('#moip_cc_type').val(ccType);
16
- }
17
 
18
- if(Validation) {
19
- Validation.creditCartTypes = $H({
20
- 'VI': [new RegExp('^4[0-9]{12}([0-9]{3})?$'), new RegExp('^[0-9]{3}$'), true],
21
- 'MC': [new RegExp('^5[1-5][0-9]{14}$'), new RegExp('^[0-9]{3}$'), true],
22
- 'AE': [new RegExp('^3[47][0-9]{13}$'), new RegExp('^[0-9]{4}$'), true],
23
- 'DI': [false, new RegExp('^[0-9]{3}$'), true],
24
- 'OT': [false, new RegExp('^([0-9]{3}|[0-9]{4})?$'), false],
25
- 'EL': [false, new RegExp('^([0-9]{3})?$'), true],
26
- 'HI': [new RegExp('^(606282|3841)[0-9]'), new RegExp('^([0-9]{3})?$'), true]
27
- });
28
- }
29
- function countChar(val) {
30
- var cvv = val.value.length;
31
- if (cvv > 2) {
32
- jQuery('#formcli').hide();
33
- jQuery("#formcli").slideDown("slow");
34
- jQuery('#formcli').css({
35
- display: "block"
36
- });
37
- document.getElementById('credito_portador_nome').value = document.getElementById('billing:firstname').value + ' ' + document.getElementById('billing:lastname').value;
38
- document.getElementById('credito_portador_telefone').value = document.getElementById('billing:telephone').value;
39
- document.getElementById('credito_portador_cpf').value = document.getElementById('billing:taxvat').value;
40
- if (document.getElementById('billing:year').value) {
41
- document.getElementById('credito_portador_nascimento').value = document.getElementById('billing:day').value + '/' + document.getElementById('billing:month').value + '/' + document.getElementById('billing:year').value
42
- }
43
- }
44
- };
45
  jQuery(document).ready(function() {
46
  jQuery('.input-switcher > li').not('.moip-payment-method-content').bind({
47
  click: function() {
48
- jQuery(this).parent().children('li').not('.moip-payment-method-content').fadeTo(300, 0.4);
49
  jQuery(this).fadeTo(0, 1);
50
  jQuery(this).find('input[type="radio"]').attr('checked', true);
51
  }
@@ -56,6 +23,13 @@ jQuery(document).ready(function() {
56
  jQuery('#' + jQuery(this).attr('data-target')).slideDown();
57
  }
58
  });
 
 
 
 
 
 
 
59
  });
60
  </script>
61
 
@@ -79,16 +53,30 @@ jQuery(document).ready(function() {
79
  <li class="moip-payment-method-content row-fluid" id="moip-cartao" style="display:none">
80
  <h3>Cartão de Crédito</h3>
81
  <label class="required" for="credito_bandeira" >Selecione a Bandeira:<em>*</em></label>
82
- <div class="input-box">
83
- <select name="payment[credito_instituicao]" id="credito_instituicao" class="input-text required-entry" >
84
- <option value="">Selecione a Bandeira</option>
85
- <option value="Visa">Visa</option>
86
- <option value="Mastercard">Mastercard</option>
87
- <option value="AmericanExpress">American Express</option>
88
- <option value="Diners">Diners</option>
89
- <option value="Hipercard">Hipercard</option>
90
- </select>
91
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
 
93
  <div id="checkout-payment-bandeira" class="validation-advice" style="display:none;position:relative;" ></div>
94
  <ul class="form-list">
@@ -100,7 +88,7 @@ jQuery(document).ready(function() {
100
  </div>
101
  </div>
102
  <div class="cvv tooltip-moip-handler">
103
- <label class="required" for="cvv">CVC:&nbsp;<i class="icon-question-sign"></i><em>*</em></label>
104
  <div class="input-box">
105
  <input type="text" name="payment[credito_codigo_seguranca]" onkeyup="countChar(this)" class="input-text required-entry ccv validate-cc-cvn" minlength="3" maxlength="4" id="credito_codigo_seguranca">
106
  <span class="tooltip-moip">
@@ -146,51 +134,59 @@ jQuery(document).ready(function() {
146
  </div>
147
  </li>
148
  <li class="wide">
149
- <label class="required" for="credito_parcela">Opções de pagamento:<em>*</em></label>
150
- <div class="input-box">
151
- <select name="payment[credito_parcelamento]" id="credito_parcelamento" class="input-text required-entry" >
152
- <?php echo $this->getParcelamento('parcelas'); ?>
153
- </select>
154
- <?php echo $this->getTextoParcelas() ?>
155
- </div>
156
- </li>
 
 
 
 
 
 
157
  </ul>
 
158
  <div id="formcli" style="display:none;">
159
- <ul class="form-list dados-titular">
160
- <h3>Dados do Titular</h3>
161
- <li class="wide tooltip-moip-handler">
162
- <label class="required" for="credito_parcela">Nome no Cartão:<em>*</em></label>
163
- <div class="input-box">
164
- <input type="text" name="payment[credito_portador_nome]" value="<?php echo $nome; ?>" class="input-text required-entry" id="credito_portador_nome" >
165
- <span class="tooltip-moip">
166
- <span class="custom help"><em>Nome do titular</em></br>Deverá ser exatamento como esta no cartão.</span>
167
- </span>
168
- </div>
169
- </li>
170
- <li class="wide">
171
- <label class="required" for="credito_parcela">CPF:<em>*</em></label>
172
- <div class="input-box">
173
- <input type="text" name="payment[credito_portador_cpf]" class="input-text required-entry validar_cpf" placeholder="Ex. 111.111.111-11" onkeypress="return txtBoxFormat(this, '999.999.999-99', event);" maxlength="14" id="credito_portador_cpf" value="<?php echo $cpf; ?>" >
174
- </div>
175
- </li>
176
- <li class="wide tooltip-moip-handler">
177
- <label class="required" for="credito_parcela">Telefone:<em>*</em></label>
178
- <div class="input-box">
179
- <input type="text" name="payment[credito_portador_telefone]" id="credito_portador_telefone" onkeypress="return txtBoxFormat(this, '(99)9999-9999', event);" maxlength="14" value="<?php echo $telefone; ?>" placeholder="Ex. (19)9999-9999" class="input-text required-entry">
180
- <span class="tooltip-moip">
181
- <span class="custom help"><em>Telefone de contato</em></br>Muitas vezes é necessária a confirmação manual de seus dados por nossa equipe de crédito, por favor informe um telefone em que seja fácil te localizar.</span>
182
- </span>
183
- </div>
184
- </li>
185
- <li class="wide">
186
- <label class="required" for="credito_parcela">Data nascimento:<em>*</em></label>
187
- <div class="input-box">
188
- <input type="text" name="payment[credito_portador_nascimento]" id="credito_portador_nascimento" onkeypress="return txtBoxFormat(this, '99/99/9999', event);" maxlength="10" value="<?php if ($dn !='') { echo $dn; } ?>" placeholder="Ex. 10/10/1985" class="input-text required-entry" >
189
- </div>
190
- </li>
191
- </ul>
192
- </div>
193
- <div class="clearer"></div>
 
194
  </li>
195
  <?php endif; ?>
196
  <?php if($this->mostraBoleto()): ?>
@@ -248,29 +244,23 @@ jQuery(document).ready(function() {
248
  <ul class="inline input-switcher input-switcher-4">
249
  <li>
250
  <img src="<?php echo $this->getBBImage(); ?>" alt="Banco do Brasil" id="debbb" >
251
- <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="BancoDoBrasil">
252
  </li>
253
  <li>
254
  <img src="<?php echo $this->getBradescoImage(); ?>" id="debbradesco" alt="Bradesco">
255
- <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="Bradesco">
256
  </li>
257
  <li>
258
  <img src="<?php echo $this->getItauImage(); ?>" id="debitau" alt="Itaú" >
259
- <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="Itau" >
260
  </li>
261
  <li>
262
  <img src="<?php echo $this->getBanrisulImage(); ?>" id="Banrisul" alt="Banrisul" >
263
- <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="Banrisul">
264
  </li>
265
  </ul>
266
- <div id="checkout-payment-banco" class="validation-advice" style="position:relative;display:none;"></div>
267
  </li>
268
  <?php endif; ?>
269
  </ul>
270
-
271
-
272
-
273
-
274
- <div id="checkout-payment-o2ti" class="validation-advice" style="position:relative;display:none;"></div>
275
  </div>
276
  </div>
7
  ?>
8
 
9
  <script type="text/javascript">
 
 
 
 
 
 
 
10
 
11
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  jQuery(document).ready(function() {
13
  jQuery('.input-switcher > li').not('.moip-payment-method-content').bind({
14
  click: function() {
15
+ jQuery(this).parent().children('li').not('.moip-payment-method-content').fadeTo(300, 1);
16
  jQuery(this).fadeTo(0, 1);
17
  jQuery(this).find('input[type="radio"]').attr('checked', true);
18
  }
23
  jQuery('#' + jQuery(this).attr('data-target')).slideDown();
24
  }
25
  });
26
+ if(jQuery("input[name=payment\\[method\\]]:checked").val() == "o2ti_moip_standard" && jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val() != ""){
27
+ jQuery("#cartao_radio").trigger("click");
28
+ jQuery("#moip-cartao").css({'display':'block'})
29
+ } else {
30
+ jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val();
31
+ jQuery("#moip-cartao").css({'display':'none'});
32
+ }
33
  });
34
  </script>
35
 
53
  <li class="moip-payment-method-content row-fluid" id="moip-cartao" style="display:none">
54
  <h3>Cartão de Crédito</h3>
55
  <label class="required" for="credito_bandeira" >Selecione a Bandeira:<em>*</em></label>
56
+ <input type="hidden" name="moip_cc_type" id="moip_cc_type" value=""/>
57
+ <label class="required" for="credito_bandeira" >Selecione a Bandeira<em>*</em></label>
58
+ <ul class="inline banderias-cartao input-switcher input-switcher-5">
59
+ <li>
60
+ <img src="<?php echo $this->getVisaImage(); ?>" alt="Visa" border="0" onclick="setCcType('VI');">
61
+ <input type="radio" name="payment[credito_instituicao]" value="Visa" onclick="setCcType('VI');" class="validate-one-required-by-name" >
62
+ </li>
63
+ <li>
64
+ <img src="<?php echo $this->getMastercardImage(); ?>" alt="Mastercard" border="0" onclick="setCcType('MC');">
65
+ <input id="bandeiramoip" type="radio" name="payment[credito_instituicao]" value="Mastercard" onclick="setCcType('MC');" class="validate-one-required-by-name" >
66
+ </li>
67
+ <li>
68
+ <img src="<?php echo $this->getAmericanExpressImage(); ?>" alt="AmericanExpress" border="0" onclick="setCcType('AE');">
69
+ <input id="bandeiramoip" type="radio" name="payment[credito_instituicao]" value="AmericanExpress" onclick="setCcType('AE');" class="validate-one-required-by-name" >
70
+ </li>
71
+ <li>
72
+ <img onclick="" src="<?php echo $this->getDinersImage(); ?>" alt="Diners" border="0" onclick="setCcType('DI');">
73
+ <input id="bandeiramoip" type="radio" name="payment[credito_instituicao]" value="Diners" onclick="setCcType('DI');" class="validate-one-required-by-name" >
74
+ </li>
75
+ <li>
76
+ <img onclick="" src="<?php echo $this->getHipercardImage(); ?>" alt="Hipercard" border="0" onclick="setCcType('HI');">
77
+ <input id="bandeiramoip" type="radio" name="payment[credito_instituicao]" value="Hipercard" onclick="setCcType('HI');" class="validate-one-required-by-name" >
78
+ </li>
79
+ </ul>
80
 
81
  <div id="checkout-payment-bandeira" class="validation-advice" style="display:none;position:relative;" ></div>
82
  <ul class="form-list">
88
  </div>
89
  </div>
90
  <div class="cvv tooltip-moip-handler">
91
+ <label class="required" for="cvv">CVV:&nbsp;<i class="icon-question-sign"></i><em>*</em></label>
92
  <div class="input-box">
93
  <input type="text" name="payment[credito_codigo_seguranca]" onkeyup="countChar(this)" class="input-text required-entry ccv validate-cc-cvn" minlength="3" maxlength="4" id="credito_codigo_seguranca">
94
  <span class="tooltip-moip">
134
  </div>
135
  </li>
136
  <li class="wide">
137
+ <label class="required" for="credito_parcela">Opções de pagamento<em>*</em></label>
138
+ <div class="input-box">
139
+
140
+
141
+ <select name="payment[credito_parcelamento]" id="credito_parcelamento" class="input-text required-entry" >
142
+ <option value="" select>Selecione as parcelas</option>
143
+ <?php $parcelas = $this->getParcelamento('parcelas'); ?>
144
+ <?php foreach ( $parcelas as $key => $value) { ?>
145
+ <?php echo $parcelas[$key]; ?>
146
+ <?php } ?>
147
+ </select>
148
+ <?php echo $this->getTextoParcelas() ?>
149
+ </div>
150
+ </li>
151
  </ul>
152
+
153
  <div id="formcli" style="display:none;">
154
+ <ul class="form-list dados-titular">
155
+ <h3>Dados do Titular</h3>
156
+ <li class="wide tooltip-moip-handler">
157
+ <label class="required" for="credito_parcela"><em>*</em>Nome no Cartão</label>
158
+ <div class="input-box">
159
+ <input type="text" name="payment[credito_portador_nome]" value="<?php echo $nome; ?>" class="input-text required-entry" id="credito_portador_nome" >
160
+ <span class="tooltip-moip">
161
+ <span class="custom help"><em>Nome do titular</em><br>deverá ser exatamente como está no cartão.</span>
162
+ </span>
163
+ </div>
164
+ </li>
165
+ <li class="wide">
166
+ <label class="required" for="credito_parcela"><em>*</em>CPF</label>
167
+ <div class="input-box">
168
+ <input type="text" name="payment[credito_portador_cpf]" class="input-text required-entry validar_cpf" placeholder="Ex. 111.111.111-11" onkeypress="return txtBoxFormat(this, '999.999.999-99', event);" maxlength="14" id="credito_portador_cpf" value="<?php echo $cpf; ?>" >
169
+ </div>
170
+ </li>
171
+ <li class="wide tooltip-moip-handler">
172
+ <label class="required" for="credito_parcela"><em>*</em>Telefone</label>
173
+ <div class="input-box">
174
+ <input type="text" name="payment[credito_portador_telefone]" id="credito_portador_telefone" onkeypress="return txtBoxFormat(this, '(99)9999-9999', event);" maxlength="14" value="<?php echo $telefone; ?>" placeholder="Ex. (19)9999-9999" class="input-text required-entry">
175
+ <span class="tooltip-moip">
176
+ <span class="custom help"><em>Telefone de contato</em><br>Muitas vezes é necessária a confirmação manual de seus dados por nossa equipe de crédito, por favor informe um telefone em que seja fácil te localizar.</span>
177
+ </span>
178
+ </div>
179
+ </li>
180
+ <li class="wide">
181
+ <label class="required" for="credito_parcela"><em>*</em>Data nascimento</label>
182
+ <div class="input-box">
183
+ <input type="text" name="payment[credito_portador_nascimento]" id="credito_portador_nascimento" onkeypress="return txtBoxFormat(this, '99/99/9999', event);" maxlength="10" value="<?php if ($dn !='') { echo $dn; } ?>" placeholder="Ex. 10/10/1985" class="input-text required-entry" >
184
+ </div>
185
+ </li>
186
+ </ul>
187
+ </div>
188
+ <div class="clearer"></div>
189
+
190
  </li>
191
  <?php endif; ?>
192
  <?php if($this->mostraBoleto()): ?>
244
  <ul class="inline input-switcher input-switcher-4">
245
  <li>
246
  <img src="<?php echo $this->getBBImage(); ?>" alt="Banco do Brasil" id="debbb" >
247
+ <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="BancoDoBrasil" class="validate-one-required-by-name">
248
  </li>
249
  <li>
250
  <img src="<?php echo $this->getBradescoImage(); ?>" id="debbradesco" alt="Bradesco">
251
+ <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="Bradesco" class="validate-one-required-by-name">
252
  </li>
253
  <li>
254
  <img src="<?php echo $this->getItauImage(); ?>" id="debitau" alt="Itaú" >
255
+ <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="Itau" class="validate-one-required-by-name">
256
  </li>
257
  <li>
258
  <img src="<?php echo $this->getBanrisulImage(); ?>" id="Banrisul" alt="Banrisul" >
259
+ <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="Banrisul" class="validate-one-required-by-name">
260
  </li>
261
  </ul>
 
262
  </li>
263
  <?php endif; ?>
264
  </ul>
 
 
 
 
 
265
  </div>
266
  </div>
app/design/frontend/{default → base}/default/template/O2TI/moip/info.phtml RENAMED
@@ -90,7 +90,7 @@ $css_email_img = "position: absolute !important;left: -70px !important;top: -20p
90
  </div>
91
  <div class="retorno_moip">
92
  </div>
93
- <form method="POST" action='<?php echo Mage::getBaseUrl(); ?>moip/index/Novaforma/' id="refaz_pg_forma">
94
  <input type="hidden" name="forma_de_pagamento" id="forma_de_pagamento" value="" >
95
  <input type="hidden" name="moip_id" value="<?php echo $info['token'] ?>">
96
  <input type="hidden" name="order_id" value="<?php echo $info['realorder_id'] ?>">
@@ -146,14 +146,29 @@ $css_email_img = "position: absolute !important;left: -70px !important;top: -20p
146
  <label>Parcelas:</label>
147
  <?php $pgtoArray = $this->getOrder_dados(Mage::registry('client_array')); ?>
148
  <?php $order = Mage::getModel('sales/order')->loadByIncrementId($info['realorder_id']); ?>
149
- <?php $parcelamento = $api->getParcelamento(number_format($order->getGrand_total(), 2, ".", ".")); $z=0;?>
 
150
  <select id="Parcelas" name="parcelas">
151
- <?php foreach ($parcelamento as $k => $v):?>
152
- <?php if($z=="0"){ ?>
153
- <option value="1">Pagamento à vista.</option>
154
- <?php } ?>
155
- <option value="<?php echo $k ?>"><?php echo $k . "x R$ " . $v['valor'] . " | Total: R$ " .$v['total']."" ?></option>
156
- <?php $z++; endforeach; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
157
  </select>
158
  </li>
159
  <li>
@@ -218,6 +233,7 @@ $css_email_img = "position: absolute !important;left: -70px !important;top: -20p
218
  </div>
219
  </div>
220
  <script type="text/javascript">
 
221
  jQuery(document).ready(function() {
222
  jQuery('.input-switcher > li').bind({
223
  click: function() {
@@ -344,7 +360,7 @@ jQuery(document).ready(function() {
344
  });
345
  e.preventDefault();
346
  });
347
-
348
 
349
  </script>
350
  <?php
90
  </div>
91
  <div class="retorno_moip">
92
  </div>
93
+ <form method="POST" action='<?php echo Mage::getBaseUrl('web', true); ?>moip/index/Novaforma/' id="refaz_pg_forma">
94
  <input type="hidden" name="forma_de_pagamento" id="forma_de_pagamento" value="" >
95
  <input type="hidden" name="moip_id" value="<?php echo $info['token'] ?>">
96
  <input type="hidden" name="order_id" value="<?php echo $info['realorder_id'] ?>">
146
  <label>Parcelas:</label>
147
  <?php $pgtoArray = $this->getOrder_dados(Mage::registry('client_array')); ?>
148
  <?php $order = Mage::getModel('sales/order')->loadByIncrementId($info['realorder_id']); ?>
149
+ <?php $parcelamento = $api->getParcelamento($order->getGrand_total());
150
+ ?>
151
  <select id="Parcelas" name="parcelas">
152
+ <<option value="" select>Selecione as parcelas</option>
153
+ <?php $parcela_decode = json_decode($parcelamento,true);
154
+ foreach ($parcela_decode as $key => $value) {
155
+
156
+ if ($key <= Mage::getSingleton('moip/standard')->getConfigData('nummaxparcelamax')) {
157
+
158
+ $juros = $parcela_decode[$key]['juros'];
159
+ $parcelas_result = $parcela_decode[$key]['parcela'];
160
+ $total_parcelado = $parcela_decode[$key]['total_parcelado'];
161
+ if($juros > 0)
162
+ $asterisco = '*';
163
+ else
164
+ $asterisco = '';
165
+ $parcelas[]= '<option value="'.$key.'">'.$key.'x de '.$parcelas_result.' no total de '.$total_parcelado.' '.$asterisco.'</option>';
166
+
167
+ }
168
+ }
169
+ foreach ( $parcelas as $key => $value) { ?>
170
+ <?php echo $parcelas[$key]; ?>
171
+ <?php } ?>
172
  </select>
173
  </li>
174
  <li>
233
  </div>
234
  </div>
235
  <script type="text/javascript">
236
+ //<![CDATA[
237
  jQuery(document).ready(function() {
238
  jQuery('.input-switcher > li').bind({
239
  click: function() {
360
  });
361
  e.preventDefault();
362
  });
363
+ //]]>
364
 
365
  </script>
366
  <?php
app/design/frontend/{default → base}/default/template/O2TI/moip/layout_boleto.phtml RENAMED
File without changes
app/design/frontend/base/default/template/O2TI/moip/redirect.phtml ADDED
@@ -0,0 +1 @@
 
1
+ <?php ?>
app/design/frontend/{default → base}/default/template/O2TI/moip/refaz.phtml RENAMED
@@ -6,7 +6,7 @@
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(); ?>moip/index/Repag/'>
10
  <input type="hidden" name="forma_de_pagamento" value="CartaoDeCredito" >
11
  <div class="well">
12
  <ul class="repay-form">
@@ -17,14 +17,28 @@
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(number_format($order->getGrand_total(), 2, ".", ".")); ?>
21
  <select id="Parcelas" name="parcelas">
22
- <?php foreach ($parcelamento as $k => $v):?>
23
- <?php if($z=="0"){ ?>
24
- <option value="1">Pagamento à vista.</option>
25
- <?php } ?>
26
- <option value="<?php echo $k ?>"><?php echo $k . "x R$ " . $v['valor'] . " | Total: R$ " .$v['total']."" ?></option>
27
- <?php $z++; endforeach; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  </select>
29
  </li>
30
  <li>
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); ?>moip/index/Repag/'>
10
  <input type="hidden" name="forma_de_pagamento" value="CartaoDeCredito" >
11
  <div class="well">
12
  <ul class="repay-form">
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
  <select id="Parcelas" name="parcelas">
22
+ <option value="" select>Selecione as parcelas</option>
23
+ <?php $parcela_decode = json_decode($parcelamento,true);
24
+ foreach ($parcela_decode as $key => $value) {
25
+
26
+ if ($key <= Mage::getSingleton('moip/standard')->getConfigData('nummaxparcelamax')) {
27
+
28
+ $juros = $parcela_decode[$key]['juros'];
29
+ $parcelas_result = $parcela_decode[$key]['parcela'];
30
+ $total_parcelado = $parcela_decode[$key]['total_parcelado'];
31
+ if($juros > 0)
32
+ $asterisco = '*';
33
+ else
34
+ $asterisco = '';
35
+ $parcelas[]= '<option value="'.$key.'">'.$key.'x de '.$parcelas_result.' no total de '.$total_parcelado.' '.$asterisco.'</option>';
36
+
37
+ }
38
+ }
39
+ foreach ( $parcelas as $key => $value) { ?>
40
+ <?php echo $parcelas[$key]; ?>
41
+ <?php } ?>
42
  </select>
43
  </li>
44
  <li>
app/design/frontend/{default → base}/default/template/O2TI/moip/transferencia.phtml RENAMED
@@ -33,7 +33,7 @@ if (Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste") {
33
  //]]>
34
  </script>
35
  <?php endif; ?>
36
- <script type="text/javascript" charset="ISO-8859-1" src="<?php echo $urljs ?>/transparente/MoipWidget-v2.js" onerror="erro_mail('erro caiu o moip widget')" ></script>
37
  <div id="MoipWidget" data-token="<?php echo $result_decode['token'] ?>" callback-method-error="erroValidacao" callback-method-success="sucesso"></div>
38
  <!--meta http-equiv='Refresh' content='10;URL=<?php #echo $url_direct ?>' -->
39
  <div class="row grid-full">
@@ -66,6 +66,7 @@ if (Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste") {
66
  </div>
67
  </div>
68
  <script type="text/javascript">
 
69
  jQuery(document).ready(function(){
70
  jQuery("#token").val("<?php echo $result_decode['token'] ?>");
71
  var settings =
@@ -76,5 +77,5 @@ if (Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste") {
76
  });
77
  var sucesso = function(data){
78
  }
79
-
80
  </script>
33
  //]]>
34
  </script>
35
  <?php endif; ?>
36
+ <script type="text/javascript" charset="ISO-8859-1" src="<?php echo $urljs ?>transparente/MoipWidget-v2.js" onerror="erro_mail('erro caiu o moip widget')" ></script>
37
  <div id="MoipWidget" data-token="<?php echo $result_decode['token'] ?>" callback-method-error="erroValidacao" callback-method-success="sucesso"></div>
38
  <!--meta http-equiv='Refresh' content='10;URL=<?php #echo $url_direct ?>' -->
39
  <div class="row grid-full">
66
  </div>
67
  </div>
68
  <script type="text/javascript">
69
+ //<![CDATA[
70
  jQuery(document).ready(function(){
71
  jQuery("#token").val("<?php echo $result_decode['token'] ?>");
72
  var settings =
77
  });
78
  var sucesso = function(data){
79
  }
80
+ //]]>
81
  </script>
app/design/frontend/{default → base}/default/template/O2TI/moip/vertical_form.phtml RENAMED
@@ -84,7 +84,7 @@ jQuery(document).ready(function() {
84
  <input id="bandeiramoip" type="radio" name="payment[credito_instituicao]" value="Hipercard" onclick="setCcType('HI');" class="validate-one-required-by-name" >
85
  </li>
86
  </ul>
87
- <div id="checkout-payment-bandeira" class="validation-advice" style="display:none;position:relative;" ></div>
88
  <ul class="form-list">
89
  <li class="wide cc-cvv">
90
  <div class="cc">
@@ -142,8 +142,14 @@ jQuery(document).ready(function() {
142
  <li class="wide">
143
  <label class="required" for="credito_parcela">Opções de pagamento<em>*</em></label>
144
  <div class="input-box">
 
 
145
  <select name="payment[credito_parcelamento]" id="credito_parcelamento" class="input-text required-entry" >
146
- <?php echo $this->getParcelamento('parcelas'); ?>
 
 
 
 
147
  </select>
148
  <?php echo $this->getTextoParcelas() ?>
149
  </div>
@@ -221,8 +227,8 @@ jQuery(document).ready(function() {
221
  <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="Banrisul" class="validate-one-required-by-name">
222
  </li>
223
  </ul>
224
- <div id="checkout-payment-banco" class="validation-advice" style="position:relative;display:none;"></div>
225
  </div>
226
- <div id="checkout-payment-o2ti" class="validation-advice" style="position:relative;display:none;"></div>
227
  </div>
228
  </div>
84
  <input id="bandeiramoip" type="radio" name="payment[credito_instituicao]" value="Hipercard" onclick="setCcType('HI');" class="validate-one-required-by-name" >
85
  </li>
86
  </ul>
87
+
88
  <ul class="form-list">
89
  <li class="wide cc-cvv">
90
  <div class="cc">
142
  <li class="wide">
143
  <label class="required" for="credito_parcela">Opções de pagamento<em>*</em></label>
144
  <div class="input-box">
145
+
146
+
147
  <select name="payment[credito_parcelamento]" id="credito_parcelamento" class="input-text required-entry" >
148
+ <option value="" select>Selecione as parcelas</option>
149
+ <?php $parcelas = $this->getParcelamento('parcelas'); ?>
150
+ <?php foreach ( $parcelas as $key => $value) { ?>
151
+ <?php echo $parcelas[$key]; ?>
152
+ <?php } ?>
153
  </select>
154
  <?php echo $this->getTextoParcelas() ?>
155
  </div>
227
  <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="Banrisul" class="validate-one-required-by-name">
228
  </li>
229
  </ul>
230
+
231
  </div>
232
+
233
  </div>
234
  </div>
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard.phtml RENAMED
@@ -6,6 +6,7 @@ $api->setAmbiente($standad->getConfigData('ambiente'));$data = $standad->getQuot
6
  $valuegetGrandTotal = $data->getGrandTotal();
7
  ?>
8
  <script type="text/javascript">
 
9
  var message_payment = "<?php echo Mage::helper('onestepcheckout')->__('Please select a payment method for your order!');?>";
10
  var message_ship = "<?php echo Mage::helper('onestepcheckout')->__('Please select a shipping method for your order!');?>";
11
  var updatepaymenttypeurl = "<?php echo Mage::getUrl('onestepcheckout/index/updatepaymenttype')?>";
@@ -463,10 +464,11 @@ $taxvat = Mage::getSingleton('customer/session')->getCustomer()->getTaxvat();
463
  jQuery('.validation-advice').delay(1000).fadeOut();
464
  jQuery('.validation-advice').delay(5000).fadeOut("slow");
465
  });
466
-
467
  </script>
468
 
469
  <script type="text/javascript">
 
470
  function removeProductId(product_id){
471
  if(confirm('<?php echo $this->__('Tem certeza que deseja remover o produto?')?>')){
472
  removeProduct(product_id);
@@ -498,6 +500,7 @@ function updateEmailmsg(val){
498
  });
499
  return asyncdata;
500
  }
 
501
  </script>
502
 
503
  <?php if(Mage::getStoreConfig('onestepcheckout/layout/style_cor')!= ""):
@@ -615,7 +618,7 @@ function updateEmailmsg(val){
615
  </div>
616
 
617
  </form>
618
- <?php if(version_compare(Mage::getVersion(),'1.4.0.1','>=')):?>
619
  <div style="display: none;">
620
  <div id="inlinecorreio" style="width:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxwidth')?>;height:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')?>;overflow:auto;">
621
  <div class="o2ti-osc-title-login">
@@ -632,6 +635,7 @@ function updateEmailmsg(val){
632
  </div>
633
  <div id="resultado"></div>
634
  <script type="text/javascript">
 
635
  jQuery("#searchForm").submit(function(event) {
636
  jQuery('#loading-mask2').show();
637
  event.preventDefault();
@@ -648,6 +652,7 @@ function updateEmailmsg(val){
648
  jQuery("#resultado").empty().append(content);
649
  });
650
  });
 
651
  </script>
652
  </div>
653
  <div id="inline1" style="width:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxwidth')?>px;height:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')?>px;overflow:auto;">
@@ -677,7 +682,7 @@ function updateEmailmsg(val){
677
  </div>
678
  </div>
679
  </div>
680
- <?php endif;?>
681
  </div>
682
  <div class="clear_both">&nbsp;</div>
683
  <div style="left: 0px; min-height: 710px; display: none; top:0px;" id="loading-mask">
6
  $valuegetGrandTotal = $data->getGrandTotal();
7
  ?>
8
  <script type="text/javascript">
9
+ //<![CDATA[
10
  var message_payment = "<?php echo Mage::helper('onestepcheckout')->__('Please select a payment method for your order!');?>";
11
  var message_ship = "<?php echo Mage::helper('onestepcheckout')->__('Please select a shipping method for your order!');?>";
12
  var updatepaymenttypeurl = "<?php echo Mage::getUrl('onestepcheckout/index/updatepaymenttype')?>";
464
  jQuery('.validation-advice').delay(1000).fadeOut();
465
  jQuery('.validation-advice').delay(5000).fadeOut("slow");
466
  });
467
+ //]]>
468
  </script>
469
 
470
  <script type="text/javascript">
471
+ //<![CDATA[
472
  function removeProductId(product_id){
473
  if(confirm('<?php echo $this->__('Tem certeza que deseja remover o produto?')?>')){
474
  removeProduct(product_id);
500
  });
501
  return asyncdata;
502
  }
503
+ //]]>
504
  </script>
505
 
506
  <?php if(Mage::getStoreConfig('onestepcheckout/layout/style_cor')!= ""):
618
  </div>
619
 
620
  </form>
621
+
622
  <div style="display: none;">
623
  <div id="inlinecorreio" style="width:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxwidth')?>;height:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')?>;overflow:auto;">
624
  <div class="o2ti-osc-title-login">
635
  </div>
636
  <div id="resultado"></div>
637
  <script type="text/javascript">
638
+ //<![CDATA[
639
  jQuery("#searchForm").submit(function(event) {
640
  jQuery('#loading-mask2').show();
641
  event.preventDefault();
652
  jQuery("#resultado").empty().append(content);
653
  });
654
  });
655
+ //]]>
656
  </script>
657
  </div>
658
  <div id="inline1" style="width:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxwidth')?>px;height:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')?>px;overflow:auto;">
682
  </div>
683
  </div>
684
  </div>
685
+
686
  </div>
687
  <div class="clear_both">&nbsp;</div>
688
  <div style="left: 0px; min-height: 710px; display: none; top:0px;" id="loading-mask">
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/agreements.phtml RENAMED
File without changes
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/billing.phtml RENAMED
@@ -2,15 +2,7 @@
2
  <div id="co-billing-form">
3
  <fieldset>
4
  <ul class="form-list">
5
- <?php
6
- if ($this->customerHasAddresses() && Mage::helper('onestepcheckout')->showAddressBook()): ?>
7
- <li class="wide" >
8
- <label for="billing-address-select" style="_width:250px;"><?php echo $this->__('Select a billing address from your address book or enter a new address.') ?></label>
9
- <div class="input-box" style="width:100%;">
10
- <?php echo $this->getAddressesHtmlSelect('billing') ?>
11
- </div>
12
- </li>
13
- <?php endif; ?>
14
  <li id="billing-new-address-form" >
15
  <fieldset>
16
  <input type="hidden" name="billing[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="billing:address_id" />
@@ -132,7 +124,8 @@
132
  <?php endif; ?>
133
  </div>
134
  <?php endif;?>
135
- <script>
 
136
  var billaddbook = 1;
137
  jQuery("#billing\\:save_in_address_book").click(function() {
138
  if (this.value != billaddbook) {
@@ -148,8 +141,7 @@ function updateBillingForm(address_id, flag) {
148
  } else {
149
 
150
  jQuery('#message-box').html('');
151
- jQuery('#loading-mask').css('display', 'block');
152
- jQuery('.btn-checkout').attr('disabled', 'disabled');
153
  jQuery.ajax({
154
  type: "POST",
155
  url: "<?php echo Mage::getUrl('onestepcheckout/index/updatebillingform')?>",
@@ -157,7 +149,7 @@ function updateBillingForm(address_id, flag) {
157
  success: function(msg) {
158
  jQuery('#o2ti_onstepcheckout_billing_form').html(msg);
159
  jQuery('#loading-mask').css('display', 'none');
160
- jQuery('.btn-checkout').removeAttr('disabled');
161
  if (flag == 1) {
162
  updateShippingType();
163
  }
@@ -166,5 +158,6 @@ function updateBillingForm(address_id, flag) {
166
 
167
  }
168
  }
 
169
  </script>
170
 
2
  <div id="co-billing-form">
3
  <fieldset>
4
  <ul class="form-list">
5
+
 
 
 
 
 
 
 
 
6
  <li id="billing-new-address-form" >
7
  <fieldset>
8
  <input type="hidden" name="billing[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="billing:address_id" />
124
  <?php endif; ?>
125
  </div>
126
  <?php endif;?>
127
+ <script type="text/javascript">
128
+ //<![CDATA[
129
  var billaddbook = 1;
130
  jQuery("#billing\\:save_in_address_book").click(function() {
131
  if (this.value != billaddbook) {
141
  } else {
142
 
143
  jQuery('#message-box').html('');
144
+
 
145
  jQuery.ajax({
146
  type: "POST",
147
  url: "<?php echo Mage::getUrl('onestepcheckout/index/updatebillingform')?>",
149
  success: function(msg) {
150
  jQuery('#o2ti_onstepcheckout_billing_form').html(msg);
151
  jQuery('#loading-mask').css('display', 'none');
152
+
153
  if (flag == 1) {
154
  updateShippingType();
155
  }
158
 
159
  }
160
  }
161
+ //]]>
162
  </script>
163
 
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/billing/billing_form.phtml RENAMED
@@ -6,12 +6,14 @@ if (Mage::getSingleton('customer/session')->isLoggedIn()) {
6
  $lastname = $customer->getLastname();
7
  $region_select = $this->escapeHtml($this->getAddress()->getRegion());
8
  $taxvat = $customer->getTaxvat();
 
9
  } else {
10
  $fullname = "";
11
  $firstname = "";
12
  $lastname = "";
13
  $region_select = "";
14
  $taxvat = "";
 
15
  }
16
  $_dob = $this->getLayout()->createBlock('customer/widget_dob');
17
  $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat');
@@ -33,7 +35,7 @@ if (Mage::getSingleton('customer/session')->isLoggedIn()) {
33
  <input type="text" id="billing:lastname" name="billing[lastname]" value="<?php echo $lastname; ?>" title="Sobrenome" class="input-text required-entry" autocomplete="off">
34
  </div>
35
  </li>
36
- <li class="wide">
37
  <label for="billing:email" class="required"><em>*</em>Endereço de e-mail</label>
38
  <div class="input-box">
39
  <input type="text" name="billing[email]" id="billing:email" value="<?php echo $this->htmlEscape( Mage::getSingleton('customer/session')->getCustomer()->getEmail()) ?>" <?php if($myStatus) echo 'readonly="true"'; ?> title="Endereço de e-mail" class="input-text validate-email required-entry" autocomplete="off">
@@ -112,8 +114,10 @@ if (Mage::getSingleton('customer/session')->isLoggedIn()) {
112
  <input type="text" id="billing:taxvat" name="billing[taxvat]"value="<?php echo $taxvat;?>" title="CPF" class="input-text required-entry" onkeypress="return txtBoxFormat(this, '999.999.999-99', event);" placeholder="123.456.789-10" maxlength="14">
113
  </div>
114
  <script type="text/javascript">
 
115
  $('billing:taxvat').addClassName('validar_cpf');
116
  Validation.add('validar_cpf', 'O CPF ou CNPJ informado \xE9 invalido', function(v){return validaCPF(v,0);});
 
117
  </script>
118
  </li>
119
  <?php endif; ?>
@@ -186,7 +190,9 @@ if (Mage::getSingleton('customer/session')->isLoggedIn()) {
186
  <select id="billing:region_id" name="billing[region_id]" title="Estado" style="display: none;" defaultvalue="" class="validate-select">
187
  <option value="">Por favor, selecione o estado</option>
188
  </select>
189
- <script type="text/javascript">$("billing:region_id").setAttribute("defaultValue", "");</script>
 
 
190
  <input type="text" maxlength="2" id="billing:region" name="billing[region]" value="<?php echo $this->escapeHtml($region_select) ?>" title="Estado" class="input-text" style="" autocomplete="off">
191
  </div>
192
  </li>
@@ -198,8 +204,10 @@ if (Mage::getSingleton('customer/session')->isLoggedIn()) {
198
  </li>
199
  <div style="clear:both"></div>
200
  <script type="text/javascript">
 
201
  jQuery(function(){jQuery("#billing-new-address-form").show();});
202
  var billing = new Billing("co-billing-form","<?php echo $this->getUrl('checkout/onepage/getAddress/address/') ?>", "<?php echo $this->getUrl('checkout/onepage/saveBilling/') ?>");
203
  var billingForm = new VarienForm("co-billing-form");
204
  var billingRegionUpdater = new RegionUpdater("billing:country_id", "billing:region", "billing:region_id", countryRegions, undefined, "billing:postcode");
 
205
  </script>
6
  $lastname = $customer->getLastname();
7
  $region_select = $this->escapeHtml($this->getAddress()->getRegion());
8
  $taxvat = $customer->getTaxvat();
9
+ $exibe_email = 0;
10
  } else {
11
  $fullname = "";
12
  $firstname = "";
13
  $lastname = "";
14
  $region_select = "";
15
  $taxvat = "";
16
+ $exibe_email = 1;
17
  }
18
  $_dob = $this->getLayout()->createBlock('customer/widget_dob');
19
  $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat');
35
  <input type="text" id="billing:lastname" name="billing[lastname]" value="<?php echo $lastname; ?>" title="Sobrenome" class="input-text required-entry" autocomplete="off">
36
  </div>
37
  </li>
38
+ <li class="wide" <?php if($exibe_email == 0) echo 'style="display:none"' ?>>
39
  <label for="billing:email" class="required"><em>*</em>Endereço de e-mail</label>
40
  <div class="input-box">
41
  <input type="text" name="billing[email]" id="billing:email" value="<?php echo $this->htmlEscape( Mage::getSingleton('customer/session')->getCustomer()->getEmail()) ?>" <?php if($myStatus) echo 'readonly="true"'; ?> title="Endereço de e-mail" class="input-text validate-email required-entry" autocomplete="off">
114
  <input type="text" id="billing:taxvat" name="billing[taxvat]"value="<?php echo $taxvat;?>" title="CPF" class="input-text required-entry" onkeypress="return txtBoxFormat(this, '999.999.999-99', event);" placeholder="123.456.789-10" maxlength="14">
115
  </div>
116
  <script type="text/javascript">
117
+ //<![CDATA[
118
  $('billing:taxvat').addClassName('validar_cpf');
119
  Validation.add('validar_cpf', 'O CPF ou CNPJ informado \xE9 invalido', function(v){return validaCPF(v,0);});
120
+ //]]>
121
  </script>
122
  </li>
123
  <?php endif; ?>
190
  <select id="billing:region_id" name="billing[region_id]" title="Estado" style="display: none;" defaultvalue="" class="validate-select">
191
  <option value="">Por favor, selecione o estado</option>
192
  </select>
193
+ <script type="text/javascript">//<![CDATA[
194
+ $("billing:region_id").setAttribute("defaultValue", "");
195
+ //]]></script>
196
  <input type="text" maxlength="2" id="billing:region" name="billing[region]" value="<?php echo $this->escapeHtml($region_select) ?>" title="Estado" class="input-text" style="" autocomplete="off">
197
  </div>
198
  </li>
204
  </li>
205
  <div style="clear:both"></div>
206
  <script type="text/javascript">
207
+ //<![CDATA[
208
  jQuery(function(){jQuery("#billing-new-address-form").show();});
209
  var billing = new Billing("co-billing-form","<?php echo $this->getUrl('checkout/onepage/getAddress/address/') ?>", "<?php echo $this->getUrl('checkout/onepage/saveBilling/') ?>");
210
  var billingForm = new VarienForm("co-billing-form");
211
  var billingRegionUpdater = new RegionUpdater("billing:country_id", "billing:region", "billing:region_id", countryRegions, undefined, "billing:postcode");
212
+ //]]>
213
  </script>
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/correio.phtml RENAMED
File without changes
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/coupon.phtml RENAMED
@@ -54,6 +54,7 @@
54
  </div>
55
  <div style="clear:both;"></div>
56
  <script type="text/javascript">
 
57
  jQuery(document).ready(function(){
58
  jQuery('.cupom_tem').bind({
59
  click: function(){
@@ -61,4 +62,5 @@
61
  }
62
  });
63
  });
 
64
  </script>
54
  </div>
55
  <div style="clear:both;"></div>
56
  <script type="text/javascript">
57
+ //<![CDATA[
58
  jQuery(document).ready(function(){
59
  jQuery('.cupom_tem').bind({
60
  click: function(){
62
  }
63
  });
64
  });
65
+ //]]>
66
  </script>
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/forgotpassword.phtml RENAMED
@@ -70,6 +70,7 @@
70
  //]]>
71
  </script>
72
  <script type="text/javascript">
 
73
  jQuery('#forgotpass-please-wait').css('display','none');
74
  jQuery('#errorforgotpass').css('display','none');
75
  function updateForgotpassword(email)
@@ -100,6 +101,7 @@ jQuery('#forgotpass-please-wait').css('display','block'); //note: echo $this->ge
100
  }
101
  });
102
  }
 
103
  </script>
104
 
105
 
70
  //]]>
71
  </script>
72
  <script type="text/javascript">
73
+ //<![CDATA[
74
  jQuery('#forgotpass-please-wait').css('display','none');
75
  jQuery('#errorforgotpass').css('display','none');
76
  function updateForgotpassword(email)
101
  }
102
  });
103
  }
104
+ //]]>
105
  </script>
106
 
107
 
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/local.xml RENAMED
File without changes
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/login.phtml RENAMED
@@ -64,7 +64,7 @@
64
  //]]>
65
  </script>
66
  <script type="text/javascript">
67
-
68
  function updateLogin(email,password)
69
  {
70
 
@@ -90,4 +90,5 @@ jQuery('.buttons-set .button').css('display','none');
90
  }
91
  });
92
  }
 
93
  </script>
64
  //]]>
65
  </script>
66
  <script type="text/javascript">
67
+ //<![CDATA[
68
  function updateLogin(email,password)
69
  {
70
 
90
  }
91
  });
92
  }
93
+ //]]>
94
  </script>
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/payment.phtml RENAMED
File without changes
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/payment/methods.phtml RENAMED
@@ -3,7 +3,7 @@
3
  <dt>
4
 
5
  <?php if( sizeof($this->getMethods()) > 1 ): ?>
6
- <input id="p_method_<?php echo $_code ?>" value="<?php echo $_code ?>" type="radio" name="payment[method]" title="<?php echo $this->htmlEscape($_method->getTitle()) ?>" onclick="payment.switchMethod('<?php echo $_code ?>')"<?php if($this->getSelectedMethodCode()==$_code): ?> checked="checked"<?php endif; ?> class="radio payment_method_handle" />
7
  <?php else: ?>
8
  <span class="no-display"><input id="p_method_<?php echo $_code ?>" value="<?php echo $_code ?>" type="radio" name="payment[method]" checked="checked" class="radio payment_method_handle" /></span>
9
  <?php endif; ?>
@@ -32,14 +32,3 @@
32
  payment.init();
33
  //]]>
34
  </script>
35
- <script type="text/javascript">
36
- var payment_method_changed = -1;
37
-
38
-
39
- if(this.value != payment_method_changed){
40
- updatePaymentMethod(this.value);
41
- payment_method_changed = this.value;
42
- }
43
-
44
-
45
- </script>
3
  <dt>
4
 
5
  <?php if( sizeof($this->getMethods()) > 1 ): ?>
6
+ <input id="p_method_<?php echo $_code ?>" value="<?php echo $_code ?>" type="radio" name="payment[method]" title="<?php echo $this->htmlEscape($_method->getTitle()) ?>" onclick="payment.switchMethod('<?php echo $_code ?>');updatePaymentMethod(this.value);"<?php if($this->getSelectedMethodCode()==$_code): ?> checked="checked"<?php endif; ?> class="radio payment_method_handle" />
7
  <?php else: ?>
8
  <span class="no-display"><input id="p_method_<?php echo $_code ?>" value="<?php echo $_code ?>" type="radio" name="payment[method]" checked="checked" class="radio payment_method_handle" /></span>
9
  <?php endif; ?>
32
  payment.init();
33
  //]]>
34
  </script>
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/review.phtml RENAMED
File without changes
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/review/button.phtml RENAMED
File without changes
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/review/info.phtml RENAMED
File without changes
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/review/item.phtml RENAMED
File without changes
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/review/options.phtml RENAMED
File without changes
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/review/options/additional.phtml RENAMED
File without changes
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/review/totals.phtml RENAMED
File without changes
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/shipping.phtml RENAMED
@@ -1,4 +1,5 @@
1
  <script type="text/javascript">
 
2
  var shipaddbook=1;
3
  jQuery("#shipping\\:save_in_address_book").click(function(){
4
  if(this.value != shipaddbook){
@@ -24,7 +25,7 @@
24
  {
25
  jQuery('#message-box').html('');
26
  jQuery('#loading-mask').css('display','block');
27
- jQuery('.btn-checkout').attr('disabled','disabled');
28
  jQuery.ajax({
29
  type: "POST",
30
  url: "<?php echo Mage::getUrl('onestepcheckout/index/updateshippingform')?>",
@@ -32,24 +33,18 @@
32
  success: function(msg){
33
  jQuery('#o2ti_onstepcheckout_shipping_form').html(msg);
34
  jQuery('#loading-mask').css('display','none');
35
- jQuery('.btn-checkout').removeAttr('disabled');
36
  updateShippingType();
37
  }
38
  });
39
  }
40
  }
 
41
  </script>
42
 
43
  <div id="co-shipping-form">
44
  <ul class="form-list">
45
- <?php if ($this->customerHasAddresses() && Mage::helper('onestepcheckout')->showAddressBook() ): ?>
46
- <li class="wide">
47
- <label for="shipping-address-select" style="_width:250px;"><?php echo $this->__('Select a shipping address from your address book or enter a new address.') ?></label>
48
- <div class="input-box">
49
- <?php echo $this->getAddressesHtmlSelect('shipping') ?>
50
- </div>
51
- </li>
52
- <?php endif ?>
53
  <?php echo $this->getChildHtml('shipping_form');?>
54
 
55
  <?php if ($this->isCustomerLoggedIn() && $this->customerHasAddresses() && Mage::helper('onestepcheckout')->showAddressBook()):?>
1
  <script type="text/javascript">
2
+ //<![CDATA[
3
  var shipaddbook=1;
4
  jQuery("#shipping\\:save_in_address_book").click(function(){
5
  if(this.value != shipaddbook){
25
  {
26
  jQuery('#message-box').html('');
27
  jQuery('#loading-mask').css('display','block');
28
+
29
  jQuery.ajax({
30
  type: "POST",
31
  url: "<?php echo Mage::getUrl('onestepcheckout/index/updateshippingform')?>",
33
  success: function(msg){
34
  jQuery('#o2ti_onstepcheckout_shipping_form').html(msg);
35
  jQuery('#loading-mask').css('display','none');
36
+
37
  updateShippingType();
38
  }
39
  });
40
  }
41
  }
42
+ //]]>
43
  </script>
44
 
45
  <div id="co-shipping-form">
46
  <ul class="form-list">
47
+
 
 
 
 
 
 
 
48
  <?php echo $this->getChildHtml('shipping_form');?>
49
 
50
  <?php if ($this->isCustomerLoggedIn() && $this->customerHasAddresses() && Mage::helper('onestepcheckout')->showAddressBook()):?>
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/shipping/shipping_form.phtml RENAMED
File without changes
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/shipping_method.phtml RENAMED
File without changes
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/daskboard/onepage/shipping_method/available.phtml RENAMED
@@ -9,15 +9,15 @@
9
  <?php $_sole = $_sole && count($_rates) == "nada"; foreach ($_rates as $_rate): ?>
10
  <li>
11
  <?php if ($_rate->getErrorMessage()): ?>
12
-
13
  <?php else: ?>
14
  <?php if ($_sole) : ?>
15
 
16
  <span class="no-display"><input name="shipping_method" type="radio" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>" checked="checked" /></span>
17
  <?php else: ?>
18
- <input name="shipping_method" type="radio" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>"<?php if($_rate->getCode()===$this->getAddressShippingMethod()) echo ' checked="checked"' ?> class="radio shipping_method_handle" />
19
  <?php endif; ?>
20
- <label for="s_method_<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>" value="<?php echo $_rate->getPrice() ?>">
21
 
22
 
23
  <?php if(Mage::getStoreConfig('o2tiall/config/icones_na_entrega')): ?>
@@ -85,16 +85,4 @@
85
  </dl>
86
 
87
  <?php endif; ?>
88
- <script type="text/javascript">
89
- var shipping_method_changed=-1;
90
- jQuery(".shipping_method_handle").click(function(){
91
- if(shipping_load())
92
- {
93
- if(this.value != shipping_method_changed){
94
- updateShippingMethod();
95
- shipping_method_changed = this.value;
96
- document.getElementById('co-payment-form').style.opacity='1';
97
- }
98
- }
99
- });
100
- </script>
9
  <?php $_sole = $_sole && count($_rates) == "nada"; foreach ($_rates as $_rate): ?>
10
  <li>
11
  <?php if ($_rate->getErrorMessage()): ?>
12
+
13
  <?php else: ?>
14
  <?php if ($_sole) : ?>
15
 
16
  <span class="no-display"><input name="shipping_method" type="radio" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>" checked="checked" /></span>
17
  <?php else: ?>
18
+ <input name="shipping_method" type="radio" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>"<?php if($_rate->getCode()===$this->getAddressShippingMethod()) echo ' checked="checked"' ?> class="radio shipping_method_handle" onclick="updateShippingMethod();"/>
19
  <?php endif; ?>
20
+ <label for="s_method_<?php echo $_rate->getCode() ?>" onclick="updateShippingMethod();" id="s_method_<?php echo $_rate->getCode() ?>" value="<?php echo $_rate->getPrice() ?>">
21
 
22
 
23
  <?php if(Mage::getStoreConfig('o2tiall/config/icones_na_entrega')): ?>
85
  </dl>
86
 
87
  <?php endif; ?>
88
+
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/emptyupdate.phtml RENAMED
File without changes
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/onepage.phtml RENAMED
File without changes
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/sales/order/info.phtml RENAMED
File without changes
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/sales/order/info/customermessages.phtml RENAMED
File without changes
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/sales/order/info/customermessages.phtml~ RENAMED
File without changes
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/sales/order/info/deliverydate.phtml RENAMED
File without changes
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/sales/order/info/deliverydate.phtml~ RENAMED
File without changes
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/sales/order/view/tab/info.phtml RENAMED
File without changes
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/sales/order/view/tab/info/customermessages.phtml RENAMED
File without changes
app/design/frontend/{default → base}/default/template/O2TI/onestepcheckout/sales/order/view/tab/info/deliverydate.phtml RENAMED
File without changes
app/design/frontend/default/default/template/O2TI/cadastro/customer/form/edit.phtml DELETED
@@ -1,145 +0,0 @@
1
- <div class="page-title">
2
- <h1><?php echo $this->__('Edit Account Information') ?></h1>
3
- </div>
4
- <script type="text/javascript">
5
- function getval(sel) {
6
- if (sel.value == "PF"){
7
- jQuery('#dados_pj').css('display','none');
8
- }
9
- else
10
- {
11
- jQuery('#dados_pj').css('display','block');
12
- }
13
- }
14
- </script>
15
- <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
16
- <form action="<?php echo $this->getUrl('customer/account/editPost') ?>" method="post" id="form-validate">
17
- <div class="fieldset">
18
- <?php echo $this->getBlockHtml('formkey')?>
19
- <h2 class="legend"><?php echo $this->__('Account Information') ?></h2>
20
- <ul class="form-list">
21
- <li class="fields">
22
- <?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getCustomer())->toHtml() ?>
23
- </li>
24
- <li>
25
- <label for="email" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
26
- <div class="input-box">
27
- <input type="text" name="email" id="email" value="<?php echo $this->htmlEscape($this->getCustomer()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="input-text required-entry validate-email" />
28
- </div>
29
- </li>
30
- <?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
31
- <?php if ($_dob->isEnabled()): ?>
32
- <li><?php echo $_dob->setDate($this->getCustomer()->getDob())->toHtml() ?></li>
33
- <?php endif ?>
34
- <?php $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat') ?>
35
- <?php if ($_taxvat->isEnabled()): ?>
36
- <li><?php echo $_taxvat->setTaxvat($this->getCustomer()->getTaxvat())->toHtml() ?></li>
37
- <?php endif ?>
38
- <?php $_gender = $this->getLayout()->createBlock('customer/widget_gender') ?>
39
- <?php if ($_gender->isEnabled()): ?>
40
- <li><?php echo $_gender->setGender($this->getCustomer()->getGender())->toHtml() ?></li>
41
- <?php endif ?>
42
- <li class="control">
43
- <input type="checkbox" name="change_password" id="change_password" value="1" onclick="setPasswordForm(this.checked)" title="<?php echo $this->__('Change Password') ?>"<?php if($this->getCustomer()->getChangePassword()==1): ?> checked="checked"<?php endif; ?> class="checkbox" /><label for="change_password"><?php echo $this->__('Change Password') ?></label>
44
- </li>
45
- <?php
46
- $tipopessoa = Mage::getModel('eav/config')->getAttribute('customer','tipopessoa');
47
- $razaosocial = Mage::getModel('eav/config')->getAttribute('customer','razaosocial');
48
- $nomefantasia = Mage::getModel('eav/config')->getAttribute('customer','nomefantasia');
49
- $cnpj = Mage::getModel('eav/config')->getAttribute('customer','cnpj');
50
- $insestadual = Mage::getModel('eav/config')->getAttribute('customer','insestadual');
51
- $tipopessoa='<li class="wide">
52
- <label for="tipopessoa" class="">Comprar como?</label>
53
- <div class="input-box">
54
- <select name="tipopessoa]" id="tipopessoa_select" onchange="getval(this);">
55
- <option value="PF" selected="selected">Pessoa Física</option>
56
- <option value="PJ" >Pessoa Jurídica</option>
57
- </select>
58
- </div>
59
- </li>';
60
- $nomefantasia='<div id="dados_pj" style="display:none;"><li class="fields">
61
- <label for="billing:nome_fantasia" class="required"><em>*</em>'.$this->__('Nome Fantasia').'</label>
62
- <div class="input-box">
63
- <input type="text" title="None Fantasia" class="input-text" name="nomefantasia" id="nomefantasia" value="'.$this->htmlEscape(Mage::getSingleton('customer/session')->getCustomer()->getNomefantasia()).'">
64
- </div>
65
- </li>';
66
- $razaosocial='<li class="fields">
67
- <label for="billing:razao_social" class="required"><em>*</em>'.$this->__('Razão Social').'</label>
68
- <div class="input-box">
69
- <input type="text" title="razaosocial" class="input-text" name="razaosocial" id="razao_social" value="'.$this->htmlEscape(Mage::getSingleton('customer/session')->getCustomer()->getRazaosocial()).'">
70
- </div>
71
- </li>';
72
- $cnpj='<li class="fields">
73
- <label for="billing:cnpj" class="required"><em>*</em>'.$this->__('CNPJ').'</label>
74
- <div class="input-box">
75
- <input type="text" title="cnpj" class="input-text" name="cnpj" id="cnpj" value="'.$this->htmlEscape(Mage::getSingleton('customer/session')->getCustomer()->getCnpj()).'" >
76
- </div>
77
- </li>';
78
- $insestadual='<li class="fields">
79
- <label for="billing:insestadual" class="required"><em>*</em>'.$this->__('Inscrição Estadual').'</label>
80
- <div class="input-box">
81
- <input type="text" title="Inscrição Estadual" class="input-text" name="insestadual" id="insestadual" value="'.$this->htmlEscape(Mage::getSingleton('customer/session')->getCustomer()->getInsestadual()).'">
82
- </div>
83
- </li>
84
- </div>';
85
- echo $tipopessoa;
86
- echo $nomefantasia;
87
- echo $razaosocial;
88
- echo $cnpj;
89
- echo $insestadual;
90
- ?>
91
- </ul>
92
- </div>
93
- <div class="fieldset" style="display:none;">
94
- <h2 class="legend"><?php echo $this->__('Change Password') ?></h2>
95
- <ul class="form-list">
96
- <li>
97
- <label for="current_password" class="required"><em>*</em><?php echo $this->__('Current Password') ?></label>
98
- <div class="input-box">
99
- <input type="password" title="<?php echo $this->__('Current Password') ?>" class="input-text" name="current_password" id="current_password" />
100
- </div>
101
- </li>
102
- <li class="fields">
103
- <div class="field">
104
- <label for="password" class="required"><em>*</em><?php echo $this->__('New Password') ?></label>
105
- <div class="input-box">
106
- <input type="password" title="<?php echo $this->__('New Password') ?>" class="input-text validate-password" name="password" id="password" />
107
- </div>
108
- </div>
109
- <div class="field">
110
- <label for="confirmation" class="required"><em>*</em><?php echo $this->__('Confirm New Password') ?></label>
111
- <div class="input-box">
112
- <input type="password" title="<?php echo $this->__('Confirm New Password') ?>" class="input-text validate-cpassword" name="confirmation" id="confirmation" />
113
- </div>
114
- </div>
115
- </li>
116
- </ul>
117
- </div>
118
- <div class="buttons-set">
119
- <p class="required"><?php echo $this->__('* Required Fields') ?></p>
120
- <p class="back-link"><a href="<?php echo $this->escapeUrl($this->getBackUrl()) ?>"><small>&laquo; </small><?php echo $this->__('Back') ?></a></p>
121
- <button type="submit" title="<?php echo $this->__('Save') ?>" class="button"><span><span><?php echo $this->__('Save') ?></span></span></button>
122
- </div>
123
- </form>
124
- <script type="text/javascript">
125
- //<![CDATA[
126
- var dataForm = new VarienForm('form-validate', true);
127
- function setPasswordForm(arg){
128
- if(arg){
129
- $('current_password').up(3).show();
130
- $('current_password').addClassName('required-entry');
131
- $('password').addClassName('required-entry');
132
- $('confirmation').addClassName('required-entry');
133
-
134
- }else{
135
- $('current_password').up(3).hide();
136
- $('current_password').removeClassName('required-entry');
137
- $('password').removeClassName('required-entry');
138
- $('confirmation').removeClassName('required-entry');
139
- }
140
- }
141
- <?php if($this->getCustomer()->getChangePassword()): ?>
142
- setPasswordForm(true);
143
- <?php endif; ?>
144
- //]]>
145
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/default/template/O2TI/cadastro/persistent/checkout/onepage/billing.phtml DELETED
@@ -1,247 +0,0 @@
1
- <form id="co-billing-form" action="">
2
- <fieldset>
3
- <ul class="form-list">
4
- <?php if ($this->customerHasAddresses()): ?>
5
- <li class="wide">
6
- <label for="billing-address-select"><?php echo $this->__('Select a billing address from your address book or enter a new address.') ?></label>
7
- <div class="input-box">
8
- <?php echo $this->getAddressesHtmlSelect('billing') ?>
9
- </div>
10
- </li>
11
- <?php endif; ?>
12
- <li id="billing-new-address-form"<?php if ($this->customerHasAddresses()): ?> style="display:none;"<?php endif; ?>>
13
- <fieldset>
14
- <input type="hidden" name="billing[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="billing:address_id" />
15
- <ul>
16
- <li class="fields"><?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress()->getFirstname() ? $this->getAddress() : $this->getQuote()->getCustomer())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?></li>
17
- <li class="fields">
18
- <div class="field">
19
- <label for="billing:company"><?php echo $this->__('Company') ?></label>
20
- <div class="input-box">
21
- <input type="text" id="billing:company" name="billing[company]" value="<?php echo $this->htmlEscape($this->getAddress()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text" />
22
- </div>
23
- </div>
24
- <?php if(!$this->isCustomerLoggedIn()): ?>
25
- <div class="field">
26
- <label for="billing:email" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
27
- <div class="input-box">
28
- <input type="text" name="billing[email]" id="billing:email" value="<?php echo $this->htmlEscape($this->getAddress()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="input-text validate-email required-entry" />
29
- </div>
30
- </div>
31
- <?php endif ?>
32
- </li>
33
- <li class="wide">
34
- <label for="billing:street1" class="required"><em>*</em><?php echo $this->__('Address') ?></label>
35
- <div class="input-box">
36
- <input type="text" title="<?php echo $this->__('Street Address') ?>" name="billing[street][]" id="billing:street1" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(1)) ?>" class="input-text required-entry" />
37
- </div>
38
- </li>
39
- <?php for ($_i=2, $_n=$this->helper('customer/address')->getStreetLines(); $_i<=$_n; $_i++): ?>
40
- <li class="wide">
41
- <div class="input-box">
42
- <input type="text" title="<?php echo $this->__('Street Address %s', $_i) ?>" name="billing[street][]" id="billing:street<?php echo $_i?>" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet($_i)) ?>" class="input-text" />
43
- </div>
44
- </li>
45
- <?php endfor ?>
46
- <li class="fields">
47
- <div class="field">
48
- <label for="billing:city" class="required"><em>*</em><?php echo $this->__('City') ?></label>
49
- <div class="input-box">
50
- <input type="text" title="<?php echo $this->__('City') ?>" name="billing[city]" value="<?php echo $this->htmlEscape($this->getAddress()->getCity()) ?>" class="input-text required-entry" id="billing:city" />
51
- </div>
52
- </div>
53
- <div class="field">
54
- <label for="billing:region_id" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
55
- <div class="input-box">
56
- <select id="billing:region_id" name="billing[region_id]" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
57
- <option value=""><?php echo $this->__('Please select region, state or province') ?></option>
58
- </select>
59
- <script type="text/javascript">
60
- //<![CDATA[
61
- $('billing:region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
62
- //]]>
63
- </script>
64
- <input type="text" id="billing:region" name="billing[region]" value="<?php echo $this->htmlEscape($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text" style="display:none;" />
65
- </div>
66
- </div>
67
- </li>
68
- <li class="fields">
69
- <div class="field">
70
- <label for="billing:postcode" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
71
- <div class="input-box">
72
- <input type="text" title="<?php echo $this->__('Zip/Postal Code') ?>" name="billing[postcode]" id="billing:postcode" value="<?php echo $this->htmlEscape($this->getAddress()->getPostcode()) ?>" class="input-text validate-zip-international required-entry" />
73
- </div>
74
- </div>
75
- <div class="field">
76
- <label for="billing:country_id" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
77
- <div class="input-box">
78
- <?php echo $this->getCountryHtmlSelect('billing') ?>
79
- </div>
80
- </div>
81
- </li>
82
- <li class="fields">
83
- <div class="field">
84
- <label for="billing:telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
85
- <div class="input-box">
86
- <input type="text" name="billing[telephone]" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text required-entry" id="billing:telephone" />
87
- </div>
88
- </div>
89
- <div class="field">
90
- <label for="billing:fax"><?php echo $this->__('Fax') ?></label>
91
- <div class="input-box">
92
- <input type="text" name="billing[fax]" value="<?php echo $this->htmlEscape($this->getAddress()->getFax()) ?>" title="<?php echo $this->__('Fax') ?>" class="input-text" id="billing:fax" />
93
- </div>
94
- </div>
95
- </li>
96
-
97
-
98
- <?php if(!$this->isCustomerLoggedIn()): ?>
99
-
100
- <?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
101
- <?php $_gender = $this->getLayout()->createBlock('customer/widget_gender') ?>
102
- <?php if ($_dob->isEnabled() || $_gender->isEnabled()): ?>
103
- <li class="fields">
104
- <?php if ($_dob->isEnabled()): ?>
105
- <div class="field">
106
- <?php echo $_dob->setDate($this->getQuote()->getCustomerDob())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
107
- </div>
108
- <?php endif; ?>
109
- <?php if ($_gender->isEnabled()): ?>
110
- <div class="field">
111
- <?php echo $_gender->setGender($this->getQuote()->getCustomerGender())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
112
- </div>
113
- <?php endif ?>
114
- </li>
115
- <?php endif ?>
116
-
117
- <?php if ($this->isTaxvatEnabled()):?>
118
- <li><?php echo $this->getTaxvatHtml() ?></li>
119
- <?php endif; ?>
120
-
121
- <li>
122
- <?php
123
- $tipopessoa = Mage::getModel('eav/config')->getAttribute('customer','tipopessoa');
124
- $razao_social = Mage::getModel('eav/config')->getAttribute('customer','razao_social');
125
- $nome_fantasia = Mage::getModel('eav/config')->getAttribute('customer','nome_fantasia');
126
- $cnpj = Mage::getModel('eav/config')->getAttribute('customer','cnpj');
127
- $ins_estadual = Mage::getModel('eav/config')->getAttribute('customer','ins_estadual');
128
- $tipopessoa='<li class="wide">
129
- <label for="tipopessoa" class="">Comprar como?</label>
130
- <div class="input-box">
131
- <select name="tipopessoa]" id="tipopessoa_select" onchange="getval(this);">
132
- <option value="1" selected="selected">Pessoa Física</option>
133
- <option value="2" >Pessoa Jurídica</option>
134
- </select>
135
- </div>
136
- </li>';
137
- $nome_fantasia='<li class="fields">
138
- <label for="billing:nome_fantasia" class="required"><em>*</em>'.$this->__('Nome Fantasia').'</label>
139
- <div class="input-box">
140
- <input type="text" title="None Fantasia" class="input-text" name="nome_fantasia" id="nome_fantasia" value="'.$this->htmlEscape(Mage::getSingleton('customer/session')->getCustomer()->getNome_fantasia()).'">
141
- </div>
142
- </li>';
143
- $razao_social='<li class="fields">
144
- <label for="billing:razao_social" class="required"><em>*</em>'.$this->__('Razão Social').'</label>
145
- <div class="input-box">
146
- <input type="text" title="razao_social" class="input-text" name="razao_social" id="razao_social" value="'.$this->htmlEscape(Mage::getSingleton('customer/session')->getCustomer()->getRazao_social()).'">
147
- </div>
148
- </li>';
149
- $cnpj='<li class="fields">
150
- <label for="billing:cnpj" class="required"><em>*</em>'.$this->__('CNPJ').'</label>
151
- <div class="input-box">
152
- <input type="text" title="cnpj" class="input-text" name="cnpj" id="cnpj" value="'.$this->htmlEscape(Mage::getSingleton('customer/session')->getCustomer()->getCnpj()).'" >
153
- </div>
154
- </li>';
155
- $ins_estadual='<li class="fields">
156
- <label for="billing:ins_estadual" class="required"><em>*</em>'.$this->__('Inscrição Estadual').'</label>
157
- <div class="input-box">
158
- <input type="text" title="Inscrição Estadual" class="input-text" name="ins_estadual" id="ins_estadual" value="'.$this->htmlEscape(Mage::getSingleton('customer/session')->getCustomer()->getIns_estadual()).'">
159
- </div>
160
- </li>';
161
- echo $tipopessoa;
162
- echo $nome_fantasia;
163
- echo $razao_social;
164
- echo $cnpj;
165
- echo $ins_estadual;
166
- ?>
167
- </div>
168
- </li>
169
-
170
- <li class="fields" id="register-customer-password">
171
- <div class="field">
172
- <label for="billing:customer_password" class="required"><em>*</em><?php echo $this->__('Password') ?></label>
173
- <div class="input-box">
174
- <input type="password" name="billing[customer_password]" id="billing:customer_password" title="<?php echo $this->__('Password') ?>" class="input-text required-entry validate-password" />
175
- </div>
176
- </div>
177
- <div class="field">
178
- <label for="billing:confirm_password" class="required"><em>*</em><?php echo $this->__('Confirm Password') ?></label>
179
- <div class="input-box">
180
- <input type="password" name="billing[confirm_password]" title="<?php echo $this->__('Confirm Password') ?>" id="billing:confirm_password" class="input-text required-entry validate-cpassword" />
181
- </div>
182
- </div>
183
- </li>
184
- <?php echo $this->getChildHtml('persistent.remember.me'); ?>
185
- <?php endif; ?>
186
- <?php if ($this->isCustomerLoggedIn() && $this->customerHasAddresses()):?>
187
- <li class="control">
188
- <input type="checkbox" name="billing[save_in_address_book]" value="1" title="<?php echo $this->__('Save in address book') ?>" id="billing:save_in_address_book" onchange="if(window.shipping) shipping.setSameAsBilling(false);"<?php if ($this->getAddress()->getSaveInAddressBook()):?> checked="checked"<?php endif;?> class="checkbox" /><label for="billing:save_in_address_book"><?php echo $this->__('Save in address book') ?></label>
189
- </li>
190
- <?php else:?>
191
- <li class="no-display"><input type="hidden" name="billing[save_in_address_book]" value="1" /></li>
192
- <?php endif; ?>
193
- </ul>
194
- <?php echo $this->getChildHtml('persistent.remember.me.tooltip'); ?>
195
- </fieldset>
196
- </li>
197
- <li class="fields">
198
- <div class="field">
199
- <label for="billing:ssn" class="required"><em>*</em><?php echo $this->__('SSN') ?></label>
200
- <div class="input-box">
201
- <input type="text" name="custom[ssn]" value="<?php echo $this->htmlEscape($this->getQuote()->getSsn()) ?>" title="<?php echo $this->__('SSN') ?>" class="input-text required-entry" id="billing:ssn" />
202
- </div>
203
- </div>
204
-
205
- </li>
206
- <?php if ($this->canShip()): ?>
207
- <li class="control">
208
- <input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_yes" value="1"<?php if ($this->isUseBillingAddressForShipping()) {?> checked="checked"<?php }?> title="<?php echo $this->__('Ship to this address') ?>" onclick="$('shipping:same_as_billing').checked = true;" class="radio" /><label for="billing:use_for_shipping_yes"><?php echo $this->__('Ship to this address') ?></label></li>
209
- <li class="control">
210
- <input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_no" value="0"<?php if (!$this->isUseBillingAddressForShipping()) {?> checked="checked"<?php }?> title="<?php echo $this->__('Ship to different address') ?>" onclick="$('shipping:same_as_billing').checked = false;" class="radio" /><label for="billing:use_for_shipping_no"><?php echo $this->__('Ship to different address') ?></label>
211
- </li>
212
- <?php endif; ?>
213
- </ul>
214
- <?php if (!$this->canShip()): ?>
215
- <input type="hidden" name="billing[use_for_shipping]" value="1" />
216
- <?php endif; ?>
217
- <div class="buttons-set" id="billing-buttons-container">
218
- <p class="required"><?php echo $this->__('* Required Fields') ?></p>
219
- <button type="button" title="<?php echo $this->__('Continue') ?>" class="button" onclick="billing.save()"><span><span><?php echo $this->__('Continue') ?></span></span></button>
220
- <span class="please-wait" id="billing-please-wait" style="display:none;">
221
- <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Loading next step...') ?>" title="<?php echo $this->__('Loading next step...') ?>" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
222
- </span>
223
- </div>
224
- </fieldset>
225
- </form>
226
- <script type="text/javascript">
227
- //<![CDATA[
228
- var billing = new Billing('co-billing-form', '<?php echo $this->getUrl('checkout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('checkout/onepage/saveBilling') ?>');
229
- var billingForm = new VarienForm('co-billing-form');
230
-
231
- //billingForm.setElementsRelation('billing:country_id', 'billing:region', '<?php echo $this->getUrl('directory/json/childRegion') ?>', '<?php echo $this->__('Select State/Province...') ?>');
232
- $('billing-address-select') && billing.newAddress(!$('billing-address-select').value);
233
-
234
- var billingRegionUpdater = new RegionUpdater('billing:country_id', 'billing:region', 'billing:region_id', countryRegions, undefined, 'billing:postcode');
235
- Event.observe($('onepage-guest-register-button'), 'click', function(event) {
236
- var billingRememberMe = $$('#billing-new-address-form li #remember-me-box');
237
- if(billingRememberMe.length > 0) {
238
- billingRememberMe = $(billingRememberMe[0].parentNode);
239
- if ($('login:guest') && $('login:guest').checked) {
240
- billingRememberMe.hide();
241
- } else if ($('login:register') && ($('login:register').checked || $('login:register').type == 'hidden')) {
242
- billingRememberMe.show();
243
- }
244
- }
245
- })
246
- //]]>
247
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/default/template/O2TI/cadastro/persistent/customer/form/register.phtml DELETED
@@ -1,218 +0,0 @@
1
- <div class="account-create">
2
- <div class="page-title">
3
- <h1><?php echo $this->__('Create an Account') ?></h1>
4
- </div>
5
- <script type="text/javascript">
6
- function getval(sel) {
7
- if (sel.value == "PF"){
8
- jQuery('#dados_pj').css('display','none');
9
- }
10
- else
11
- {
12
- jQuery('#dados_pj').css('display','block');
13
- }
14
- }
15
- function marcar_isento() {
16
- jQuery("#insestadual").val("Isento");
17
- }
18
- </script>
19
- <?php echo $this->getChildHtml('form_fields_before')?>
20
- <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
21
- <form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="form-validate">
22
- <div class="fieldset">
23
- <input type="hidden" name="success_url" value="<?php echo $this->getSuccessUrl() ?>" />
24
- <input type="hidden" name="error_url" value="<?php echo $this->getErrorUrl() ?>" />
25
- <h2 class="legend"><?php echo $this->__('Personal Information') ?></h2>
26
- <ul class="form-list">
27
- <li class="fields">
28
- <?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getFormData())->setForceUseCustomerAttributes(true)->toHtml() ?>
29
- </li>
30
- <li>
31
- <label for="email_address" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
32
- <div class="input-box">
33
- <input type="text" name="email" id="email_address" value="<?php echo $this->htmlEscape($this->getFormData()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="input-text validate-email required-entry" />
34
- </div>
35
- </li>
36
- <?php if ($this->isNewsletterEnabled()): ?>
37
- <li class="control">
38
- <div class="input-box">
39
- <input type="checkbox" name="is_subscribed" title="<?php echo $this->__('Sign Up for Newsletter') ?>" value="1" id="is_subscribed"<?php if($this->getFormData()->getIsSubscribed()): ?> checked="checked"<?php endif; ?> class="checkbox" />
40
- </div>
41
- <label for="is_subscribed"><?php echo $this->__('Sign Up for Newsletter') ?></label>
42
- </li>
43
- <?php endif ?>
44
- <?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
45
- <?php if ($_dob->isEnabled()): ?>
46
- <li><?php echo $_dob->setDate($this->getFormData()->getDob())->toHtml() ?></li>
47
- <?php endif ?>
48
- <?php $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat') ?>
49
- <?php if ($_taxvat->isEnabled()): ?>
50
- <li><?php echo $_taxvat->setTaxvat($this->getFormData()->getTaxvat())->toHtml() ?></li>
51
- <?php endif ?>
52
- <?php $_gender = $this->getLayout()->createBlock('customer/widget_gender') ?>
53
- <?php if ($_gender->isEnabled()): ?>
54
- <li><?php echo $_gender->setGender($this->getFormData()->getGender())->toHtml() ?></li>
55
- <?php endif ?>
56
-
57
- <?php
58
- $tipopessoa = Mage::getModel('eav/config')->getAttribute('customer','tipopessoa');
59
- $razaosocial = Mage::getModel('eav/config')->getAttribute('customer','razaosocial');
60
- $nomefantasia = Mage::getModel('eav/config')->getAttribute('customer','nomefantasia');
61
- $cnpj = Mage::getModel('eav/config')->getAttribute('customer','cnpj');
62
- $insestadual = Mage::getModel('eav/config')->getAttribute('customer','insestadual');
63
- $tipopessoa='<li class="wide">
64
- <label for="tipopessoa" class="">Comprar como?</label>
65
- <div class="input-box">
66
- <select name="tipopessoa]" id="tipopessoa_select" onchange="getval(this);">
67
- <option value="PF" selected="selected">Pessoa Física</option>
68
- <option value="PJ" >Pessoa Jurídica</option>
69
- </select>
70
- </div>
71
- </li>';
72
- $nomefantasia='<div id="dados_pj" style="display:none;"><li class="fields">
73
- <label for="billing:nome_fantasia" class="required"><em>*</em>'.$this->__('Nome Fantasia').'</label>
74
- <div class="input-box">
75
- <input type="text" title="None Fantasia" class="input-text" name="nomefantasia" id="nomefantasia" value="'.$this->htmlEscape(Mage::getSingleton('customer/session')->getCustomer()->getNomefantasia()).'">
76
- </div>
77
- </li>';
78
- $razaosocial='<li class="fields">
79
- <label for="billing:razao_social" class="required"><em>*</em>'.$this->__('Razão Social').'</label>
80
- <div class="input-box">
81
- <input type="text" title="razaosocial" class="input-text" name="razaosocial" id="razao_social" value="'.$this->htmlEscape(Mage::getSingleton('customer/session')->getCustomer()->getRazaosocial()).'">
82
- </div>
83
- </li>';
84
- $cnpj='<li class="fields">
85
- <label for="billing:cnpj" class="required"><em>*</em>'.$this->__('CNPJ').'</label>
86
- <div class="input-box">
87
- <input type="text" title="cnpj" class="input-text" name="cnpj" id="cnpj" value="'.$this->htmlEscape(Mage::getSingleton('customer/session')->getCustomer()->getCnpj()).'" placeholder="99.999.999/0001-99" onkeypress="return txtBoxFormat(this, \'99.999.999/0001-99\', event);" maxlength="18" autocomplete="off" >
88
- </div>
89
- </li>';
90
- $insestadual='<li class="fields">
91
- <label for="billing:insestadual" class="required"><em>*</em>'.$this->__('Inscrição Estadual').'</label>
92
- <div class="input-box">
93
- <div class="input-box">
94
- <input type="text" title="Inscrição Estadual" class="input-text required-entry" name="billing[insestadual]" id="insestadual" value="'.$this->htmlEscape(Mage::getSingleton('customer/session')->getCustomer()->getInsestadual()).'">
95
- </div>
96
- <input type="checkbox" onclick="marcar_isento()"><label>Isento</label>
97
- </li>
98
- </div>';
99
- echo $tipopessoa;
100
- echo $nomefantasia;
101
- echo $razaosocial;
102
- echo $cnpj;
103
- echo $insestadual;
104
- ?>
105
- </ul>
106
- </div>
107
- <?php if($this->getShowAddressFields()): ?>
108
- <div class="fieldset">
109
- <input type="hidden" name="create_address" value="1" />
110
- <h2 class="legend"><?php echo $this->__('Address Information') ?></h2>
111
- <ul class="form-list">
112
- <li class="fields">
113
- <div class="field">
114
- <label for="company"><?php echo $this->__('Company') ?></label>
115
- <div class="input-box">
116
- <input type="text" name="company" id="company" value="<?php echo $this->htmlEscape($this->getFormData()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text" />
117
- </div>
118
- </div>
119
- <div class="field">
120
- <label for="telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
121
- <div class="input-box">
122
- <input type="text" name="telephone" id="telephone" value="<?php echo $this->htmlEscape($this->getFormData()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text required-entry" />
123
- </div>
124
- </div>
125
- </li>
126
- <li class="wide">
127
- <label for="street_1" class="required"><em>*</em><?php echo $this->__('Street Address') ?></label>
128
- <div class="input-box">
129
- <input type="text" name="street[]" value="<?php echo $this->htmlEscape($this->getFormData()->getStreet(1)) ?>" title="<?php echo $this->__('Street Address') ?>" id="street_1" class="input-text required-entry" />
130
- </div>
131
- </li>
132
- <?php for ($_i=2, $_n=$this->helper('customer/address')->getStreetLines(); $_i<=$_n; $_i++): ?>
133
- <li class="wide">
134
- <div class="input-box">
135
- <input type="text" name="street[]" value="<?php echo $this->htmlEscape($this->getFormData()->getStreet($_i)) ?>" title="<?php echo $this->__('Street Address %s', $_i) ?>" id="street_<?php echo $_i?>" class="input-text" />
136
- </div>
137
- </li>
138
- <?php endfor ?>
139
- <li class="fields">
140
- <div class="field">
141
- <label for="city" class="required"><em>*</em><?php echo $this->__('City') ?></label>
142
- <div class="input-box">
143
- <input type="text" name="city" value="<?php echo $this->htmlEscape($this->getFormData()->getCity()) ?>" title="<?php echo $this->__('City') ?>" class="input-text required-entry" id="city" />
144
- </div>
145
- </div>
146
- <div class="field">
147
- <label for="region_id" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
148
- <div class="input-box">
149
- <select id="region_id" name="region_id" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
150
- <option value=""><?php echo $this->__('Please select region, state or province') ?></option>
151
- </select>
152
- <script type="text/javascript">
153
- //<![CDATA[
154
- $('region_id').setAttribute('defaultValue', "<?php echo $this->getFormData()->getRegionId() ?>");
155
- //]]>
156
- </script>
157
- <input type="text" id="region" name="region" value="<?php echo $this->htmlEscape($this->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text" style="display:none;" />
158
- </div>
159
- </div>
160
- </li>
161
- <li class="fields">
162
- <div class="field">
163
- <label for="zip" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
164
- <div class="input-box">
165
- <input type="text" name="postcode" value="<?php echo $this->htmlEscape($this->getFormData()->getPostcode()) ?>" title="<?php echo $this->__('Zip/Postal Code') ?>" id="zip" class="input-text validate-zip-international required-entry" />
166
- </div>
167
- </div>
168
- <div class="field">
169
- <label for="country" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
170
- <div class="input-box">
171
- <?php echo $this->getCountryHtmlSelect() ?>
172
- </div>
173
- </div>
174
- </li>
175
- </ul>
176
- <input type="hidden" name="default_billing" value="1" />
177
- <input type="hidden" name="default_shipping" value="1" />
178
- </div>
179
- <?php endif; ?>
180
- <div class="fieldset">
181
- <h2 class="legend"><?php echo $this->__('Login Information') ?></h2>
182
- <ul class="form-list">
183
- <li class="fields">
184
- <div class="field">
185
- <label for="password" class="required"><em>*</em><?php echo $this->__('Password') ?></label>
186
- <div class="input-box">
187
- <input type="password" name="password" id="password" title="<?php echo $this->__('Password') ?>" class="input-text required-entry validate-password" />
188
- </div>
189
- </div>
190
- <div class="field">
191
- <label for="confirmation" class="required"><em>*</em><?php echo $this->__('Confirm Password') ?></label>
192
- <div class="input-box">
193
- <input type="password" name="confirmation" title="<?php echo $this->__('Confirm Password') ?>" id="confirmation" class="input-text required-entry validate-cpassword" />
194
- </div>
195
- </div>
196
- </li>
197
- <?php echo $this->getChildHtml('persistent.remember.me'); ?>
198
- </ul>
199
- <?php echo $this->getChildHtml('persistent.remember.me.tooltip'); ?>
200
- </div>
201
- <div class="buttons-set">
202
- <p class="required"><?php echo $this->__('* Required Fields') ?></p>
203
- <p class="back-link"><a href="<?php echo $this->escapeUrl($this->getBackUrl()) ?>" class="back-link"><small>&laquo; </small><?php echo $this->__('Back') ?></a></p>
204
- <button type="submit" title="<?php echo $this->__('Submit') ?>" class="button"><span><span><?php echo $this->__('Submit') ?></span></span></button>
205
- </div>
206
- <?php if (Mage::helper('checkout')->isContextCheckout()): ?>
207
- <input name="context" type="hidden" value="checkout" />
208
- <?php endif; ?>
209
- </form>
210
- <script type="text/javascript">
211
- //<![CDATA[
212
- var dataForm = new VarienForm('form-validate', true);
213
- <?php if($this->getShowAddressFields()): ?>
214
- new RegionUpdater('country', 'region', 'region_id', <?php echo $this->helper('directory')->getRegionJson() ?>, undefined, 'zip');
215
- <?php endif; ?>
216
- //]]>
217
- </script>
218
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/default/template/O2TI/moip/redirect.phtml DELETED
@@ -1,500 +0,0 @@
1
- <?php
2
- $token = "";
3
- $moipToken = "";
4
- $tokenpagamento = "";
5
- $refazerpagamento = "";
6
- if(!$this->getRequest()->getParams())
7
- $data = $this->getRequest()->getParams();
8
- else
9
- $data = "";
10
- $standard = Mage::getModel('moip/standard');
11
- $form = new Varien_Data_Form();
12
- $api = Mage::getModel('moip/api');
13
- $api->setAmbiente($standard->getConfigData('ambiente'));
14
- $idgoogle = Mage::getStoreConfig('o2tiall/google/idgoogle');
15
- $meio = $api->generatemeip(Mage::registry('formapgto'));
16
- $opcaopg = $api->generatemeiopago(Mage::registry('formapg'));
17
- if ($meio == "")
18
- {
19
- $meio .= "\"Forma\": \"BoletoBancario\"";
20
- $opcaopg = array( 'forma_pagamento' => 'BoletoBancario', 'debito_instituicao' => 'credito_instituicao' , 'timevencimentoboleto' => '2014-09-04T23:53:33+00:00' );
21
- }
22
- $parcelamento = $standard->getInfoParcelamento();
23
- $enviapara = $standard->getConfigData('ambiente');
24
- $urldosite = $urldosite = Mage::getBaseUrl('web', true);
25
- if (Mage::registry('erro') !=""){
26
- echo Mage::registry('erro');
27
- Mage::log(Mage::registry('erro'), null, 'O2TI_Moip.log', true);
28
- Mage::log(Mage::registry('xml'), null, 'O2TI_Moip.log', true);
29
- }
30
- if ($enviapara == "teste") {
31
- Mage::log(Mage::registry('erro'), null, 'O2TI_Moip.log', true);
32
- Mage::log(Mage::registry('xml'), null, 'O2TI_Moip.log', true);
33
- Mage::log(Mage::registry('token'), null, 'O2TI_Moip.log', true);
34
- $urldomoip = "https://desenvolvedor.moip.com.br/sandbox";
35
- }
36
- else {
37
- $urldomoip = "https://www.moip.com.br/";
38
- }
39
- if ($opcaopg['forma_pagamento'] == "DebitoBancario") {
40
- $bandeira = $opcaopg['debito_instituicao'];
41
- $vencpedido = date('c', strtotime("+2 days"));
42
- }
43
- if ($opcaopg['forma_pagamento'] == "CartaoCredito" || $opcaopg['forma_pagamento'] == "Cofre") {
44
- $bandeira = $opcaopg['credito_instituicao'];
45
- $vencpedido = date('c', strtotime("+2 days"));
46
- }
47
- if ($opcaopg['forma_pagamento'] == "BoletoBancario") {
48
- $bandeira = "Bradesco";
49
- $vencpedido = $opcaopg['timevencimentoboleto'];
50
- }
51
-
52
- //primeira compra grava os dados.
53
-
54
- if (!$moipToken) {
55
- $moipToken = Mage::registry('token');
56
- $url = $moipToken;
57
- $xmlgerado = Mage::registry('xml');
58
- $xml_sent = "ok";
59
- $standard = Mage::getSingleton('moip/standard');
60
- $sale_id = Mage::getSingleton('checkout/session')->getLastRealOrderId();
61
- $realorder_id = Mage::getSingleton('checkout/session')->getLastOrderId();
62
- $incrementId = $realorder_id;
63
- $order = Mage::getModel('sales/order')->load($incrementId);
64
- $session = Mage::getSingleton('customer/session');
65
- $customer = $session->getCustomer();
66
- $oque = $order->getIsVirtual();
67
- if ($oque) {
68
- $shippingId = $order->getBillingAddress()->getId();
69
- }
70
- else {
71
- $shippingId = $order->getShippingAddress()->getId();
72
- }
73
- $customer_id = $order->getCustomerId();
74
- $status = "Sucesso";
75
- $connR = Mage::getSingleton('core/resource')->getConnection('core_read');
76
- $sql = "SELECT *
77
- FROM moip
78
- WHERE sale_id IN (".$sale_id.") AND status ='Sucesso'";
79
- $_venda = $connR->fetchAll($sql);
80
- foreach ($_venda as $venda) {
81
- $tokenpagamento = $venda['xml_return'];
82
- }
83
- if ($tokenpagamento == "") {
84
- $digito = "";
85
- $conn = Mage::getSingleton('core/resource')->getConnection('core_write');
86
- $query = "insert into moip (transaction_id, realorder_id, sale_id, xml_sent, xml_return, status, formapg, bandeira, digito, vencimento, datetime) values (:transaction_id, :realorder_id, :sale_id, :xml_sent, :xml_return, :status, :formapg, :bandeira, :digito, :vencimento, :datetime)";
87
- $binds = array(
88
- 'transaction_id' => "NULL",
89
- 'realorder_id' => $realorder_id,
90
- 'sale_id' => $sale_id,
91
- 'xml_sent' => $xml_sent,
92
- 'xml_return' => $moipToken,
93
- 'status' => $status,
94
- 'formapg' => $opcaopg['forma_pagamento'],
95
- 'bandeira' => $bandeira,
96
- 'digito' => $digito,
97
- 'vencimento' => $vencpedido,
98
- 'datetime' => date('Y-m-d H:i:s'),
99
-
100
- );
101
- $conn->query($query, $binds);
102
- $tokenpagamento = $moipToken;
103
- $url = $moipToken;
104
- }
105
-
106
- }
107
- else {
108
- //usado para o reload da pagina pelos infelizes clientes que navegam com ie.
109
- $tokenpagamento = $moipToken;
110
- $url = $tokenpagamento;
111
- $status = "Sucesso";
112
- }
113
-
114
-
115
-
116
-
117
- $address = Mage::getModel('sales/order_address')->load($shippingId);
118
- $urldosite = Mage::getBaseUrl('web', true);
119
- $totalparaparcelado = $order->getGrandTotal();
120
- ?>
121
- <!-- entrou no pagamento -->
122
- <script type="text/javascript">
123
- var _gaq = _gaq || [];
124
- _gaq.push(['_setAccount', '<?php echo $idgoogle ?>']);
125
- _gaq.push(['_setDomainName', '<?php echo $urldosite ?>']);
126
- _gaq.push(['_addIgnoreRef', '<?php echo $urldosite ?>']);//dominio para evitar duplicidade
127
- _gaq.push(['_trackPageview']);
128
- _gaq.push(['_addTrans',
129
- '<?php echo $sale_id ?>',
130
- 'Loja',
131
- '<?php echo ($totalparaparcelado - $order->getShippingAmount()) ?>',
132
- '0',
133
- '<?php echo $order->getShippingAmount() ?>',
134
- '<?php echo $address->getCity() ?>',
135
- '<?php echo $address->getRegion() ?>',
136
- '<?php echo $address->getCountry_id() ?>'
137
- ]);
138
- <?php $orderItems = $order -> getItemsCollection();
139
- foreach ($orderItems as $item) {
140
- $product_sku = $item -> sku;
141
- $product_name = $item -> getName();
142
- $_product = Mage::getModel('catalog/product') -> load($item->getProductId());
143
- $cats = $_product -> getCategoryIds();
144
- $category_name = Mage::getModel('catalog/category') -> load($cats[0]) -> getName();
145
- $price = $item->getPrice();
146
- $qty = $item -> getQtyOrdered();
147
- echo "
148
- _gaq.push(['_addItem',
149
- '$incrementId',
150
- '$product_sku',
151
- '$product_name',
152
- '$category_name',
153
- '$price',
154
- '$qty'
155
- ]);
156
- ";
157
- }
158
- ?>
159
- _gaq.push(['_trackTrans']);
160
- (function() {
161
- var ga = document.createElement('script');
162
- ga.type = 'text/javascript';
163
- ga.async = true;
164
- ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
165
- var s = document.getElementsByTagName('script')[0];
166
- s.parentNode.insertBefore(ga, s);
167
- })();
168
- </script>
169
-
170
-
171
-
172
-
173
- <!-- Corpo comum ao pagamento -->
174
- <script type="text/javascript" charset="ISO-8859-1" src="<?php echo $urldomoip ?>/transparente/MoipWidget-v2.js" onerror="erro_mail('erro caiu o moip widget')" ></script>
175
- <div class="row grid-full">
176
- <div class="col-md-6 grid12-12">
177
- <div id="MoipWidget" data-token="<?php echo $url ?>" callback-method-error="erroValidacao" callback-method-success="sucesso"></div>
178
- <h3>Seu pedido foi enviado com sucesso!</h3>
179
- <h4>Obrigado por comprar na em nossa loja.</h4>
180
- <?php if($opcaopg['forma_pagamento']== "BoletoBancario"):?>
181
- <script type="text/javascript">
182
- jQuery(document).ready(function(){
183
- jQuery('body').append('<div class="modal" id="showXml" ><div class="modal-header"><button class="close" data-dismiss="modal">x</button><h3>Boleto Bancário - Bradesco</h3></div><div class="modal-body"></div></div>');
184
- jQuery('#showXml').modal('toggle');
185
- });
186
- function abre_boleto(){
187
- jQuery('#showXml').modal('toggle');
188
- };
189
- </script>
190
- <div class="method-type boleto-title">
191
- <h3>Falta apenas um passo para finalizar sua compra.</h3>
192
- <h4>Imprima seu boleto e faça o pagamento em qualquer banco.</h4>
193
- </div>
194
- <button class="btn-moip btn-boleto buttonmoip" onclick="abre_boleto()" ><img src="<?php echo $this->getSkinUrl('O2TI/moip/imagem/printer.png') ?>" alt="" />Visualize o boleto<span>clique aqui</span></button>
195
- <div class="warning-block">
196
- <strong>Atenção:</strong> O boleto não será enviado por correspondência, visualize-o acima.
197
- </div>
198
- <div class="row boleto-can-pay">
199
- <strong>
200
- <h3>Você sabia que:</h3>
201
- </strong>
202
- <h3>Pode pagar o seu boleto bancário pelo celular?</h3>
203
- <h3>Pode pagar o seu boleto bancário pela internet?</h3>
204
- <h3></h3>
205
- </div>
206
- <?php endif; ?>
207
- <?php if($opcaopg['forma_pagamento'] == "DebitoBancario"):?>
208
- <meta http-equiv='Refresh' content='5;URL=<?php echo $urldomoip ?>/Instrucao.do?token=<?php echo $url ?>'>
209
- <div class="method-type bank-title">
210
- <h3>Transferência Bancária</h3>
211
- <h4>Você será redirecionado para o seu banco em 5 segundos, caso isto não ocorra, por favor clique no link abaixo para ser redirecionado ao seu banco.</h4>
212
- </div>
213
- </br>
214
- <button type="button" title="Finalizar compra" class="btn-moip btn-bank" onclick="window.location='<?php echo $urldomoip ?>/Instrucao.do?token=<?php echo $url ?>'"><img src="<?php echo $this->getSkinUrl('O2TI/moip/imagem/bank-icon.png') ?>" alt="" />Ir ao Banco</button>
215
- <?php endif; ?>
216
- <?php if($opcaopg['forma_pagamento'] == "CartaoCredito" || $opcaopg['forma_pagamento'] == "Cofre" ): ?>
217
- <?php
218
- $tipoderecebimento = $standard->getConfigData('tipoderecebimento');
219
- if($tipoderecebimento == "0"){
220
- $tipoderecebimento = "Parcelado";
221
- }else{
222
- $tipoderecebimento = "AVista";
223
- }
224
- ?>
225
- <div class="method-type cc-title">
226
- <h3>Cartão de Crédito</h3>
227
- <div class="loader"/>Por favor, aguarde!</br><img src="<?php echo $this->getSkinUrl('O2TI/moip/imagem/ajax-loader.gif'); ?>" border="0"></div>
228
- </div>
229
- <script type="text/javascript">
230
- jQuery(document).ready(function() {
231
- jQuery("#token").val(jQuery("#MoipWidget").attr("data-token"));
232
- jQuery("#sendToMoip2").click(function() {
233
- sendToCreditCard2();
234
- jQuery(".loader").css({
235
- display: "block"
236
- });
237
- jQuery("#Errocartao").css({
238
- display: "none"
239
- });
240
- jQuery("#statusmoip").css({
241
- display: "none"
242
- });
243
- jQuery("#moiperro").css({
244
- display: "none"
245
- });
246
- jQuery("#statusmoipadd").css({
247
- display: "none"
248
- });
249
- jQuery("#idmoip").css({
250
- display: "none"
251
- });
252
- });
253
- });
254
- sendToCreditCard2 = function() {
255
- var settings = {
256
- "Forma": "CartaoCredito",
257
- "Instituicao": jQuery("#instituicao").val(),
258
- "Parcelas": jQuery("#Parcelas").val(),
259
- "Recebimento": "<?php echo $tipoderecebimento ?>",
260
- "CartaoCredito": {
261
- "Numero": jQuery("input[name=Numero]").val(),
262
- "Expiracao": jQuery("input[name=Expiracao]").val(),
263
- "CodigoSeguranca": jQuery("input[name=CodigoSeguranca]").val(),
264
- "Portador": {
265
- "Nome": jQuery("input[name=Portador]").val(),
266
- "DataNascimento": jQuery("input[name=DataNascimento]").val(),
267
- "Telefone": jQuery("input[name=Telefone]").val(),
268
- "Identidade": jQuery("input[name=CPF]").val()
269
- }
270
- }
271
- }
272
- MoipWidget(settings);
273
- };
274
- </script>
275
- <div id="refazercartao" style="display:none;width:87%;">
276
- <div class="well">
277
- <h3>Não foi possível concluir o pagamento, por favor reveja os dados e tente novamente.</h3>
278
- <div id="Errocartao" class="warning-block" ></div>
279
- <ul class="repay-form">
280
- <li>
281
- <h3>Dados do Cartão</h3>
282
- </li>
283
- <li>
284
- <label>Parcelas:</label>
285
- <select id="Parcelas" >
286
- <?php
287
- $valor = $totalparaparcelado;
288
- $parcelamento = $api->getParcelamento(number_format($valor, 2, ".", "."));
289
- ?>
290
- <?php foreach ($parcelamento as $k => $v):?>
291
- <?php if($k<= "2"){ ?>
292
- <option value="1">Pagamento à vista.</option>
293
- <?php } ?>
294
- <option value="<?php echo $k ?>"><?php echo $k . "x R$ " . $v['valor'] . " | Total: R$ " .$v['total']."" ?></option>
295
- <?php endforeach; ?>
296
- </select>
297
- </li>
298
- <li>
299
- <label>Institui&ccedil;&atilde;o:</label>
300
- <select id="instituicao">
301
- <option value="Visa">Visa</option>
302
- <option value="Mastercard">Mastercard</option>
303
- <option value="AmericanExpress">AmericanExpress</option>
304
- <option value="Hipercard">Hipercard</option>
305
- <option value="Diners">Diners</option>
306
- </select>
307
- </li>
308
- <li>
309
- <div>
310
- <label>Numero do Cart&atilde;o:</label>
311
- <input type="text" id="Numero" name="Numero" value="" class="input-text" >
312
- </div>
313
- <div>
314
- <label>CVV:</label>
315
- <input type="text" id="CodigoSeguranca" class="input-text" name="CodigoSeguranca" value="" size="4">
316
- </div>
317
- </li>
318
- <li>
319
- <label>Expira&ccedil;&atilde;o:</label>
320
- <input type="text" id="Expiracao" name="Expiracao" value="" onkeypress="return txtBoxFormat(this, '99/99', event);" maxlength="5" placeholder="Ex. 10/15" size="5" class="input-text" >
321
- </li>
322
- <li>
323
- <h3>Dados do Títular do Cartão</h3>
324
- </li>
325
- <li>
326
- <label>Portador:</label>
327
- <input type="text" id="Portador" name="Portador" value="" class="input-text" >
328
- </li>
329
- <li>
330
- <label>CPF:</label>
331
- <input type="text" id="CPF" name="CPF" value="" class="input-text" >
332
- </li>
333
- <li>
334
- <label>Data Nascimento:</label>
335
- <input type="text" id="DataNascimento" name="DataNascimento" onkeypress="return txtBoxFormat(this, '99/99/9999', event);" maxlength="10" placeholder="Ex. 10/10/1985" value="" class="input-text" ><br>
336
- </li>
337
- <li>
338
- <label>Telefone:</label>
339
- <input type="text" id="Telefone" name="Telefone" value="" onkeypress="return txtBoxFormat(this, '(99)9999-9999', event);" placeholder="Ex. (11)9999-9999" maxlength="14" class="input-text" ><br>
340
- </li>
341
- <li>
342
- <button id="sendToMoip2" class="btn-moip buttonmoip">Pagar Agora</button>
343
- </li>
344
- </ul>
345
- </div>
346
- </div>
347
- <div id="pgcartao">
348
- <div id="statusmoip"></div>
349
- <div id="statusmoipadd"></div>
350
- <div id="moiperro"></div>
351
- <div id="idmoip"></div>
352
- </div>
353
- <?php endif; ?>
354
- </div>
355
- <div class="col-md-6 grid12-12">
356
- <div class="order-id-wrapper">
357
- <p>O número do seu pedido é:</p>
358
- <span class="order-id">#<?php echo $sale_id ?></span>
359
- <h4>Seu pedido será enviado por <?php echo $order->getShippingDescription(); ?></h4>
360
- <h4>A forma de pagamento escolhida foi:<br /><strong><?php echo $opcaopg['forma_pagamento'] ?></strong></h4>
361
- </div>
362
- <div class="warning-block">
363
- <strong>Atenção:</strong> Você receberá um e-mail com a confirmação do seu pedido.
364
- </div>
365
- <div class="row">
366
- <a href="<?php echo Mage::helper('core/url')->getHomeUrl(); ?>" class="back-to-store">Voltar para a home</a>
367
- </div>
368
- </div>
369
- </div>
370
- <script type="text/javascript">
371
- jQuery(document).ready(function(){
372
- jQuery("#resultado").hide();
373
- jQuery("#token").val("<?php echo $url; ?>");
374
- var settings = {
375
- <?php if($refazerpagamento != "1") { echo $meio; } ?>
376
- <?php if($refazerpagamento == "1" && $opcaopg['forma_pagamento'] == "BoletoBancario" ) { echo ('"Forma": "BoletoBancario"');} ?>
377
- <?php if($refazerpagamento == "1" && $opcaopg['forma_pagamento'] == "DebitoBancario" ) { echo ('"Forma": "DebitoBancario","Instituicao":"'.$bandeira.'"');} ?>
378
- };
379
- MoipWidget(settings);
380
- <?php
381
- if($refazerpagamento == "1" && $opcaopg['forma_pagamento'] == "CartaoCredito" ) { echo ('jQuery("#refazercartao").css({display:"block"});');
382
- echo('jQuery("#Errocartao").css({display:"none"});');
383
- }
384
- ?>
385
- });
386
-
387
- var sucesso = function(data){
388
- meio = data.TaxaMoIP;
389
- jQuery("#statusmoip").html("");
390
- jQuery("#statusmoipadd").html("");
391
- jQuery("#idmoip").html("");
392
- jQuery("#moiperro").html("");
393
- jQuery("#Errocartao").css({display:"block"});
394
- jQuery("#statusmoip").css({display:"block"});
395
- jQuery("#moiperro").css({display:"block"});
396
- jQuery("#statusmoipadd").css({display:"block"});
397
- jQuery("#idmoip").css({display:"block"});
398
-
399
- if (meio == undefined){
400
- jQuery(".loader").css({display:"none"});
401
- jQuery("#pgboletoedeb").removeAttr('disabled');
402
- <?php if($opcaopg['forma_pagamento'] == "BoletoBancario"): ?>
403
- jQuery(".modal-body").append("<iframe hspace=\"0\" vspace=\"0\" width=\"650\" height=\"900\" scrolling= \"no\" frameBorder=\"0\" allowtransparency=\"true\" src=\"<?php echo $urldomoip ?>/Instrucao.do?token=<?php echo $url ?>\"> </iframe>");
404
- <?php endif; ?>
405
- }else{
406
- jQuery("#pgcartao").removeAttr('disabled');
407
- if (data.Status == "Cancelado"){
408
- jQuery("#refazercartao").css({display:"block"});
409
- jQuery(".loader").css({display:"none"});
410
- jQuery("#statusmoip").html("<h3>Pagamento Cancelado</h3>");
411
- jQuery("#statusmoipadd").html("Transação não aprovada.");
412
- jQuery("#idmoip").html("O número de sua transação no Moip é: ");
413
- jQuery("#idmoip").html(data.CodigoMoIP);
414
- jQuery("#moiperro").html("<h4>Motivo:</h4>");
415
- var motivo = JSON.stringify(data.Classificacao.Descricao);
416
- erro_mail(motivo);
417
- if(motivo == '"Desconhecido"'){
418
- jQuery("#moiperro").html("Seus dados estão incorretos ou não podemos envia-los a operadora de crédito.");
419
- }
420
- if(motivo == '"Transação não processada"'){
421
- jQuery("#moiperro").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.");
422
- }
423
- if(motivo == '"Política de segurança do Moip"'){
424
- jQuery("#moiperro").html("Pagamento não autorizado.</br>Entre em contato com o seu banco antes de uma nova tentativa.");
425
- }
426
- if(motivo == '"Política de segurança do Banco Emissor"'){
427
- jQuery("#moiperro").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..");
428
- }
429
- if(motivo == '"Cartão vencido"'){
430
- jQuery("#moiperro").html("A validade do seu Cartão expirou.</br>Escolha outra forma de pagamento para concluir o pagamento.");
431
- }
432
- if(motivo == '"Dados inválidos"'){
433
- jQuery("#moiperro").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.");
434
- }
435
- }
436
- if (data.Status == "EmAnalise"){
437
- jQuery(".loader").css({display:"none"});
438
- jQuery("#statusmoip").html("<h3>Pagamento Aguardando Aprovação</h3>");
439
- jQuery("#statusmoipadd").html("Por favor, aguarde a em análise da transação. Assim que for alterado o status você será informado via e-mail.");
440
- jQuery("#idmoip").html("O número de sua transação no Moip é: ");
441
- jQuery("#idmoip").html(data.CodigoMoIP);
442
- }
443
- if (data.Status == "Autorizado"){
444
- jQuery(".loader").css({display:"none"});
445
- jQuery("#statusmoip").html("<h3>Pagamento Aprovado</h3>");
446
- jQuery("#statusmoipadd").html("Por favor, aguarde o processo de envio.");
447
- jQuery("#idmoip").html("O número de sua transação no Moip é: ");
448
- jQuery("#idmoip").html(data.CodigoMoIP);
449
- }
450
- }
451
- };
452
- var erroValidacao = function(data) {
453
- for (i=0; i<data.length; i++) {
454
- Moip = data[i];
455
- infosMoip = 'Ops, parece que há algo errado:';
456
- for(j in Moip){
457
- atributo = j;
458
- if(atributo == "Mensagem"){
459
- valor = Moip[j];
460
- infosMoip += '<li class="erro" style="list-style: none;margin-left: 29px;font-weight: bold;">'+valor +'</li>';
461
- erro_mail(valor);
462
- if(valor != "Informe o token da Instrução"){
463
- jQuery("#refazercartao").css({display:"block"});
464
- }
465
- }
466
- }
467
-
468
- jQuery("#Errocartao").html("");
469
- jQuery("#Errocartao").css({display:"block"});
470
- jQuery("#Errocartao").html(infosMoip);
471
- infosMoip = '';
472
- jQuery(".loader").css({display:"none"});
473
- <?php if($refazerpagamento == "1" && $opcaopg['forma_pagamento'] == "CartaoCredito" ) { echo('jQuery("#Errocartao").html("");'); } ?>
474
- <?php if($refazerpagamento == "1" && $opcaopg['forma_pagamento'] == "CartaoCredito" ) { echo('jQuery("#Errocartao2").html(infosMoip);'); } ?>
475
- <?php if($refazerpagamento == "1" && $opcaopg['forma_pagamento'] == "CartaoCredito" ) { echo('jQuery(".loader").css({display:"none"});'); } ?>
476
- }
477
- };
478
- function erro_mail(valor)
479
- {
480
- var xmlhttp;
481
- if (window.XMLHttpRequest)
482
- {
483
- xmlhttp=new XMLHttpRequest();
484
- }
485
- else
486
- {
487
- xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
488
- }
489
- xmlhttp.open("GET","<?php echo $urldosite?>index.php/Moip/Standard/email_erro_pgto?erro="+valor+"&pedido=<?php echo $sale_id ?>&navegador="+navigator.userAgent+"",true);
490
- xmlhttp.send();
491
- }
492
- </script>
493
-
494
- <?php
495
- echo Mage::getStoreConfig('o2tiall/google/outros_funil');
496
- try{
497
- $order->sendNewOrderEmail();
498
- }
499
- catch (Exception $ex) { };
500
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/O2TI/onestepcheckout/change-events.js CHANGED
@@ -1,45 +1,5 @@
1
  jQuery(function() {
2
- var flag = 1;
3
- var i = 1;
4
- var shipaddselect = jQuery("#shipping-address-select");
5
- var change = 0;
6
- var change_select = 0;
7
- var timer;
8
- var islogin = logined();
9
- var hasadd = hasaddress();
10
- jQuery("#billing-address-select").bind({
11
- change: function() {
12
- if (flag == 1) {
13
- change_select = 0;
14
- if (jQuery(this).val().length > 0) {
15
- countryid = "BR";
16
- updateBillingForm(jQuery(this).val(), flag);
17
- } else {
18
- updateBillingForm(jQuery(this).val(), flag);
19
- }
20
- } else {
21
- updateBillingForm(jQuery(this).val(), flag);
22
- change_select = 1;
23
- }
24
- }
25
- });
26
- jQuery("#shipping-address-select").bind({
27
- change: function() {
28
- if (flag == 0) {
29
- change_select = 1;
30
- if (jQuery(this).val().length > 0) {
31
- countryid = "BR";
32
- if (countryid) {
33
- updateShippingForm(jQuery(this).val());
34
- }
35
- } else {
36
- if (jQuery("#shipping-address-select").val()) {
37
- updateShippingForm(jQuery(this).val());
38
- }
39
- }
40
- }
41
- }
42
- });
43
  jQuery('[id="shipping:same_as_billing"]').click(function() {
44
  jQuery('#shipping_show').hide();
45
  jQuery("#o2ti-osc-p2").removeClass('onestepcheckout-numbers onestepcheckout-numbers-3').addClass('onestepcheckout-numbers onestepcheckout-numbers-2');
@@ -47,7 +7,7 @@ jQuery(function() {
47
  jQuery("#o2ti-osc-p4").removeClass('onestepcheckout-numbers onestepcheckout-numbers-5').addClass('onestepcheckout-numbers onestepcheckout-numbers-4');
48
  flag = 1;
49
  shipping.setSameAsBilling(true);
50
- $('shipping:same_as_billing').checked = false;
51
  jQuery('#shipping_show').hide();
52
  jQuery("#ship_to_same_address").val(1);
53
  });
@@ -70,7 +30,7 @@ jQuery(function() {
70
  jQuery("#o2ti-osc-p4").removeClass('onestepcheckout-numbers onestepcheckout-numbers-5').addClass('onestepcheckout-numbers onestepcheckout-numbers-4');
71
  flag = 1;
72
  shipping.setSameAsBilling(true);
73
- $('shipping:same_as_billing').checked = false;
74
  jQuery('#shipping_show').hide();
75
  jQuery("#ship_to_same_address").val(1);
76
 
@@ -94,10 +54,9 @@ jQuery(function() {
94
  case 'text':
95
  case 'textarea':
96
  jQuery(this).val('');
97
- break;
98
  case 'checkbox':
99
  case 'radio':
100
-
101
  }
102
  });
103
  };
1
  jQuery(function() {
2
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  jQuery('[id="shipping:same_as_billing"]').click(function() {
4
  jQuery('#shipping_show').hide();
5
  jQuery("#o2ti-osc-p2").removeClass('onestepcheckout-numbers onestepcheckout-numbers-3').addClass('onestepcheckout-numbers onestepcheckout-numbers-2');
7
  jQuery("#o2ti-osc-p4").removeClass('onestepcheckout-numbers onestepcheckout-numbers-5').addClass('onestepcheckout-numbers onestepcheckout-numbers-4');
8
  flag = 1;
9
  shipping.setSameAsBilling(true);
10
+ jQuery('shipping:same_as_billing').checked = false;
11
  jQuery('#shipping_show').hide();
12
  jQuery("#ship_to_same_address").val(1);
13
  });
30
  jQuery("#o2ti-osc-p4").removeClass('onestepcheckout-numbers onestepcheckout-numbers-5').addClass('onestepcheckout-numbers onestepcheckout-numbers-4');
31
  flag = 1;
32
  shipping.setSameAsBilling(true);
33
+ jQuery('shipping:same_as_billing').checked = false;
34
  jQuery('#shipping_show').hide();
35
  jQuery("#ship_to_same_address").val(1);
36
 
54
  case 'text':
55
  case 'textarea':
56
  jQuery(this).val('');
57
+ break;
58
  case 'checkbox':
59
  case 'radio':
 
60
  }
61
  });
62
  };
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>o2ti_moip</name>
4
- <version>1.2.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://o2ti.com/licensa_checkout_moip.txt">Free to use with MoIP</license>
7
  <channel>community</channel>
@@ -31,12 +31,11 @@ Repayment, if you customer input wrong date he can try repaying it without have
31
  Multi store split rates&#xD;
32
  Store terms and conditions (Mandatory in all stores following the federal law (http://legislacao.planalto.gov.br/legisla/legislacao.nsf/Viw_Identificacao/DEC%207.962-2013?OpenDocument) N&#xBA; 7.962, DE 15 DE MAR&#xC7;O DE 2013&lt;/a&gt;)&#xD;
33
  &lt;/ul&gt;</description>
34
- <notes>Altera&#xE7;&#xE3;o para o funcionamento do m&#xF3;dulo MoIP para funcionamento em qualquer M&#xF3;dulo de checkout.&#xD;
35
- </notes>
36
  <authors><author><name>O2TI</name><user>o2ti</user><email>contato@o2ti.com</email></author></authors>
37
- <date>2014-03-27</date>
38
- <time>20:22:05</time>
39
- <contents><target name="magelocal"><dir name="O2TI"><dir name="All"><dir name="Helper"><file name="Data.php" hash="5cfce5f56526da7a17ac2e402b39dd6e"/></dir><dir name="etc"><file name="config.xml" hash="b4343acf6c3f25bb750a287f0b4fa7fc"/><file name="system.xml" hash="9bad1e5078f470994567ce7a68d71688"/></dir></dir><dir name="Moip"><dir name="Block"><dir name="Adminhtml"><dir name="moip"><dir name="Info"><file name="Customermessages.php" hash="bf0e3f76f8ab4dde138a4125fe2fb07c"/><file name="Info.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></dir><file name="Info.php" hash="3284336179df5048bbbf44b59ea80398"/><dir name="Standard"><file name="Form.php" hash="f93521922122f4d4d5f829a67c0754c2"/><file name="Info.php" hash="a1826c09d72b4310573cae391b8a0f06"/><file name="Novaforma.php" hash="9dfbce5025124bd7e80f7ac23386aa1a"/><file name="Redirect.php" hash="35f4c74dd1c6669dde8be302ae17d4fb"/></dir></dir><dir name="Helper"><file name="Data.php" hash="36af3c64c424820d5e6124528959d296"/></dir><dir name="Model"><file name="Api.php" hash="24d554773ef0cb0264075995bacd8fba"/><dir name="Mysql4"><file name="Collection.php" hash="9e0195a71bb5a5cd959992a6cec97667"/><file name="Write.php" hash="056d78bdbbb7a9e466b62d78015a8ed5"/></dir><file name="Observer.php" hash="80db718dbfb7e493ad235e3bdf4d6baf"/><file name="Orders.php" hash="a6023047810e0652e9e6248d67704b44"/><dir name="Source"><file name="Ambiente.php" hash="439a9f70669af322f1de30937551a1f0"/><file name="FormasPagamento.php" hash="bfa5931fe39fc22841acc789e71e6e92"/><file name="Layout.php" hash="4cc1e4fb27e773ce93a1c6b9bc571158"/></dir><file name="Standard.php" hash="4404310e45f06ab588e463baf82bd192"/><file name="Write.php" hash="ac1d3e9ff033480cab6ea20af271fa91"/><file name=".ftpquota" hash="bd9db78914b33cca442f35848cc680b5"/></dir><dir name="controllers"><file name="IndexController.php" hash="1c46afa51975fee2e626df503cfc29c9"/><file name="StandardController.php" hash="41cda2a2e7f16fdd1929863ee2040bb2"/></dir><dir name="etc"><file name="adminhtml.xml" hash="75bde86c187ceb24042233abde0f88b0"/><file name="config.xml" hash="3e921887d5844a4b5602db406b476ee4"/><file name="system.xml" hash="abf7ba5636a5c869d7782e1177e78839"/></dir><dir name="sql"><dir name="moip_setup"><file name="mysql4-install-0.1.0.php" hash="bff338f70822b4af170073029558b511"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="e767051db0711586184d20abbdebcbca"/><file name="mysql4-upgrade-0.1.0-0.2.1.php" hash="441725100d074d7d212bae4bc07db841"/><file name="mysql4-upgrade-0.2.1-0.2.2.php" hash="7e22a5f81d536e1b024e07d60df808d7"/><file name="mysql4-upgrade-0.2.1-0.2.3.php" hash="b6a1c02303eb5be5ac7c2c9bee962bb0"/><file name="mysql4-upgrade-0.2.1-0.2.4.php" hash="39985ee007790d939be31c8339c570fe"/></dir></dir></dir><dir name="Onestepcheckout"><dir name="Block"><dir name="Adminhtml"><dir name="Form"><dir name="Renderer"><dir name="Config"><file name="Createfield.php" hash="bca92a144c0564105091fb78ec75a235"/></dir></dir></dir><dir name="Onestepcheckout"><dir name="Edit"><file name="Form.php" hash="011556489a4e2e987d622bbc193ca5db"/><dir name="Tab"><file name="Form.php" hash="786a5a8d580250f8ab5c9def49f197c4"/></dir><file name="Tabs.php" hash="3e49037ed0f2ba7d930e7675398a6fd6"/></dir><file name="Edit.php" hash="b4a2a6c99cea16750408cb5c89c97ad8"/><file name="Grid.php" hash="8aa5742a2357b1c632ef26ce2a71e217"/><dir name="Sales"><dir name="Order"><file name="Grid.php" hash="e23140dfc8b567ba7d957afeabee6643"/><dir name="View"><dir name="Tab"><dir name="Info"><file name="Customermessages.php" hash="bf0e3f76f8ab4dde138a4125fe2fb07c"/><file name="Deliverydate.php" hash="64ea9d43321c8b51d74621ee90916553"/></dir></dir></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Addtimerange.php" hash="08419845203bd4dd3421cdcab5cf241d"/></dir></dir></dir></dir></dir><file name="Onestepcheckout.php" hash="d0253394f7c3515fcc4ba81f34f192d4"/></dir><dir name="Checkout"><dir name="Onepage"><dir name="Billing"><file name="Sortbilling.php" hash="c92c36496e94fd9dc6da3aa8e53dda86"/></dir><file name="Billing.php" hash="ef4f0f010d7e288c6664002060fa5b8a"/><dir name="Review"><file name="Options.php" hash="67b005f43191b0be294d4ecf50c37485"/></dir><dir name="Shipping"><file name="Sortshipping.php" hash="9af5fa1281bf34c37e4c92fb40a4873c"/></dir><file name="Shipping.php" hash="a56afd3502132baab34c4a9419aa7e3c"/><dir name="Shippingmethod"><file name="Deliverydate.php" hash="36ba92c13f59f21c33902ea1146d6cdc"/></dir></dir><file name="Top.php" hash="70e323dbbb57a29579c13412a8a2443f"/></dir><file name="Onestepcheckout.php" hash="e8b954f14acebf579bb0910813e899e4"/><dir name="Sales"><dir name="Info"><file name="Customermessages.php" hash="6666cedaeb9597e0c5f90cf7cc2934ae"/><file name="Deliverydate.php" hash="225859a718283767ca44b1ddccfd4bfb"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="fb1897f58ca16ce27184dc0790f0ecf2"/></dir><dir name="Model"><dir name="Customer"><file name="Customer.php" hash="b1b26b8e170bd4ed90b27fb9fcea8481"/></dir><dir name="Entity"><file name="Tipopessoa.php" hash="af14c8d054fe25c7f8cef5f89fcb65da"/></dir><dir name="Mysql4"><dir name="Onestepcheckout"><file name="Collection.php" hash="13781c0c51fcde3c6afc4f31054a6e03"/></dir><file name="Onestepcheckout.php" hash="5777de55ec60a045e86dc9de10f768bd"/></dir><file name="Observer.php" hash="75aeac65c1e5ffa22465b3a1d9c754c7"/><file name="Onestepcheckout.php" hash="3630794e4b1fda8229b82826e49a702f"/><dir name="Sales"><dir name="Quote"><file name="Address.php" hash="09cba85a351b58f16b4daba5be0d5595"/></dir></dir><dir name="Shipping"><file name="Allowedmethods.php" hash="801e98156ee12fd5fa08f30c37b64086"/></dir><file name="Status.php" hash="3e1d737e4f8cef4b6a591240efdafd83"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Checkuncheck.php" hash="a232182e727d089f1a730d1e0bb05996"/><file name="Disablefield.php" hash="d5a2192f21d68175ed7375f3a6e7f85a"/><file name="Formatdate.php" hash="7e3eeae0c5a8ebba85ed501ef513b192"/><file name="Optionaddfield.php" hash="3b9cf9f6a67931b7d56c21c9e8cb48b3"/><file name="Optionhidefield.php" hash="847e6415e5d037ae3b3572e1df28f347"/><file name="Pagelayout.php" hash="676dd09a7aad20c0e3cfdb74e9f7f87f"/><dir name="Payment"><file name="Allowedmethods.php" hash="ea276b37bfdf6bcdbc302a76df966523"/></dir><dir name="Shipping"><file name="Allowedmethods.php" hash="801e98156ee12fd5fa08f30c37b64086"/></dir><file name="Subscribenewletter.php" hash="48dd4e572839e532e5321854bdd07750"/><dir name="form"><file name="Createfield.php" hash="6cc825f91bc3f787b7a84e5369422f39"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="OnestepcheckoutController.php" hash="260a95696953ed372ed3d22ab52e7c85"/></dir><file name="IndexController.php" hash="b27320c1411d103bfa2616f4825de62b"/><file name="TestController.php" hash="b7814c4a88338b9e031f26274bd7d07a"/></dir><dir name="etc"><file name="config.xml" hash="a8cd520ee0f0b93c00a01d95951da4fa"/><file name="system.xml" hash="d6f72abeb349cb9753f30a1f84e1d5a1"/></dir><dir name="sql"><dir name="onestepcheckout_setup"><file name="mysql4-install-0.1.0.php" hash="0bcce57d95b0c63e8efb86faad1d798c"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="6d20a03343747545eb10c276631114c8"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="o2ti_moip.xml" hash="6fb94710e848801bf227ba48ba5030d5"/><file name="o2ti_onestepcheckout.xml" hash="a901f57e619569a8cd6b35b4cb9576d1"/></dir><dir name="template"><dir name="O2TI"><dir name="cadastro"><dir name="customer"><dir name="form"><file name="edit.phtml" hash="1cdb3179dd883809bd7357409ca0a5d0"/></dir></dir><dir name="persistent"><dir name="checkout"><dir name="onepage"><file name="billing.phtml" hash="5fc8ba027dfb92482c1a85d88e211cda"/></dir></dir><dir name="customer"><dir name="form"><file name="register.phtml" hash="08b5b692abfce0e689d243c3478de77e"/></dir></dir></dir></dir><dir name="moip"><file name="Novaforma.phtml" hash="49d046daa42bae37c1c5e80ff88c3e0d"/><file name="boleto.phtml" hash="9667a8ec9a4456be9a38c71ae70d2ad5"/><file name="cartao.phtml" hash="f51236967fdc8f086bf708f9e1cc86b3"/><file name="emptyupdate.phtml" hash="8625e958f0e2dd1138721b8518c8069a"/><file name="form.phtml" hash="97159f0fb40753ded7c032dfba582762"/><file name="horizontal_form.phtml" hash="41ddf8a11071c36e026fd989ca884178"/><file name="info.phtml" hash="13a80155eccc99e762b57c14a6634815"/><file name="layout_boleto.phtml" hash="6a609b4bc4bbbb610f151266983c06e1"/><file name="redirect.phtml" hash="1d302d419b7855d702b5f04078062024"/><file name="refaz.phtml" hash="61375f1a1f052fa29100cae10623fd85"/><file name="transferencia.phtml" hash="efc376926a603a9884a9ef615de726e2"/><file name="vertical_form.phtml" hash="568b9c25a3f3f975c3f352aafd32bef0"/></dir><dir name="onestepcheckout"><dir name="daskboard"><dir name="onepage"><file name="agreements.phtml" hash="5b762aa76287b160fcbec8fed8b789e8"/><dir name="billing"><file name="billing_form.phtml" hash="ed0bd9061c1cb449e25cd694b18b1b6e"/></dir><file name="billing.phtml" hash="3ace016f656dd99a2f18b35ec13740a5"/><file name="correio.phtml" hash="461b88fcbf6adffc4f23c5905932bafa"/><file name="coupon.phtml" hash="7e3ffcc7e51d78c7607d91bc40ed68db"/><file name="forgotpassword.phtml" hash="2fb80e3ec1a8151dde497743b149c6e9"/><file name="local.xml" hash="08c7ce351c502056fb9ee3a14a9b065a"/><file name="login.phtml" hash="e0f06114449d9fa635ff6d2ad7928f2e"/><dir name="payment"><file name="methods.phtml" hash="d6fc964f422d4c4fc75f0605d58e004c"/></dir><file name="payment.phtml" hash="3501af6f3b4c108f11bc2bc6d58a9d87"/><dir name="review"><file name="button.phtml" hash="4d5c7c5a2d70f85ec324e79c7e81946b"/><file name="info.phtml" hash="68556313d6d0943c153d69ebd00c8c4b"/><file name="item.phtml" hash="af2406220da6cd44940a672e2771f902"/><dir name="options"><file name="additional.phtml" hash="724b44c70421d206a77f72c2c151cf40"/></dir><file name="options.phtml" hash="c0281a5dc15905296ac8e93a9d13071b"/><file name="totals.phtml" hash="6e857d144768ed8faa0be977b547b32f"/></dir><file name="review.phtml" hash="763347e2b03553d1bf791b3c6df093a3"/><dir name="shipping"><file name="shipping_form.phtml" hash="87bf26552fb0c331c012a2b40c7ce059"/></dir><file name="shipping.phtml" hash="69f97ed0e0eb2e391b1e761bb8b1ffc7"/><dir name="shipping_method"><file name="available.phtml" hash="f0eb7caf698a2dddf1895b5211167467"/></dir><file name="shipping_method.phtml" hash="58c56da9e30df17c997e08e20e32a8ee"/></dir></dir><file name="daskboard.phtml" hash="00048895035f6177c28ddf3b3c1ba589"/><file name="emptyupdate.phtml" hash="7bf34446254428a5c42740731127b435"/><file name="onepage.phtml" hash="149f7077a5a959968afc0da9a0d952db"/><dir name="sales"><dir name="order"><dir name="info"><file name="customermessages.phtml" hash="1d783fb503426ca094f02525dd1a827b"/><file name="customermessages.phtml~" hash="aa6199bb564edbf6d950fa154b624c02"/><file name="deliverydate.phtml" hash="24d4d3fafafca91bb44b2159695c24bc"/><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><dir name="customer"><dir><dir name="widget"><file name="dob.phtml" hash="7ac1cc016c90251d0c423d7347e9d715"/><file name="taxvat.phtml" hash="67333f779d3c7503209ce057a3b44c34"/></dir></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="O2TI"><dir name="moip"><file name="form.phtml" hash="e381151a9b66f0fdc6cd74d019cefb5e"/><file name="info.phtml" hash="4517c05488d791fec96b8c882f10bfbc"/><file name="redirect.phtml" hash="a928915ad38266f0ca462a6e434cbb77"/></dir><dir name="onestepcheckout"><dir name="sales"><dir name="order"><dir name="view"><dir name="tab"><dir name="info"><file name="Customermessages.phtml" hash="bfaea7d5c4300ae8c73c31f3472c5a14"/><file name="Deliverydate.phtml" hash="b5040d3cb30cc31c0c63bfaa81d3c7ac"/></dir><file name="info.phtml" hash="1b6b38d40668d878487f1710a28c1e69"/></dir></dir></dir></dir></dir><dir name="pagseguro"><file name="form.phtml" hash="e381151a9b66f0fdc6cd74d019cefb5e"/><file name="info.phtml" hash="4517c05488d791fec96b8c882f10bfbc"/><file name="redirect.phtml" hash="a928915ad38266f0ca462a6e434cbb77"/></dir><dir name="sales"><dir name="order"><dir name="view"><file name="info.phtml" hash="c6aa8255f5c494857c557a21a59e3367"/></dir></dir></dir></dir></dir><dir name="layout"><file name="o2ti_onestepcheckout.xml" hash="b601985811c14292e18b3e242ac6cc93"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="O2TI_All.xml" hash="0112972a847c93755903dd13239eae1f"/><file name="O2TI_Moip.xml" hash="e2cef22a0e5c667be681851c03dbffd4"/><file name="O2TI_Onestepcheckout.xml" hash="dbcbe66be4612fd2942b6f6847b834c9"/></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="O2TI_Onestepcheckout.csv" hash="4bff2b6a4c9e13f8d9ea2a287c10c85f"/><dir name="template"><dir name="email"><file name="statusmail_cancelado_o2ti.html" hash="867805dc1d9ecd61f96e1134cdacecf1"/><file name="statusmail_cancelado_o2ti.html~" hash="cb69a0a0e730655677332354bf3dd4a2"/></dir></dir></dir><dir name="pt_BR"><file name="O2TI_Onestepcheckout.csv" hash="4bff2b6a4c9e13f8d9ea2a287c10c85f"/><dir name="template"><dir name="email"><file name="statusmail_cancelado_o2ti.html" hash="867805dc1d9ecd61f96e1134cdacecf1"/><file name="statusmail_cancelado_o2ti.html~" hash="cb69a0a0e730655677332354bf3dd4a2"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="O2TI"><dir name="moip"><dir name="css"><file name="bootstrap.css" hash="39f61bb34cd4c8ae95a771d2593ccfc3"/><file name="formulario.css" hash="cfd9fefe3e825e38bf55856e99fb11f1"/><file name="formulario_horizontal.css" hash="3ebe4fefb3bdcea345187d043f71e843"/><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 name="onestepcheckout"><dir name="css"><file name="960grid_onestepcheckout.css" hash="0c8bb8b5a5519baf105c81be27fb8213"/><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="cc35aa3ea29cb379c994b32050f313b6"/><file name="onestepcheckout.css" hash="5b6f1f4b87e5f306a9937a470c0e4da2"/></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></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="O2TI"><dir name="moip"><dir name="css"><file name="bootstrap.css" hash="1899fb29f3f5bdeeaecd6d16485614e6"/><file name="formulario.css" hash="54920765fd12d894d8db2fbcdb3e62d5"/><file name="prettify.css" hash="ff466c83ef659614e43b38735456e67b"/></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="f99320f749bda4f07e6bc9b43d4d98ad"/><file name="abacartao.png" hash="b9a2891519c51bb19ac1647dd5640be3"/><file name="abatransf.png" hash="86de71f37be51f0f19838c8952dd34b5"/><file name="ajax-loader.gif" hash="57ca1a2085d82f0574e3ef740b9a5ead"/><file name="bb.png" hash="572914d1e4b635dc56cd507c6c46b023"/><file name="boleto.png" hash="fe1b591868a937c40e1a095b1313e3ed"/><file name="codigo-seguranca.png" hash="03f97c4205ab539ba49ef83017e8ec94"/><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="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="3defbbdc7b3d5ca86d76643260182320"/><file name="pedroteixeira_correios_40096.gif" hash="33cd0845f40648cf0584b13fa65c942a"/><file name="pedroteixeira_correios_41068.gif" hash="f317b7dff693b6598c78829c1592b2b7"/><file name="pedroteixeira_correios_41106.gif" hash="f317b7dff693b6598c78829c1592b2b7"/><file name="pedroteixeira_correios_81019.gif" hash="3defbbdc7b3d5ca86d76643260182320"/></dir></dir></dir></dir></dir></dir></target><target name="magemedia"><dir name="O2TI"><dir name="all"><file name="logo.png" hash="c08692c7e53617ad2a6d5f1449d04e96"/></dir></dir></target><target name="mageweb"><dir name="js"><dir name="O2TI"><file name="jquery.js" hash="f8e2833ce2f57ec673b178be7eefbd82"/><file name="jquery_noconflict.js" hash="afdd9b4ecb226d898fe655136f849752"/><dir name="moip"><file name="bootstrap-modal.js" hash="3a3af727bfc923a064aad1b02681ffce"/><file name="bootstrap.min.js" hash="5eb1cb055ddcf2f7b2b662f73f56cf1f"/><file name="checkout.js" hash="27c351b3b8b9a88da68bb8b18ea809ee"/></dir><file name="novamascara.js" hash="b9e977ef39649ce38245bb62a855551b"/><dir name="onestepcheckout"><file name="billing.js" hash="9f72ed92f8f51401ebc2fe98395c6af0"/><file name="change-events.js" hash="5f2255559e09fc56f24c72acd80e70b7"/><file name="jquery.fancybox-1.3.1.js" hash="9a060de18420a5bbe26cfa42b8470323"/><file name="shipping.js" hash="d9045d07a8adddeaddf25a757e86cf44"/></dir><file name="validacao.js" hash="73cb3aaf10be38fda611e8cff9abd550"/></dir></dir><dir name="."><file name="MOIP_README.md" hash="4dfe78832a2ea8f2f065cd150c846658"/><file name="MOIP_SQL_MANUAL_INSTALATION.txt" hash="57eca9f3b60792f0e4925ff14b8eba0e"/></dir></target></contents>
40
  <compatible/>
41
- <dependencies><required><php><min>4.0.0</min><max>5.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>
42
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>o2ti_moip</name>
4
+ <version>1.2.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://o2ti.com/licensa_checkout_moip.txt">Free to use with MoIP</license>
7
  <channel>community</channel>
31
  Multi store split rates&#xD;
32
  Store terms and conditions (Mandatory in all stores following the federal law (http://legislacao.planalto.gov.br/legisla/legislacao.nsf/Viw_Identificacao/DEC%207.962-2013?OpenDocument) N&#xBA; 7.962, DE 15 DE MAR&#xC7;O DE 2013&lt;/a&gt;)&#xD;
33
  &lt;/ul&gt;</description>
34
+ <notes>Altera&#xE7;&#xE3;o M&#xE9;todo de Parcelamento.</notes>
 
35
  <authors><author><name>O2TI</name><user>o2ti</user><email>contato@o2ti.com</email></author></authors>
36
+ <date>2014-05-07</date>
37
+ <time>20:58:48</time>
38
+ <contents><target name="magelocal"><dir name="O2TI"><dir name="All"><dir name="Helper"><file name="Data.php" hash="5cfce5f56526da7a17ac2e402b39dd6e"/></dir><dir name="etc"><file name="config.xml" hash="b4343acf6c3f25bb750a287f0b4fa7fc"/><file name="system.xml" hash="9bad1e5078f470994567ce7a68d71688"/></dir></dir><dir name="Moip"><dir name="Block"><dir name="Adminhtml"><dir name="moip"><dir name="Info"><file name="Customermessages.php" hash="bf0e3f76f8ab4dde138a4125fe2fb07c"/><file name="Info.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></dir><file name="Info.php" hash="d84423f0698fb9e0185c78fd85817615"/><dir name="Standard"><file name="Form.php" hash="ff37592febf562132a7deb9e49af2076"/><file name="Info.php" hash="a1826c09d72b4310573cae391b8a0f06"/><file name="Novaforma.php" hash="9dfbce5025124bd7e80f7ac23386aa1a"/><file name="Redirect.php" hash="35f4c74dd1c6669dde8be302ae17d4fb"/></dir></dir><dir name="Helper"><file name="Data.php" hash="36af3c64c424820d5e6124528959d296"/></dir><dir name="Model"><file name="Api.php" hash="e028c7b936f62d02f06a468611e2f6bb"/><dir name="Mysql4"><file name="Collection.php" hash="9e0195a71bb5a5cd959992a6cec97667"/><file name="Write.php" hash="056d78bdbbb7a9e466b62d78015a8ed5"/></dir><file name="Observer.php" hash="80db718dbfb7e493ad235e3bdf4d6baf"/><file name="Orders.php" hash="a6023047810e0652e9e6248d67704b44"/><dir name="Source"><file name="Ambiente.php" hash="439a9f70669af322f1de30937551a1f0"/><file name="FormasPagamento.php" hash="bfa5931fe39fc22841acc789e71e6e92"/><file name="Layout.php" hash="4cc1e4fb27e773ce93a1c6b9bc571158"/></dir><file name="Standard.php" hash="0ded87d9e2fc973f857d82ab89aa341d"/><file name="Write.php" hash="ac1d3e9ff033480cab6ea20af271fa91"/><file name=".ftpquota" hash="bd9db78914b33cca442f35848cc680b5"/></dir><dir name="controllers"><file name="IndexController.php" hash="1c46afa51975fee2e626df503cfc29c9"/><file name="StandardController.php" hash="4781e26379cef252a3fa99773e8b5a5a"/></dir><dir name="etc"><file name="adminhtml.xml" hash="75bde86c187ceb24042233abde0f88b0"/><file name="config.xml" hash="7a272a9db5fdf8259d64658afb3e2ce5"/><file name="system.xml" hash="368f88872fabe9ea7194a0e46031b65a"/></dir><dir name="sql"><dir name="moip_setup"><file name="mysql4-install-0.1.0.php" hash="bff338f70822b4af170073029558b511"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="5884870992a8ca883279bfaa8c8ec935"/><file name="mysql4-upgrade-0.1.0-0.2.1.php" hash="fce0926f7db51fe6e85d88e0efde968e"/><file name="mysql4-upgrade-0.2.1-0.2.2.php" hash="7e22a5f81d536e1b024e07d60df808d7"/><file name="mysql4-upgrade-0.2.1-0.2.3.php" hash="fce0926f7db51fe6e85d88e0efde968e"/><file name="mysql4-upgrade-0.2.1-0.2.4.php" hash="1c086af28077c23a374a63f0862a2cb7"/></dir></dir></dir><dir name="Onestepcheckout"><dir name="Block"><dir name="Adminhtml"><dir name="Form"><dir name="Renderer"><dir name="Config"><file name="Createfield.php" hash="bca92a144c0564105091fb78ec75a235"/></dir></dir></dir><dir name="Onestepcheckout"><dir name="Edit"><file name="Form.php" hash="011556489a4e2e987d622bbc193ca5db"/><dir name="Tab"><file name="Form.php" hash="786a5a8d580250f8ab5c9def49f197c4"/></dir><file name="Tabs.php" hash="3e49037ed0f2ba7d930e7675398a6fd6"/></dir><file name="Edit.php" hash="b4a2a6c99cea16750408cb5c89c97ad8"/><file name="Grid.php" hash="8aa5742a2357b1c632ef26ce2a71e217"/><dir name="Sales"><dir name="Order"><file name="Grid.php" hash="e23140dfc8b567ba7d957afeabee6643"/><dir name="View"><dir name="Tab"><dir name="Info"><file name="Customermessages.php" hash="bf0e3f76f8ab4dde138a4125fe2fb07c"/><file name="Deliverydate.php" hash="64ea9d43321c8b51d74621ee90916553"/></dir></dir></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Addtimerange.php" hash="08419845203bd4dd3421cdcab5cf241d"/></dir></dir></dir></dir></dir><file name="Onestepcheckout.php" hash="d0253394f7c3515fcc4ba81f34f192d4"/></dir><dir name="Checkout"><dir name="Onepage"><dir name="Billing"><file name="Sortbilling.php" hash="c92c36496e94fd9dc6da3aa8e53dda86"/></dir><file name="Billing.php" hash="ef4f0f010d7e288c6664002060fa5b8a"/><dir name="Review"><file name="Options.php" hash="67b005f43191b0be294d4ecf50c37485"/></dir><dir name="Shipping"><file name="Sortshipping.php" hash="9af5fa1281bf34c37e4c92fb40a4873c"/></dir><file name="Shipping.php" hash="a56afd3502132baab34c4a9419aa7e3c"/><dir name="Shippingmethod"><file name="Deliverydate.php" hash="36ba92c13f59f21c33902ea1146d6cdc"/></dir></dir><file name="Top.php" hash="70e323dbbb57a29579c13412a8a2443f"/></dir><file name="Onestepcheckout.php" hash="e8b954f14acebf579bb0910813e899e4"/><dir name="Sales"><dir name="Info"><file name="Customermessages.php" hash="6666cedaeb9597e0c5f90cf7cc2934ae"/><file name="Deliverydate.php" hash="225859a718283767ca44b1ddccfd4bfb"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="fb1897f58ca16ce27184dc0790f0ecf2"/></dir><dir name="Model"><dir name="Customer"><file name="Customer.php" hash="b1b26b8e170bd4ed90b27fb9fcea8481"/></dir><dir name="Entity"><file name="Tipopessoa.php" hash="af14c8d054fe25c7f8cef5f89fcb65da"/></dir><dir name="Mysql4"><dir name="Onestepcheckout"><file name="Collection.php" hash="13781c0c51fcde3c6afc4f31054a6e03"/></dir><file name="Onestepcheckout.php" hash="5777de55ec60a045e86dc9de10f768bd"/></dir><file name="Observer.php" hash="75aeac65c1e5ffa22465b3a1d9c754c7"/><file name="Onestepcheckout.php" hash="3630794e4b1fda8229b82826e49a702f"/><dir name="Sales"><dir name="Quote"><file name="Address.php" hash="09cba85a351b58f16b4daba5be0d5595"/></dir></dir><dir name="Shipping"><file name="Allowedmethods.php" hash="801e98156ee12fd5fa08f30c37b64086"/></dir><file name="Status.php" hash="3e1d737e4f8cef4b6a591240efdafd83"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Checkuncheck.php" hash="a232182e727d089f1a730d1e0bb05996"/><file name="Disablefield.php" hash="d5a2192f21d68175ed7375f3a6e7f85a"/><file name="Formatdate.php" hash="7e3eeae0c5a8ebba85ed501ef513b192"/><file name="Optionaddfield.php" hash="3b9cf9f6a67931b7d56c21c9e8cb48b3"/><file name="Optionhidefield.php" hash="847e6415e5d037ae3b3572e1df28f347"/><file name="Pagelayout.php" hash="676dd09a7aad20c0e3cfdb74e9f7f87f"/><dir name="Payment"><file name="Allowedmethods.php" hash="ea276b37bfdf6bcdbc302a76df966523"/></dir><dir name="Shipping"><file name="Allowedmethods.php" hash="801e98156ee12fd5fa08f30c37b64086"/></dir><file name="Subscribenewletter.php" hash="48dd4e572839e532e5321854bdd07750"/><dir name="form"><file name="Createfield.php" hash="6cc825f91bc3f787b7a84e5369422f39"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="OnestepcheckoutController.php" hash="260a95696953ed372ed3d22ab52e7c85"/></dir><file name="IndexController.php" hash="4a0f95dad0b83a513d547f11e9745145"/><file name="TestController.php" hash="b7814c4a88338b9e031f26274bd7d07a"/></dir><dir name="etc"><file name="config.xml" hash="d90a7d8420ec40b5440b7e011899a21f"/><file name="system.xml" hash="6819d39789d5c6d05c505b65dc0b0408"/></dir><dir name="sql"><dir name="onestepcheckout_setup"><file name="mysql4-install-0.1.0.php" hash="0bcce57d95b0c63e8efb86faad1d798c"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="6d20a03343747545eb10c276631114c8"/></dir></dir></dir><file name=".DS_Store" hash="15bd3b937c85e0f1c2cc079dcd2daa34"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="o2ti_moip.xml" hash="6fb94710e848801bf227ba48ba5030d5"/><file name="o2ti_onestepcheckout.xml" hash="a901f57e619569a8cd6b35b4cb9576d1"/></dir><dir name="template"><dir name="O2TI"><dir name="customer"><dir name="widget"><file name="dob.phtml" hash="7ac1cc016c90251d0c423d7347e9d715"/><file name="taxvat.phtml" hash="67333f779d3c7503209ce057a3b44c34"/></dir></dir><dir name="moip"><file name="Novaforma.phtml" hash="49d046daa42bae37c1c5e80ff88c3e0d"/><file name="boleto.phtml" hash="2834f00d5b5324532790905cec5a5c5f"/><file name="cartao.phtml" hash="43de28625950fa9e7f56dd6ec569acbc"/><file name="emptyupdate.phtml" hash="8625e958f0e2dd1138721b8518c8069a"/><file name="form.phtml" hash="97159f0fb40753ded7c032dfba582762"/><file name="horizontal_form.phtml" hash="b8591aa3c2448665afab4e8b2db53c15"/><file name="info.phtml" hash="d5a9aaacf11e359cb931e0c49939fe77"/><file name="layout_boleto.phtml" hash="6a609b4bc4bbbb610f151266983c06e1"/><file name="redirect.phtml" hash="4a778e5e9f9b391182cca210239cb18a"/><file name="refaz.phtml" hash="d81b71e6cc5ac3a96bce04f60cc8d917"/><file name="transferencia.phtml" hash="cac932b753a2043441fd4a3509954d12"/><file name="vertical_form.phtml" hash="1575ac512a92646d429775e17b04d04c"/></dir><dir name="onestepcheckout"><dir name="daskboard"><dir name="onepage"><file name="agreements.phtml" hash="5b762aa76287b160fcbec8fed8b789e8"/><dir name="billing"><file name="billing_form.phtml" hash="d52fff67bb16e7aa0efde252acbf1708"/></dir><file name="billing.phtml" hash="7c2b962993ef989bfefb990444e381ac"/><file name="correio.phtml" hash="461b88fcbf6adffc4f23c5905932bafa"/><file name="coupon.phtml" hash="bc05962850ba33929ea44f5d90e3b179"/><file name="forgotpassword.phtml" hash="314947b27b30957a9e55f36ac456399e"/><file name="local.xml" hash="08c7ce351c502056fb9ee3a14a9b065a"/><file name="login.phtml" hash="4376994fc399bf2e293422c5d53a04eb"/><dir name="payment"><file name="methods.phtml" hash="b3d73a82dd363b403ef3a87cbddc7141"/></dir><file name="payment.phtml" hash="3501af6f3b4c108f11bc2bc6d58a9d87"/><dir name="review"><file name="button.phtml" hash="4d5c7c5a2d70f85ec324e79c7e81946b"/><file name="info.phtml" hash="68556313d6d0943c153d69ebd00c8c4b"/><file name="item.phtml" hash="af2406220da6cd44940a672e2771f902"/><dir name="options"><file name="additional.phtml" hash="724b44c70421d206a77f72c2c151cf40"/></dir><file name="options.phtml" hash="c0281a5dc15905296ac8e93a9d13071b"/><file name="totals.phtml" hash="6e857d144768ed8faa0be977b547b32f"/></dir><file name="review.phtml" hash="763347e2b03553d1bf791b3c6df093a3"/><dir name="shipping"><file name="shipping_form.phtml" hash="87bf26552fb0c331c012a2b40c7ce059"/></dir><file name="shipping.phtml" hash="4d41bd5359f0922f12122cfdd2f87a0b"/><dir name="shipping_method"><file name="available.phtml" hash="c8f60e3c2dbe58cce077863141f6de49"/></dir><file name="shipping_method.phtml" hash="58c56da9e30df17c997e08e20e32a8ee"/></dir></dir><file name="daskboard.phtml" hash="d8a2f328b3a93cbcdaf258fd6e27c90d"/><file name="emptyupdate.phtml" hash="7bf34446254428a5c42740731127b435"/><file name="onepage.phtml" hash="149f7077a5a959968afc0da9a0d952db"/><dir name="sales"><dir name="order"><dir name="info"><file name="customermessages.phtml" hash="1d783fb503426ca094f02525dd1a827b"/><file name="customermessages.phtml~" hash="aa6199bb564edbf6d950fa154b624c02"/><file name="deliverydate.phtml" hash="24d4d3fafafca91bb44b2159695c24bc"/><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></dir></dir></dir><dir name="default"><dir name="default"><dir name="template"><dir name="customer"><dir name="widget"><file name="dob.phtml" hash="7ac1cc016c90251d0c423d7347e9d715"/><file name="taxvat.phtml" hash="67333f779d3c7503209ce057a3b44c34"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="O2TI"><dir name="moip"><file name="form.phtml" hash="e381151a9b66f0fdc6cd74d019cefb5e"/><file name="info.phtml" hash="741e3ead95eeb64d9a3545b30ddff304"/><file name="redirect.phtml" hash="a928915ad38266f0ca462a6e434cbb77"/></dir><dir name="onestepcheckout"><dir name="sales"><dir name="order"><dir name="view"><dir name="tab"><dir name="info"><file name="Customermessages.phtml" hash="bfaea7d5c4300ae8c73c31f3472c5a14"/><file name="Deliverydate.phtml" hash="b5040d3cb30cc31c0c63bfaa81d3c7ac"/></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></dir><dir name="layout"><file name="o2ti_onestepcheckout.xml" hash="b601985811c14292e18b3e242ac6cc93"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="O2TI_All.xml" hash="0112972a847c93755903dd13239eae1f"/><file name="O2TI_Moip.xml" hash="e2cef22a0e5c667be681851c03dbffd4"/><file name="O2TI_Onestepcheckout.xml" hash="dbcbe66be4612fd2942b6f6847b834c9"/></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="O2TI_Onestepcheckout.csv" hash="4bff2b6a4c9e13f8d9ea2a287c10c85f"/><dir name="template"><dir name="email"><file name="statusmail_cancelado_o2ti.html" hash="867805dc1d9ecd61f96e1134cdacecf1"/><file name="statusmail_cancelado_o2ti.html~" hash="cb69a0a0e730655677332354bf3dd4a2"/></dir></dir></dir><dir name="pt_BR"><file name="O2TI_Onestepcheckout.csv" hash="4bff2b6a4c9e13f8d9ea2a287c10c85f"/><dir name="template"><dir name="email"><file name="statusmail_cancelado_o2ti.html" hash="867805dc1d9ecd61f96e1134cdacecf1"/><file name="statusmail_cancelado_o2ti.html~" hash="cb69a0a0e730655677332354bf3dd4a2"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="O2TI"><dir name="moip"><dir name="css"><file name="bootstrap.css" hash="39f61bb34cd4c8ae95a771d2593ccfc3"/><file name="formulario.css" hash="cfd9fefe3e825e38bf55856e99fb11f1"/><file name="formulario_horizontal.css" hash="3ebe4fefb3bdcea345187d043f71e843"/><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 name="onestepcheckout"><dir name="css"><file name="960grid_onestepcheckout.css" hash="0c8bb8b5a5519baf105c81be27fb8213"/><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="cc35aa3ea29cb379c994b32050f313b6"/><file name="onestepcheckout.css" hash="5b6f1f4b87e5f306a9937a470c0e4da2"/></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></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="O2TI"><dir name="moip"><dir name="css"><file name="bootstrap.css" hash="39f61bb34cd4c8ae95a771d2593ccfc3"/><file name="formulario.css" hash="cfd9fefe3e825e38bf55856e99fb11f1"/><file name="formulario_horizontal.css" hash="3ebe4fefb3bdcea345187d043f71e843"/><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 name="onestepcheckout"><dir name="css"><file name="960grid_onestepcheckout.css" hash="0c8bb8b5a5519baf105c81be27fb8213"/><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="cc35aa3ea29cb379c994b32050f313b6"/><file name="onestepcheckout.css" hash="5b6f1f4b87e5f306a9937a470c0e4da2"/></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></dir></dir></dir></target><target name="magemedia"><dir name="O2TI"><dir name="all"><file name="logo.png" hash="c08692c7e53617ad2a6d5f1449d04e96"/></dir></dir></target><target name="mageweb"><dir name="js"><dir name="O2TI"><file name="jquery.js" hash="f8e2833ce2f57ec673b178be7eefbd82"/><file name="jquery_noconflict.js" hash="afdd9b4ecb226d898fe655136f849752"/><dir name="moip"><file name="bootstrap-modal.js" hash="3a3af727bfc923a064aad1b02681ffce"/><file name="bootstrap.min.js" hash="5eb1cb055ddcf2f7b2b662f73f56cf1f"/><file name="checkout.js" hash="27c351b3b8b9a88da68bb8b18ea809ee"/></dir><file name="novamascara.js" hash="b9e977ef39649ce38245bb62a855551b"/><dir name="onestepcheckout"><file name="billing.js" hash="9f72ed92f8f51401ebc2fe98395c6af0"/><file name="change-events.js" hash="d5fc9375f13242a6a82717cc02c45b77"/><file name="jquery.fancybox-1.3.1.js" hash="9a060de18420a5bbe26cfa42b8470323"/><file name="shipping.js" hash="d9045d07a8adddeaddf25a757e86cf44"/></dir><file name="validacao.js" hash="73cb3aaf10be38fda611e8cff9abd550"/></dir></dir><dir name="."><file name="MOIP_README.md" hash="4dfe78832a2ea8f2f065cd150c846658"/><file name="MOIP_SQL_MANUAL_INSTALATION.txt" hash="57eca9f3b60792f0e4925ff14b8eba0e"/></dir></target></contents>
39
  <compatible/>
40
+ <dependencies><required><php><min>4.0.0</min><max>15.5.5</max></php><extension><name>openssl</name><min>1</min><max>1</max></extension><extension><name>PDO</name><min>1</min><max>1</max></extension><extension><name>mcrypt</name><min>1</min><max>1</max></extension></required></dependencies>
41
  </package>
skin/adminhtml/default/default/O2TI/moip/css/bootstrap.css CHANGED
@@ -1,20 +1,18 @@
1
- .modal-open .dropdown-menu {z-index: 2050;}
2
- .modal-open .dropdown.open {*z-index: 2050;}
3
- .modal-open .popover {z-index: 2060;}
4
- .modal-open .tooltip {z-index: 2070;}
5
- .modal-backdrop {position: fixed;top: 0;right: 0;bottom: 0;left: 0;z-index: 1040;background-color: #000000;}
6
  .modal-backdrop.fade {opacity: 0;}
7
  .modal-backdrop, .modal-backdrop.fade.in {opacity: 0.8;filter: alpha(opacity=80);}
8
- .modal {position: fixed;top: 50%;left: 45%;z-index: 1050;overflow: auto;width: 700px;margin: -250px 0 0 -280px;background-color: #ffffff;border: 1px solid #999;border: 1px solid rgba(0, 0, 0, 0.3);*border: 1px solid #999;/* IE6-7 */-webkit-border-radius: 6px;-moz-border-radius: 6px;border-radius: 6px;-webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);-moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); -webkit-background-clip: padding-box;-moz-background-clip: padding-box;background-clip: padding-box;}
9
- .modal.fade {-webkit-transition: opacity .3s linear, top .3s ease-out;-moz-transition: opacity .3s linear, top .3s ease-out;-ms-transition: opacity .3s linear, top .3s ease-out;-o-transition: opacity .3s linear, top .3s ease-out;transition: opacity .3s linear, top .3s ease-out;top: -25%;
10
- }
11
  .modal.fade.in {top: 50%;}
12
  .modal-header {padding: 9px 15px;border-bottom: 1px solid #eee;}
13
  .modal-header .close {margin-top: 2px;float: right;padding: 5px;}
14
  .modal-body {overflow-y: auto;max-height: 400px;padding: 15px;}
15
  .modal-form {margin-bottom: 0;}
16
- .modal-footer {padding: 14px 15px 15px; margin-bottom: 0; text-align: right; background-color: #f5f5f5; border-top: 1px solid #ddd; -webkitborder-radius: 0 0 6px 6px; -moz-border-radius: 0 0 6px 6px; border-radius: 0 0 6px 6px; -webkit-box-shadow: inset 0 1px 0 #ffffff;
17
- -moz-box-shadow: inset 0 1px 0 #ffffff; box-shadow: inset 0 1px 0 #ffffff; *zoom: 1;}
18
  .modal-footer:before,.modal-footer:after { display: table; content: "";}
19
  .modal-footer:after { clear: both;}
20
  .modal-footer .btn + .btn { margin-left: 5px; margin-bottom: 0;}
@@ -35,3 +33,57 @@
35
  .repay-form li > label{display: block; width: 110px;float: left;text-align:right; padding-right:5px}
36
  .repay-form li > div{float: left;margin-right: 5px;margin-bottom: 5px}
37
  .repay-form li > div label{display: block; float:left;padding-right: 11px}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .modal-open .dropdown-menu {z-index: 20500;}
2
+ .modal-open .dropdown.open {*z-index: 20500;}
3
+ .modal-open .popover {z-index: 20600;}
4
+ .modal-open .tooltip {z-index: 20700;}
5
+ .modal-backdrop {position: fixed;top: 0;right: 0;bottom: 0;left: 0;z-index: 10400;background-color: #000000;}
6
  .modal-backdrop.fade {opacity: 0;}
7
  .modal-backdrop, .modal-backdrop.fade.in {opacity: 0.8;filter: alpha(opacity=80);}
8
+ .modal {position: fixed;top: 50%;left: 45%;z-index: 10500;overflow: auto;width: 700px;margin: -250px 0 0 -280px;background-color: #ffffff;border: 1px solid #999;border: 1px solid rgba(0, 0, 0, 0.3);*border: 1px solid #999;/* IE6-7 */-webkit-border-radius: 6px;-moz-border-radius: 6px;border-radius: 6px;-webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);-moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); -webkit-background-clip: padding-box;-moz-background-clip: padding-box;background-clip: padding-box;}
9
+ .modal.fade {-webkit-transition: opacity .3s linear, top .3s ease-out;-moz-transition: opacity .3s linear, top .3s ease-out;-ms-transition: opacity .3s linear, top .3s ease-out;-o-transition: opacity .3s linear, top .3s ease-out;transition: opacity .3s linear, top .3s ease-out;top: -25%;}
 
10
  .modal.fade.in {top: 50%;}
11
  .modal-header {padding: 9px 15px;border-bottom: 1px solid #eee;}
12
  .modal-header .close {margin-top: 2px;float: right;padding: 5px;}
13
  .modal-body {overflow-y: auto;max-height: 400px;padding: 15px;}
14
  .modal-form {margin-bottom: 0;}
15
+ .modal-footer {padding: 14px 15px 15px; margin-bottom: 0; text-align: right; background-color: #f5f5f5; border-top: 1px solid #ddd; -webkitborder-radius: 0 0 6px 6px; -moz-border-radius: 0 0 6px 6px; border-radius: 0 0 6px 6px; -webkit-box-shadow: inset 0 1px 0 #ffffff;-moz-box-shadow: inset 0 1px 0 #ffffff; box-shadow: inset 0 1px 0 #ffffff; *zoom: 1;}
 
16
  .modal-footer:before,.modal-footer:after { display: table; content: "";}
17
  .modal-footer:after { clear: both;}
18
  .modal-footer .btn + .btn { margin-left: 5px; margin-bottom: 0;}
33
  .repay-form li > label{display: block; width: 110px;float: left;text-align:right; padding-right:5px}
34
  .repay-form li > div{float: left;margin-right: 5px;margin-bottom: 5px}
35
  .repay-form li > div label{display: block; float:left;padding-right: 11px}
36
+
37
+ /* layout */
38
+ .row{width:100%;display:block;clear:both;float: left;}
39
+ .col-md-6{width: 48.5%;float:left;display: block;clear: none;margin-left:3%}
40
+ .row .col-md-6:first-child{margin:0;}
41
+
42
+ .col-md-6 h1, .col-md-6 h2, .col-md-6 h3{color:#333;}
43
+ .col-md-6 h4{color:#666;}
44
+ .corpo_moip.grid12-5 {
45
+ width: 44%;
46
+ float: left;
47
+ min-width: 250px;
48
+ }
49
+
50
+ .method-type{width: auto;clear:both;float:lefT;}
51
+ .method-type h3{font-size:12pt;margin-bottom:7px;}
52
+
53
+ .order-id-wrapper{margin:25px 0 10px 0;}
54
+ .order-id-wrapper h4{clear:both;color:#666;line-height:1.4;padding:10px 0;}
55
+ .order-id-wrapper p{clear:both;color:#666;line-height:1.4;padding:5px 0;}
56
+ .order-id-wrapper strong{font-weight:bold;}
57
+ .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;}
58
+
59
+ .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;}
60
+ .warning-block strong{font-weight:bold;}
61
+
62
+ .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 */}
63
+
64
+ .boleto-title{background:url(../imagem/boleto-icon.png) no-repeat 10px 10px;padding: 20px 0;padding-left:120px;}
65
+
66
+ .btn-moip{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 */}
67
+ .btn-moip img{position:absolute;left:-70px;top:-20px;}
68
+ .btn-boleto{padding: 15px 20px 15px 55px;border: 0;}
69
+ .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'}
70
+
71
+ .boleto-can-pay{font-size:12pt;color:#333;}
72
+ .boleto-can-pay strong{font-weight:bold;}
73
+ .boleto-can-pay h3{font-size:12pt;margin: 10px 0;}
74
+
75
+ .bank-title{background:url(../imagem/bank-title.png) no-repeat -5px -10px;padding: 20px 0;padding-left:130px;}
76
+ .btn-bank{padding: 20px 20px 20px 40px;}
77
+ .btn-bank img{top:-25px;}
78
+
79
+ .cc-title{background:url(../imagem/cc-title.png) no-repeat 0px -10px;padding: 45px 0;padding-left:140px;}
80
+ .cc-title h3{font-size:14pt;}
81
+ #refazercartao{float:left;width:auto;cleaR:both;background:#f0f0f0;padding: 20px;border-radius:10px;margin: 10px 0;box-shadow: inset 0 0 10px #000;}
82
+ #refazercartao h3{font-size:14pt;line-height:1.3;text-align:center;}
83
+ #refazercartao ul li h3{margin-top:20px;}
84
+ #refazercartao ul li label{color:#666}
85
+ #refazercartao .btn-moip{margin: 0 auto;float:none;margin-top:20px;}
86
+ #pgcartao{float:left;cleaR:both;margin-top:30px;}
87
+ #statusmoipadd{color:#666;font-size:11pt;line-height:1.3;}
88
+ #idmoip{color:#333;margin:10px 0;font-size:14pt;}
89
+ #idmoip:before{content:"Número da transação Moip: "}
skin/adminhtml/default/default/O2TI/moip/css/formulario.css CHANGED
@@ -1,29 +1,23 @@
1
- #icone img, #band img, #moip_debito_bandeiras img{width:50px;}
2
- #title {width:99%; float:left;background:#000; color:#fff;border-radius:3px 3px 0 0;font-size:12px;padding: 5px 0 5px 5px;}
3
- #subtitle { padding:5px 0 5px 5px;font-size:12px;}
4
- #icone {min-width:45px;width:21%; float:left;}
5
- #desc {width: 46%; float:left;}
6
- #desc2 {width:79%; float:left;}
7
- #desc h3, #valor h3 {font-size:11px;}
8
- #valor {width: 33%; float:left;}
9
- .desc {font-size:10px;}
10
- #bandeiras {min-width:45px;width:20%;min-height: 195px; float:left;}
11
- #linhaboleto, #linhaparcelas, #linhatransf { background: none repeat scroll 0 0 #F1F1F1; border-bottom: 1px solid #CCCCCC; cursor: pointer; float: left; padding-bottom: 5px; padding-left: 20px; padding-top: 5px; width: 91%;}
12
- #linhaboleto:hover, #linhaparcelas:hover, #linhatransf:hover {background:#fff}
13
- #conteudotransf, #linhacartao, #conteudoboleto{width:100%; float:left;display:none;border-bottom: 1px solid #CCCCCC; padding-top:10px; padding-bottom:10px}
14
- #payment_form_o2ti_moip_standard{margin: 0; width: 100%;list-style:none;}
15
- #payment_form_o2ti_moip_standard > label{display: block; clear: both;}
16
- .forma_pg {background: none repeat scroll 0 0 #FFFFFF;border-bottom: 1px solid #CCCCCC;cursor: pointer;float: left;left: 5px;padding-bottom: 5px;padding-top: 5px;position: relative;top: 28px;width: 5%;}
17
- #pf {diplay:none;}
18
- .tooltip {color: #000000; outline: none;cursor: help; text-decoration: none;position: relative;}
19
- .tooltip span {margin-left: -999em;position: absolute;padding: 10px;}
20
- .tooltip:hover span {border-radius: 5px 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; font-family: Calibri, Tahoma, Geneva, sans-serif;position: absolute; left: 1em; top: 2em; z-index: 99;margin-left: 0; width: 200px;}
21
- .tooltip:hover em {font-family: Candara, Tahoma, Geneva, sans-serif; font-size: 1.2em; font-weight: bold;display: block; padding: 0.2em 0 0.6em 0;}
22
- .help {background: #9FDAEE; border: 1px solid #2BB0D7;}
23
- .col-main dl { padding: 0px;}
24
- div#checkout-review-submit .buttons-set .btn-checkout {background-position: right 50%;height: 60px;padding-top: 1px;}
25
- #onestepcheckout_place_order_button {
26
- float: right;
27
- line-height: 25px;
28
- width: 203px;
29
- }
1
+ ul.form-list{clear:both;}
2
+ ul.form-list .wide > div.input-box > select{width: 100% !important;}
3
+ ul.form-list .wide.cc-cvv > div{display: block;float: left;}
4
+ ul.form-list .wide.cc-cvv > div.cc{width: 60% !important;}
5
+ ul.form-list .wide.cc-cvv > div.cvv{width: 20% !important;margin-left: 10% !important;}
6
+ ul.form-list .wide.cc-validade > div > select{width: 35% !important;margin-left: 5% !important;float: left;}
7
+ ul.form-list .wide.cc-validade > div > select#credito_expiracao_mes{margin: 0 !important;}
8
+
9
+ ul.form-list.dados-titular > li > label{clear: none !important; width: 105px;float: left !important;padding-top: 5px;}
10
+ ul.form-list.dados-titular > li > div{ width: 50% !important;clear: none !important; float: left;}
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: 100%; height: auto; clear: both; display: block;margin-bottom: 5px;}
14
+
15
+ .moip-payment-method-content{display: none;clear: both; width: 1005;}
16
+
17
+ ul.inline.input-switcher-4 > li{width: 23%}
18
+ ul.inline.input-switcher-5 > li{width: 18%}
19
+
20
+ .tooltip-moip-handler{position: relative !important;}
21
+ .tooltip-moip{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-moip-handler:hover .tooltip-moip{display: block;}
23
+ .span3.method-image > img {float: right;margin-right: 15px;margin-top: 25px;}
 
 
 
 
 
 
skin/{frontend → adminhtml}/default/default/O2TI/moip/css/formulario_horizontal.css RENAMED
File without changes
skin/adminhtml/default/default/O2TI/moip/css/prettify.css CHANGED
Binary file
skin/adminhtml/default/default/O2TI/moip/imagem/ababoleto.png CHANGED
Binary file
skin/adminhtml/default/default/O2TI/moip/imagem/abacartao.png CHANGED
Binary file
skin/adminhtml/default/default/O2TI/moip/imagem/abatransf.png CHANGED
Binary file
skin/{frontend/default/default/O2TI/moip/imagem → adminhtml/default/default/O2TI/moip/imagem/azul}/ababoleto.png RENAMED
File without changes
skin/{frontend/default/default/O2TI/moip/imagem → adminhtml/default/default/O2TI/moip/imagem/azul}/abacartao.png RENAMED
File without changes
skin/{frontend/default/default/O2TI/moip/imagem → adminhtml/default/default/O2TI/moip/imagem/azul}/abatransf.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/bank-icon.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/bank-title.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/boleto-icon.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/branco/ababoleto.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/branco/abacartao.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/branco/abatransf.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/branco/e-sedex.gif RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/branco/e-sedex.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/branco/pac.gif RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/branco/pac.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/branco/sedex.gif RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/branco/sedex.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/cc-title.png RENAMED
File without changes
skin/adminhtml/default/default/O2TI/moip/imagem/codigo-seguranca.png CHANGED
Binary file
skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/moipbanner2.png RENAMED
File without changes
skin/adminhtml/default/default/O2TI/moip/imagem/pedroteixeira_correios_40010.gif CHANGED
Binary file
skin/adminhtml/default/default/O2TI/moip/imagem/pedroteixeira_correios_40096.gif CHANGED
Binary file
skin/adminhtml/default/default/O2TI/moip/imagem/pedroteixeira_correios_41068.gif CHANGED
Binary file
skin/adminhtml/default/default/O2TI/moip/imagem/pedroteixeira_correios_41106.gif CHANGED
Binary file
skin/adminhtml/default/default/O2TI/moip/imagem/pedroteixeira_correios_81019.gif CHANGED
Binary file
skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/preto/ababoleto.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/preto/abacartao.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/preto/abatransf.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/printer.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/verde/ababoleto.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/verde/abacartao.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/verde/abatransf.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/vermelho/ababoleto.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/vermelho/abacartao.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/vermelho/abatransf.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/moip/imagem/warning.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/960grid_onestepcheckout.css RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/blank.gif RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_close.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_loading.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_nav_left.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_nav_right.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_overlay.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_shadow_e.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_shadow_n.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_shadow_ne.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_shadow_nw.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_shadow_s.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_shadow_se.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_shadow_sw.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_shadow_w.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_title_left.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_title_main.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_title_over.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancy_title_right.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancybox-x.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancybox-y.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/fancybox.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-bg_diagonals-thick_20_666666_40x40.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-bg_flat_10_000000_40x100.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-bg_glass_100_f6f6f6_1x400.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-bg_glass_100_fdf5ce_1x400.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-bg_glass_65_ffffff_1x400.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-bg_gloss-wave_35_000_500x100.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-icons_222222_256x240.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-icons_228ef1_256x240.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-icons_ef8c08_256x240.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-icons_ffd27a_256x240.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/images/ui-icons_ffffff_256x240.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/jquery.fancybox-1.3.1.css RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/css/onestepcheckout.css RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/01.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/02.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/03.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/04.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/05.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/2_clock.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/ajax-loader-tr.gif RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/bkg-giftmessage.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/bkg-step-review.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/bkg_form-search.gif RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/bkg_header.jpg RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/blank.gif RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/btn_checkout.gif RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/clock.gif RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/clock.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/demo-large_03.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/demo-large_04.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/demo-large_05.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/demo-large_051.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/demo-large_06.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/demo-large_07.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_close.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_loading.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_nav_left.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_nav_right.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_overlay.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_shadow_e.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_shadow_n.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_shadow_ne.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_shadow_nw.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_shadow_s.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_shadow_se.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_shadow_sw.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_shadow_w.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_title_left.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_title_main.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_title_over.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancy_title_right.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancybox-x.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancybox-y.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/fancybox.png RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/grid-cal.gif RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/line-gradient.gif RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/loja_segura.jpg RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/opc-ajax-loader.gif RENAMED
File without changes
skin/{frontend → adminhtml}/default/default/O2TI/onestepcheckout/images/validation_advice_bg.gif RENAMED
File without changes
skin/frontend/{default → base}/default/O2TI/moip/css/bootstrap.css RENAMED
File without changes
skin/frontend/{default → base}/default/O2TI/moip/css/formulario.css RENAMED
File without changes
skin/frontend/base/default/O2TI/moip/css/formulario_horizontal.css ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ul.form-list{clear:both;}
2
+ ul.form-list .wide > div.input-box > select{width: 100% !important;}
3
+ ul.form-list .wide.cc-cvv > div{display: block;float: left;}
4
+ ul.form-list .wide.cc-cvv > div.cc{width: 60% !important;}
5
+ ul.form-list .wide.cc-cvv > div.cvv{width: 20% !important;margin-left: 10% !important;}
6
+ ul.form-list .wide.cc-validade > div > select{width: 35% !important;margin-left: 5% !important;float: left;}
7
+ ul.form-list .wide.cc-validade > div > select#credito_expiracao_mes{margin: 0 !important;}
8
+
9
+ ul.form-list.dados-titular > li > label{clear: none !important; width: 105px;float: left !important;padding-top: 5px;}
10
+ ul.form-list.dados-titular > li > div{ width: 50% !important;clear: none !important; float: left;}
11
+
12
+ ul.inline{display: block;clear:both;max-width: 300px;}
13
+ ul.inline li{float: left;width: 100%;margin-right: 2%; text-align: center;}
14
+ ul.inline li img{width: 25%; height: auto;float: left; display: block; margin-bottom: 5px;}
15
+ ul.inline li.moip-payment-method-line img{margin-left: 10px;}
16
+
17
+ .moip-payment-method-content{display: none;clear: both; width: 1005;}
18
+
19
+ ul.inline.input-switcher-4 > li{width: 23%;float: left;text-align: center;}
20
+ ul.inline.input-switcher-5 > li{width: 18%;float: left;}
21
+ ul.inline.input-switcher-4 > li img{width: 100%;float: none;}
22
+ ul.inline.input-switcher-5 > li img{width: 100%;float: none;}
23
+
24
+ .tooltip-moip-handler{position: relative !important;}
25
+ .tooltip-moip{display: none;position: absolute; right: 0px;top: 100%;background: #cccccc;padding: 20px;border-radius: 10px;min-width: 245px;box-shadow: 0 0 10px #000;z-index:999;}
26
+ .tooltip-moip-handler:hover .tooltip-moip{display: block;}
27
+ .span3.method-image > img {float: right;width: 100%;}
28
+ #checkouto2ti > div {margin-right: 10px;clear: both;}
29
+ .chamada {float: left; font-weight: bold;}
30
+ .method-price-title {float: right;}
31
+ .resume {float: left;}
32
+
33
+ #moip-boleto > div{float: left;width:70%;}
34
+ #moip-boleto > div.method-image{width: 25%;margin-right:5%}
35
+ .moip-payment-method-content, .moip-payment-method-content p, .moip-payment-method-content div, .moip-payment-method-content *{text-align: left;}
36
+
37
+ .moip-payment-method-line > input{float: left;margin-top: 15px;}
38
+
39
+ li > .middle-method{margin-left: 10px; display:block; float: left;width: 45%;text-align: left;}
40
+ li > .method-price{float:left; display:block;width: 10%;margin-left:10px}
41
+
42
+ .moip-payment-method-content .form-list label{float:left !important;}
43
+
44
+ #formcli{clear: both;}
skin/frontend/{default → base}/default/O2TI/moip/css/prettify.css RENAMED
File without changes
skin/frontend/{default → base}/default/O2TI/moip/imagem/AmericanExpress.png RENAMED
File without changes
skin/frontend/{default → base}/default/O2TI/moip/imagem/BancoDoBrasil.png RENAMED
File without changes
skin/frontend/{default → base}/default/O2TI/moip/imagem/Banrisul.png RENAMED
File without changes
skin/frontend/{default → base}/default/O2TI/moip/imagem/Bradesco.png RENAMED
File without changes
skin/frontend/{default → base}/default/O2TI/moip/imagem/Diners.png RENAMED
File without changes
skin/frontend/{default → base}/default/O2TI/moip/imagem/Hipercard.png RENAMED
File without changes
skin/frontend/{default → base}/default/O2TI/moip/imagem/Itau.png RENAMED
File without changes
skin/frontend/{default → base}/default/O2TI/moip/imagem/Mastercard.png RENAMED
File without changes
skin/frontend/{default → base}/default/O2TI/moip/imagem/Visa.png RENAMED
File without changes
skin/frontend/{default/default/O2TI/moip/imagem/azul → base/default/O2TI/moip/imagem}/ababoleto.png RENAMED
File without changes
skin/frontend/{default/default/O2TI/moip/imagem/azul → base/default/O2TI/moip/imagem}/abacartao.png RENAMED
File without changes
skin/frontend/{default/default/O2TI/moip/imagem/azul → base/default/O2TI/moip/imagem}/abatransf.png RENAMED
File without changes
skin/frontend/{default → base}/default/O2TI/moip/imagem/ajax-loader.gif RENAMED
File without changes
skin/frontend/base/default/O2TI/moip/imagem/azul/ababoleto.png ADDED
Binary file
skin/frontend/base/default/O2TI/moip/imagem/azul/abacartao.png ADDED
Binary file
skin/frontend/base/default/O2TI/moip/imagem/azul/abatransf.png ADDED
Binary file
skin/frontend/base/default/O2TI/moip/imagem/bank-icon.png ADDED
Binary file
skin/frontend/base/default/O2TI/moip/imagem/bank-title.png ADDED
Binary file
skin/frontend/{default → base}/default/O2TI/moip/imagem/bb.png RENAMED
File without changes
skin/frontend/base/default/O2TI/moip/imagem/boleto-icon.png ADDED
Binary file
skin/frontend/{default → base}/default/O2TI/moip/imagem/boleto.png RENAMED
File without changes
skin/frontend/base/default/O2TI/moip/imagem/branco/ababoleto.png ADDED
Binary file
skin/frontend/base/default/O2TI/moip/imagem/branco/abacartao.png ADDED
Binary file
skin/frontend/base/default/O2TI/moip/imagem/branco/abatransf.png ADDED
Binary file
skin/frontend/{default/default/O2TI/moip/imagem/pedroteixeira_correios_40096.gif → base/default/O2TI/moip/imagem/branco/e-sedex.gif} RENAMED
File without changes
skin/frontend/base/default/O2TI/moip/imagem/branco/e-sedex.png ADDED
Binary file
skin/frontend/{default/default/O2TI/moip/imagem/pedroteixeira_correios_41068.gif → base/default/O2TI/moip/imagem/branco/pac.gif} RENAMED
File without changes
skin/frontend/base/default/O2TI/moip/imagem/branco/pac.png ADDED
Binary file
skin/frontend/{default/default/O2TI/moip/imagem/pedroteixeira_correios_81019.gif → base/default/O2TI/moip/imagem/branco/sedex.gif} RENAMED
File without changes
skin/frontend/base/default/O2TI/moip/imagem/branco/sedex.png ADDED
Binary file
skin/frontend/base/default/O2TI/moip/imagem/cc-title.png ADDED
Binary file
skin/frontend/{default → base}/default/O2TI/moip/imagem/codigo-seguranca.png RENAMED
File without changes
skin/frontend/{default → base}/default/O2TI/moip/imagem/flatrate_flatrate.gif RENAMED
File without changes
skin/frontend/{default → base}/default/O2TI/moip/imagem/freeshipping_freeshipping.gif RENAMED
File without changes
skin/frontend/{default → base}/default/O2TI/moip/imagem/info.png RENAMED
File without changes
skin/frontend/{default → base}/default/O2TI/moip/imagem/logomoip.png RENAMED
File without changes
skin/frontend/{default → base}/default/O2TI/moip/imagem/logomoipck.png RENAMED
File without changes
skin/frontend/{default → base}/default/O2TI/moip/imagem/moip.png RENAMED
File without changes
skin/frontend/{default → base}/default/O2TI/moip/imagem/moipamerican.png RENAMED
File without changes
skin/frontend/base/default/O2TI/moip/imagem/moipbanner2.png ADDED
Binary file
skin/frontend/{default → base}/default/O2TI/moip/imagem/moipdiners.png RENAMED
File without changes
skin/frontend/{default → base}/default/O2TI/moip/imagem/moiphiper.png RENAMED
File without changes
skin/frontend/{default → base}/default/O2TI/moip/imagem/moipmaster.png RENAMED
File without changes
skin/frontend/{default → base}/default/O2TI/moip/imagem/moipvisa.png RENAMED
File without changes
skin/frontend/{default → base}/default/O2TI/moip/imagem/pedroteixeira_correios_40010.gif RENAMED
File without changes
skin/frontend/base/default/O2TI/moip/imagem/pedroteixeira_correios_40096.gif ADDED
Binary file
skin/frontend/base/default/O2TI/moip/imagem/pedroteixeira_correios_41068.gif ADDED
Binary file
skin/frontend/{default → base}/default/O2TI/moip/imagem/pedroteixeira_correios_41106.gif RENAMED
File without changes
skin/frontend/base/default/O2TI/moip/imagem/pedroteixeira_correios_81019.gif ADDED
Binary file
skin/frontend/base/default/O2TI/moip/imagem/preto/ababoleto.png ADDED
Binary file
skin/frontend/base/default/O2TI/moip/imagem/preto/abacartao.png ADDED
Binary file
skin/frontend/base/default/O2TI/moip/imagem/preto/abatransf.png ADDED
Binary file
skin/frontend/base/default/O2TI/moip/imagem/printer.png ADDED
Binary file
skin/frontend/base/default/O2TI/moip/imagem/verde/ababoleto.png ADDED
Binary file
skin/frontend/base/default/O2TI/moip/imagem/verde/abacartao.png ADDED
Binary file
skin/frontend/base/default/O2TI/moip/imagem/verde/abatransf.png ADDED
Binary file
skin/frontend/base/default/O2TI/moip/imagem/vermelho/ababoleto.png ADDED
Binary file
skin/frontend/base/default/O2TI/moip/imagem/vermelho/abacartao.png ADDED
Binary file
skin/frontend/base/default/O2TI/moip/imagem/vermelho/abatransf.png ADDED
Binary file
skin/frontend/base/default/O2TI/moip/imagem/warning.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/960grid_onestepcheckout.css ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .o2ti-osc-block-content{padding:12px;border: 1px solid #ccc;border-radius: 0 0 5px 5px}
2
+ .o2ti-osc-block-contentb{border: 1px solid #ccc;border-radius: 0 0 5px 5px}
3
+ .form-list .field{width: 43% !important;float:left;margin-right: 7%;}
4
+ .form-list .wide{width: 93%;clear:both;}
5
+ .form-list .input-box{width: 100% !important;}
6
+ .form-list .field .input-box{width: 100% !important;padding-right: 40px;}
7
+ .field.dob .field{width:100%;}
8
+ input[type="checkbox"]{float: left; cleaR: none;margin-right: 10px;margin-top:2px}
9
+ .form-list input[type="text"],.form-list input[type="password"] , .form-list select{width: 100% !important;}
10
+ .sp-methods dt, .sp-methods dd{width: 100%; clear: both;}
11
+ .sp-methods dt input[type="radio"]{floaT:left;}
12
+ .sp-methods dt label{margin-top: 0px;display: block;float: left;margin-left:10px}
13
+ .input-text.qty{text-align:center;border-radius: 5px}
14
+ #loginbox{float: left;margin-bottom: 10px;}
15
+ #loading-mask{position: fixed;top: 0; left: 0;width: 100%; height: 100%; display: none;}
16
+ #loading-mask > p{box-shadow: 0 0 10px #666666;border:1px solid blue;background: #fff; width: 290px; text-align: center; padding: 20px;border-radius: 10px;position:absolute; left: 50%;top: 10%;margin-left: -165px;}
17
+ .o2ti-osc-block-title > h3 {padding-top: 5px;}
18
+ textarea {max-width: 280px;min-width: 280px;overflow: auto;}
19
+ .sp-methods .form-list {padding-left: 0px;}
20
+ tr {border-top: 1px solid #CCCCCC;}
21
+ #none {float:left}
22
+ .main {
23
+ padding: 0;
24
+ min-height: 370px;
25
+ }
26
+ #checkout-review-table-wrapper {
27
+ overflow-x: visible !important;
28
+ }
29
+ #co-billing-form{clear:both;}
30
+ .update_shipping, .update_payment {width: 150px; margin: 0 auto; text-align: center; font-size: 14px; min-height: 115px; padding-top: 50px;}
31
+ #co-payment-form {min-height: 150px !important;}
32
+ #advice-required-entry-id_accept_terms{position:relative !important;}
33
+ .sp-methods .form-list {padding-left: 0px !important;}
skin/frontend/base/default/O2TI/onestepcheckout/css/images/blank.gif ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_close.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_loading.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_nav_left.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_nav_right.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_overlay.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_shadow_e.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_shadow_n.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_shadow_ne.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_shadow_nw.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_shadow_s.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_shadow_se.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_shadow_sw.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_shadow_w.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_title_left.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_title_main.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_title_over.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancy_title_right.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancybox-x.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancybox-y.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/fancybox.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-bg_diagonals-thick_20_666666_40x40.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-bg_flat_10_000000_40x100.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-bg_glass_100_f6f6f6_1x400.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-bg_glass_100_fdf5ce_1x400.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-bg_glass_65_ffffff_1x400.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-bg_gloss-wave_35_000_500x100.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-icons_222222_256x240.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-icons_228ef1_256x240.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-icons_ef8c08_256x240.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-icons_ffd27a_256x240.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/images/ui-icons_ffffff_256x240.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/css/jquery.fancybox-1.3.1.css ADDED
@@ -0,0 +1,253 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*! fancyBox v2.1.4 fancyapps.com | fancyapps.com/fancybox/#license */
2
+ .fancybox-wrap,
3
+ .fancybox-skin,
4
+ .fancybox-outer,
5
+ .fancybox-inner,
6
+ .fancybox-image,
7
+ .fancybox-wrap iframe,
8
+ .fancybox-wrap object,
9
+ .fancybox-nav,
10
+ .fancybox-nav span,
11
+ .fancybox-tmp
12
+ {
13
+ padding: 0;
14
+ margin: 0;
15
+ border: 0;
16
+ outline: none;
17
+ vertical-align: top;
18
+ }
19
+
20
+ .fancybox-wrap {
21
+ position: absolute;
22
+ top: 0;
23
+ left: 0;
24
+ z-index: 8020;
25
+ }
26
+
27
+ .fancybox-skin {
28
+ position: relative;
29
+ background: #f9f9f9;
30
+ color: #444;
31
+ text-shadow: none;
32
+ -webkit-border-radius: 4px;
33
+ -moz-border-radius: 4px;
34
+ border-radius: 4px;
35
+ }
36
+
37
+ .fancybox-opened {
38
+ z-index: 8030;
39
+ }
40
+
41
+ .fancybox-opened .fancybox-skin {
42
+ -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
43
+ -moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
44
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
45
+ }
46
+
47
+ .fancybox-outer, .fancybox-inner {
48
+ position: relative;
49
+ }
50
+
51
+ .fancybox-inner {
52
+ overflow: hidden;
53
+ }
54
+
55
+ .fancybox-type-iframe .fancybox-inner {
56
+ -webkit-overflow-scrolling: touch;
57
+ }
58
+
59
+ .fancybox-error {
60
+ color: #444;
61
+ font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
62
+ margin: 0;
63
+ padding: 15px;
64
+ white-space: nowrap;
65
+ }
66
+
67
+ .fancybox-image, .fancybox-iframe {
68
+ display: block;
69
+ width: 100%;
70
+ height: 100%;
71
+ }
72
+
73
+ .fancybox-image {
74
+ max-width: 100%;
75
+ max-height: 100%;
76
+ }
77
+
78
+ #fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
79
+ background-image: url('images/fancy_close.png');
80
+ }
81
+
82
+ #fancybox-loading {
83
+ position: fixed;
84
+ top: 50%;
85
+ left: 50%;
86
+ margin-top: -22px;
87
+ margin-left: -22px;
88
+ background-position: 0 -108px;
89
+ opacity: 0.8;
90
+ cursor: pointer;
91
+ z-index: 8060;
92
+ }
93
+
94
+ #fancybox-loading div {
95
+ width: 44px;
96
+ height: 44px;
97
+ background: url('images/fancy_loading.png') center center no-repeat;
98
+ }
99
+
100
+ .fancybox-close {
101
+ position: absolute;
102
+ top: -18px;
103
+ right: -18px;
104
+ width: 30px;
105
+ height: 30px;
106
+ cursor: pointer;
107
+ z-index: 8040;
108
+ }
109
+
110
+ .fancybox-nav {
111
+ position: absolute;
112
+ top: 0;
113
+ width: 40%;
114
+ height: 100%;
115
+ cursor: pointer;
116
+ text-decoration: none;
117
+ background: transparent url('images/blank.png'); /* helps IE */
118
+ -webkit-tap-highlight-color: rgba(0,0,0,0);
119
+ z-index: 8040;
120
+ }
121
+
122
+ .fancybox-prev {
123
+ left: 0;
124
+ }
125
+
126
+ .fancybox-next {
127
+ right: 0;
128
+ }
129
+
130
+ .fancybox-nav span {
131
+ position: absolute;
132
+ top: 50%;
133
+ width: 36px;
134
+ height: 34px;
135
+ margin-top: -18px;
136
+ cursor: pointer;
137
+ z-index: 8040;
138
+ visibility: hidden;
139
+ }
140
+
141
+ .fancybox-prev span {
142
+ left: 10px;
143
+ background-position: 0 -36px;
144
+ }
145
+
146
+ .fancybox-next span {
147
+ right: 10px;
148
+ background-position: 0 -72px;
149
+ }
150
+
151
+ .fancybox-nav:hover span {
152
+ visibility: visible;
153
+ }
154
+
155
+ .fancybox-tmp {
156
+ position: absolute;
157
+ top: -99999px;
158
+ left: -99999px;
159
+ visibility: hidden;
160
+ max-width: 99999px;
161
+ max-height: 99999px;
162
+ overflow: visible !important;
163
+ }
164
+
165
+ /* Overlay helper */
166
+
167
+ .fancybox-lock {
168
+ overflow: hidden;
169
+ }
170
+
171
+ .fancybox-overlay {
172
+ position: absolute;
173
+ top: 0;
174
+ left: 0;
175
+ overflow: hidden;
176
+ display: none;
177
+ z-index: 8010;
178
+ background: url('images/fancy_overlay.png');
179
+ }
180
+
181
+ .fancybox-overlay-fixed {
182
+ position: fixed;
183
+ bottom: 0;
184
+ right: 0;
185
+ }
186
+
187
+ .fancybox-lock .fancybox-overlay {
188
+ overflow: auto;
189
+ overflow-y: scroll;
190
+ }
191
+
192
+ /* Title helper */
193
+
194
+ .fancybox-title {
195
+ visibility: hidden;
196
+ font: normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
197
+ position: relative;
198
+ text-shadow: none;
199
+ z-index: 8050;
200
+ }
201
+
202
+ .fancybox-opened .fancybox-title {
203
+ visibility: visible;
204
+ }
205
+
206
+ .fancybox-title-float-wrap {
207
+ position: absolute;
208
+ bottom: 0;
209
+ right: 50%;
210
+ margin-bottom: -35px;
211
+ z-index: 8050;
212
+ text-align: center;
213
+ }
214
+
215
+ .fancybox-title-float-wrap .child {
216
+ display: inline-block;
217
+ margin-right: -100%;
218
+ padding: 2px 20px;
219
+ background: transparent; /* Fallback for web browsers that doesn't support RGBa */
220
+ background: rgba(0, 0, 0, 0.8);
221
+ -webkit-border-radius: 15px;
222
+ -moz-border-radius: 15px;
223
+ border-radius: 15px;
224
+ text-shadow: 0 1px 2px #222;
225
+ color: #FFF;
226
+ font-weight: bold;
227
+ line-height: 24px;
228
+ white-space: nowrap;
229
+ }
230
+
231
+ .fancybox-title-outside-wrap {
232
+ position: relative;
233
+ margin-top: 10px;
234
+ color: #fff;
235
+ }
236
+
237
+ .fancybox-title-inside-wrap {
238
+ padding-top: 10px;
239
+ }
240
+
241
+ .fancybox-title-over-wrap {
242
+ position: absolute;
243
+ bottom: 0;
244
+ left: 0;
245
+ color: #fff;
246
+ padding: 10px;
247
+ background: #000;
248
+ background: rgba(0, 0, 0, .8);
249
+ }
250
+
251
+ .o2ti-osc-title-login > h1 {
252
+ color: #FFFFFF;
253
+ }
skin/frontend/base/default/O2TI/onestepcheckout/css/onestepcheckout.css ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* page blocks */
2
+ .o2ti-osc-checkoutcontainer { display: block; clear: both; width: 100%; }
3
+ .o2ti-osc-checkoutcontainer .o2ti-osc-column-left { display: block; width: 33%; float: left; }
4
+ .o2ti-osc-checkoutcontainer .o2ti-osc-column-2 { display: block; width: 65%; margin-left: 2%; float: left; }
5
+ .o2ti-osc-checkoutcontainer .o2ti-osc-column-2 .o2ti-osc-column-middle { display: block; width: 47%; float: left; min-width: 290px !important; }
6
+ .o2ti-osc-checkoutcontainer .o2ti-osc-column-2 .o2ti-osc-column-right { display: block; width: 48%; float: left; margin-left: 2%; min-width: 283px !important; }
7
+ .o2ti-osc-checkoutcontainer .o2ti-osc-block-title h3 { margin: 0; padding: 5px; }
8
+ .o2ti-osc-checkoutcontainer .o2ti-osc-block-content { border: 1px solid #ccc; border-radius: 0 0 5px 5px; padding: 15px; }
9
+ .o2ti-osc-checkoutcontainer .review { float: left; width: 100%; clear: both; margin-top: 20px; }
10
+ .o2ti-opc-2columns .o2ti-osc-checkoutcontainer .o2ti-osc-column-2 .shipping-payment { width: 45%; float: left; min-width: 290px !important; }
11
+ .o2ti-opc-2columns .o2ti-osc-checkoutcontainer .o2ti-osc-column-2 .shipping-payment .o2ti-osc-column { width: 100%; margin: 0 0 15px 0; }
12
+ .o2ti-opc-2columns .o2ti-osc-checkoutcontainer .o2ti-osc-column-2 .review { width: 52%; clear: none; margin-left: 1%; margin-top: 0; }
13
+ .o2ti-opc-2columns .o2ti-osc-checkoutcontainer .o2ti-osc-column-2 .review .o2ti-osc-column-middle { width: 100%; clear: both; margin: 0; }
14
+ .o2ti-opc-2columns .o2ti-osc-checkoutcontainer .o2ti-osc-column-2 .review .o2ti-osc-column-middle #id_comments { width: 100%; border-radius: 5px; clear: both; margin: 0; }
15
+ .o2ti-opc-2columns .o2ti-osc-checkoutcontainer .o2ti-osc-column-2 .review .o2ti-osc-column-right { width: 100%; clear: both; margin: 0; }
16
+ /* form list */
17
+ .form-list .field { float: left !important; width: 47.5% !important; }
18
+ .form-list .field.odd { margin-left: 5%; }
19
+ .form-list .wide,
20
+ .form-list .fields { width: 100%; clear: both; }
21
+ .form-list label { float: left; position: relative; clear: both; }
22
+ .form-list label em { position: absolute; top: 0; right: 0; color: red; }
23
+ .form-list .input-box { width: 100% !important; }
24
+ .form-list .input-box input,
25
+ .form-list .input-box select { width: 97% !important; border-radius: 3px; padding: 5px; }
26
+ .form-list .input-box input[type="checkbox"],
27
+ .form-list .input-box input[type="radio"] { width: auto !important; float: left; clear: none; margin-right: 5px; }
28
+ .dados-pj { display: none }
29
+ .customer-dob .dob-day,
30
+ .customer-dob .dob-month { margin: 0; max-width: 26px !important; }
31
+ #loading-mask { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.5) }
32
+ #loading-mask #loading_mask_loader { position: absolute; top: 50%; left: 50%; width: 230px; height: auto; background: #fff; border: 1px solid #ccc; border-radius: 10px; box-shadow: 0 0 10px #000; margin-left: -115px; display: block; text-align: center; padding: 20px; margin-top: -39px; }
33
+ #loginbox { background: #000000; padding: 10px 0px !important; color: #fff; text-decoration: none; border-radius: 5px; margin-bottom: 10px; float: left; clear: both; width: 100%; text-align: center; }
34
+ #co-billing-form { clear: both; }
35
+ .update_shipping,
36
+ .update_payment { width: 100%; text-align: center; font-size: 14px; min-height: 115px; padding-top: 50px; }
37
+ #co-payment-form { min-height: 150px !important; }
38
+ #advice-required-entry-id_accept_terms { position: relative !important; }
39
+ .sp-methods .form-list { padding-left: 0px !important; }
40
+ #checkout-review-table-wrapper { overflow-x: visible !important; }
41
+ .o2ti-osc-block { min-width: 290px !important; }
skin/frontend/base/default/O2TI/onestepcheckout/images/01.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/02.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/03.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/04.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/05.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/2_clock.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/ajax-loader-tr.gif ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/bkg-giftmessage.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/bkg-step-review.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/bkg_form-search.gif ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/bkg_header.jpg ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/blank.gif ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/btn_checkout.gif ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/clock.gif ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/clock.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/demo-large_03.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/demo-large_04.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/demo-large_05.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/demo-large_051.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/demo-large_06.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/demo-large_07.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_close.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_loading.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_nav_left.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_nav_right.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_overlay.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_shadow_e.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_shadow_n.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_shadow_ne.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_shadow_nw.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_shadow_s.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_shadow_se.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_shadow_sw.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_shadow_w.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_title_left.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_title_main.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_title_over.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/fancy_title_right.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/fancybox-x.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/fancybox-y.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/fancybox.png ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/grid-cal.gif ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/line-gradient.gif ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/loja_segura.jpg ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/opc-ajax-loader.gif ADDED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/validation_advice_bg.gif ADDED
Binary file