o2ti_moip - Version 1.3.0

Version Notes

Mudança em layout e css, box de correios para busca do cep...

Download this release

Release Info

Developer MOIP
Extension o2ti_moip
Version 1.3.0
Comparing to
See all releases


Code changes from version 1.2.5 to 1.3.0

Files changed (486) hide show
  1. MOIP_README.md +0 -5
  2. MOIP_SQL_MANUAL_INSTALATION.txt +0 -30
  3. app/code/local/{O2TI → MOIP}/.DS_Store +0 -0
  4. app/code/local/MOIP/All/Helper/Data.php +14 -0
  5. app/code/local/{O2TI → MOIP}/All/etc/config.xml +17 -17
  6. app/code/local/MOIP/All/etc/system.xml +9 -0
  7. app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Adminhtml/Form/Renderer/Config/Createfield.php +1 -1
  8. app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Adminhtml/Onestepcheckout.php +1 -1
  9. app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Edit.php +1 -1
  10. app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Edit/Form.php +1 -1
  11. app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Edit/Tab/Form.php +1 -1
  12. app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Edit/Tabs.php +1 -1
  13. app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Grid.php +1 -1
  14. app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Sales/Order/Grid.php +12 -12
  15. app/code/local/{O2TI/Moip/Block/Adminhtml/moip → MOIP/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Sales/Order/View/Tab}/Info/Customermessages.php +1 -1
  16. app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Sales/Order/View/Tab/Info/Deliverydate.php +1 -1
  17. app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Adminhtml/Onestepcheckout/System/Config/Form/Field/Addtimerange.php +1 -1
  18. app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Checkout/Onepage/Billing.php +1 -1
  19. app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Checkout/Onepage/Billing/Sortbilling.php +1 -1
  20. app/code/local/MOIP/Onestepcheckout/Block/Checkout/Onepage/Review/Options.php +10 -0
  21. app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Checkout/Onepage/Shipping.php +1 -1
  22. app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Checkout/Onepage/Shipping/Sortshipping.php +1 -1
  23. app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Checkout/Top.php +1 -1
  24. app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Onestepcheckout.php +1 -1
  25. app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Sales/Info/Deliverydate.php +1 -1
  26. app/code/local/{O2TI → MOIP}/Onestepcheckout/Helper/Data.php +1 -1
  27. app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/Customer/Customer.php +1 -1
  28. app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/Entity/Tipopessoa.php +1 -1
  29. app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/Mysql4/Onestepcheckout.php +2 -2
  30. app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/Mysql4/Onestepcheckout/Collection.php +1 -1
  31. app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/Observer.php +1 -1
  32. app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/Onestepcheckout.php +1 -1
  33. app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/Sales/Quote/Address.php +1 -1
  34. app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/Shipping/Allowedmethods.php +1 -1
  35. app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/Status.php +1 -1
  36. app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/System/Config/Source/Checkuncheck.php +1 -1
  37. app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/System/Config/Source/Disablefield.php +1 -1
  38. app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/System/Config/Source/Formatdate.php +1 -1
  39. app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/System/Config/Source/Optionaddfield.php +1 -1
  40. app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/System/Config/Source/Optionhidefield.php +1 -1
  41. app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/System/Config/Source/Pagelayout.php +1 -1
  42. app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/System/Config/Source/Payment/Allowedmethods.php +1 -1
  43. app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/System/Config/Source/Shipping/Allowedmethods.php +1 -1
  44. app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/System/Config/Source/Subscribenewletter.php +1 -1
  45. app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/System/Config/Source/form/Createfield.php +1 -1
  46. app/code/local/{O2TI → MOIP}/Onestepcheckout/controllers/Adminhtml/OnestepcheckoutController.php +1 -1
  47. app/code/local/{O2TI → MOIP}/Onestepcheckout/controllers/IndexController.php +37 -113
  48. app/code/local/{O2TI → MOIP}/Onestepcheckout/controllers/TestController.php +1 -1
  49. app/code/local/{O2TI → MOIP}/Onestepcheckout/etc/config.xml +30 -30
  50. app/code/local/{O2TI → MOIP}/Onestepcheckout/etc/system.xml +29 -35
  51. app/code/local/MOIP/Onestepcheckout/sql/moip_onestepcheckout_setup/mysql4-install-0.1.0.php +136 -0
  52. app/code/local/{O2TI/Moip/Block/Adminhtml/moip/Info/Info.php → MOIP/Onestepcheckout/sql/moip_onestepcheckout_setup/mysql4-upgrade-0.1.0-0.2.0.php} +0 -0
  53. app/code/local/{O2TI/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Sales/Order/View/Tab → MOIP/Transparente/Block/Adminhtml/moip}/Info/Customermessages.php +1 -1
  54. app/code/local/MOIP/Transparente/Block/Adminhtml/moip/Info/Info.php +0 -0
  55. app/code/local/{O2TI/Moip → MOIP/Transparente}/Block/Info.php +37 -37
  56. app/code/local/{O2TI/Moip → MOIP/Transparente}/Block/Standard/Form.php +89 -88
  57. app/code/local/{O2TI/Moip → MOIP/Transparente}/Block/Standard/Novaforma.php +2 -2
  58. app/code/local/{O2TI/Moip → MOIP/Transparente}/Block/Standard/Redirect.php +17 -15
  59. app/code/local/MOIP/Transparente/Helper/Data.php +14 -0
  60. app/code/local/{O2TI/Moip → MOIP/Transparente}/Model/.ftpquota +0 -0
  61. app/code/local/{O2TI/Moip → MOIP/Transparente}/Model/Api.php +85 -60
  62. app/code/local/MOIP/Transparente/Model/Mysql4/Collection.php +9 -0
  63. app/code/local/MOIP/Transparente/Model/Mysql4/Write.php +9 -0
  64. app/code/local/{O2TI/Moip → MOIP/Transparente}/Model/Observer.php +12 -12
  65. app/code/local/{O2TI/Moip → MOIP/Transparente}/Model/Orders.php +3 -3
  66. app/code/local/{O2TI/Moip → MOIP/Transparente}/Model/Source/Ambiente.php +1 -1
  67. app/code/local/{O2TI/Moip → MOIP/Transparente}/Model/Source/FormasPagamento.php +1 -1
  68. app/code/local/{O2TI/Moip → MOIP/Transparente}/Model/Source/Layout.php +1 -1
  69. app/code/local/{O2TI/Moip → MOIP/Transparente}/Model/Standard.php +23 -43
  70. app/code/local/MOIP/Transparente/Model/Write.php +8 -0
  71. app/code/local/{O2TI/Moip → MOIP/Transparente}/controllers/IndexController.php +43 -8
  72. app/code/local/{O2TI/Moip → MOIP/Transparente}/controllers/StandardController.php +83 -78
  73. app/code/local/{O2TI/Moip → MOIP/Transparente}/etc/adminhtml.xml +0 -0
  74. app/code/local/{O2TI/Moip → MOIP/Transparente}/etc/config.xml +69 -75
  75. app/code/local/{O2TI/Moip → MOIP/Transparente}/etc/system.xml +229 -285
  76. app/code/local/{O2TI/Moip/sql/moip_setup → MOIP/Transparente/sql/transparente_setup}/mysql4-install-0.1.0.php +5 -5
  77. app/code/local/{O2TI/Moip/sql/moip_setup/mysql4-upgrade-0.2.1-0.2.4.php → MOIP/Transparente/sql/transparente_setup/mysql4-upgrade-0.1.0-0.2.0.php} +10 -10
  78. app/code/local/O2TI/All/Helper/Data.php +0 -14
  79. app/code/local/O2TI/All/etc/system.xml +0 -9
  80. app/code/local/O2TI/Moip/Block/Standard/Info.php +0 -56
  81. app/code/local/O2TI/Moip/Helper/Data.php +0 -14
  82. app/code/local/O2TI/Moip/Model/Mysql4/Collection.php +0 -9
  83. app/code/local/O2TI/Moip/Model/Mysql4/Write.php +0 -9
  84. app/code/local/O2TI/Moip/Model/Write.php +0 -8
  85. app/code/local/O2TI/Moip/sql/moip_setup/mysql4-upgrade-0.1.0-0.2.0.php +0 -21
  86. app/code/local/O2TI/Moip/sql/moip_setup/mysql4-upgrade-0.1.0-0.2.1.php +0 -21
  87. app/code/local/O2TI/Moip/sql/moip_setup/mysql4-upgrade-0.2.1-0.2.2.php +0 -30
  88. app/code/local/O2TI/Moip/sql/moip_setup/mysql4-upgrade-0.2.1-0.2.3.php +0 -21
  89. app/code/local/O2TI/Onestepcheckout/Block/Checkout/Onepage/Review/Options.php +0 -17
  90. app/code/local/O2TI/Onestepcheckout/Block/Sales/Info/Customermessages.php +0 -9
  91. app/code/local/O2TI/Onestepcheckout/sql/onestepcheckout_setup/mysql4-install-0.1.0.php +0 -82
  92. app/code/local/O2TI/Onestepcheckout/sql/onestepcheckout_setup/mysql4-upgrade-0.1.0-0.2.0.php +0 -188
  93. app/design/adminhtml/default/default/layout/{o2ti_onestepcheckout.xml → moip_onestepcheckout.xml} +3 -3
  94. app/design/adminhtml/default/default/template/{O2TI → MOIP}/onestepcheckout/sales/order/view/tab/info.phtml +0 -0
  95. app/design/adminhtml/default/default/template/{O2TI → MOIP}/onestepcheckout/sales/order/view/tab/info/Customermessages.phtml +1 -1
  96. app/design/adminhtml/default/default/template/{O2TI → MOIP}/onestepcheckout/sales/order/view/tab/info/Deliverydate.phtml +2 -2
  97. app/design/adminhtml/default/default/template/{O2TI → MOIP}/sales/order/view/info.phtml +0 -0
  98. app/design/adminhtml/default/default/template/{O2TI/moip → MOIP/transparente}/form.phtml +79 -79
  99. app/design/adminhtml/default/default/template/{O2TI/moip → MOIP/transparente}/info.phtml +5 -5
  100. app/design/adminhtml/default/default/template/MOIP/transparente/redirect.phtml +0 -0
  101. app/design/adminhtml/default/default/template/O2TI/moip/redirect.phtml +0 -587
  102. app/design/frontend/base/default/layout/{o2ti_onestepcheckout.xml → moip_onestepcheckout.xml} +81 -58
  103. app/design/frontend/base/default/layout/moip_transparente.xml +128 -0
  104. app/design/frontend/base/default/layout/o2ti_moip.xml +0 -96
  105. app/design/frontend/base/default/template/MOIP/customer/address/book.phtml +105 -0
  106. app/design/frontend/base/default/template/MOIP/customer/address/edit.phtml +219 -0
  107. app/design/frontend/base/default/template/MOIP/customer/widget/dob.phtml +52 -0
  108. app/design/frontend/base/default/template/{O2TI → MOIP}/customer/widget/taxvat.phtml +0 -0
  109. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard.phtml +236 -185
  110. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/agreements.phtml +0 -0
  111. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/billing.phtml +17 -18
  112. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/billing/billing_form.phtml +5 -5
  113. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/correio.phtml +0 -0
  114. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/coupon.phtml +2 -30
  115. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/forgotpassword.phtml +4 -4
  116. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/local.xml +0 -0
  117. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/login.phtml +1 -1
  118. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/payment.phtml +0 -0
  119. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/payment/methods.phtml +0 -0
  120. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/review.phtml +27 -32
  121. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/review/button.phtml +0 -0
  122. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/review/info.phtml +3 -4
  123. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/review/item.phtml +0 -0
  124. app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/review/options.phtml +3 -0
  125. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/review/options/additional.phtml +0 -2
  126. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/review/totals.phtml +0 -0
  127. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/shipping.phtml +2 -2
  128. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/shipping/shipping_form.phtml +3 -3
  129. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/shipping_method.phtml +1 -1
  130. app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/shipping_method/available.phtml +110 -0
  131. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/emptyupdate.phtml +0 -0
  132. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/onepage.phtml +0 -0
  133. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/sales/order/info.phtml +0 -0
  134. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/sales/order/info/customermessages.phtml +1 -1
  135. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/sales/order/info/customermessages.phtml~ +0 -0
  136. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/sales/order/info/deliverydate.phtml +2 -2
  137. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/sales/order/info/deliverydate.phtml~ +0 -0
  138. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/sales/order/view/tab/info.phtml +0 -0
  139. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/sales/order/view/tab/info/customermessages.phtml +0 -0
  140. app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/sales/order/view/tab/info/deliverydate.phtml +0 -0
  141. app/design/frontend/base/default/template/{O2TI/moip → MOIP/transparente}/Novaforma.phtml +0 -0
  142. app/design/frontend/base/default/template/{O2TI/moip → MOIP/transparente}/boleto.phtml +10 -10
  143. app/design/frontend/base/default/template/{O2TI/moip → MOIP/transparente}/cartao.phtml +34 -34
  144. app/design/frontend/base/default/template/{O2TI/moip → MOIP/transparente}/emptyupdate.phtml +3 -3
  145. app/design/frontend/base/default/template/{O2TI/moip → MOIP/transparente}/form.phtml +79 -79
  146. app/design/frontend/base/default/template/MOIP/transparente/horizontal_form.phtml +456 -0
  147. app/design/frontend/base/default/template/{O2TI/moip → MOIP/transparente}/info.phtml +42 -42
  148. app/design/frontend/base/default/template/{O2TI/moip → MOIP/transparente}/layout_boleto.phtml +8 -8
  149. app/design/frontend/base/default/template/{O2TI/moip → MOIP/transparente}/redirect.phtml +0 -0
  150. app/design/frontend/base/default/template/{O2TI/moip → MOIP/transparente}/refaz.phtml +4 -4
  151. app/design/frontend/base/default/template/{O2TI/moip → MOIP/transparente}/transferencia.phtml +10 -10
  152. app/design/frontend/base/default/template/{O2TI/moip/horizontal_form.phtml → MOIP/transparente/vertical_form.phtml} +31 -31
  153. app/design/frontend/base/default/template/O2TI/customer/widget/dob.phtml +0 -103
  154. app/design/frontend/base/default/template/O2TI/moip/vertical_form.phtml +0 -235
  155. app/design/frontend/base/default/template/O2TI/onestepcheckout/daskboard/onepage/review/options.phtml +0 -23
  156. app/design/frontend/base/default/template/O2TI/onestepcheckout/daskboard/onepage/shipping_method/available.phtml +0 -88
  157. app/design/frontend/default/default/template/customer/widget/dob.phtml +0 -103
  158. app/design/frontend/default/default/template/customer/widget/taxvat.phtml +0 -17
  159. app/etc/modules/{O2TI_All.xml → MOIP_All.xml} +2 -2
  160. app/etc/modules/{O2TI_Onestepcheckout.xml → MOIP_Onestepcheckout.xml} +2 -2
  161. app/etc/modules/{O2TI_Moip.xml → MOIP_Transparente.xml} +2 -2
  162. app/locale/en_US/{O2TI_Onestepcheckout.csv → MOIP_Onestepcheckout.csv} +1 -1
  163. app/locale/en_US/template/email/statusmail_cancelado_o2ti.html +0 -44
  164. app/locale/en_US/template/email/statusmail_cancelado_o2ti.html~ +0 -90
  165. app/locale/pt_BR/{O2TI_Onestepcheckout.csv → MOIP_Onestepcheckout.csv} +1 -1
  166. app/locale/pt_BR/template/email/statusmail_cancelado_o2ti.html +0 -44
  167. app/locale/pt_BR/template/email/statusmail_cancelado_o2ti.html~ +0 -90
  168. js/{O2TI → MOIP}/jquery.js +0 -0
  169. js/MOIP/jquery.mask.min.js +395 -0
  170. js/{O2TI → MOIP}/jquery_noconflict.js +0 -0
  171. js/{O2TI → MOIP}/onestepcheckout/billing.js +6 -17
  172. js/MOIP/onestepcheckout/change-events.js +72 -0
  173. js/{O2TI → MOIP}/onestepcheckout/jquery.fancybox-1.3.1.js +110 -110
  174. js/MOIP/onestepcheckout/shipping.js +0 -0
  175. js/MOIP/script_mask.js +19 -0
  176. js/{O2TI/moip → MOIP/transparente}/bootstrap-modal.js +0 -0
  177. js/{O2TI/moip → MOIP/transparente}/bootstrap.min.js +0 -0
  178. js/MOIP/transparente/checkout.js +176 -0
  179. js/{O2TI → MOIP}/validacao.js +0 -0
  180. js/O2TI/moip/checkout.js +0 -38
  181. js/O2TI/novamascara.js +0 -9
  182. js/O2TI/onestepcheckout/change-events.js +0 -167
  183. js/O2TI/onestepcheckout/shipping.js +0 -14
  184. media/{O2TI → MOIP}/all/logo.png +0 -0
  185. package.xml +7 -7
  186. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/960grid_onestepcheckout.css +3 -3
  187. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/blank.gif +0 -0
  188. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_close.png +0 -0
  189. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_loading.png +0 -0
  190. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_nav_left.png +0 -0
  191. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_nav_right.png +0 -0
  192. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_overlay.png +0 -0
  193. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_e.png +0 -0
  194. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_n.png +0 -0
  195. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_ne.png +0 -0
  196. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_nw.png +0 -0
  197. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_s.png +0 -0
  198. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_se.png +0 -0
  199. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_sw.png +0 -0
  200. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_w.png +0 -0
  201. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_title_left.png +0 -0
  202. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_title_main.png +0 -0
  203. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_title_over.png +0 -0
  204. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_title_right.png +0 -0
  205. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancybox-x.png +0 -0
  206. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancybox-y.png +0 -0
  207. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancybox.png +0 -0
  208. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  209. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  210. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_flat_10_000000_40x100.png +0 -0
  211. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  212. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  213. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  214. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_gloss-wave_35_000_500x100.png +0 -0
  215. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  216. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  217. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  218. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-icons_222222_256x240.png +0 -0
  219. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-icons_228ef1_256x240.png +0 -0
  220. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-icons_ef8c08_256x240.png +0 -0
  221. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-icons_ffd27a_256x240.png +0 -0
  222. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-icons_ffffff_256x240.png +0 -0
  223. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/jquery.fancybox-1.3.1.css +1 -1
  224. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/onestepcheckout.css +15 -15
  225. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/01.png +0 -0
  226. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/02.png +0 -0
  227. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/03.png +0 -0
  228. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/04.png +0 -0
  229. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/05.png +0 -0
  230. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/2_clock.png +0 -0
  231. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/ajax-loader-tr.gif +0 -0
  232. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/bkg-giftmessage.png +0 -0
  233. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/bkg-step-review.png +0 -0
  234. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/bkg_form-search.gif +0 -0
  235. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/bkg_header.jpg +0 -0
  236. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/blank.gif +0 -0
  237. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/btn_checkout.gif +0 -0
  238. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/clock.gif +0 -0
  239. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/clock.png +0 -0
  240. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/demo-large_03.png +0 -0
  241. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/demo-large_04.png +0 -0
  242. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/demo-large_05.png +0 -0
  243. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/demo-large_051.png +0 -0
  244. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/demo-large_06.png +0 -0
  245. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/demo-large_07.png +0 -0
  246. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_close.png +0 -0
  247. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_loading.png +0 -0
  248. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_nav_left.png +0 -0
  249. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_nav_right.png +0 -0
  250. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_overlay.png +0 -0
  251. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_e.png +0 -0
  252. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_n.png +0 -0
  253. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_ne.png +0 -0
  254. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_nw.png +0 -0
  255. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_s.png +0 -0
  256. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_se.png +0 -0
  257. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_sw.png +0 -0
  258. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_w.png +0 -0
  259. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_title_left.png +0 -0
  260. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_title_main.png +0 -0
  261. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_title_over.png +0 -0
  262. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_title_right.png +0 -0
  263. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancybox-x.png +0 -0
  264. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancybox-y.png +0 -0
  265. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancybox.png +0 -0
  266. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/grid-cal.gif +0 -0
  267. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/line-gradient.gif +0 -0
  268. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/loja_segura.jpg +0 -0
  269. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/opc-ajax-loader.gif +0 -0
  270. skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/validation_advice_bg.gif +0 -0
  271. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/css/bootstrap.css +8 -8
  272. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/css/formulario.css +4 -4
  273. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/css/formulario_horizontal.css +11 -11
  274. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/css/prettify.css +0 -0
  275. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/AmericanExpress.png +0 -0
  276. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/BancoDoBrasil.png +0 -0
  277. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/Banrisul.png +0 -0
  278. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/Bradesco.png +0 -0
  279. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/Diners.png +0 -0
  280. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/Hipercard.png +0 -0
  281. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/Itau.png +0 -0
  282. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/Mastercard.png +0 -0
  283. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/Visa.png +0 -0
  284. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/ababoleto.png +0 -0
  285. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/abacartao.png +0 -0
  286. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/abatransf.png +0 -0
  287. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/ajax-loader.gif +0 -0
  288. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/azul/ababoleto.png +0 -0
  289. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/azul/abacartao.png +0 -0
  290. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/azul/abatransf.png +0 -0
  291. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/bank-icon.png +0 -0
  292. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/bank-title.png +0 -0
  293. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/bb.png +0 -0
  294. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/boleto-icon.png +0 -0
  295. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/boleto.png +0 -0
  296. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/branco/ababoleto.png +0 -0
  297. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/branco/abacartao.png +0 -0
  298. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/branco/abatransf.png +0 -0
  299. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/branco/e-sedex.gif +0 -0
  300. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/branco/e-sedex.png +0 -0
  301. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/branco/pac.gif +0 -0
  302. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/branco/pac.png +0 -0
  303. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/branco/sedex.gif +0 -0
  304. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/branco/sedex.png +0 -0
  305. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/cc-title.png +0 -0
  306. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/codigo-seguranca.png +0 -0
  307. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/flatrate_flatrate.gif +0 -0
  308. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/freeshipping_freeshipping.gif +0 -0
  309. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/info.png +0 -0
  310. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/logomoip.png +0 -0
  311. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/logomoipck.png +0 -0
  312. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/moip.png +0 -0
  313. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/moipamerican.png +0 -0
  314. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/moipbanner2.png +0 -0
  315. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/moipdiners.png +0 -0
  316. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/moiphiper.png +0 -0
  317. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/moipmaster.png +0 -0
  318. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/moipvisa.png +0 -0
  319. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/pedroteixeira_correios_40010.gif +0 -0
  320. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/pedroteixeira_correios_40096.gif +0 -0
  321. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/pedroteixeira_correios_41068.gif +0 -0
  322. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/pedroteixeira_correios_41106.gif +0 -0
  323. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/pedroteixeira_correios_81019.gif +0 -0
  324. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/preto/ababoleto.png +0 -0
  325. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/preto/abacartao.png +0 -0
  326. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/preto/abatransf.png +0 -0
  327. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/printer.png +0 -0
  328. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/verde/ababoleto.png +0 -0
  329. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/verde/abacartao.png +0 -0
  330. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/verde/abatransf.png +0 -0
  331. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/vermelho/ababoleto.png +0 -0
  332. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/vermelho/abacartao.png +0 -0
  333. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/vermelho/abatransf.png +0 -0
  334. skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/warning.png +0 -0
  335. skin/frontend/base/default/MOIP/onestepcheckout/css/960grid_onestepcheckout.css +157 -0
  336. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/blank.gif +0 -0
  337. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_close.png +0 -0
  338. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_loading.png +0 -0
  339. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_nav_left.png +0 -0
  340. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_nav_right.png +0 -0
  341. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_overlay.png +0 -0
  342. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_e.png +0 -0
  343. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_n.png +0 -0
  344. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_ne.png +0 -0
  345. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_nw.png +0 -0
  346. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_s.png +0 -0
  347. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_se.png +0 -0
  348. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_sw.png +0 -0
  349. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_w.png +0 -0
  350. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_title_left.png +0 -0
  351. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_title_main.png +0 -0
  352. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_title_over.png +0 -0
  353. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_title_right.png +0 -0
  354. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancybox-x.png +0 -0
  355. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancybox-y.png +0 -0
  356. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancybox.png +0 -0
  357. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  358. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  359. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_flat_10_000000_40x100.png +0 -0
  360. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  361. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  362. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  363. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_gloss-wave_35_000_500x100.png +0 -0
  364. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  365. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  366. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  367. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-icons_222222_256x240.png +0 -0
  368. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-icons_228ef1_256x240.png +0 -0
  369. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-icons_ef8c08_256x240.png +0 -0
  370. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-icons_ffd27a_256x240.png +0 -0
  371. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-icons_ffffff_256x240.png +0 -0
  372. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/jquery.fancybox-1.3.1.css +0 -3
  373. skin/frontend/base/default/MOIP/onestepcheckout/css/onestepcheckout.css +194 -0
  374. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/01.png +0 -0
  375. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/02.png +0 -0
  376. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/03.png +0 -0
  377. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/04.png +0 -0
  378. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/05.png +0 -0
  379. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/2_clock.png +0 -0
  380. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/ajax-loader-tr.gif +0 -0
  381. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/bkg-giftmessage.png +0 -0
  382. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/bkg-step-review.png +0 -0
  383. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/bkg_form-search.gif +0 -0
  384. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_close.png +0 -0
  385. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_loading.png +0 -0
  386. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_nav_left.png +0 -0
  387. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_nav_right.png +0 -0
  388. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_overlay.png +0 -0
  389. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_e.png +0 -0
  390. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_n.png +0 -0
  391. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_ne.png +0 -0
  392. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_nw.png +0 -0
  393. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_s.png +0 -0
  394. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_se.png +0 -0
  395. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_sw.png +0 -0
  396. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_w.png +0 -0
  397. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_title_left.png +0 -0
  398. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_title_main.png +0 -0
  399. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_title_over.png +0 -0
  400. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_title_right.png +0 -0
  401. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancybox-x.png +0 -0
  402. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancybox-y.png +0 -0
  403. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancybox.png +0 -0
  404. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/grid-cal.gif +0 -0
  405. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/line-gradient.gif +0 -0
  406. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/loja_segura.jpg +0 -0
  407. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/opc-ajax-loader.gif +0 -0
  408. skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/validation_advice_bg.gif +0 -0
  409. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/css/bootstrap.css +8 -8
  410. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/css/formulario.css +7 -5
  411. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/css/formulario_horizontal.css +12 -12
  412. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/css/prettify.css +0 -0
  413. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/AmericanExpress.png +0 -0
  414. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/BancoDoBrasil.png +0 -0
  415. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/Banrisul.png +0 -0
  416. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/Bradesco.png +0 -0
  417. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/Diners.png +0 -0
  418. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/Hipercard.png +0 -0
  419. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/Itau.png +0 -0
  420. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/Mastercard.png +0 -0
  421. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/Visa.png +0 -0
  422. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/ababoleto.png +0 -0
  423. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/abacartao.png +0 -0
  424. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/abatransf.png +0 -0
  425. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/ajax-loader.gif +0 -0
  426. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/azul/ababoleto.png +0 -0
  427. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/azul/abacartao.png +0 -0
  428. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/azul/abatransf.png +0 -0
  429. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/bank-icon.png +0 -0
  430. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/bank-title.png +0 -0
  431. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/bb.png +0 -0
  432. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/boleto-icon.png +0 -0
  433. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/boleto.png +0 -0
  434. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/branco/ababoleto.png +0 -0
  435. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/branco/abacartao.png +0 -0
  436. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/branco/abatransf.png +0 -0
  437. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/branco/e-sedex.gif +0 -0
  438. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/branco/e-sedex.png +0 -0
  439. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/branco/pac.gif +0 -0
  440. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/branco/pac.png +0 -0
  441. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/branco/sedex.gif +0 -0
  442. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/branco/sedex.png +0 -0
  443. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/cc-title.png +0 -0
  444. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/codigo-seguranca.png +0 -0
  445. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/flatrate_flatrate.gif +0 -0
  446. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/freeshipping_freeshipping.gif +0 -0
  447. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/info.png +0 -0
  448. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/logomoip.png +0 -0
  449. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/logomoipck.png +0 -0
  450. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/moip.png +0 -0
  451. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/moipamerican.png +0 -0
  452. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/moipbanner2.png +0 -0
  453. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/moipdiners.png +0 -0
  454. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/moiphiper.png +0 -0
  455. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/moipmaster.png +0 -0
  456. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/moipvisa.png +0 -0
  457. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/pedroteixeira_correios_40010.gif +0 -0
  458. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/pedroteixeira_correios_40096.gif +0 -0
  459. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/pedroteixeira_correios_41068.gif +0 -0
  460. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/pedroteixeira_correios_41106.gif +0 -0
  461. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/pedroteixeira_correios_81019.gif +0 -0
  462. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/preto/ababoleto.png +0 -0
  463. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/preto/abacartao.png +0 -0
  464. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/preto/abatransf.png +0 -0
  465. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/printer.png +0 -0
  466. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/verde/ababoleto.png +0 -0
  467. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/verde/abacartao.png +0 -0
  468. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/verde/abatransf.png +0 -0
  469. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/vermelho/ababoleto.png +0 -0
  470. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/vermelho/abacartao.png +0 -0
  471. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/vermelho/abatransf.png +0 -0
  472. skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/warning.png +0 -0
  473. skin/frontend/base/default/O2TI/onestepcheckout/css/960grid_onestepcheckout.css +0 -33
  474. skin/frontend/base/default/O2TI/onestepcheckout/css/hodor_onestepcheckout.css +0 -33
  475. skin/frontend/base/default/O2TI/onestepcheckout/css/onestepcheckout.css +0 -61
  476. skin/frontend/base/default/O2TI/onestepcheckout/images/bkg_header.jpg +0 -0
  477. skin/frontend/base/default/O2TI/onestepcheckout/images/blank.gif +0 -0
  478. skin/frontend/base/default/O2TI/onestepcheckout/images/btn_checkout.gif +0 -0
  479. skin/frontend/base/default/O2TI/onestepcheckout/images/clock.gif +0 -0
  480. skin/frontend/base/default/O2TI/onestepcheckout/images/clock.png +0 -0
  481. skin/frontend/base/default/O2TI/onestepcheckout/images/demo-large_03.png +0 -0
  482. skin/frontend/base/default/O2TI/onestepcheckout/images/demo-large_04.png +0 -0
  483. skin/frontend/base/default/O2TI/onestepcheckout/images/demo-large_05.png +0 -0
  484. skin/frontend/base/default/O2TI/onestepcheckout/images/demo-large_051.png +0 -0
  485. skin/frontend/base/default/O2TI/onestepcheckout/images/demo-large_06.png +0 -0
  486. skin/frontend/base/default/O2TI/onestepcheckout/images/demo-large_07.png +0 -0
MOIP_README.md DELETED
@@ -1,5 +0,0 @@
1
- Instalação e Suporte
2
-
3
- Para Dúvidas Comuns Acesse: http://suporte.o2ti.com
4
- Para Instalação do Módulo veja o Video: http://vimeo.com/58153143
5
- Erro 404 Após a instalação : Deslogue-se do admin e logue-se novamente.
 
 
 
 
 
MOIP_SQL_MANUAL_INSTALATION.txt DELETED
@@ -1,30 +0,0 @@
1
-
2
- tabela o2ti * atenção para o uso do banco se possuir prefixo *
3
-
4
-
5
- CREATE TABLE IF NOT EXISTS `o2ti_moip` (
6
- `order_id` int(11) NOT NULL AUTO_INCREMENT,
7
- `realorder_id` int(11) DEFAULT NULL,
8
- `meio_pg` longtext DEFAULT NULL,
9
- `key_payment` char(50) DEFAULT NULL,
10
- `order_idmoip` char(50) DEFAULT NULL,
11
- `customer_id` int(11) DEFAULT NULL,
12
- `customer_idmoip` char(50) DEFAULT NULL,
13
- `creditcard_parc` char(50) DEFAULT NULL,
14
- `creditcard_idmoip` char(50) DEFAULT NULL,
15
- `brand_moip` varchar(250) DEFAULT NULL,
16
- `first6` int(11) DEFAULT NULL,
17
- `last4` int(11) DEFAULT NULL,
18
- `boleto_line` char(100) DEFAULT NULL,
19
- `urlcheckout_pg` text DEFAULT NULL,
20
- `fees` char(50) DEFAULT NULL,
21
- `json_send` longtext DEFAULT NULL,
22
- `token` varchar(250) DEFAULT NULL,
23
- `status_token` varchar(250) DEFAULT NULL,
24
- PRIMARY KEY (`order_id`)
25
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
26
-
27
-
28
- ############# Atualizando o MoIP ################
29
- vá em core_resource e apague a linha do moip, geralmente ficará na segunda página.
30
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/{O2TI → MOIP}/.DS_Store RENAMED
File without changes
app/code/local/MOIP/All/Helper/Data.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Transparente - Transparente Payment Module
4
+ *
5
+ * @title Magento -> Custom Payment Module for Transparente (Brazil)
6
+ * @category Payment Gateway
7
+ * @package MOIP_Transparente
8
+ * @author Transparente Pagamentos S/a
9
+ * @copyright Copyright (c) 2010 Transparente Pagamentos S/A
10
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
11
+ */
12
+ class MOIP_All_Helper_Data extends Mage_Core_Helper_Abstract {
13
+
14
+ }
app/code/local/{O2TI → MOIP}/All/etc/config.xml RENAMED
@@ -1,19 +1,19 @@
1
  <?xml version="1.0"?>
2
  <config>
3
  <modules>
4
- <O2TI_All>
5
  <version>0.1.0</version>
6
- </O2TI_All>
7
  </modules>
8
  <admin>
9
  <routers>
10
- <o2tiall>
11
  <use>admin</use>
12
  <args>
13
- <module>O2TI_All</module>
14
- <frontName>o2tiall</frontName>
15
  </args>
16
- </o2tiall>
17
  </routers>
18
  </admin>
19
  <adminhtml>
@@ -24,18 +24,18 @@
24
  </all>
25
  <admin>
26
  <children>
27
- <O2TI_All>
28
- <title>O2TI All Module</title>
29
  <sort_order>10</sort_order>
30
- </O2TI_All>
31
 
32
  <system>
33
  <children>
34
  <config>
35
  <children>
36
- <o2tiall translate="title" module="o2tiall">
37
- <title>O2TI All Module</title>
38
- </o2tiall>
39
  </children>
40
  </config>
41
  </children>
@@ -47,18 +47,18 @@
47
  </adminhtml>
48
  <global>
49
  <helpers>
50
- <o2tiall>
51
- <class>O2TI_All_Helper</class>
52
- </o2tiall>
53
  </helpers>
54
  </global>
55
  <default>
56
- <o2tiall>
57
  <config>
58
  <enabled>1</enabled>
59
  <column_count>5</column_count>
60
  <size>10</size>
61
  </config>
62
- </o2tiall>
63
  </default>
64
  </config>
1
  <?xml version="1.0"?>
2
  <config>
3
  <modules>
4
+ <MOIP_All>
5
  <version>0.1.0</version>
6
+ </MOIP_All>
7
  </modules>
8
  <admin>
9
  <routers>
10
+ <moipall>
11
  <use>admin</use>
12
  <args>
13
+ <module>MOIP_All</module>
14
+ <frontName>moipall</frontName>
15
  </args>
16
+ </moipall>
17
  </routers>
18
  </admin>
19
  <adminhtml>
24
  </all>
25
  <admin>
26
  <children>
27
+ <MOIP_All>
28
+ <title>MOIP All Module</title>
29
  <sort_order>10</sort_order>
30
+ </MOIP_All>
31
 
32
  <system>
33
  <children>
34
  <config>
35
  <children>
36
+ <moipall translate="title" module="moipall">
37
+ <title>MOIP All Module</title>
38
+ </moipall>
39
  </children>
40
  </config>
41
  </children>
47
  </adminhtml>
48
  <global>
49
  <helpers>
50
+ <moipall>
51
+ <class>MOIP_All_Helper</class>
52
+ </moipall>
53
  </helpers>
54
  </global>
55
  <default>
56
+ <moipall>
57
  <config>
58
  <enabled>1</enabled>
59
  <column_count>5</column_count>
60
  <size>10</size>
61
  </config>
62
+ </moipall>
63
  </default>
64
  </config>
app/code/local/MOIP/All/etc/system.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <moip translate="label" module="moipall">
5
+ <label>MOIP.COM.BR</label>
6
+ <sort_order>100</sort_order>
7
+ </moip>
8
+ </tabs>
9
+ </config>
app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Adminhtml/Form/Renderer/Config/Createfield.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Block_Adminhtml_Form_Renderer_Config_Createfield extends Mage_Adminhtml_Block_System_Config_Form_Field
3
  {
4
 
5
  protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
1
  <?php
2
+ class MOIP_Onestepcheckout_Block_Adminhtml_Form_Renderer_Config_Createfield extends Mage_Adminhtml_Block_System_Config_Form_Field
3
  {
4
 
5
  protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Adminhtml/Onestepcheckout.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Block_Adminhtml_Onestepcheckout extends Mage_Adminhtml_Block_Widget_Grid_Container
3
  {
4
  public function __construct()
5
  {
1
  <?php
2
+ class MOIP_Onestepcheckout_Block_Adminhtml_Onestepcheckout extends Mage_Adminhtml_Block_Widget_Grid_Container
3
  {
4
  public function __construct()
5
  {
app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Edit.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class O2TI_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
4
  {
5
  public function __construct()
6
  {
1
  <?php
2
 
3
+ class MOIP_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
4
  {
5
  public function __construct()
6
  {
app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Edit/Form.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class O2TI_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
4
  {
5
  protected function _prepareForm()
6
  {
1
  <?php
2
 
3
+ class MOIP_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
4
  {
5
  protected function _prepareForm()
6
  {
app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Edit/Tab/Form.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class O2TI_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
4
  {
5
  protected function _prepareForm()
6
  {
1
  <?php
2
 
3
+ class MOIP_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
4
  {
5
  protected function _prepareForm()
6
  {
app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Edit/Tabs.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class O2TI_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
4
  {
5
 
6
  public function __construct()
1
  <?php
2
 
3
+ class MOIP_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
4
  {
5
 
6
  public function __construct()
app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Grid.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class O2TI_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Grid extends Mage_Adminhtml_Block_Widget_Grid
4
  {
5
  public function __construct()
6
  {
1
  <?php
2
 
3
+ class MOIP_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Grid extends Mage_Adminhtml_Block_Widget_Grid
4
  {
5
  public function __construct()
6
  {
app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Sales/Order/Grid.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Sales_Order_Grid extends Mage_Adminhtml_Block_Sales_Order_Grid
3
  {
4
  // protected function _prepareLayout()
5
  // {
@@ -14,7 +14,7 @@ class O2TI_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Sales_Order_Grid exte
14
  $collect= Mage::getModel('customer/customer')->getCollection();
15
  if(version_compare(Mage::getVersion(),'1.4.1.0','>=')){
16
  $collection = Mage::getResourceModel('sales/order_grid_collection');
17
- $collection->getSelect()->joinleft(array('one_step'=>$collect->getTable('o2ti_onestepcheckout')),'one_step.sales_order_id=main_table.entity_id',array('o2ti_deliverydate_date','o2ti_customercomment_info','o2ti_deliverydate_time'));
18
  $this->setCollection($collection);
19
  }
20
  else{
@@ -31,10 +31,10 @@ class O2TI_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Sales_Order_Grid exte
31
  ->addExpressionAttributeToSelect('shipping_name',
32
  'CONCAT({{shipping_firstname}}, " ", {{shipping_lastname}})',
33
  array('shipping_firstname', 'shipping_lastname'));
34
- $collection->getSelect()->joinleft( //array( 'one_step'=>'o2ti_onestepcheckout'),
35
- array('one_step'=>$collect->getTable('o2ti_onestepcheckout')),
36
  'one_step.sales_order_id=e.entity_id',
37
- array('o2ti_deliverydate_date','o2ti_customercomment_info','o2ti_deliverydate_time')
38
  );
39
  $this->setCollection($collection);
40
  }
@@ -100,22 +100,22 @@ protected function _prepareColumns()
100
 
101
  ));
102
 
103
- $this->addColumn('o2ti_customercomment_info', array(
104
  'header' => Mage::helper('sales')->__('Customer Comment'),
105
- 'index' => 'o2ti_customercomment_info',
106
  'type' => 'text',
107
 
108
  ));
109
  if(Mage::getStoreConfig('onestepcheckout/deliverydate/allow_options')){
110
- $this->addColumn('o2ti_deliverydate_date', array(
111
  'header' => Mage::helper('sales')->__('Delivery Date'),
112
- 'index' => 'o2ti_deliverydate_date',
113
  'type' => 'text',
114
 
115
  ));
116
- $this->addColumn('o2ti_deliverydate_time', array(
117
  'header' => Mage::helper('sales')->__('Delivery Time'),
118
- 'index' => 'o2ti_deliverydate_time',
119
  'type' => 'text',
120
 
121
  ));
@@ -176,7 +176,7 @@ protected function _prepareColumns()
176
  $cond = $column->getFilter()->getCondition();
177
  if ($field && isset($cond)) {
178
  // $this->getCollection()->addFieldToFilter($field , $cond);
179
- if($field=='o2ti_customercomment_info' OR $field=='o2ti_deliverydate_date' OR $field=='o2ti_deliverydate_time'){
180
  foreach($cond as $typecond => $value){
181
  if(version_compare(Mage::getVersion(),'1.4.1.0','>=')){
182
  $this->getCollection()->getSelect()->where('one_step.'.$field.' '.$typecond.' "'.$value.'"');
1
  <?php
2
+ class MOIP_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Sales_Order_Grid extends Mage_Adminhtml_Block_Sales_Order_Grid
3
  {
4
  // protected function _prepareLayout()
5
  // {
14
  $collect= Mage::getModel('customer/customer')->getCollection();
15
  if(version_compare(Mage::getVersion(),'1.4.1.0','>=')){
16
  $collection = Mage::getResourceModel('sales/order_grid_collection');
17
+ $collection->getSelect()->joinleft(array('one_step'=>$collect->getTable('moip_onestepcheckout')),'one_step.sales_order_id=main_table.entity_id',array('moip_deliverydate_date','moip_customercomment_info','moip_deliverydate_time'));
18
  $this->setCollection($collection);
19
  }
20
  else{
31
  ->addExpressionAttributeToSelect('shipping_name',
32
  'CONCAT({{shipping_firstname}}, " ", {{shipping_lastname}})',
33
  array('shipping_firstname', 'shipping_lastname'));
34
+ $collection->getSelect()->joinleft( //array( 'one_step'=>'moip_onestepcheckout'),
35
+ array('one_step'=>$collect->getTable('moip_onestepcheckout')),
36
  'one_step.sales_order_id=e.entity_id',
37
+ array('moip_deliverydate_date','moip_customercomment_info','moip_deliverydate_time')
38
  );
39
  $this->setCollection($collection);
40
  }
100
 
101
  ));
102
 
103
+ $this->addColumn('moip_customercomment_info', array(
104
  'header' => Mage::helper('sales')->__('Customer Comment'),
105
+ 'index' => 'moip_customercomment_info',
106
  'type' => 'text',
107
 
108
  ));
109
  if(Mage::getStoreConfig('onestepcheckout/deliverydate/allow_options')){
110
+ $this->addColumn('moip_deliverydate_date', array(
111
  'header' => Mage::helper('sales')->__('Delivery Date'),
112
+ 'index' => 'moip_deliverydate_date',
113
  'type' => 'text',
114
 
115
  ));
116
+ $this->addColumn('moip_deliverydate_time', array(
117
  'header' => Mage::helper('sales')->__('Delivery Time'),
118
+ 'index' => 'moip_deliverydate_time',
119
  'type' => 'text',
120
 
121
  ));
176
  $cond = $column->getFilter()->getCondition();
177
  if ($field && isset($cond)) {
178
  // $this->getCollection()->addFieldToFilter($field , $cond);
179
+ if($field=='moip_customercomment_info' OR $field=='moip_deliverydate_date' OR $field=='moip_deliverydate_time'){
180
  foreach($cond as $typecond => $value){
181
  if(version_compare(Mage::getVersion(),'1.4.1.0','>=')){
182
  $this->getCollection()->getSelect()->where('one_step.'.$field.' '.$typecond.' "'.$value.'"');
app/code/local/{O2TI/Moip/Block/Adminhtml/moip → MOIP/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Sales/Order/View/Tab}/Info/Customermessages.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Sales_Order_View_Tab_Info_Customermessages extends Mage_Adminhtml_Block_Sales_Order_Abstract
3
  {
4
  public function _prepareLayout()
5
  {
1
  <?php
2
+ class MOIP_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Sales_Order_View_Tab_Info_Customermessages extends Mage_Adminhtml_Block_Sales_Order_Abstract
3
  {
4
  public function _prepareLayout()
5
  {
app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Sales/Order/View/Tab/Info/Deliverydate.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Sales_Order_View_Tab_Info_Deliverydate extends Mage_Adminhtml_Block_Sales_Order_Abstract
3
  {
4
  public function _prepareLayout()
5
  {
1
  <?php
2
+ class MOIP_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Sales_Order_View_Tab_Info_Deliverydate extends Mage_Adminhtml_Block_Sales_Order_Abstract
3
  {
4
  public function _prepareLayout()
5
  {
app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Adminhtml/Onestepcheckout/System/Config/Form/Field/Addtimerange.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Block_Adminhtml_Onestepcheckout_System_Config_Form_Field_Addtimerange extends Mage_Adminhtml_Block_System_Config_Form_Field_Regexceptions
3
  {
4
  public function __construct()
5
  {
1
  <?php
2
+ class MOIP_Onestepcheckout_Block_Adminhtml_Onestepcheckout_System_Config_Form_Field_Addtimerange extends Mage_Adminhtml_Block_System_Config_Form_Field_Regexceptions
3
  {
4
  public function __construct()
5
  {
app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Checkout/Onepage/Billing.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Block_Checkout_Onepage_Billing extends Mage_Checkout_Block_Onepage_Billing
3
  {
4
 
5
  public function getCountryHtmlSelect($type)
1
  <?php
2
+ class MOIP_Onestepcheckout_Block_Checkout_Onepage_Billing extends Mage_Checkout_Block_Onepage_Billing
3
  {
4
 
5
  public function getCountryHtmlSelect($type)
app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Checkout/Onepage/Billing/Sortbilling.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Block_Checkout_Onepage_Billing_Sortbilling extends O2TI_Onestepcheckout_Block_Checkout_Onepage_Billing
3
  {
4
  protected $type_address=array('company','email','street','city','state','zip','country','telephone','fax');
5
  public function isrequired($name_address){
1
  <?php
2
+ class MOIP_Onestepcheckout_Block_Checkout_Onepage_Billing_Sortbilling extends MOIP_Onestepcheckout_Block_Checkout_Onepage_Billing
3
  {
4
  protected $type_address=array('company','email','street','city','state','zip','country','telephone','fax');
5
  public function isrequired($name_address){
app/code/local/MOIP/Onestepcheckout/Block/Checkout/Onepage/Review/Options.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class MOIP_Onestepcheckout_Block_Checkout_Onepage_Review_Options extends Mage_Core_Block_Template
3
+ {
4
+ public function _prepareLayout()
5
+ {
6
+ return parent::_prepareLayout();
7
+ }
8
+
9
+
10
+ }
app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Checkout/Onepage/Shipping.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Block_Checkout_Onepage_Shipping extends Mage_Checkout_Block_Onepage_Shipping
3
  {
4
  public function getAddressesHtmlSelect($type)
5
  {
1
  <?php
2
+ class MOIP_Onestepcheckout_Block_Checkout_Onepage_Shipping extends Mage_Checkout_Block_Onepage_Shipping
3
  {
4
  public function getAddressesHtmlSelect($type)
5
  {
app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Checkout/Onepage/Shipping/Sortshipping.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Block_Checkout_Onepage_Shipping_Sortshipping extends O2TI_Onestepcheckout_Block_Checkout_Onepage_Shipping
3
  {
4
  protected $type_address=array('company','street','city','state','zip','country','telephone','fax');
5
  public function isrequired($name_address){
1
  <?php
2
+ class MOIP_Onestepcheckout_Block_Checkout_Onepage_Shipping_Sortshipping extends MOIP_Onestepcheckout_Block_Checkout_Onepage_Shipping
3
  {
4
  protected $type_address=array('company','street','city','state','zip','country','telephone','fax');
5
  public function isrequired($name_address){
app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Checkout/Top.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Block_Checkout_Top extends Mage_Core_Block_Template
3
  {
4
  public function getAdditionaldays(){
5
  $array=array();
1
  <?php
2
+ class MOIP_Onestepcheckout_Block_Checkout_Top extends Mage_Core_Block_Template
3
  {
4
  public function getAdditionaldays(){
5
  $array=array();
app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Onestepcheckout.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Block_Onestepcheckout extends Mage_Core_Block_Template
3
  {
4
  public function _prepareLayout()
5
  {
1
  <?php
2
+ class MOIP_Onestepcheckout_Block_Onestepcheckout extends Mage_Core_Block_Template
3
  {
4
  public function _prepareLayout()
5
  {
app/code/local/{O2TI → MOIP}/Onestepcheckout/Block/Sales/Info/Deliverydate.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Block_Sales_Info_Deliverydate extends Mage_Core_Block_Template
3
  {
4
  public function _prepareLayout()
5
  {
1
  <?php
2
+ class MOIP_Onestepcheckout_Block_Sales_Info_Deliverydate extends Mage_Core_Block_Template
3
  {
4
  public function _prepareLayout()
5
  {
app/code/local/{O2TI → MOIP}/Onestepcheckout/Helper/Data.php RENAMED
@@ -30,7 +30,7 @@
30
  * @author Magento Core Team <core@magentocommerce.com>
31
  */
32
 
33
- class O2TI_Onestepcheckout_Helper_Data extends Mage_Core_Helper_Abstract
34
  {
35
  const XML_PATH_GUEST_CHECKOUT = 'checkout/options/guest_checkout';
36
 
30
  * @author Magento Core Team <core@magentocommerce.com>
31
  */
32
 
33
+ class MOIP_Onestepcheckout_Helper_Data extends Mage_Core_Helper_Abstract
34
  {
35
  const XML_PATH_GUEST_CHECKOUT = 'checkout/options/guest_checkout';
36
 
app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/Customer/Customer.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Model_Customer_Customer extends Mage_Customer_Model_Customer
3
  {
4
  public function validate()
5
  {
1
  <?php
2
+ class MOIP_Onestepcheckout_Model_Customer_Customer extends Mage_Customer_Model_Customer
3
  {
4
  public function validate()
5
  {
app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/Entity/Tipopessoa.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Model_Entity_Tipopessoa extends Mage_Eav_Model_Entity_Attribute_Source_Abstract
3
  {
4
  public function getAllOptions()
5
  {
1
  <?php
2
+ class MOIP_Onestepcheckout_Model_Entity_Tipopessoa extends Mage_Eav_Model_Entity_Attribute_Source_Abstract
3
  {
4
  public function getAllOptions()
5
  {
app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/Mysql4/Onestepcheckout.php RENAMED
@@ -1,10 +1,10 @@
1
  <?php
2
 
3
- class O2TI_Onestepcheckout_Model_Mysql4_Onestepcheckout extends Mage_Core_Model_Mysql4_Abstract
4
  {
5
  public function _construct()
6
  {
7
  // Note that the onestepcheckout_id refers to the key field in your database table.
8
- $this->_init('onestepcheckout/onestepcheckout', 'o2ti_onestepcheckout_date_id');
9
  }
10
  }
1
  <?php
2
 
3
+ class MOIP_Onestepcheckout_Model_Mysql4_Onestepcheckout extends Mage_Core_Model_Mysql4_Abstract
4
  {
5
  public function _construct()
6
  {
7
  // Note that the onestepcheckout_id refers to the key field in your database table.
8
+ $this->_init('onestepcheckout/onestepcheckout', 'moip_onestepcheckout_date_id');
9
  }
10
  }
app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/Mysql4/Onestepcheckout/Collection.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class O2TI_Onestepcheckout_Model_Mysql4_Onestepcheckout_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
4
  {
5
  public function _construct()
6
  {
1
  <?php
2
 
3
+ class MOIP_Onestepcheckout_Model_Mysql4_Onestepcheckout_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
4
  {
5
  public function _construct()
6
  {
app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/Observer.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Model_Observer
3
  {
4
  public function model_config_data_save_before($ovserver)
5
  {
1
  <?php
2
+ class MOIP_Onestepcheckout_Model_Observer
3
  {
4
  public function model_config_data_save_before($ovserver)
5
  {
app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/Onestepcheckout.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Model_Onestepcheckout extends Mage_Core_Model_Abstract
3
  {
4
  public function _construct()
5
  {
1
  <?php
2
+ class MOIP_Onestepcheckout_Model_Onestepcheckout extends Mage_Core_Model_Abstract
3
  {
4
  public function _construct()
5
  {
app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/Sales/Quote/Address.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Model_Sales_Quote_Address extends Mage_Sales_Model_Quote_Address //Mage_Customer_Model_Address_Abstract
3
  {
4
  public function validate()
5
  {
1
  <?php
2
+ class MOIP_Onestepcheckout_Model_Sales_Quote_Address extends Mage_Sales_Model_Quote_Address //Mage_Customer_Model_Address_Abstract
3
  {
4
  public function validate()
5
  {
app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/Shipping/Allowedmethods.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class O2TI_Onestepcheckout_Model_Shipping_Allowedmethods
4
  {
5
  /**
6
  * Return array of carriers.
1
  <?php
2
 
3
+ class MOIP_Onestepcheckout_Model_Shipping_Allowedmethods
4
  {
5
  /**
6
  * Return array of carriers.
app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/Status.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Model_Status extends Varien_Object
3
  {
4
  const STATUS_ENABLED = 1;
5
  const STATUS_DISABLED = 2;
1
  <?php
2
+ class MOIP_Onestepcheckout_Model_Status extends Varien_Object
3
  {
4
  const STATUS_ENABLED = 1;
5
  const STATUS_DISABLED = 2;
app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/System/Config/Source/Checkuncheck.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class O2TI_Onestepcheckout_Model_System_Config_Source_Checkuncheck
4
  {
5
  public function toOptionArray()
6
  {
1
  <?php
2
 
3
+ class MOIP_Onestepcheckout_Model_System_Config_Source_Checkuncheck
4
  {
5
  public function toOptionArray()
6
  {
app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/System/Config/Source/Disablefield.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Model_System_Config_Source_Disablefield
3
  {
4
  public function toOptionArray()
5
  {
1
  <?php
2
+ class MOIP_Onestepcheckout_Model_System_Config_Source_Disablefield
3
  {
4
  public function toOptionArray()
5
  {
app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/System/Config/Source/Formatdate.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Model_System_Config_Source_Formatdate
3
  {
4
  public function toOptionArray()
5
  {
1
  <?php
2
+ class MOIP_Onestepcheckout_Model_System_Config_Source_Formatdate
3
  {
4
  public function toOptionArray()
5
  {
app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/System/Config/Source/Optionaddfield.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Model_System_Config_Source_Optionaddfield
3
  {
4
 
5
 
1
  <?php
2
+ class MOIP_Onestepcheckout_Model_System_Config_Source_Optionaddfield
3
  {
4
 
5
 
app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/System/Config/Source/Optionhidefield.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Model_System_Config_Source_Optionhidefield
3
  {
4
 
5
 
1
  <?php
2
+ class MOIP_Onestepcheckout_Model_System_Config_Source_Optionhidefield
3
  {
4
 
5
 
app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/System/Config/Source/Pagelayout.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Model_System_Config_Source_Pagelayout
3
  {
4
  public function toOptionArray()
5
  {
1
  <?php
2
+ class MOIP_Onestepcheckout_Model_System_Config_Source_Pagelayout
3
  {
4
  public function toOptionArray()
5
  {
app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/System/Config/Source/Payment/Allowedmethods.php RENAMED
@@ -24,7 +24,7 @@
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
- class O2TI_Onestepcheckout_Model_System_Config_Source_Payment_Allowedmethods
28
  // extends Mage_Adminhtml_Model_System_Config_Source_Payment_Allmethods
29
  {
30
  protected function _getPaymentMethods()
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
+ class MOIP_Onestepcheckout_Model_System_Config_Source_Payment_Allowedmethods
28
  // extends Mage_Adminhtml_Model_System_Config_Source_Payment_Allmethods
29
  {
30
  protected function _getPaymentMethods()
app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/System/Config/Source/Shipping/Allowedmethods.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class O2TI_Onestepcheckout_Model_Shipping_Allowedmethods
4
  {
5
  /**
6
  * Return array of carriers.
1
  <?php
2
 
3
+ class MOIP_Onestepcheckout_Model_Shipping_Allowedmethods
4
  {
5
  /**
6
  * Return array of carriers.
app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/System/Config/Source/Subscribenewletter.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Model_System_Config_Source_Subscribenewletter
3
  {
4
 
5
 
1
  <?php
2
+ class MOIP_Onestepcheckout_Model_System_Config_Source_Subscribenewletter
3
  {
4
 
5
 
app/code/local/{O2TI → MOIP}/Onestepcheckout/Model/System/Config/Source/form/Createfield.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Model_System_Config_Source_Form_Createfield extends Mage_Adminhtml_Block_System_Config_Form_Field
3
  {
4
 
5
  protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
1
  <?php
2
+ class MOIP_Onestepcheckout_Model_System_Config_Source_Form_Createfield extends Mage_Adminhtml_Block_System_Config_Form_Field
3
  {
4
 
5
  protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
app/code/local/{O2TI → MOIP}/Onestepcheckout/controllers/Adminhtml/OnestepcheckoutController.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Adminhtml_OnestepcheckoutController extends Mage_Adminhtml_Controller_action
3
  {
4
  protected function _initAction() {
5
  $this->loadLayout()
1
  <?php
2
+ class MOIP_Onestepcheckout_Adminhtml_OnestepcheckoutController extends Mage_Adminhtml_Controller_action
3
  {
4
  protected function _initAction() {
5
  $this->loadLayout()
app/code/local/{O2TI → MOIP}/Onestepcheckout/controllers/IndexController.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
  require_once 'Mage/Checkout/controllers/OnepageController.php';
3
- class O2TI_Onestepcheckout_IndexController extends Mage_Checkout_OnepageController
4
  { protected $notshiptype=0;
5
  public function getCheckout() {
6
  return Mage::getSingleton('checkout/session');
@@ -64,10 +64,7 @@ class O2TI_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
64
  }catch(Exception $e) {
65
  }
66
  }
67
- $defaultshippingmethod=$this->initshippingmethod();
68
- if ($defaultshippingmethod) {
69
- Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->setShippingMethod($defaultshippingmethod);
70
- }
71
  $applyrule=$this->getQuote()->getAppliedRuleIds();
72
  $applyaction=Mage::getModel('salesrule/rule')->load($applyrule)->getSimpleAction();
73
 
@@ -89,6 +86,12 @@ class O2TI_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
89
  $listmethod='';
90
  $guessCustomer = Mage::getSingleton('checkout/session')->getQuote();
91
  $addresses=$guessCustomer->getShippingAddress();
 
 
 
 
 
 
92
  $list_shipmethod=$addresses->getGroupedAllShippingRates();
93
  foreach ($list_shipmethod as $code => $_rates) {
94
  $listmethod[]=$code;
@@ -137,15 +140,15 @@ class O2TI_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
137
  try{
138
  if ($listmethod ==null or $listmethod=='') {return;}
139
  if (sizeof($listmethod)==1) {
140
- if($listmethod[0] != "o2ti_moip_standard"){
141
- Mage::getSingleton('checkout/session')->addError("O meio de pagamento preferêncial deve ser o MoIP.");
142
  }
143
  return $listmethod[0];
144
  }else {
145
  foreach ($listmethod as $methodname) {
146
  if (Mage::getStoreConfig("onestepcheckout/config/default_paymentmethod")==$methodname) {
147
- if($methodname != "o2ti_moip_standard"){
148
- Mage::getSingleton('checkout/session')->addError("O meio de pagamento preferêncial deve ser o MoIP.");
149
  }
150
  return $methodname;
151
  }
@@ -372,47 +375,7 @@ class O2TI_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
372
  }
373
  }
374
  }
375
- public function updateqtyAction() {
376
- try {
377
- $cartData = $this->getRequest()->getParam('cart');
378
- if (is_array($cartData)) {
379
- $filter = new Zend_Filter_LocalizedToNormalized(
380
- array('locale' => Mage::app()->getLocale()->getLocaleCode())
381
- );
382
- foreach ($cartData as $index => $data) {
383
- if (isset($data['qty'])) {
384
- $cartData[$index]['qty'] = $filter->filter($data['qty']);
385
- }
386
- }
387
- $cart = Mage::getSingleton('checkout/cart');
388
- if (! $cart->getCustomerSession()->getCustomer()->getId() && $cart->getQuote()->getCustomerId()) {
389
- $cart->getQuote()->setCustomerId(null);
390
- }
391
- $cart->updateItems($cartData)
392
- ->save();
393
- }
394
- Mage::getSingleton('checkout/session')->setCartWasUpdated(true);
395
- }
396
- catch (Mage_Core_Exception $e) {
397
- $success=0;
398
- echo '{"r":"'.$success.'","error":"'.$e->getMessage().'","view":' .json_encode($this->renderReview()).'}';die;
399
- return ;
400
- }
401
- catch (Exception $e) {
402
- $success=0;
403
- echo '{"r":"'.$success.'","error":"'.Mage::helper('onestepcheckout')->__('Cannot update shopping cart.').'","view":' .json_encode($this->renderReview()).'}';die;
404
- return ;
405
- }
406
- $success=1;
407
- if (!$this->_getQuote()->getItemsCount()) {
408
- echo '{"r":"'.$success.'","view":"<script type=\"text/javascript\">window.location=\"'.Mage::getUrl('checkout/onepage').'\"</script>"}';die;
409
- return;
410
- }
411
- else {
412
- echo '{"r":"'.$success.'","view":' .json_encode($this->renderReview()).'}';die;
413
- return ;
414
- }
415
- }
416
  public function updatecouponAction() {
417
  $this->_initLayoutMessages('checkout/session');
418
  if (!$this->_getQuote()->getItemsCount()) {
@@ -508,9 +471,7 @@ class O2TI_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
508
  }
509
  $postData=$this->getRequest()->getPost($isbilling, array());
510
  $customerAddressId = $this->getRequest()->getPost($isbilling.'_address_id', false);
511
- if ($this->getRequest()->getPost($isbilling.'_address_id') != "") {
512
- $customerAddressId = "";
513
- }
514
  if (($postData['country_id']!='') or $customerAddressId) {
515
  $postData = $this->filterdata($postData);
516
  $postData['use_for_shipping']='1';
@@ -533,9 +494,7 @@ class O2TI_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
533
  ->setPostcode($postData['postcode'])
534
  ->setCollectShippingRates(true);
535
  $this->_getQuote()->save();
536
-
537
-
538
- $this->loadLayout()->renderLayout();
539
  }
540
 
541
  public function _getSession() {
@@ -603,13 +562,7 @@ class O2TI_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
603
  }
604
  public function updateordermethodAction() {
605
  if (!$this->isCustomerLoggedIn()) {
606
- $isguest=$this->getRequest()->getPost('register_new_account');
607
- if ($isguest=='1' or Mage::helper('onestepcheckout')->haveProductDownloadable()) {
608
- $result_save_method = $this->getOnepage()->saveCheckoutMethod('register');
609
- }
610
- else {
611
- $result_save_method = $this->getOnepage()->saveCheckoutMethod('guest');
612
- }
613
  }
614
  if ($this->getRequest()->isPost()) {
615
  if ($this->isCustomerLoggedIn()) {
@@ -650,10 +603,9 @@ class O2TI_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
650
  }
651
  $customer->save();
652
  }
653
- if (Mage::getStoreConfig('onestepcheckout/config/is_sort_add'))
654
- $data_save_billing =$this->filterdata($this->getRequest()->getPost('billing', array()), false);
655
- else
656
  $data_save_billing = $this->getRequest()->getPost('billing', array());
 
657
  if ($this->isCustomerLoggedIn()) {
658
  $this->saveAddress('billing', $data_save_billing);
659
  }
@@ -684,10 +636,7 @@ class O2TI_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
684
  }
685
 
686
  if ($this->getrequest()->ispost()) {
687
- if (Mage::getStoreConfig('onestepcheckout/config/is_sort_add'))
688
- $data_save_shipping = $this->filterdata($this->getrequest()->getpost($ship, array()), false);
689
- else
690
- $data_save_shipping = $this->getrequest()->getpost($ship, array());
691
  if ($this->isCustomerLoggedIn() && !$isclick) {
692
  $this->saveAddress('shipping', $data_save_shipping);
693
  }
@@ -742,16 +691,10 @@ class O2TI_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
742
  $data_customercomment ="";
743
  if ($this->getrequest()->ispost()) {
744
  $data_customercomment = $this->getrequest()->getpost('onestepcheckout_comments');
745
- $Deliverystatus= $this->getrequest()->getpost('deliverydate');
746
- $Deliverydate = $this->getrequest()->getpost('onestepcheckout_date');
747
- $Deliverytime= $this->getrequest()->getpost('onestepcheckout_time');
748
  $order=Mage::getModel('onestepcheckout/onestepcheckout');
749
  $order->setSalesOrderId($lastOrderId);
750
- $order->setO2tiCustomercommentInfo($data_customercomment);
751
- if ($Deliverystatus=="late") {
752
- $order->setO2tiDeliverydateDate($Deliverydate);
753
- $order->setO2tiDeliverydateTime($Deliverytime);
754
- }
755
  $order->save();
756
  }
757
  $redirectUrl = $this->getOnepage()->getCheckout()->getRedirectUrl();
@@ -802,7 +745,7 @@ class O2TI_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
802
  'razaosocial'=>'n/a',
803
  'cnpj'=>'n/a',
804
  'insestadual'=>'n/a',
805
- 'save_in_address_book'=>'0'
806
  );
807
  }
808
  else {
@@ -839,7 +782,7 @@ class O2TI_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
839
  'razaosocial'=>'n/a',
840
  'cnpj'=>'n/a',
841
  'insestadual'=>'n/a',
842
- 'save_in_address_book'=>'0'
843
  ) ;
844
  }
845
  }
@@ -871,7 +814,7 @@ class O2TI_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
871
  'razaosocial'=>'',
872
  'cnpj'=>'',
873
  'insestadual'=>'',
874
- 'save_in_address_book'=>'0'
875
  );
876
  }
877
  foreach ($data as $item=>$value) {
@@ -1038,65 +981,46 @@ class O2TI_Onestepcheckout_IndexController extends Mage_Checkout_OnepageControll
1038
  }
1039
  public function saveAddress($type,$data)
1040
  {
1041
- $save_in_address_book = '';
1042
- $save_in_address_book = $data['save_in_address_book'];
1043
-
1044
  $addressId = $this->getRequest()->getPost($type.'_address_id');
1045
 
 
1046
 
1047
  $customer = Mage::getSingleton('customer/session')->getCustomer();
1048
  $address = Mage::getModel('customer/address');
1049
 
1050
- if($save_in_address_book && $addressId != "")
1051
  {
1052
 
1053
  // Save data
1054
 
1055
 
1056
- if ($addressId) {
1057
- $existsAddress = $customer->getAddressById($addressId);
1058
- if ($existsAddress->getId() && $existsAddress->getCustomerId() == $customer->getId()) {
1059
- $address->setId($existsAddress->getId());
1060
- }
1061
  $errors = array();
1062
  /* @var $addressForm Mage_Customer_Model_Form */
1063
  $addressForm = Mage::getModel('customer/form');
1064
- $addressForm->setFormCode('customer_address_edit')
1065
  ->setEntity($address);
1066
- $addressData = $this->getRequest()->getPost($type, array());//$addressForm->extractData($this->getRequest());
1067
- $addressErrors = $addressForm->validateData($addressData);
1068
-
1069
- if ($addressErrors !== true) {
1070
- $errors = $addressErrors;
1071
- }
1072
-
1073
- try {
1074
  $addressForm->compactData($addressData);
1075
  $address->setCustomerId($customer->getId())
1076
- ->setIsDefaultBilling($this->getRequest()->getParam('default_billing', false))
1077
- ->setIsDefaultShipping($this->getRequest()->getParam('default_shipping', false))->setSaveInAddressBook('1');
1078
 
1079
- $addressErrors = $address->validate();
1080
 
1081
- if ($addressErrors !== true) {
1082
- $errors = array_merge($errors, $addressErrors);
1083
- }
1084
-
1085
- if (count($errors) === 0) {
1086
  $address->save();
1087
 
1088
- } else {
1089
-
1090
- }
1091
  } catch (Mage_Core_Exception $e) {
1092
  Zend_Debug::dump($ex->getMessage());
1093
  }
1094
- }
1095
-
1096
  }
1097
 
1098
 
1099
- if(Mage::getSingleton('customer/session')->getCustomer()->getDefaultShipping() && $save_in_address_book != '0') {
1100
 
1101
 
1102
  $customer = Mage::getSingleton('customer/session')->getCustomer();
1
  <?php
2
  require_once 'Mage/Checkout/controllers/OnepageController.php';
3
+ class MOIP_Onestepcheckout_IndexController extends Mage_Checkout_OnepageController
4
  { protected $notshiptype=0;
5
  public function getCheckout() {
6
  return Mage::getSingleton('checkout/session');
64
  }catch(Exception $e) {
65
  }
66
  }
67
+
 
 
 
68
  $applyrule=$this->getQuote()->getAppliedRuleIds();
69
  $applyaction=Mage::getModel('salesrule/rule')->load($applyrule)->getSimpleAction();
70
 
86
  $listmethod='';
87
  $guessCustomer = Mage::getSingleton('checkout/session')->getQuote();
88
  $addresses=$guessCustomer->getShippingAddress();
89
+ $applyrule=$this->getQuote()->getAppliedRuleIds();
90
+ $applyaction=Mage::getModel('salesrule/rule')->load($applyrule)->getSimpleAction();
91
+
92
+ if ($applyaction!='cart_fixed') {
93
+ Mage::getSingleton('checkout/session')->getQuote()->setTotalsCollectedFlag(false);
94
+ }
95
  $list_shipmethod=$addresses->getGroupedAllShippingRates();
96
  foreach ($list_shipmethod as $code => $_rates) {
97
  $listmethod[]=$code;
140
  try{
141
  if ($listmethod ==null or $listmethod=='') {return;}
142
  if (sizeof($listmethod)==1) {
143
+ if($listmethod[0] != "moip_transparente_standard"){
144
+ Mage::getSingleton('checkout/session')->addError("O meio de pagamento preferêncial deve ser o Transparente.");
145
  }
146
  return $listmethod[0];
147
  }else {
148
  foreach ($listmethod as $methodname) {
149
  if (Mage::getStoreConfig("onestepcheckout/config/default_paymentmethod")==$methodname) {
150
+ if($methodname != "moip_transparente_standard"){
151
+ Mage::getSingleton('checkout/session')->addError("O meio de pagamento preferêncial deve ser o Transparente.");
152
  }
153
  return $methodname;
154
  }
375
  }
376
  }
377
  }
378
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
379
  public function updatecouponAction() {
380
  $this->_initLayoutMessages('checkout/session');
381
  if (!$this->_getQuote()->getItemsCount()) {
471
  }
472
  $postData=$this->getRequest()->getPost($isbilling, array());
473
  $customerAddressId = $this->getRequest()->getPost($isbilling.'_address_id', false);
474
+
 
 
475
  if (($postData['country_id']!='') or $customerAddressId) {
476
  $postData = $this->filterdata($postData);
477
  $postData['use_for_shipping']='1';
494
  ->setPostcode($postData['postcode'])
495
  ->setCollectShippingRates(true);
496
  $this->_getQuote()->save();
497
+ $this->loadLayout()->renderLayout();
 
 
498
  }
499
 
500
  public function _getSession() {
562
  }
563
  public function updateordermethodAction() {
564
  if (!$this->isCustomerLoggedIn()) {
565
+ $result_save_method = $this->getOnepage()->saveCheckoutMethod('register');
 
 
 
 
 
 
566
  }
567
  if ($this->getRequest()->isPost()) {
568
  if ($this->isCustomerLoggedIn()) {
603
  }
604
  $customer->save();
605
  }
606
+
 
 
607
  $data_save_billing = $this->getRequest()->getPost('billing', array());
608
+
609
  if ($this->isCustomerLoggedIn()) {
610
  $this->saveAddress('billing', $data_save_billing);
611
  }
636
  }
637
 
638
  if ($this->getrequest()->ispost()) {
639
+ $data_save_shipping = $this->getrequest()->getpost($ship, array());
 
 
 
640
  if ($this->isCustomerLoggedIn() && !$isclick) {
641
  $this->saveAddress('shipping', $data_save_shipping);
642
  }
691
  $data_customercomment ="";
692
  if ($this->getrequest()->ispost()) {
693
  $data_customercomment = $this->getrequest()->getpost('onestepcheckout_comments');
 
 
 
694
  $order=Mage::getModel('onestepcheckout/onestepcheckout');
695
  $order->setSalesOrderId($lastOrderId);
696
+ $order->setMoipCustomercommentInfo($data_customercomment);
697
+
 
 
 
698
  $order->save();
699
  }
700
  $redirectUrl = $this->getOnepage()->getCheckout()->getRedirectUrl();
745
  'razaosocial'=>'n/a',
746
  'cnpj'=>'n/a',
747
  'insestadual'=>'n/a',
748
+ 'save_in_address_book'=>''
749
  );
750
  }
751
  else {
782
  'razaosocial'=>'n/a',
783
  'cnpj'=>'n/a',
784
  'insestadual'=>'n/a',
785
+ 'save_in_address_book'=>''
786
  ) ;
787
  }
788
  }
814
  'razaosocial'=>'',
815
  'cnpj'=>'',
816
  'insestadual'=>'',
817
+ 'save_in_address_book'=>''
818
  );
819
  }
820
  foreach ($data as $item=>$value) {
981
  }
982
  public function saveAddress($type,$data)
983
  {
984
+
 
 
985
  $addressId = $this->getRequest()->getPost($type.'_address_id');
986
 
987
+ $save_address = $this->getRequest()->getPost('save_in_address_book');
988
 
989
  $customer = Mage::getSingleton('customer/session')->getCustomer();
990
  $address = Mage::getModel('customer/address');
991
 
992
+ if(!Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling())
993
  {
994
 
995
  // Save data
996
 
997
 
998
+
 
 
 
 
999
  $errors = array();
1000
  /* @var $addressForm Mage_Customer_Model_Form */
1001
  $addressForm = Mage::getModel('customer/form');
1002
+ $addressForm->setFormCode('customer_address_edit')
1003
  ->setEntity($address);
1004
+ $addressData = $this->getRequest()->getPost($type, array());//$addressForm->extractData($this->getRequest());
1005
+ try {
 
 
 
 
 
 
1006
  $addressForm->compactData($addressData);
1007
  $address->setCustomerId($customer->getId())
1008
+ ->setIsDefaultBilling($this->getRequest()->getParam('default_billing', true))
1009
+ ->setIsDefaultShipping($this->getRequest()->getParam('default_shipping', true))->setSaveInAddressBook('1');
1010
 
 
1011
 
1012
+
1013
+
 
 
 
1014
  $address->save();
1015
 
1016
+
 
 
1017
  } catch (Mage_Core_Exception $e) {
1018
  Zend_Debug::dump($ex->getMessage());
1019
  }
 
 
1020
  }
1021
 
1022
 
1023
+ if(Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling() && $save_address) {
1024
 
1025
 
1026
  $customer = Mage::getSingleton('customer/session')->getCustomer();
app/code/local/{O2TI → MOIP}/Onestepcheckout/controllers/TestController.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_TestController extends Mage_Core_Controller_Front_Action
3
  {
4
  public function indexAction()
5
  {
1
  <?php
2
+ class MOIP_Onestepcheckout_TestController extends Mage_Core_Controller_Front_Action
3
  {
4
  public function indexAction()
5
  {
app/code/local/{O2TI → MOIP}/Onestepcheckout/etc/config.xml RENAMED
@@ -1,9 +1,9 @@
1
  <?xml version="1.0"?>
2
  <config>
3
  <modules>
4
- <O2TI_Onestepcheckout>
5
- <version>0.2.0</version>
6
- </O2TI_Onestepcheckout>
7
  </modules>
8
  <frontend>
9
  <secure_url>
@@ -13,7 +13,7 @@
13
  <onestepcheckout>
14
  <use>standard</use>
15
  <args>
16
- <module>O2TI_Onestepcheckout</module>
17
  <frontName>onestepcheckout</frontName>
18
  </args>
19
  </onestepcheckout>
@@ -21,17 +21,17 @@
21
  <layout>
22
  <updates>
23
  <onestepcheckout>
24
- <file>o2ti_onestepcheckout.xml</file>
25
  </onestepcheckout>
26
  </updates>
27
  </layout>
28
  <translate>
29
  <modules>
30
- <O2TI_Onestepcheckout>
31
  <files>
32
- <default>O2TI_Onestepcheckout.csv</default>
33
  </files>
34
- </O2TI_Onestepcheckout>
35
  </modules>
36
  </translate>
37
  </frontend>
@@ -40,7 +40,7 @@
40
  <onestepcheckout>
41
  <use>admin</use>
42
  <args>
43
- <module>O2TI_Onestepcheckout</module>
44
  <frontName>onestepcheckout</frontName>
45
  </args>
46
  </onestepcheckout>
@@ -56,10 +56,10 @@
56
  </all>
57
  <admin>
58
  <children>
59
- <O2TI_Onestepcheckout>
60
  <title>Onestepcheckout Module</title>
61
  <sort_order>10</sort_order>
62
- </O2TI_Onestepcheckout>
63
 
64
  <system>
65
  <children>
@@ -79,60 +79,60 @@
79
  <layout>
80
  <updates>
81
  <onestepcheckout>
82
- <file>o2ti_onestepcheckout.xml</file>
83
  </onestepcheckout>
84
  </updates>
85
  </layout>
86
  <translate>
87
  <modules>
88
- <O2TI_Onestepcheckout>
89
  <files>
90
- <default>O2TI_Onestepcheckout.csv</default>
91
  </files>
92
- </O2TI_Onestepcheckout>
93
  </modules>
94
  </translate>
95
  </adminhtml>
96
  <global>
97
  <rewrite>
98
- <o2ti_onestepcheckout_index>
99
  <from><![CDATA[#^/checkout/onepage/#]]></from>
100
  <to>/onestepcheckout/index/</to>
101
- </o2ti_onestepcheckout_index>
102
  </rewrite>
103
  <models>
104
  <onestepcheckout>
105
- <class>O2TI_Onestepcheckout_Model</class>
106
  <resourceModel>onestepcheckout_mysql4</resourceModel>
107
  </onestepcheckout>
108
  <onestepcheckout_mysql4>
109
- <class>O2TI_Onestepcheckout_Model_Mysql4</class>
110
  <entities>
111
  <onestepcheckout>
112
- <table>o2ti_onestepcheckout</table>
113
  </onestepcheckout>
114
  </entities>
115
  </onestepcheckout_mysql4>
116
  <sales>
117
  <rewrite>
118
- <quote_address>O2TI_Onestepcheckout_Model_Sales_Quote_Address</quote_address>
119
  </rewrite>
120
  </sales>
121
  <customer>
122
  <rewrite>
123
- <customer>O2TI_Onestepcheckout_Model_Customer_Customer</customer>
124
  </rewrite>
125
  </customer>
126
  </models>
127
  <resources>
128
- <onestepcheckout_setup>
129
  <setup>
130
- <module>O2TI_Onestepcheckout</module>
131
  </setup>
132
  <connection>
133
  <use>core_setup</use>
134
  </connection>
135
- </onestepcheckout_setup>
136
  <onestepcheckout_write>
137
  <connection>
138
  <use>core_write</use>
@@ -146,13 +146,13 @@
146
  </resources>
147
  <blocks>
148
  <onestepcheckout>
149
- <class>O2TI_Onestepcheckout_Block</class>
150
  </onestepcheckout>
151
 
152
  </blocks>
153
  <helpers>
154
  <onestepcheckout>
155
- <class>O2TI_Onestepcheckout_Helper</class>
156
  </onestepcheckout>
157
  </helpers>
158
  <events>
@@ -216,7 +216,7 @@
216
  <onestepcheckout>
217
  <config>
218
  <enabled>1</enabled>
219
- <default_paymentmethod>o2ti_moip_standard</default_paymentmethod>
220
  <allowshippingotheraddress>1</allowshippingotheraddress>
221
  <allowguestcheckout>1</allowguestcheckout>
222
  <allowregister>1</allowregister>
@@ -230,7 +230,7 @@
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>
@@ -249,7 +249,7 @@
249
  <allow_options>1</allow_options>
250
  <content_options>Termos e condições do site...</content_options>
251
  <boxwidth>250</boxwidth>
252
- <boxheight>250</boxheight>
253
  </termcondition>
254
  </onestepcheckout>
255
  </default>
1
  <?xml version="1.0"?>
2
  <config>
3
  <modules>
4
+ <MOIP_Onestepcheckout>
5
+ <version>0.1.0</version>
6
+ </MOIP_Onestepcheckout>
7
  </modules>
8
  <frontend>
9
  <secure_url>
13
  <onestepcheckout>
14
  <use>standard</use>
15
  <args>
16
+ <module>MOIP_Onestepcheckout</module>
17
  <frontName>onestepcheckout</frontName>
18
  </args>
19
  </onestepcheckout>
21
  <layout>
22
  <updates>
23
  <onestepcheckout>
24
+ <file>moip_onestepcheckout.xml</file>
25
  </onestepcheckout>
26
  </updates>
27
  </layout>
28
  <translate>
29
  <modules>
30
+ <MOIP_Onestepcheckout>
31
  <files>
32
+ <default>MOIP_Onestepcheckout.csv</default>
33
  </files>
34
+ </MOIP_Onestepcheckout>
35
  </modules>
36
  </translate>
37
  </frontend>
40
  <onestepcheckout>
41
  <use>admin</use>
42
  <args>
43
+ <module>MOIP_Onestepcheckout</module>
44
  <frontName>onestepcheckout</frontName>
45
  </args>
46
  </onestepcheckout>
56
  </all>
57
  <admin>
58
  <children>
59
+ <MOIP_Onestepcheckout>
60
  <title>Onestepcheckout Module</title>
61
  <sort_order>10</sort_order>
62
+ </MOIP_Onestepcheckout>
63
 
64
  <system>
65
  <children>
79
  <layout>
80
  <updates>
81
  <onestepcheckout>
82
+ <file>moip_onestepcheckout.xml</file>
83
  </onestepcheckout>
84
  </updates>
85
  </layout>
86
  <translate>
87
  <modules>
88
+ <MOIP_Onestepcheckout>
89
  <files>
90
+ <default>MOIP_Onestepcheckout.csv</default>
91
  </files>
92
+ </MOIP_Onestepcheckout>
93
  </modules>
94
  </translate>
95
  </adminhtml>
96
  <global>
97
  <rewrite>
98
+ <moip_onestepcheckout_index>
99
  <from><![CDATA[#^/checkout/onepage/#]]></from>
100
  <to>/onestepcheckout/index/</to>
101
+ </moip_onestepcheckout_index>
102
  </rewrite>
103
  <models>
104
  <onestepcheckout>
105
+ <class>MOIP_Onestepcheckout_Model</class>
106
  <resourceModel>onestepcheckout_mysql4</resourceModel>
107
  </onestepcheckout>
108
  <onestepcheckout_mysql4>
109
+ <class>MOIP_Onestepcheckout_Model_Mysql4</class>
110
  <entities>
111
  <onestepcheckout>
112
+ <table>moip_onestepcheckout</table>
113
  </onestepcheckout>
114
  </entities>
115
  </onestepcheckout_mysql4>
116
  <sales>
117
  <rewrite>
118
+ <quote_address>MOIP_Onestepcheckout_Model_Sales_Quote_Address</quote_address>
119
  </rewrite>
120
  </sales>
121
  <customer>
122
  <rewrite>
123
+ <customer>MOIP_Onestepcheckout_Model_Customer_Customer</customer>
124
  </rewrite>
125
  </customer>
126
  </models>
127
  <resources>
128
+ <moip_onestepcheckout_setup>
129
  <setup>
130
+ <module>MOIP_Onestepcheckout</module>
131
  </setup>
132
  <connection>
133
  <use>core_setup</use>
134
  </connection>
135
+ </moip_onestepcheckout_setup>
136
  <onestepcheckout_write>
137
  <connection>
138
  <use>core_write</use>
146
  </resources>
147
  <blocks>
148
  <onestepcheckout>
149
+ <class>MOIP_Onestepcheckout_Block</class>
150
  </onestepcheckout>
151
 
152
  </blocks>
153
  <helpers>
154
  <onestepcheckout>
155
+ <class>MOIP_Onestepcheckout_Helper</class>
156
  </onestepcheckout>
157
  </helpers>
158
  <events>
216
  <onestepcheckout>
217
  <config>
218
  <enabled>1</enabled>
219
+ <default_paymentmethod>moip_transparente_standard</default_paymentmethod>
220
  <allowshippingotheraddress>1</allowshippingotheraddress>
221
  <allowguestcheckout>1</allowguestcheckout>
222
  <allowregister>1</allowregister>
230
  <layout>
231
  <use_secure>1</use_secure>
232
  <page_titulo>Pagamento</page_titulo>
233
+ <page_conteudo>Sua compra segura via Transparente</page_conteudo>
234
  <page_layout>3</page_layout>
235
  <style_cor>000000</style_cor>
236
  <botao_cor>000000</botao_cor>
249
  <allow_options>1</allow_options>
250
  <content_options>Termos e condições do site...</content_options>
251
  <boxwidth>250</boxwidth>
252
+ <boxheight>350</boxheight>
253
  </termcondition>
254
  </onestepcheckout>
255
  </default>
app/code/local/{O2TI → MOIP}/Onestepcheckout/etc/system.xml RENAMED
@@ -2,16 +2,16 @@
2
  <config>
3
  <!-- Headers Tabs, mageworld la ten dat bat ky -->
4
  <tabs>
5
- <o2ti translate="label" module="onestepcheckout">
6
- <label>O2TI.COM</label>
7
  <sort_order>100</sort_order>
8
- </o2ti>
9
  </tabs>
10
  <!-- Headers Tabs has a number of sections. -->
11
  <sections>
12
  <onestepcheckout translate="label" module="onestepcheckout">
13
- <label><![CDATA[ <div style="height: 33px; "><img src="http://imagem.o2ti.com/checkout_o2ti.png" style="float:left; "/><div style="padding-top:8px;color:#2f3850">Um passo, uma etapa!<sup style="float: right;">v1.0.0</sup></div></div>]]></label>
14
- <tab>o2ti</tab>
15
  <frontend_type>text</frontend_type>
16
  <sort_order>100</sort_order>
17
  <show_in_default>1</show_in_default>
@@ -23,33 +23,16 @@
23
  <comment>
24
  <![CDATA[
25
  <div>
26
- <script type="text/javascript" src="//assets.zendesk.com/external/zenbox/v2.5/zenbox.js"></script>
27
- <style type="text/css" media="screen, projection">
28
- @import url(//assets.zendesk.com/external/zenbox/v2.5/zenbox.css);
29
- </style>
30
- <script type="text/javascript">
31
- if (typeof(Zenbox) !== "undefined") {
32
- Zenbox.init({
33
- dropboxID: "20116862",
34
- url: "https://o2ti.zendesk.com",
35
- tabID: "Suporte | Especialistas Magento",
36
- tabColor: "#2c3996",
37
- tabPosition: "Right"
38
- });
39
- }
40
- </script>
41
-
42
- <a style="float: left;text-decoration:none;width:100%" href="http://www.o2ti.com/magento.php" target="_blank" style="float: left;"><img src="http://imagem.o2ti.com/checkout_o2ti.png" style="float:left;"/><h1 style="float:left;">Uma etapa, um passo!</h1><sup>v1.0.0</sup>
43
  </a>
44
  <div style="float: left; color:#2f3850">
45
- <label style="font-size: 34px">Vers&atilde;o: <strong>Gratuita para uso com o MoIP</strong></label>
46
  </div>
47
 
48
  <br style="clear: both;"/>
49
 
50
- <p>Essa versão tem o download gratuito desde que utilizem o MoIP Transparente desenvolvido pela O2TI como um dos meios de pagamento em seu site.</p>
51
- <p>Criado por: <a href="http://www.o2ti.com" target="_blank">O2ti Soluções em Web LTDA</a></p>
52
-
53
  <hr>
54
  </div>
55
  ]]></comment>
@@ -180,29 +163,40 @@
180
  <show_in_website>1</show_in_website>
181
  <show_in_store>1</show_in_store>
182
  <comment>Formato da página</comment>
183
- </page_layout>
 
 
 
 
 
 
 
 
 
 
 
184
  <style_cor translate="label">
185
  <label>Cor do Checkout</label>
186
  <frontend_type>text</frontend_type>
187
- <sort_order>3</sort_order>
188
  <show_in_default>1</show_in_default>
189
  <show_in_website>1</show_in_website>
190
  <show_in_store>1</show_in_store>
191
- <comment>Default do checkout: #000</comment>
192
  </style_cor>
193
  <botao_cor translate="label">
194
  <label>Cor dos Botões</label>
195
  <frontend_type>text</frontend_type>
196
- <sort_order>4</sort_order>
197
  <show_in_default>1</show_in_default>
198
  <show_in_website>1</show_in_website>
199
  <show_in_store>1</show_in_store>
200
- <comment>Default dos Cor dos Botões: #000</comment>
201
  </botao_cor>
202
  <page_conteudo translate="label">
203
  <label>Conteúdo de Pagamento</label>
204
  <frontend_type>textarea</frontend_type>
205
- <sort_order>5</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>
@@ -211,11 +205,11 @@
211
  <label>Exibir Modal Loja segura?</label>
212
  <frontend_type>select</frontend_type>
213
  <source_model>adminhtml/system_config_source_yesno</source_model>
214
- <sort_order>6</sort_order>
215
  <show_in_default>1</show_in_default>
216
  <show_in_website>1</show_in_website>
217
  <show_in_store>1</show_in_store>
218
- <comment>Enter content</comment>
219
  </use_secure>
220
  <secure>
221
  <label>Conteúdo Loja Segura:</label>
@@ -223,7 +217,7 @@
223
  <use_secure>1</use_secure>
224
  </depends>
225
  <frontend_type>textarea</frontend_type>
226
- <sort_order>7</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>
2
  <config>
3
  <!-- Headers Tabs, mageworld la ten dat bat ky -->
4
  <tabs>
5
+ <moip translate="label" module="onestepcheckout">
6
+ <label>MOIP.COM.BR</label>
7
  <sort_order>100</sort_order>
8
+ </moip>
9
  </tabs>
10
  <!-- Headers Tabs has a number of sections. -->
11
  <sections>
12
  <onestepcheckout translate="label" module="onestepcheckout">
13
+ <label><![CDATA[ <div style="height: 33px; "><img src="http://imagem.o2ti.com/checkout_moip.png" style="float:left; "/><div style="padding-top:8px;color:#2f3850;margin-left: 30px;"> Moip Carrinho<sup style="float: right;">v2.0.0</sup></div></div>]]></label>
14
+ <tab>moip</tab>
15
  <frontend_type>text</frontend_type>
16
  <sort_order>100</sort_order>
17
  <show_in_default>1</show_in_default>
23
  <comment>
24
  <![CDATA[
25
  <div>
26
+ <a style="float: left;text-decoration:none;width:100%" href="http://www.moip.com/magento.php" target="_blank" style="float: left;"><img src="http://imagem.o2ti.com/checkout_moip.png" style="float:left;"/><h1 style="float:left;">Moip Carrinho</h1><sup>v2.0.0</sup>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  </a>
28
  <div style="float: left; color:#2f3850">
29
+ <label style="font-size: 34px">Vers&atilde;o: <strong>Gratuita para uso com o MoIP Transparente</strong></label>
30
  </div>
31
 
32
  <br style="clear: both;"/>
33
 
34
+ <p>Essa versão tem o download gratuito desde que utilizem o MoIP Transparente desenvolvido pelo MOIP como o meios de pagamento preferencial em seu site.</p>
35
+ <p>Criado por: <a href="http://www.moip.com.br" target="_blank">Moip S/A</a></p>
 
36
  <hr>
37
  </div>
38
  ]]></comment>
163
  <show_in_website>1</show_in_website>
164
  <show_in_store>1</show_in_store>
165
  <comment>Formato da página</comment>
166
+ </page_layout>
167
+ <site_response>
168
+ <label>Seu Site é Responsivo?</label>
169
+ <frontend_type>select</frontend_type>
170
+ <source_model>adminhtml/system_config_source_yesno</source_model>
171
+ <sort_order>3</sort_order>
172
+ <show_in_default>1</show_in_default>
173
+ <show_in_website>1</show_in_website>
174
+ <show_in_store>1</show_in_store>
175
+ <comment>Se o site é responsivel coloque sim, isto corrigirá o layout de nosso modulo.</comment>
176
+ </site_response>
177
+
178
  <style_cor translate="label">
179
  <label>Cor do Checkout</label>
180
  <frontend_type>text</frontend_type>
181
+ <sort_order>4</sort_order>
182
  <show_in_default>1</show_in_default>
183
  <show_in_website>1</show_in_website>
184
  <show_in_store>1</show_in_store>
185
+ <comment>Default do checkout: 000. Não usar o "#", apenas o número.</comment>
186
  </style_cor>
187
  <botao_cor translate="label">
188
  <label>Cor dos Botões</label>
189
  <frontend_type>text</frontend_type>
190
+ <sort_order>5</sort_order>
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
+ <comment>Default dos Cor dos Botões: 000. Não usar o "#", apenas o número.</comment>
195
  </botao_cor>
196
  <page_conteudo translate="label">
197
  <label>Conteúdo de Pagamento</label>
198
  <frontend_type>textarea</frontend_type>
199
+ <sort_order>6</sort_order>
200
  <show_in_default>1</show_in_default>
201
  <show_in_website>1</show_in_website>
202
  <show_in_store>1</show_in_store>
205
  <label>Exibir Modal Loja segura?</label>
206
  <frontend_type>select</frontend_type>
207
  <source_model>adminhtml/system_config_source_yesno</source_model>
208
+ <sort_order>7</sort_order>
209
  <show_in_default>1</show_in_default>
210
  <show_in_website>1</show_in_website>
211
  <show_in_store>1</show_in_store>
212
+ <comment>Coloque o seu testo de porque o site é seguro.</comment>
213
  </use_secure>
214
  <secure>
215
  <label>Conteúdo Loja Segura:</label>
217
  <use_secure>1</use_secure>
218
  </depends>
219
  <frontend_type>textarea</frontend_type>
220
+ <sort_order>8</sort_order>
221
  <show_in_default>1</show_in_default>
222
  <show_in_website>1</show_in_website>
223
  <show_in_store>1</show_in_store>
app/code/local/MOIP/Onestepcheckout/sql/moip_onestepcheckout_setup/mysql4-install-0.1.0.php ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $installer = $this;
3
+ $installer->startSetup();
4
+ $tablePrefix = (string) Mage::getConfig()->getTablePrefix();
5
+ $installer->run("DROP TABLE IF EXISTS ".$tablePrefix."moip_onestepcheckout;
6
+ CREATE TABLE ".$tablePrefix."moip_onestepcheckout (
7
+ `moip_onestepcheckout_date_id` int(11) unsigned NOT NULL auto_increment,
8
+ `sales_order_id` int(11) unsigned NOT NULL,
9
+ `moip_customercomment_info` varchar(255) default '',
10
+ `moip_deliverydate_date` varchar(15) default '',
11
+ `moip_deliverydate_time` varchar(10) default '',
12
+ `status` smallint(6) default '0',
13
+ `created_time` datetime NULL,
14
+ `update_time` datetime NULL,
15
+ PRIMARY KEY (`moip_onestepcheckout_date_id`)
16
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;");
17
+
18
+ $installer->endSetup();
19
+ $setup = new Mage_Eav_Model_Entity_Setup('core_setup');
20
+ $setup->addAttribute('order', 'moip_customercomment', array(
21
+ 'label' => 'Customer Comment',
22
+ 'type' => 'text',
23
+ 'input' => 'text',
24
+ 'visible' => true,
25
+ 'required' => false,
26
+ 'position' => 1,
27
+ ));
28
+
29
+
30
+
31
+ $installer = $this;
32
+ $installer->startSetup();
33
+
34
+ $setup = Mage::getModel('customer/entity_setup', 'core_setup');
35
+
36
+ $attributes = array(
37
+ array(
38
+ 'entity' => 'customer',
39
+ 'code' => 'tipopessoa',
40
+ 'type' => 'int',
41
+ 'input' => 'boolean',
42
+ 'label' => 'Comprar Como Pessoa Física?',
43
+ 'global' => 1,
44
+ 'visible' => 1,
45
+ 'required' => 0,
46
+ 'user_defined' => 1,
47
+ 'default' => 1,
48
+ 'visible_on_front' => 1,
49
+ 'source' => '',
50
+ ),
51
+ array(
52
+ 'entity' => 'customer',
53
+ 'code' => 'razaosocial',
54
+ 'type' => 'varchar',
55
+ 'input' => 'text',
56
+ 'label' => 'Razao Social',
57
+ 'global' => 1,
58
+ 'visible' => 1,
59
+ 'required' => 0,
60
+ 'user_defined' => 1,
61
+ 'default' => '0',
62
+ 'visible_on_front' => 1,
63
+ 'source' => '',
64
+ ),
65
+ array(
66
+ 'entity' => 'customer',
67
+ 'code' => 'nomefantasia',
68
+ 'type' => 'varchar',
69
+ 'input' => 'text',
70
+ 'label' => 'Nome Fantasia',
71
+ 'global' => 1,
72
+ 'visible' => 1,
73
+ 'required' => 0,
74
+ 'user_defined' => 1,
75
+ 'default' => '0',
76
+ 'visible_on_front' => 1,
77
+ 'source' => '',
78
+ ),
79
+ array(
80
+ 'entity' => 'customer',
81
+ 'code' => 'cnpj',
82
+ 'type' => 'varchar',
83
+ 'input' => 'text',
84
+ 'label' => 'CNPJ',
85
+ 'global' => 1,
86
+ 'visible' => 1,
87
+ 'required' => 0,
88
+ 'user_defined' => 1,
89
+ 'default' => '0',
90
+ 'visible_on_front' => 1,
91
+ 'source' => '',
92
+ ),
93
+ array(
94
+ 'entity' => 'customer',
95
+ 'code' => 'insestadual',
96
+ 'type' => 'varchar',
97
+ 'input' => 'text',
98
+ 'label' => 'Inscrição Estadual',
99
+ 'global' => 1,
100
+ 'visible' => 1,
101
+ 'required' => 0,
102
+ 'user_defined' => 1,
103
+ 'default' => '0',
104
+ 'visible_on_front' => 1,
105
+ 'source' => '',
106
+ )
107
+
108
+ );
109
+
110
+ foreach($attributes as $attribute){
111
+ $setup->addAttribute($attribute['entity'], $attribute['code'], array(
112
+ 'input' => $attribute['input'],
113
+ 'type' => $attribute['type'],
114
+ 'label' => $attribute['label'],
115
+ 'visible' => $attribute['visible'],
116
+ 'required' => $attribute['required'],
117
+ 'global' => $attribute['global'],
118
+ 'default' => $attribute['default'],
119
+ 'visible_on_front' => $attribute['visible_on_front'],
120
+ 'source' => $attribute['source'],
121
+ 'user_defined' => $attribute['user_defined']
122
+ ));
123
+
124
+ if (version_compare(Mage::getVersion(), '1.4.2', '>='))
125
+ {
126
+ Mage::getSingleton('eav/config')
127
+ ->getAttribute($attribute['entity'], $attribute['code'])
128
+ ->setData('used_in_forms', array('adminhtml_customer','customer_account_create','customer_account_edit','checkout_register'))
129
+ ->save();
130
+ }else{
131
+ $tablequote = $this->getTable('sales/quote');
132
+ $installer->run("ALTER TABLE {$tablequote} ADD `{$attribute['code']}` INT NOT NULL");
133
+ }
134
+ }
135
+
136
+ $installer->endSetup();
app/code/local/{O2TI/Moip/Block/Adminhtml/moip/Info/Info.php → MOIP/Onestepcheckout/sql/moip_onestepcheckout_setup/mysql4-upgrade-0.1.0-0.2.0.php} RENAMED
File without changes
app/code/local/{O2TI/Onestepcheckout/Block/Adminhtml/Onestepcheckout/Sales/Order/View/Tab → MOIP/Transparente/Block/Adminhtml/moip}/Info/Customermessages.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class O2TI_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Sales_Order_View_Tab_Info_Customermessages extends Mage_Adminhtml_Block_Sales_Order_Abstract
3
  {
4
  public function _prepareLayout()
5
  {
1
  <?php
2
+ class MOIP_Onestepcheckout_Block_Adminhtml_Onestepcheckout_Sales_Order_View_Tab_Info_Customermessages extends Mage_Adminhtml_Block_Sales_Order_Abstract
3
  {
4
  public function _prepareLayout()
5
  {
app/code/local/MOIP/Transparente/Block/Adminhtml/moip/Info/Info.php ADDED
File without changes
app/code/local/{O2TI/Moip → MOIP/Transparente}/Block/Info.php RENAMED
@@ -1,93 +1,93 @@
1
  <?php
2
 
3
- class O2TI_Moip_Block_Info extends Mage_Payment_Block_Info
4
  {
5
  protected function _construct()
6
  {
7
  parent::_construct();
8
- $this->setTemplate('O2TI/moip/info.phtml');
9
  }
10
 
11
 
12
 
13
- public function getMoip()
14
  {
15
- return Mage::getSingleton('moip/api');
16
  }
17
 
18
 
19
  public function getBoletoImage() {
20
- if (Mage::getStoreConfig('o2tiall/config/trocar_bandeira_cartao')) {
21
- return Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/boleto');
22
  }else {
23
- return $this->getSkinUrl('O2TI/moip/imagem/Bradesco.png');
24
  }
25
  }
26
 
27
  //imagens de transferencia
28
  public function getBBImage() {
29
- if (Mage::getStoreConfig('o2tiall/config/trocar_bandeira_cartao')) {
30
- return Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_bb');
31
  }else {
32
- return $this->getSkinUrl('O2TI/moip/imagem/BancoDoBrasil.png');
33
  }
34
  }
35
  public function getBradescoImage() {
36
- if (Mage::getStoreConfig('o2tiall/config/trocar_bandeira_cartao')) {
37
- return Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_bradesco');
38
  }else {
39
- return $this->getSkinUrl('O2TI/moip/imagem/Bradesco.png');
40
  }
41
  }
42
  public function getItauImage() {
43
- if (Mage::getStoreConfig('o2tiall/config/trocar_bandeira_cartao')) {
44
- return Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_itau');
45
  }else {
46
- return $this->getSkinUrl('O2TI/moip/imagem/Itau.png');
47
  }
48
  }
49
  public function getBanrisulImage() {
50
- if (Mage::getStoreConfig('o2tiall/config/trocar_bandeira_cartao')) {
51
- return Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_banrisul');
52
  }else {
53
- return $this->getSkinUrl('O2TI/moip/imagem/Banrisul.png');
54
  }
55
  }
56
 
57
  //imagens de cartao
58
  public function getVisaImage() {
59
- if (Mage::getStoreConfig('o2tiall/config/trocar_bandeira_cartao')) {
60
- return Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_visa');
61
  }else {
62
- return $this->getSkinUrl('O2TI/moip/imagem/Visa.png');
63
  }
64
  }
65
  public function getMastercardImage() {
66
- if (Mage::getStoreConfig('o2tiall/config/trocar_bandeira_cartao')) {
67
- return Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_master');
68
  }else {
69
- return $this->getSkinUrl('O2TI/moip/imagem/Mastercard.png');
70
  }
71
  }
72
  public function getDinersImage() {
73
- if (Mage::getStoreConfig('o2tiall/config/trocar_bandeira_cartao')) {
74
- return Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_diners');
75
  }else {
76
- return $this->getSkinUrl('O2TI/moip/imagem/Diners.png');
77
  }
78
  }
79
  public function getAmericanExpressImage() {
80
- if (Mage::getStoreConfig('o2tiall/config/trocar_bandeira_cartao')) {
81
- return Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_american');
82
  }else {
83
- return $this->getSkinUrl('O2TI/moip/imagem/AmericanExpress.png');
84
  }
85
  }
86
  public function getHipercardImage() {
87
- if (Mage::getStoreConfig('o2tiall/config/trocar_bandeira_cartao')) {
88
- return Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_hipercard');
89
  }else {
90
- return $this->getSkinUrl('O2TI/moip/imagem/Hipercard.png');
91
  }
92
  }
93
 
@@ -139,13 +139,13 @@ class O2TI_Moip_Block_Info extends Mage_Payment_Block_Info
139
  $order_get = Mage::app()->getRequest()->getParam('order_id');
140
  $order = $this->getInfo()->getOrder();
141
  $order = $order->getIncrementId();
142
- $model = Mage::getModel('moip/write');
143
  $result = $model->load($order, 'realorder_id');
144
  $dados = array();
145
  $dados['result_meio'] = $this->getNomePagamento($result->getMeio_pg());
146
  $dados['meio_pago'] = $this->getNomePagamento($result->getMeio_pg());
147
  $dados['realorder_id'] = $result->getRealorder_id();
148
- $dados['order_idmoip'] = $result->getorder_idmoip();
149
  $dados['boleto_line'] = $result->getBoleto_line();
150
  $dados['customer_id'] = $result->getCustomerId();
151
  $dados['brand'] = $result->getBrand();
@@ -153,7 +153,7 @@ class O2TI_Moip_Block_Info extends Mage_Payment_Block_Info
153
  $dados['first6'] = $result->getFirst6();
154
  $dados['last4'] = $result->getLast4();
155
  $dados['token'] = $result->getToken();
156
- $dados['image'] = $this->getImagePg($result->getBrandMoip());
157
  $dados['url'] = $result->getUrlcheckout_pg();
158
  return $dados;
159
  }
1
  <?php
2
 
3
+ class MOIP_Transparente_Block_Info extends Mage_Payment_Block_Info
4
  {
5
  protected function _construct()
6
  {
7
  parent::_construct();
8
+ $this->setTemplate('MOIP/transparente/info.phtml');
9
  }
10
 
11
 
12
 
13
+ public function getTransparente()
14
  {
15
+ return Mage::getSingleton('transparente/api');
16
  }
17
 
18
 
19
  public function getBoletoImage() {
20
+ if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
21
+ return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/boleto');
22
  }else {
23
+ return $this->getSkinUrl('MOIP/transparente/imagem/Bradesco.png');
24
  }
25
  }
26
 
27
  //imagens de transferencia
28
  public function getBBImage() {
29
+ if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
30
+ return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_bb');
31
  }else {
32
+ return $this->getSkinUrl('MOIP/transparente/imagem/BancoDoBrasil.png');
33
  }
34
  }
35
  public function getBradescoImage() {
36
+ if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
37
+ return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_bradesco');
38
  }else {
39
+ return $this->getSkinUrl('MOIP/transparente/imagem/Bradesco.png');
40
  }
41
  }
42
  public function getItauImage() {
43
+ if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
44
+ return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_itau');
45
  }else {
46
+ return $this->getSkinUrl('MOIP/transparente/imagem/Itau.png');
47
  }
48
  }
49
  public function getBanrisulImage() {
50
+ if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
51
+ return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_banrisul');
52
  }else {
53
+ return $this->getSkinUrl('MOIP/transparente/imagem/Banrisul.png');
54
  }
55
  }
56
 
57
  //imagens de cartao
58
  public function getVisaImage() {
59
+ if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
60
+ return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_visa');
61
  }else {
62
+ return $this->getSkinUrl('MOIP/transparente/imagem/Visa.png');
63
  }
64
  }
65
  public function getMastercardImage() {
66
+ if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
67
+ return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_master');
68
  }else {
69
+ return $this->getSkinUrl('MOIP/transparente/imagem/Mastercard.png');
70
  }
71
  }
72
  public function getDinersImage() {
73
+ if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
74
+ return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_diners');
75
  }else {
76
+ return $this->getSkinUrl('MOIP/transparente/imagem/Diners.png');
77
  }
78
  }
79
  public function getAmericanExpressImage() {
80
+ if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
81
+ return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_american');
82
  }else {
83
+ return $this->getSkinUrl('MOIP/transparente/imagem/AmericanExpress.png');
84
  }
85
  }
86
  public function getHipercardImage() {
87
+ if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
88
+ return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_hipercard');
89
  }else {
90
+ return $this->getSkinUrl('MOIP/transparente/imagem/Hipercard.png');
91
  }
92
  }
93
 
139
  $order_get = Mage::app()->getRequest()->getParam('order_id');
140
  $order = $this->getInfo()->getOrder();
141
  $order = $order->getIncrementId();
142
+ $model = Mage::getModel('transparente/write');
143
  $result = $model->load($order, 'realorder_id');
144
  $dados = array();
145
  $dados['result_meio'] = $this->getNomePagamento($result->getMeio_pg());
146
  $dados['meio_pago'] = $this->getNomePagamento($result->getMeio_pg());
147
  $dados['realorder_id'] = $result->getRealorder_id();
148
+ $dados['order_idtransparente'] = $result->getorder_idtransparente();
149
  $dados['boleto_line'] = $result->getBoleto_line();
150
  $dados['customer_id'] = $result->getCustomerId();
151
  $dados['brand'] = $result->getBrand();
153
  $dados['first6'] = $result->getFirst6();
154
  $dados['last4'] = $result->getLast4();
155
  $dados['token'] = $result->getToken();
156
+ $dados['image'] = $this->getImagePg($result->getBrandTransparente());
157
  $dados['url'] = $result->getUrlcheckout_pg();
158
  return $dados;
159
  }
app/code/local/{O2TI/Moip → MOIP/Transparente}/Block/Standard/Form.php RENAMED
@@ -1,24 +1,24 @@
1
  <?php
2
  /**
3
- * MoIP - Moip Payment Module
4
  *
5
- * @title Magento -> Custom Payment Module for Moip (Brazil)
6
  * @category Payment Gateway
7
- * @package O2TI_Moip
8
- * @author MoIP Pagamentos S/a
9
- * @copyright Copyright (c) 2010 MoIP Pagamentos S/A
10
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
11
  */
12
 
13
- class O2TI_Moip_Block_Standard_Form extends Mage_Payment_Block_Form {
14
 
15
  protected function _construct() {
16
  $dataToReturn = "";
17
- $moip_layout = Mage::getStoreConfig('o2tiall/config/moip_layout');
18
- if ($moip_layout == "Vertical"):
19
- $this->setTemplate('O2TI/moip/vertical_form.phtml');
20
  else:
21
- $this->setTemplate('O2TI/moip/horizontal_form.phtml');
22
  endif;
23
  parent::_construct();
24
  }
@@ -38,7 +38,7 @@ class O2TI_Moip_Block_Standard_Form extends Mage_Payment_Block_Form {
38
  $noBoletoProducts[] = $_product->getName();
39
  $error = true;
40
  }
41
- if ((int)Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty() <= Mage::getSingleton('moip/standard')->getConfigData('estoqueboleto')) {
42
  $stockProducts[] = $_product->getName();
43
  $error = true;
44
  }
@@ -74,21 +74,21 @@ class O2TI_Moip_Block_Standard_Form extends Mage_Payment_Block_Form {
74
  }
75
 
76
  public function mostraBoleto() {
77
- if (strpos(Mage::getSingleton('moip/standard')->getConfigData('formas_pagamento'), "BoletoBancario") !== false) {
78
  return true;
79
  }else {
80
  return false;
81
  }
82
  }
83
  public function mostraTransferencia() {
84
- if (strpos(Mage::getSingleton('moip/standard')->getConfigData('formas_pagamento'), "DebitoBancario") !== false) {
85
  return true;
86
  }else {
87
  return false;
88
  }
89
  }
90
  public function mostraCartao() {
91
- if (strpos(Mage::getSingleton('moip/standard')->getConfigData('formas_pagamento'), "CartaoCredito") !== false) {
92
  return true;
93
  }else {
94
  return false;
@@ -99,20 +99,20 @@ class O2TI_Moip_Block_Standard_Form extends Mage_Payment_Block_Form {
99
  //textos de desconto
100
  public function getTextoBoleto($dataToReturn) {
101
  $valor_pedido = Mage::getModel('checkout/session')->getQuote()->getGrandTotal();
102
- if (Mage::getStoreConfig('o2tiall/pagamento_avancado/pagamento_boleto')) {
103
- if ($valor_pedido >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor')) {
104
- $textoresumo = "Com desconto de: ".Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc')."%.";
105
  }
106
  $descontotexto = $textoresumo ."<br/>Págavel em qualquer banco, casas lotéricas ou via internet bank.";
107
 
108
 
109
- 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') ) {
110
- $textoresumo = "Com desconto de: ".Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc2')."%.";
111
  $descontotexto = $textoresumo ."<br/>Págavel em qualquer banco, casas lotéricas ou via internet bank.";
112
  }
113
 
114
- if (Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3') != "" && $valor_pedido >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3') ) {
115
- $textoresumo = "Com desconto de: ".Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc3')."%.";
116
  $descontotexto = $textoresumo ."<br/>Págavel em qualquer banco, casas lotéricas ou via internet bank.";
117
  }
118
  }else {
@@ -127,20 +127,20 @@ class O2TI_Moip_Block_Standard_Form extends Mage_Payment_Block_Form {
127
  }
128
  public function getTextoTranferencia($dataToReturn) {
129
  $valor_pedido = Mage::getModel('checkout/session')->getQuote()->getGrandTotal();
130
- if (Mage::getStoreConfig('o2tiall/pagamento_avancado/transf_desc')) {
131
- if ($valor_pedido >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor')) {
132
- $textoresumo = "Com desconto de: ".Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc')."%.";
133
  }
134
  $descontotexto = $textoresumo ."<br/>Págavel unicamente via internet bank.";
135
 
136
 
137
- 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') ) {
138
- $textoresumo = "Com desconto de: ".Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc2')."%.";
139
  $descontotexto = $textoresumo ."<br/>Págavel unicamente via internet bank.";
140
  }
141
 
142
- if (Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3') != "" && $valor_pedido >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3') ) {
143
- $textoresumo = "Com desconto de: ".Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc3')."%.";
144
  $descontotexto = $textoresumo ."<br/>Págavel unicamente via internet bank.";
145
  }
146
 
@@ -157,100 +157,100 @@ class O2TI_Moip_Block_Standard_Form extends Mage_Payment_Block_Form {
157
 
158
  //Icones Principais
159
  public function getBoletoIcon() {
160
- if (Mage::getStoreConfig('o2tiall/config/trocar_icone')) {
161
- return Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/icone_boleto');
162
  }else {
163
- return $this->getSkinUrl('O2TI/moip/imagem/ababoleto.png');
164
  }
165
  }
166
  public function getTransferenciaIcon() {
167
- if (Mage::getStoreConfig('o2tiall/config/trocar_icone')) {
168
- return Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/icone_transf');
169
  }else {
170
- return $this->getSkinUrl('O2TI/moip/imagem/abatransf.png');
171
  }
172
  }
173
  public function getCartaoIcon() {
174
- if (Mage::getStoreConfig('o2tiall/config/trocar_icone')) {
175
- return Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/icone_cartao');
176
  }else {
177
- return $this->getSkinUrl('O2TI/moip/imagem/abacartao.png');
178
  }
179
  }
180
 
181
  //imagem do boleto
182
  public function getBoletoImage() {
183
- if (Mage::getStoreConfig('o2tiall/config/trocar_bandeira_cartao')) {
184
- return Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/boleto');
185
  }else {
186
- return $this->getSkinUrl('O2TI/moip/imagem/Bradesco.png');
187
  }
188
  }
189
 
190
  //imagens de transferencia
191
  public function getBBImage() {
192
- if (Mage::getStoreConfig('o2tiall/config/trocar_bandeira_cartao')) {
193
- return Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_bb');
194
  }else {
195
- return $this->getSkinUrl('O2TI/moip/imagem/BancoDoBrasil.png');
196
  }
197
  }
198
  public function getBradescoImage() {
199
- if (Mage::getStoreConfig('o2tiall/config/trocar_bandeira_cartao')) {
200
- return Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_bradesco');
201
  }else {
202
- return $this->getSkinUrl('O2TI/moip/imagem/Bradesco.png');
203
  }
204
  }
205
  public function getItauImage() {
206
- if (Mage::getStoreConfig('o2tiall/config/trocar_bandeira_cartao')) {
207
- return Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_itau');
208
  }else {
209
- return $this->getSkinUrl('O2TI/moip/imagem/Itau.png');
210
  }
211
  }
212
  public function getBanrisulImage() {
213
- if (Mage::getStoreConfig('o2tiall/config/trocar_bandeira_cartao')) {
214
- return Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_banrisul');
215
  }else {
216
- return $this->getSkinUrl('O2TI/moip/imagem/Banrisul.png');
217
  }
218
  }
219
 
220
  //imagens de cartao
221
  public function getVisaImage() {
222
- if (Mage::getStoreConfig('o2tiall/config/trocar_bandeira_cartao')) {
223
- return Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_visa');
224
  }else {
225
- return $this->getSkinUrl('O2TI/moip/imagem/Visa.png');
226
  }
227
  }
228
  public function getMastercardImage() {
229
- if (Mage::getStoreConfig('o2tiall/config/trocar_bandeira_cartao')) {
230
- return Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_master');
231
  }else {
232
- return $this->getSkinUrl('O2TI/moip/imagem/Mastercard.png');
233
  }
234
  }
235
  public function getDinersImage() {
236
- if (Mage::getStoreConfig('o2tiall/config/trocar_bandeira_cartao')) {
237
- return Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_diners');
238
  }else {
239
- return $this->getSkinUrl('O2TI/moip/imagem/Diners.png');
240
  }
241
  }
242
  public function getAmericanExpressImage() {
243
- if (Mage::getStoreConfig('o2tiall/config/trocar_bandeira_cartao')) {
244
- return Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_american');
245
  }else {
246
- return $this->getSkinUrl('O2TI/moip/imagem/AmericanExpress.png');
247
  }
248
  }
249
  public function getHipercardImage() {
250
- if (Mage::getStoreConfig('o2tiall/config/trocar_bandeira_cartao')) {
251
- return Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_hipercard');
252
  }else {
253
- return $this->getSkinUrl('O2TI/moip/imagem/Hipercard.png');
254
  }
255
  }
256
 
@@ -261,9 +261,9 @@ class O2TI_Moip_Block_Standard_Form extends Mage_Payment_Block_Form {
261
  $k = "";
262
  $parcelax = "";
263
  $precox = "";
264
- $api = Mage::getSingleton('moip/api');
265
- $api->setContaMoip(Mage::getSingleton('moip/standard')->getConfigData('conta_moip'));
266
- $api->setAmbiente(Mage::getSingleton('moip/standard')->getConfigData('ambiente'));
267
 
268
  $cartTotal = Mage::getModel('checkout/session')->getQuote()->getGrandTotal();
269
 
@@ -272,7 +272,7 @@ class O2TI_Moip_Block_Standard_Form extends Mage_Payment_Block_Form {
272
  $parcela_decode = Mage::helper('core')->jsonDecode($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'];
@@ -313,11 +313,12 @@ class O2TI_Moip_Block_Standard_Form extends Mage_Payment_Block_Form {
313
  }
314
  }
315
  public function getTextoParcelas() {
316
- if( $tipo_parcelamento = Mage::getSingleton('moip/standard')->getConfigData('jurostipo') == 1){
317
- $parcelamento = Mage::getSingleton('moip/standard')->getInfoParcelamento();
 
318
  if ($parcelamento['c_juros1'] == 0) {
319
  echo "<div id=\"addparcelasdesc\"> Sem juros até ".$parcelamento['c_ate1']." parcelas";
320
- if ($parcelamento['ate1'] < 13) {
321
  return ", após juros de 1,99% ao mês.</div>";
322
  }
323
  }else {
@@ -350,16 +351,16 @@ class O2TI_Moip_Block_Standard_Form extends Mage_Payment_Block_Form {
350
  public function getBoletoPrice() {
351
  $desconto = 0;
352
  $valor_pedido = Mage::getModel('checkout/session')->getQuote()->getGrandTotal();
353
- if (Mage::getStoreConfig('o2tiall/pagamento_avancado/pagamento_boleto')) {
354
- if ($valor_pedido >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor')) {
355
- $desconto = (float)Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc');
356
  }
357
- 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') ) {
358
- $desconto = (float)Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc2');
359
  }
360
 
361
- if (Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3') != "" && $valor_pedido >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3') ) {
362
- $desconto = (float)Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc3');
363
  }
364
  return "R$".number_format((float)$valor_pedido-((float)$valor_pedido/100*$desconto), 2);
365
  }
@@ -374,16 +375,16 @@ class O2TI_Moip_Block_Standard_Form extends Mage_Payment_Block_Form {
374
  public function getTransferenciaPrice() {
375
  $desconto = 0;
376
  $valor_pedido = Mage::getModel('checkout/session')->getQuote()->getGrandTotal();
377
- if (Mage::getStoreConfig('o2tiall/pagamento_avancado/transf_desc')) {
378
- if ($valor_pedido >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor')) {
379
- $desconto = (float)Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc');
380
  }
381
- 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') ) {
382
- $desconto = (float)Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc2');
383
  }
384
 
385
- if (Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3') != "" && $valor_pedido >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3') ) {
386
- $desconto = (float)Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc3');
387
  }
388
  return "R$".number_format((float)$valor_pedido-((float)$valor_pedido/100*$desconto), 2);
389
  }
1
  <?php
2
  /**
3
+ * Transparente - Transparente Payment Module
4
  *
5
+ * @title Magento -> Custom Payment Module for Transparente (Brazil)
6
  * @category Payment Gateway
7
+ * @package MOIP_Transparente
8
+ * @author Transparente Pagamentos S/a
9
+ * @copyright Copyright (c) 2010 Transparente Pagamentos S/A
10
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
11
  */
12
 
13
+ class MOIP_Transparente_Block_Standard_Form extends Mage_Payment_Block_Form {
14
 
15
  protected function _construct() {
16
  $dataToReturn = "";
17
+ $transparente_layout = Mage::getStoreConfig('moipall/config/transparente_layout');
18
+ if ($transparente_layout == "Vertical"):
19
+ $this->setTemplate('MOIP/transparente/vertical_form.phtml');
20
  else:
21
+ $this->setTemplate('MOIP/transparente/horizontal_form.phtml');
22
  endif;
23
  parent::_construct();
24
  }
38
  $noBoletoProducts[] = $_product->getName();
39
  $error = true;
40
  }
41
+ if ((int)Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty() <= Mage::getSingleton('transparente/standard')->getConfigData('estoqueboleto')) {
42
  $stockProducts[] = $_product->getName();
43
  $error = true;
44
  }
74
  }
75
 
76
  public function mostraBoleto() {
77
+ if (strpos(Mage::getSingleton('transparente/standard')->getConfigData('formas_pagamento'), "BoletoBancario") !== false) {
78
  return true;
79
  }else {
80
  return false;
81
  }
82
  }
83
  public function mostraTransferencia() {
84
+ if (strpos(Mage::getSingleton('transparente/standard')->getConfigData('formas_pagamento'), "DebitoBancario") !== false) {
85
  return true;
86
  }else {
87
  return false;
88
  }
89
  }
90
  public function mostraCartao() {
91
+ if (strpos(Mage::getSingleton('transparente/standard')->getConfigData('formas_pagamento'), "CartaoCredito") !== false) {
92
  return true;
93
  }else {
94
  return false;
99
  //textos de desconto
100
  public function getTextoBoleto($dataToReturn) {
101
  $valor_pedido = Mage::getModel('checkout/session')->getQuote()->getGrandTotal();
102
+ if (Mage::getStoreConfig('moipall/pagamento_avancado/pagamento_boleto')) {
103
+ if ($valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor')) {
104
+ $textoresumo = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc')."%.";
105
  }
106
  $descontotexto = $textoresumo ."<br/>Págavel em qualquer banco, casas lotéricas ou via internet bank.";
107
 
108
 
109
+ if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') && $valor_pedido < Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ) {
110
+ $textoresumo = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc2')."%.";
111
  $descontotexto = $textoresumo ."<br/>Págavel em qualquer banco, casas lotéricas ou via internet bank.";
112
  }
113
 
114
+ if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ) {
115
+ $textoresumo = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc3')."%.";
116
  $descontotexto = $textoresumo ."<br/>Págavel em qualquer banco, casas lotéricas ou via internet bank.";
117
  }
118
  }else {
127
  }
128
  public function getTextoTranferencia($dataToReturn) {
129
  $valor_pedido = Mage::getModel('checkout/session')->getQuote()->getGrandTotal();
130
+ if (Mage::getStoreConfig('moipall/pagamento_avancado/transf_desc')) {
131
+ if ($valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor')) {
132
+ $textoresumo = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc')."%.";
133
  }
134
  $descontotexto = $textoresumo ."<br/>Págavel unicamente via internet bank.";
135
 
136
 
137
+ if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') && $valor_pedido < Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ) {
138
+ $textoresumo = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc2')."%.";
139
  $descontotexto = $textoresumo ."<br/>Págavel unicamente via internet bank.";
140
  }
141
 
142
+ if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ) {
143
+ $textoresumo = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc3')."%.";
144
  $descontotexto = $textoresumo ."<br/>Págavel unicamente via internet bank.";
145
  }
146
 
157
 
158
  //Icones Principais
159
  public function getBoletoIcon() {
160
+ if (Mage::getStoreConfig('moipall/config/trocar_icone')) {
161
+ return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/icone_boleto');
162
  }else {
163
+ return $this->getSkinUrl('MOIP/transparente/imagem/ababoleto.png');
164
  }
165
  }
166
  public function getTransferenciaIcon() {
167
+ if (Mage::getStoreConfig('moipall/config/trocar_icone')) {
168
+ return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/icone_transf');
169
  }else {
170
+ return $this->getSkinUrl('MOIP/transparente/imagem/abatransf.png');
171
  }
172
  }
173
  public function getCartaoIcon() {
174
+ if (Mage::getStoreConfig('moipall/config/trocar_icone')) {
175
+ return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/icone_cartao');
176
  }else {
177
+ return $this->getSkinUrl('MOIP/transparente/imagem/abacartao.png');
178
  }
179
  }
180
 
181
  //imagem do boleto
182
  public function getBoletoImage() {
183
+ if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
184
+ return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/boleto');
185
  }else {
186
+ return $this->getSkinUrl('MOIP/transparente/imagem/Bradesco.png');
187
  }
188
  }
189
 
190
  //imagens de transferencia
191
  public function getBBImage() {
192
+ if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
193
+ return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_bb');
194
  }else {
195
+ return $this->getSkinUrl('MOIP/transparente/imagem/BancoDoBrasil.png');
196
  }
197
  }
198
  public function getBradescoImage() {
199
+ if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
200
+ return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_bradesco');
201
  }else {
202
+ return $this->getSkinUrl('MOIP/transparente/imagem/Bradesco.png');
203
  }
204
  }
205
  public function getItauImage() {
206
+ if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
207
+ return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_itau');
208
  }else {
209
+ return $this->getSkinUrl('MOIP/transparente/imagem/Itau.png');
210
  }
211
  }
212
  public function getBanrisulImage() {
213
+ if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
214
+ return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_banrisul');
215
  }else {
216
+ return $this->getSkinUrl('MOIP/transparente/imagem/Banrisul.png');
217
  }
218
  }
219
 
220
  //imagens de cartao
221
  public function getVisaImage() {
222
+ if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
223
+ return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_visa');
224
  }else {
225
+ return $this->getSkinUrl('MOIP/transparente/imagem/Visa.png');
226
  }
227
  }
228
  public function getMastercardImage() {
229
+ if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
230
+ return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_master');
231
  }else {
232
+ return $this->getSkinUrl('MOIP/transparente/imagem/Mastercard.png');
233
  }
234
  }
235
  public function getDinersImage() {
236
+ if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
237
+ return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_diners');
238
  }else {
239
+ return $this->getSkinUrl('MOIP/transparente/imagem/Diners.png');
240
  }
241
  }
242
  public function getAmericanExpressImage() {
243
+ if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
244
+ return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_american');
245
  }else {
246
+ return $this->getSkinUrl('MOIP/transparente/imagem/AmericanExpress.png');
247
  }
248
  }
249
  public function getHipercardImage() {
250
+ if (Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')) {
251
+ return Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_hipercard');
252
  }else {
253
+ return $this->getSkinUrl('MOIP/transparente/imagem/Hipercard.png');
254
  }
255
  }
256
 
261
  $k = "";
262
  $parcelax = "";
263
  $precox = "";
264
+ $api = Mage::getSingleton('transparente/api');
265
+ $api->setContaTransparente(Mage::getSingleton('transparente/standard')->getConfigData('conta_transparente'));
266
+ $api->setAmbiente(Mage::getSingleton('transparente/standard')->getConfigData('ambiente'));
267
 
268
  $cartTotal = Mage::getModel('checkout/session')->getQuote()->getGrandTotal();
269
 
272
  $parcela_decode = Mage::helper('core')->jsonDecode($parcelamento,true);
273
  foreach ($parcela_decode as $key => $value) {
274
 
275
+ if ($key <= Mage::getSingleton('transparente/standard')->getConfigData('nummaxparcelamax')) {
276
 
277
 
278
  $juros = $parcela_decode[$key]['juros'];
313
  }
314
  }
315
  public function getTextoParcelas() {
316
+
317
+ if( $tipo_parcelamento = Mage::getSingleton('transparente/standard')->getConfigData('jurostipo') == 1){
318
+ $parcelamento = Mage::getSingleton('transparente/standard')->getInfoParcelamento();
319
  if ($parcelamento['c_juros1'] == 0) {
320
  echo "<div id=\"addparcelasdesc\"> Sem juros até ".$parcelamento['c_ate1']." parcelas";
321
+ if ($parcelamento['c_ate1'] < 13) {
322
  return ", após juros de 1,99% ao mês.</div>";
323
  }
324
  }else {
351
  public function getBoletoPrice() {
352
  $desconto = 0;
353
  $valor_pedido = Mage::getModel('checkout/session')->getQuote()->getGrandTotal();
354
+ if (Mage::getStoreConfig('moipall/pagamento_avancado/pagamento_boleto')) {
355
+ if ($valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor')) {
356
+ $desconto = (float)Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc');
357
  }
358
+ if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') && $valor_pedido < Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ) {
359
+ $desconto = (float)Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc2');
360
  }
361
 
362
+ if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ) {
363
+ $desconto = (float)Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc3');
364
  }
365
  return "R$".number_format((float)$valor_pedido-((float)$valor_pedido/100*$desconto), 2);
366
  }
375
  public function getTransferenciaPrice() {
376
  $desconto = 0;
377
  $valor_pedido = Mage::getModel('checkout/session')->getQuote()->getGrandTotal();
378
+ if (Mage::getStoreConfig('moipall/pagamento_avancado/transf_desc')) {
379
+ if ($valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor')) {
380
+ $desconto = (float)Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc');
381
  }
382
+ if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') && $valor_pedido < Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ) {
383
+ $desconto = (float)Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc2');
384
  }
385
 
386
+ if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ) {
387
+ $desconto = (float)Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc3');
388
  }
389
  return "R$".number_format((float)$valor_pedido-((float)$valor_pedido/100*$desconto), 2);
390
  }
app/code/local/{O2TI/Moip → MOIP/Transparente}/Block/Standard/Novaforma.php RENAMED
@@ -1,9 +1,9 @@
1
  <?php
2
- class O2TI_Moip_Block_IndexController_Novaforma extends Mage_Core_Block_Template{
3
  public function __construct(){
4
  parent::__construct();
5
  $this->loadLayout();
6
- $this->getLayout()->getBlock('content')->append($this->getLayout()->createBlock('O2TI_Moip_Block_Standard_Novaforma'));
7
  $this->renderLayout();
8
  }
9
  public function mostraCartao()
1
  <?php
2
+ class MOIP_Transparente_Block_IndexController_Novaforma extends Mage_Core_Block_Template{
3
  public function __construct(){
4
  parent::__construct();
5
  $this->loadLayout();
6
+ $this->getLayout()->getBlock('content')->append($this->getLayout()->createBlock('MOIP_Transparente_Block_Standard_Novaforma'));
7
  $this->renderLayout();
8
  }
9
  public function mostraCartao()
app/code/local/{O2TI/Moip → MOIP/Transparente}/Block/Standard/Redirect.php RENAMED
@@ -1,20 +1,20 @@
1
  <?php
2
- class O2TI_Moip_Block_Standard_Redirect extends Mage_Checkout_Block_Onepage_Success{
3
  public function __construct(){
4
  parent::__construct();
5
  }
6
  public function getSaveDate($order, $result_decode, $customerData = null, $pgtoArray, $client_array){
7
 
8
- if (Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste") {
9
  $url = "https://desenvolvedor.moip.com.br/sandbox/Instrucao.do?token=";
10
  }
11
  else {
12
  $url = "https://www.moip.com.br/Instrucao.do?token=";
13
  }
14
 
15
- $model = Mage::getModel('moip/write');
16
- $model->load($order, 'realorder_id')->delete();
17
- $model = Mage::getModel('moip/write');
18
  $model->setRealorder_id($order);
19
  $model->setMeio_pg($pgtoArray['forma_pagamento']);
20
  $model->setCreditcard_parc($pgtoArray['credito_parcelamento']);
@@ -25,7 +25,7 @@ class O2TI_Moip_Block_Standard_Redirect extends Mage_Checkout_Block_Onepage_Succ
25
  } else {
26
  $brand = $pgtoArray['credito_instituicao'];
27
  }
28
- $model->setbrand_moip($brand);
29
  $model->setCreditcard_parc($pgtoArray['credito_parcelamento']);
30
  $model->setFirst6(substr($pgtoArray['credito_numero'], 0, 6));
31
  $model->setLast4(substr($pgtoArray['credito_numero'],-4));
@@ -34,10 +34,12 @@ class O2TI_Moip_Block_Standard_Redirect extends Mage_Checkout_Block_Onepage_Succ
34
  $model->setToken($result_decode['token']);
35
  $model->setStatus_token($result_decode['status']);
36
  $model->save();
37
- /*
38
-
39
-
40
- */
 
 
41
  return true;
42
  }
43
  public function getJson($pgtoArray){
@@ -103,7 +105,7 @@ class O2TI_Moip_Block_Standard_Redirect extends Mage_Checkout_Block_Onepage_Succ
103
  return false;
104
 
105
  }
106
- public function getTrackingMoip($order_dados)
107
  {
108
 
109
  $order = Mage::getModel('sales/order')->loadByIncrementId($order_dados['id_transacao']);
@@ -142,13 +144,13 @@ class O2TI_Moip_Block_Standard_Redirect extends Mage_Checkout_Block_Onepage_Succ
142
  return implode("\n", $result);
143
  }
144
 
145
- public function getTrans_Moip($result_decode, $pagamento)
146
  {
147
 
148
  return true;
149
  }
150
 
151
- public function getBoleto_Moip($result_decode)
152
  {
153
 
154
  return true;
@@ -179,8 +181,8 @@ class O2TI_Moip_Block_Standard_Redirect extends Mage_Checkout_Block_Onepage_Succ
179
  $barcodes[$f] = $texto;
180
  }
181
  }
182
- $image_p = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN).'O2TI/moip/imagem/boleto/p.png';
183
- $image_b = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN).'O2TI/moip/imagem/boleto/b.png';
184
  $image_boleto = "<img src='{$image_p}' width='{$fino}' height='{$altura}' border='0'>
185
  <img src='{$image_b}' width='{$fino}' height='{$altura}' border='0'>
186
  <img src='{$image_p}' width='{$fino}' height='{$altura}' border='0'>
1
  <?php
2
+ class MOIP_Transparente_Block_Standard_Redirect extends Mage_Checkout_Block_Onepage_Success{
3
  public function __construct(){
4
  parent::__construct();
5
  }
6
  public function getSaveDate($order, $result_decode, $customerData = null, $pgtoArray, $client_array){
7
 
8
+ if (Mage::getSingleton('transparente/standard')->getConfigData('ambiente') == "teste") {
9
  $url = "https://desenvolvedor.moip.com.br/sandbox/Instrucao.do?token=";
10
  }
11
  else {
12
  $url = "https://www.moip.com.br/Instrucao.do?token=";
13
  }
14
 
15
+ $model = Mage::getModel('transparente/write');
16
+ $model->load($order)->delete();
17
+ $model = Mage::getModel('transparente/write');
18
  $model->setRealorder_id($order);
19
  $model->setMeio_pg($pgtoArray['forma_pagamento']);
20
  $model->setCreditcard_parc($pgtoArray['credito_parcelamento']);
25
  } else {
26
  $brand = $pgtoArray['credito_instituicao'];
27
  }
28
+ $model->setbrand_transparente($brand);
29
  $model->setCreditcard_parc($pgtoArray['credito_parcelamento']);
30
  $model->setFirst6(substr($pgtoArray['credito_numero'], 0, 6));
31
  $model->setLast4(substr($pgtoArray['credito_numero'],-4));
34
  $model->setToken($result_decode['token']);
35
  $model->setStatus_token($result_decode['status']);
36
  $model->save();
37
+
38
+ try{
39
+ $order_send = Mage::getModel('sales/order')->load($order, 'increment_id');
40
+ $order_send->sendNewOrderEmail();
41
+ }
42
+ catch (Exception $ex) { };
43
  return true;
44
  }
45
  public function getJson($pgtoArray){
105
  return false;
106
 
107
  }
108
+ public function getTrackingTransparente($order_dados)
109
  {
110
 
111
  $order = Mage::getModel('sales/order')->loadByIncrementId($order_dados['id_transacao']);
144
  return implode("\n", $result);
145
  }
146
 
147
+ public function getTrans_Transparente($result_decode, $pagamento)
148
  {
149
 
150
  return true;
151
  }
152
 
153
+ public function getBoleto_Transparente($result_decode)
154
  {
155
 
156
  return true;
181
  $barcodes[$f] = $texto;
182
  }
183
  }
184
+ $image_p = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN).'MOIP/transparente/imagem/boleto/p.png';
185
+ $image_b = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN).'MOIP/transparente/imagem/boleto/b.png';
186
  $image_boleto = "<img src='{$image_p}' width='{$fino}' height='{$altura}' border='0'>
187
  <img src='{$image_b}' width='{$fino}' height='{$altura}' border='0'>
188
  <img src='{$image_p}' width='{$fino}' height='{$altura}' border='0'>
app/code/local/MOIP/Transparente/Helper/Data.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Transparente - Transparente Payment Module
4
+ *
5
+ * @title Magento -> Custom Payment Module for Transparente (Brazil)
6
+ * @category Payment Gateway
7
+ * @package MOIP_Transparente
8
+ * @author Transparente Pagamentos S/a
9
+ * @copyright Copyright (c) 2010 Transparente Pagamentos S/A
10
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
11
+ */
12
+ class MOIP_Transparente_Helper_Data extends Mage_Core_Helper_Abstract {
13
+
14
+ }
app/code/local/{O2TI/Moip → MOIP/Transparente}/Model/.ftpquota RENAMED
File without changes
app/code/local/{O2TI/Moip → MOIP/Transparente}/Model/Api.php RENAMED
@@ -1,19 +1,19 @@
1
  <?php
2
- class O2TI_Moip_Model_Api {
3
 
4
  const TOKEN_TEST = "3UNGHOJCLVXZVOYF85JGILKALZSROU2O";
5
  const KEY_TEST = "VX2MOP4AEXFQYHBYIWT0GINNVXFZO9TJCKJ6AWDR";
6
  const TOKEN_PROD = "FEE5P78NA6RZAHBNH3GLMWZFWRE7IU3D";
7
  const KEY_PROD = "Y8DIATTADUNVOSXKDN0JVDAQ1KU7UPJHEGPM7SBA";
8
 
9
- private $conta_moip = null;
10
 
11
- public function getContaMoip() {
12
- return $this->conta_moip;
13
  }
14
 
15
- public function setContaMoip($conta_moip) {
16
- $this->conta_moip = $conta_moip;
17
  }
18
 
19
  public function getAmbiente() {
@@ -30,14 +30,18 @@ class O2TI_Moip_Model_Api {
30
  if($pgto['credito_parcelamento'] == ""){
31
  $pgto['credito_parcelamento'] = 2;
32
  }
33
- $standard = Mage::getSingleton('moip/standard');
34
  $parcelamento = $standard->getInfoParcelamento();
35
  $meio = $pgto["forma_pagamento"];
36
  $vcmentoboleto = $pgto["vcmentoboleto"];
37
  $forma_pgto = "";
38
  $validacao_nasp = $standard->getConfigData('validador_retorno');
39
- $url_retorno = Mage::getBaseUrl()."Moip/standard/success/validacao/".$validacao_nasp."/";
40
- $valorcompra = $data['valor'];
 
 
 
 
41
  $vcmentoboleto = $standard->getConfigData('vcmentoboleto');
42
  $vcmento = date('c', strtotime("+" . $vcmentoboleto . " days"));
43
 
@@ -47,63 +51,61 @@ class O2TI_Moip_Model_Api {
47
  $tipoderecebimento = "Avista";
48
  endif;
49
  $parcelamento = $standard->getInfoParcelamento();
50
- $tipo_parcelamento = Mage::getSingleton('moip/standard')->getConfigData('jurostipo');
51
 
52
- $comissionamento = Mage::getStoreConfig('o2tiall/mktplace/comissionamento');
53
 
54
 
55
  if ($meio == "BoletoBancario"):
56
- if (Mage::getStoreConfig('o2tiall/pagamento_avancado/pagamento_boleto')):
57
- $valorcompra = $data['valor'];
58
- if ($valorcompra >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor'))
59
  {
60
- $valorcompra = $valorcompra - $valorcompra * Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc') / 100;
61
  }
62
- if ($valorcompra < Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3'))
63
  {
64
- $valorcompra = $valorcompra - $valorcompra * Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc2') / 100;
65
  }
66
- if ($valorcompra >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3')){
67
- $valorcompra = $valorcompra - $valorcompra * Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc3') / 100;
68
  };
69
  endif;
70
  endif;
71
 
72
  if ($meio == "DebitoBancario"):
73
- $valorcompra = $data['valor'];
74
- if (Mage::getStoreConfig('o2tiall/pagamento_avancado/transf_desc')):
75
- $valorcompra = $data['valor'];
76
- if ($valorcompra >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor'))
77
  {
78
- $valorcompra = $valorcompra - $valorcompra * Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc') / 100;
79
  }
80
- if ($valorcompra < Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3'))
81
  {
82
- $valorcompra = $valorcompra - $valorcompra * Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc2') / 100;
83
  }
84
- if ($valorcompra >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3')){
85
- $valorcompra = $valorcompra - $valorcompra * Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc3') / 100;
86
  };
87
  endif;
88
  endif;
89
 
90
- if( Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste")
91
- $alterapedido = rand(999999, 99999999);
92
- else
93
- $alterapedido = "";
94
 
95
- $id_proprio = $alterapedido.$pgto['conta_moip'].'_'.$data['id_transacao'];
96
-
 
 
97
  # $xml = $this->generateXml($json);
98
  $xml = new SimpleXMLElement('<?xml version = "1.0" encoding = "UTF-8"?><EnviarInstrucao/>');
99
  $InstrucaoUnica = $xml->addChild('InstrucaoUnica');
100
  $InstrucaoUnica->addAttribute('TipoValidacao', 'Transparente');
101
- $InstrucaoUnica->addChild('Razao', 'Pagamento do Pedido #'.$data['id_transacao']);
102
  $Valores = $InstrucaoUnica->addChild('Valores');
103
  $Valor = $Valores->addChild('Valor', number_format($valorcompra, 2, '.', ''));
104
  $Valor->addAttribute('moeda', 'BRL');
105
  $Recebedor = $InstrucaoUnica->addChild('Recebedor');
106
- $Recebedor->addChild('LoginMoIP', $pgto['conta_moip']);
107
  $Recebedor->addChild('Apelido', $pgto['apelido']);
108
 
109
  if($comissionamento){
@@ -111,11 +113,11 @@ class O2TI_Moip_Model_Api {
111
  $Comissionamento = $Comissoes->addChild('Comissionamento');
112
  $Comissionamento->addChild('Razao', 'Pagamento do Pedido #'.$data['id_transacao'].' da Loja '.$pgto['apelido']);
113
  $Comissionado = $Comissionamento->addChild('Comissionado');
114
- $Comissionado->addChild('LoginMoIP', Mage::getStoreConfig('o2tiall/mktplace/logincomissionamento'));
115
- $Comissionamento->addChild('ValorPercentual', Mage::getStoreConfig('o2tiall/mktplace/porc_comissionamento'));
116
- if(Mage::getStoreConfig('o2tiall/mktplace/pagadordataxa')){
117
  $PagadorTaxa = $Comissoes->addChild('PagadorTaxa');
118
- $PagadorTaxa->addChild('LoginMoIP',Mage::getStoreConfig('o2tiall/mktplace/logincomissionamento'));
119
  }
120
  }
121
 
@@ -177,7 +179,7 @@ class O2TI_Moip_Model_Api {
177
  $FormasPagamento->addChild('FormaPagamento', 'FinanciamentoBancario');
178
  if ($meio == "BoletoBancario"){
179
  $Boleto_xml = $InstrucaoUnica->addChild('Boleto');
180
- $Boleto_xml->addChild('Instrucao1', 'Pagamento do Pedido #'.$data['id_transacao']);
181
  $Boleto_xml->addChild('Instrucao2', 'NÃO RECEBER APÓS O VENCIMENTO');
182
  $Boleto_xml->addChild('Instrucao3', '+ Info em: '.Mage::getBaseUrl());
183
  $Boleto_xml->addChild('DataVencimento');
@@ -198,12 +200,23 @@ class O2TI_Moip_Model_Api {
198
  }
199
 
200
  public function getParcelamentoComposto($valor) {
201
- $standard = Mage::getSingleton('moip/standard');
202
  $parcelamento = $standard->getInfoParcelamento();
203
  $parcelas = array();
204
  $juros = array();
205
  $primeiro = 1;
206
- $max_div = $valor/(int)Mage::getSingleton('moip/standard')->getConfigData('valorminimoparcela');
 
 
 
 
 
 
 
 
 
 
 
207
 
208
  if($parcelamento['c_ate1'] < $max_div){
209
  $max_div = $parcelamento['c_ate1'];
@@ -211,16 +224,16 @@ class O2TI_Moip_Model_Api {
211
 
212
  for ($i=1; $i <= $max_div; $i++) {
213
  if($i > 1){
214
- $total_parcelado[$i] = $this->getJurosComposto($valor, $parcelamento['c_juros1'], $i)*$i;
215
- $parcelas[$i] = $this->getJurosComposto($valor, $parcelamento['c_juros1'], $i);
216
- $juros[$i] = $parcelamento['c_juros1'];
217
  }
218
  else {
219
  $total_parcelado[$i] = $valor;
220
  $parcelas[$i] = $valor*$i;
221
  $juros[$i] = 0;
222
  }
223
- if($i <= Mage::getSingleton('moip/standard')->getConfigData('nummaxparcelamax')){
224
  $json_parcelas[$i] = array(
225
  'parcela' => Mage::helper('core')->currency($parcelas[$i], true, false),
226
  'total_parcelado' => Mage::helper('core')->currency($total_parcelado[$i], true, false),
@@ -229,17 +242,17 @@ class O2TI_Moip_Model_Api {
229
  $primeiro++;
230
  }
231
  }
232
- if($primeiro < 12 && $primeiro < ($valor/(int)Mage::getSingleton('moip/standard')->getConfigData('valorminimoparcela')) )
233
  {
234
  while ($primeiro <= 12) {
235
- $total_parcelado[$primeiro] = number_format($this->getJurosComposto($valor, '1.99', $i)*$primeiro, 2, '.', '');
236
- $parcelas[$primeiro] = $this->getJurosComposto($valor, '1.99', $primeiro);
237
  $juros[$primeiro] = '1.99';
238
 
239
  $json_parcelas[$primeiro] = array(
240
  'parcela' => Mage::helper('core')->currency($parcelas[$primeiro], true, false),
241
  'total_parcelado' => Mage::helper('core')->currency($total_parcelado[$primeiro], true, false),
242
- 'juros' => '1.99'
243
  );
244
  $primeiro++;
245
  }
@@ -250,17 +263,26 @@ class O2TI_Moip_Model_Api {
250
  }
251
 
252
  public function getParcelamentoSimples($valor) {
253
- $standard = Mage::getSingleton('moip/standard');
254
  $parcelamento = $standard->getInfoParcelamento();
255
  $parcelas = array();
256
  $juros = array();
257
  $primeiro = 1;
258
- $max_div = (int)($valor/Mage::getSingleton('moip/standard')->getConfigData('valorminimoparcela'));
259
 
260
- if(Mage::getSingleton('moip/standard')->getConfigData('nummaxparcelamax') > $max_div){
 
 
 
 
 
 
 
 
 
261
  $max_div = $max_div;
262
  } else {
263
- $max_div = Mage::getSingleton('moip/standard')->getConfigData('nummaxparcelamax');
264
  }
265
 
266
  for ($i=1; $i <= $max_div; $i++) {
@@ -278,7 +300,7 @@ class O2TI_Moip_Model_Api {
278
  $parcelas[$i] = $valor*$i;
279
  $juros[$i] = 0;
280
  }
281
- if($i <= Mage::getSingleton('moip/standard')->getConfigData('nummaxparcelamax')){
282
  $json_parcelas[$i] = array(
283
  'parcela' => Mage::helper('core')->currency($parcelas[$i], true, false),
284
  'total_parcelado' => Mage::helper('core')->currency($total_parcelado[$i], true, false),
@@ -293,7 +315,7 @@ class O2TI_Moip_Model_Api {
293
 
294
  public function getParcelamento($valor) {
295
 
296
- $tipo_parcelamento = Mage::getSingleton('moip/standard')->getConfigData('jurostipo');
297
 
298
  if($tipo_parcelamento == 1){
299
  $tipo = $this->getParcelamentoComposto($valor);
@@ -311,10 +333,13 @@ class O2TI_Moip_Model_Api {
311
  }
312
 
313
  public function getJurosComposto($valor, $juros, $parcela) {
314
-
315
  $principal = $valor;
316
- $taxa = $juros/100;
317
- $valParcela = ($principal * $taxa)/(1 - (pow(1/(1+$taxa), $parcela)));
 
 
 
 
318
 
319
  return $valParcela;
320
  }
1
  <?php
2
+ class MOIP_Transparente_Model_Api {
3
 
4
  const TOKEN_TEST = "3UNGHOJCLVXZVOYF85JGILKALZSROU2O";
5
  const KEY_TEST = "VX2MOP4AEXFQYHBYIWT0GINNVXFZO9TJCKJ6AWDR";
6
  const TOKEN_PROD = "FEE5P78NA6RZAHBNH3GLMWZFWRE7IU3D";
7
  const KEY_PROD = "Y8DIATTADUNVOSXKDN0JVDAQ1KU7UPJHEGPM7SBA";
8
 
9
+ private $conta_transparente = null;
10
 
11
+ public function getContaTransparente() {
12
+ return $this->conta_transparente;
13
  }
14
 
15
+ public function setContaTransparente($conta_transparente) {
16
+ $this->conta_transparente = $conta_transparente;
17
  }
18
 
19
  public function getAmbiente() {
30
  if($pgto['credito_parcelamento'] == ""){
31
  $pgto['credito_parcelamento'] = 2;
32
  }
33
+ $standard = Mage::getSingleton('transparente/standard');
34
  $parcelamento = $standard->getInfoParcelamento();
35
  $meio = $pgto["forma_pagamento"];
36
  $vcmentoboleto = $pgto["vcmentoboleto"];
37
  $forma_pgto = "";
38
  $validacao_nasp = $standard->getConfigData('validador_retorno');
39
+ $url_retorno = Mage::getBaseUrl()."Transparente/standard/success/validacao/".$validacao_nasp."/";
40
+ $order = Mage::getModel('sales/order')->loadByIncrementId($data['id_transacao']);
41
+ $increment = $data['id_transacao'];
42
+ $data['id_transacao'] = $order->getID();
43
+ $amout = $order->getGrandTotal();
44
+ $valorcompra = $amout;
45
  $vcmentoboleto = $standard->getConfigData('vcmentoboleto');
46
  $vcmento = date('c', strtotime("+" . $vcmentoboleto . " days"));
47
 
51
  $tipoderecebimento = "Avista";
52
  endif;
53
  $parcelamento = $standard->getInfoParcelamento();
54
+ $tipo_parcelamento = Mage::getSingleton('transparente/standard')->getConfigData('jurostipo');
55
 
56
+ $comissionamento = Mage::getStoreConfig('moipall/mktplace/comissionamento');
57
 
58
 
59
  if ($meio == "BoletoBancario"):
60
+ if (Mage::getStoreConfig('moipall/pagamento_avancado/pagamento_boleto')):
61
+ $valorcompra = $amout;
62
+ if ($valorcompra >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor'))
63
  {
64
+ $valorcompra = $valorcompra - $valorcompra * Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc') / 100;
65
  }
66
+ if ($valorcompra < Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3'))
67
  {
68
+ $valorcompra = $valorcompra - $valorcompra * Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc2') / 100;
69
  }
70
+ if ($valorcompra >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3')){
71
+ $valorcompra = $valorcompra - $valorcompra * Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc3') / 100;
72
  };
73
  endif;
74
  endif;
75
 
76
  if ($meio == "DebitoBancario"):
77
+ $valorcompra = $amout;
78
+ if (Mage::getStoreConfig('moipall/pagamento_avancado/transf_desc')):
79
+ $valorcompra = $amout;
80
+ if ($valorcompra >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor'))
81
  {
82
+ $valorcompra = $valorcompra - $valorcompra * Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc') / 100;
83
  }
84
+ if ($valorcompra < Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3'))
85
  {
86
+ $valorcompra = $valorcompra - $valorcompra * Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc2') / 100;
87
  }
88
+ if ($valorcompra >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3')){
89
+ $valorcompra = $valorcompra - $valorcompra * Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc3') / 100;
90
  };
91
  endif;
92
  endif;
93
 
 
 
 
 
94
 
95
+ $rand = rand(1000,9999999999);
96
+
97
+ $id_proprio = $rand.$pgto['conta_transparente'].'_'.$data['id_transacao'];
98
+
99
  # $xml = $this->generateXml($json);
100
  $xml = new SimpleXMLElement('<?xml version = "1.0" encoding = "UTF-8"?><EnviarInstrucao/>');
101
  $InstrucaoUnica = $xml->addChild('InstrucaoUnica');
102
  $InstrucaoUnica->addAttribute('TipoValidacao', 'Transparente');
103
+ $InstrucaoUnica->addChild('Razao', 'Pagamento do Pedido #'.$increment);
104
  $Valores = $InstrucaoUnica->addChild('Valores');
105
  $Valor = $Valores->addChild('Valor', number_format($valorcompra, 2, '.', ''));
106
  $Valor->addAttribute('moeda', 'BRL');
107
  $Recebedor = $InstrucaoUnica->addChild('Recebedor');
108
+ $Recebedor->addChild('LoginMoIP', $pgto['conta_transparente']);
109
  $Recebedor->addChild('Apelido', $pgto['apelido']);
110
 
111
  if($comissionamento){
113
  $Comissionamento = $Comissoes->addChild('Comissionamento');
114
  $Comissionamento->addChild('Razao', 'Pagamento do Pedido #'.$data['id_transacao'].' da Loja '.$pgto['apelido']);
115
  $Comissionado = $Comissionamento->addChild('Comissionado');
116
+ $Comissionado->addChild('LoginMoIP', Mage::getStoreConfig('moipall/mktplace/logincomissionamento'));
117
+ $Comissionamento->addChild('ValorPercentual', Mage::getStoreConfig('moipall/mktplace/porc_comissionamento'));
118
+ if(Mage::getStoreConfig('moipall/mktplace/pagadordataxa')){
119
  $PagadorTaxa = $Comissoes->addChild('PagadorTaxa');
120
+ $PagadorTaxa->addChild('LoginMoIP',Mage::getStoreConfig('moipall/mktplace/logincomissionamento'));
121
  }
122
  }
123
 
179
  $FormasPagamento->addChild('FormaPagamento', 'FinanciamentoBancario');
180
  if ($meio == "BoletoBancario"){
181
  $Boleto_xml = $InstrucaoUnica->addChild('Boleto');
182
+ $Boleto_xml->addChild('Instrucao1', 'Pagamento do Pedido #'.$increment);
183
  $Boleto_xml->addChild('Instrucao2', 'NÃO RECEBER APÓS O VENCIMENTO');
184
  $Boleto_xml->addChild('Instrucao3', '+ Info em: '.Mage::getBaseUrl());
185
  $Boleto_xml->addChild('DataVencimento');
200
  }
201
 
202
  public function getParcelamentoComposto($valor) {
203
+ $standard = Mage::getSingleton('transparente/standard');
204
  $parcelamento = $standard->getInfoParcelamento();
205
  $parcelas = array();
206
  $juros = array();
207
  $primeiro = 1;
208
+ $max_div = $valor/(int)Mage::getSingleton('transparente/standard')->getConfigData('valorminimoparcela');
209
+ $valor_juros= Mage::getSingleton('transparente/standard')->getConfigData('parcelamento_c_juros1');
210
+
211
+ if($valor <= Mage::getSingleton('transparente/standard')->getConfigData('valorminimoparcela')){
212
+ $json_parcelas[1] = array(
213
+ 'parcela' => Mage::helper('core')->currency($valor, true, false),
214
+ 'total_parcelado' => Mage::helper('core')->currency($valor, true, false),
215
+ 'juros' => 0
216
+ );
217
+ $json_parcelas = Mage::helper('core')->jsonEncode((object)$json_parcelas);
218
+ return $json_parcelas;
219
+ }
220
 
221
  if($parcelamento['c_ate1'] < $max_div){
222
  $max_div = $parcelamento['c_ate1'];
224
 
225
  for ($i=1; $i <= $max_div; $i++) {
226
  if($i > 1){
227
+ $total_parcelado[$i] = $this->getJurosComposto($valor, $valor_juros, $i)*$i;
228
+ $parcelas[$i] = $this->getJurosComposto($valor, $valor_juros, $i);
229
+ $juros[$i] = $valor_juros;
230
  }
231
  else {
232
  $total_parcelado[$i] = $valor;
233
  $parcelas[$i] = $valor*$i;
234
  $juros[$i] = 0;
235
  }
236
+ if($i <= Mage::getSingleton('transparente/standard')->getConfigData('nummaxparcelamax')){
237
  $json_parcelas[$i] = array(
238
  'parcela' => Mage::helper('core')->currency($parcelas[$i], true, false),
239
  'total_parcelado' => Mage::helper('core')->currency($total_parcelado[$i], true, false),
242
  $primeiro++;
243
  }
244
  }
245
+ if($primeiro < 12 && $primeiro < ($valor/(int)Mage::getSingleton('transparente/standard')->getConfigData('valorminimoparcela')) )
246
  {
247
  while ($primeiro <= 12) {
248
+ $total_parcelado[$primeiro] = number_format($this->getJurosComposto($valor, '2.99', $i)*$primeiro, 2, '.', '');
249
+ $parcelas[$primeiro] = $this->getJurosComposto($valor, '2.99', $primeiro);
250
  $juros[$primeiro] = '1.99';
251
 
252
  $json_parcelas[$primeiro] = array(
253
  'parcela' => Mage::helper('core')->currency($parcelas[$primeiro], true, false),
254
  'total_parcelado' => Mage::helper('core')->currency($total_parcelado[$primeiro], true, false),
255
+ 'juros' => '2.99'
256
  );
257
  $primeiro++;
258
  }
263
  }
264
 
265
  public function getParcelamentoSimples($valor) {
266
+ $standard = Mage::getSingleton('transparente/standard');
267
  $parcelamento = $standard->getInfoParcelamento();
268
  $parcelas = array();
269
  $juros = array();
270
  $primeiro = 1;
271
+ $max_div = (int)($valor/Mage::getSingleton('transparente/standard')->getConfigData('valorminimoparcela'));
272
 
273
+ if($valor <= Mage::getSingleton('transparente/standard')->getConfigData('valorminimoparcela')){
274
+ $json_parcelas[1] = array(
275
+ 'parcela' => Mage::helper('core')->currency($valor, true, false),
276
+ 'total_parcelado' => Mage::helper('core')->currency($valor, true, false),
277
+ 'juros' => 0
278
+ );
279
+ $json_parcelas = Mage::helper('core')->jsonEncode((object)$json_parcelas);
280
+ return $json_parcelas;
281
+ }
282
+ if(Mage::getSingleton('transparente/standard')->getConfigData('nummaxparcelamax') > $max_div){
283
  $max_div = $max_div;
284
  } else {
285
+ $max_div = Mage::getSingleton('transparente/standard')->getConfigData('nummaxparcelamax');
286
  }
287
 
288
  for ($i=1; $i <= $max_div; $i++) {
300
  $parcelas[$i] = $valor*$i;
301
  $juros[$i] = 0;
302
  }
303
+ if($i <= Mage::getSingleton('transparente/standard')->getConfigData('nummaxparcelamax')){
304
  $json_parcelas[$i] = array(
305
  'parcela' => Mage::helper('core')->currency($parcelas[$i], true, false),
306
  'total_parcelado' => Mage::helper('core')->currency($total_parcelado[$i], true, false),
315
 
316
  public function getParcelamento($valor) {
317
 
318
+ $tipo_parcelamento = Mage::getSingleton('transparente/standard')->getConfigData('jurostipo');
319
 
320
  if($tipo_parcelamento == 1){
321
  $tipo = $this->getParcelamentoComposto($valor);
333
  }
334
 
335
  public function getJurosComposto($valor, $juros, $parcela) {
 
336
  $principal = $valor;
337
+ if($juros != 0){
338
+ $taxa = $juros/100;
339
+ $valParcela = ($principal * $taxa)/(1 - (pow(1/(1+$taxa), $parcela)));
340
+ } else {
341
+ $valParcela = $principal/$parcela;
342
+ }
343
 
344
  return $valParcela;
345
  }
app/code/local/MOIP/Transparente/Model/Mysql4/Collection.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class MOIP_Transparente_Model_Mysql4_Write_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
3
+ {
4
+ public function _construct()
5
+ {
6
+ parent::_construct();
7
+ $this->_init('transparente/write');
8
+ }
9
+ }
app/code/local/MOIP/Transparente/Model/Mysql4/Write.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class MOIP_Transparente_Model_Mysql4_Write extends Mage_Core_Model_Mysql4_Abstract
3
+ {
4
+ public function _construct()
5
+ {
6
+ $this->_init('transparente/write', 'order_id');
7
+ }
8
+ }
9
+ ?>
app/code/local/{O2TI/Moip → MOIP/Transparente}/Model/Observer.php RENAMED
@@ -1,12 +1,12 @@
1
  <?php
2
 
3
- class O2TI_Moip_Model_Observer
4
  {
5
  public function createorderadmin($event)
6
  {
7
- $standard = Mage::getSingleton('moip/standard');
8
- $api = Mage::getSingleton('moip/api');
9
- $conta = $api->setContaMoip($standard->getConfigData('conta_moip'));
10
  $ambiente = $standard->getConfigData('ambiente');
11
  $api->setAmbiente($standard->getConfigData('ambiente'));
12
  $tem = $event->getOrderCreateModel();
@@ -48,14 +48,14 @@ class O2TI_Moip_Model_Observer
48
  $estado = strtoupper($address->getRegionCode());
49
  $alterapedido = rand(544, 15);
50
  $data['id_transacao'] = "13eliseiadm".$alterapedido;
51
- $pgtoArray = Array("conta_moip" => "elisei",
52
  "apelido" => "localhost do bruno",
53
  "comissionamento" => "0",
54
  "parcelamento2" => "",
55
  "forma_pagamento" => $formadepgto);
56
  #preciso arrumar baseado nos dados do forme para formade pagamento e nos do admin para outros itens.
57
  $Arr = array(
58
- 'id_carteira' => 'o2ti',
59
  'pagador_nome' => $nomecli,
60
  'id_transacao' => $data['id_transacao'],
61
  'valor' => $valor,
@@ -77,7 +77,7 @@ class O2TI_Moip_Model_Observer
77
  if ($xml != "" && $orderid != "" && $token != "" && $bandeira != "")
78
  {
79
  $connR = Mage::getSingleton('core/resource')->getConnection('core_read');
80
- $sql = "SELECT * FROM `moip` WHERE `realorder_id` = '".$orderid."'";
81
  $_venda = $connR->fetchAll($sql);
82
  foreach($_venda as $venda)
83
  {
@@ -87,12 +87,12 @@ class O2TI_Moip_Model_Observer
87
  {
88
  $hora = date('Y-m-d H:i:s');
89
  $conn = Mage::getSingleton('core/resource')->getConnection('core_write');
90
- $results = $conn->query("UPDATE `moip` SET `sale_id` = '".$pedido_form."' ,`xml_return` = '".$token."', `formapg` = '".$formadepgto."', `bandeira` = '".$bandeira."' WHERE `realorder_id` = '".$orderid."';");
91
  }
92
  else {
93
  $hora = date('Y-m-d H:i:s');
94
  $conn = Mage::getSingleton('core/resource')->getConnection('core_write');
95
- $results = $conn->query("INSERT INTO `moip` (
96
  `transaction_id` ,
97
  `realorder_id` ,
98
  `sale_id` ,
@@ -124,7 +124,7 @@ class O2TI_Moip_Model_Observer
124
  $valor = $quote->getgrand_total();
125
  $increment_id = $quote->getincrement_id();
126
  $connR = Mage::getSingleton('core/resource')->getConnection('core_read');
127
- $sql = "SELECT * FROM `moip` WHERE `realorder_id` = '".$idmage."'";
128
  $_venda = $connR->fetchAll($sql);
129
  foreach($_venda as $venda)
130
  {
@@ -132,7 +132,7 @@ class O2TI_Moip_Model_Observer
132
  }
133
  if ($increment_id != $sale_id){
134
  $conn = Mage::getSingleton('core/resource')->getConnection('core_write');
135
- $results = $conn->query("UPDATE `moip` SET `sale_id` = '".$increment_id."' WHERE `realorder_id` = '".$idmage."';");
136
  }
137
 
138
  return $this;
@@ -150,7 +150,7 @@ class O2TI_Moip_Model_Observer
150
  $email = $address->getEmail();
151
  $orderInstance = $event->getOrder();
152
  $connR = Mage::getSingleton('core/resource')->getConnection('core_read');
153
- $sql = "SELECT * FROM `moip` WHERE `realorder_id` = '".$idmage."'";
154
  $_venda = $connR->fetchAll($sql);
155
  foreach($_venda as $venda)
156
  {
1
  <?php
2
 
3
+ class MOIP_Transparente_Model_Observer
4
  {
5
  public function createorderadmin($event)
6
  {
7
+ $standard = Mage::getSingleton('transparente/standard');
8
+ $api = Mage::getSingleton('transparente/api');
9
+ $conta = $api->setContaTransparente($standard->getConfigData('conta_transparente'));
10
  $ambiente = $standard->getConfigData('ambiente');
11
  $api->setAmbiente($standard->getConfigData('ambiente'));
12
  $tem = $event->getOrderCreateModel();
48
  $estado = strtoupper($address->getRegionCode());
49
  $alterapedido = rand(544, 15);
50
  $data['id_transacao'] = "13eliseiadm".$alterapedido;
51
+ $pgtoArray = Array("conta_transparente" => "elisei",
52
  "apelido" => "localhost do bruno",
53
  "comissionamento" => "0",
54
  "parcelamento2" => "",
55
  "forma_pagamento" => $formadepgto);
56
  #preciso arrumar baseado nos dados do forme para formade pagamento e nos do admin para outros itens.
57
  $Arr = array(
58
+ 'id_carteira' => 'moip',
59
  'pagador_nome' => $nomecli,
60
  'id_transacao' => $data['id_transacao'],
61
  'valor' => $valor,
77
  if ($xml != "" && $orderid != "" && $token != "" && $bandeira != "")
78
  {
79
  $connR = Mage::getSingleton('core/resource')->getConnection('core_read');
80
+ $sql = "SELECT * FROM `transparente` WHERE `realorder_id` = '".$orderid."'";
81
  $_venda = $connR->fetchAll($sql);
82
  foreach($_venda as $venda)
83
  {
87
  {
88
  $hora = date('Y-m-d H:i:s');
89
  $conn = Mage::getSingleton('core/resource')->getConnection('core_write');
90
+ $results = $conn->query("UPDATE `transparente` SET `sale_id` = '".$pedido_form."' ,`xml_return` = '".$token."', `formapg` = '".$formadepgto."', `bandeira` = '".$bandeira."' WHERE `realorder_id` = '".$orderid."';");
91
  }
92
  else {
93
  $hora = date('Y-m-d H:i:s');
94
  $conn = Mage::getSingleton('core/resource')->getConnection('core_write');
95
+ $results = $conn->query("INSERT INTO `transparente` (
96
  `transaction_id` ,
97
  `realorder_id` ,
98
  `sale_id` ,
124
  $valor = $quote->getgrand_total();
125
  $increment_id = $quote->getincrement_id();
126
  $connR = Mage::getSingleton('core/resource')->getConnection('core_read');
127
+ $sql = "SELECT * FROM `transparente` WHERE `realorder_id` = '".$idmage."'";
128
  $_venda = $connR->fetchAll($sql);
129
  foreach($_venda as $venda)
130
  {
132
  }
133
  if ($increment_id != $sale_id){
134
  $conn = Mage::getSingleton('core/resource')->getConnection('core_write');
135
+ $results = $conn->query("UPDATE `transparente` SET `sale_id` = '".$increment_id."' WHERE `realorder_id` = '".$idmage."';");
136
  }
137
 
138
  return $this;
150
  $email = $address->getEmail();
151
  $orderInstance = $event->getOrder();
152
  $connR = Mage::getSingleton('core/resource')->getConnection('core_read');
153
+ $sql = "SELECT * FROM `transparente` WHERE `realorder_id` = '".$idmage."'";
154
  $_venda = $connR->fetchAll($sql);
155
  foreach($_venda as $venda)
156
  {
app/code/local/{O2TI/Moip → MOIP/Transparente}/Model/Orders.php RENAMED
@@ -1,7 +1,7 @@
1
  <?php
2
- class O2TI_Moip_Model_Orders extends Mage_Payment_Model_Method_Abstract {
3
  public function cancel(){
4
- $date = date("Y-m-d H:i:s", mktime(0, 0, 0, date("m"), date("d")-Mage::getStoreConfig('payment/o2ti_moip_standard/vcmentoboleto'), date("Y")));
5
  $orders = Mage::getModel('sales/order')->getCollection();
6
  $orders->addFieldToFilter('status', 'boleto_impresso')
7
  ->addFieldToFilter('created_at', array('to' => $date));
@@ -13,7 +13,7 @@ class O2TI_Moip_Model_Orders extends Mage_Payment_Model_Method_Abstract {
13
  $order->sendOrderUpdateEmail(true, $comment);
14
  $order->setState($state, $status, $comment, $notified = true, $includeComment = true);
15
  $order->save();
16
- Mage::dispatchEvent('moip_order_canceled', array("order" => $order));
17
  }
18
  }
19
  }
1
  <?php
2
+ class MOIP_Transparente_Model_Orders extends Mage_Payment_Model_Method_Abstract {
3
  public function cancel(){
4
+ $date = date("Y-m-d H:i:s", mktime(0, 0, 0, date("m"), date("d")-Mage::getStoreConfig('payment/moip_transparente_standard/vcmentoboleto'), date("Y")));
5
  $orders = Mage::getModel('sales/order')->getCollection();
6
  $orders->addFieldToFilter('status', 'boleto_impresso')
7
  ->addFieldToFilter('created_at', array('to' => $date));
13
  $order->sendOrderUpdateEmail(true, $comment);
14
  $order->setState($state, $status, $comment, $notified = true, $includeComment = true);
15
  $order->save();
16
+ Mage::dispatchEvent('transparente_order_canceled', array("order" => $order));
17
  }
18
  }
19
  }
app/code/local/{O2TI/Moip → MOIP/Transparente}/Model/Source/Ambiente.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class O2TI_Moip_Model_Source_Ambiente {
4
 
5
  public function toOptionArray() {
6
 
1
  <?php
2
 
3
+ class MOIP_Transparente_Model_Source_Ambiente {
4
 
5
  public function toOptionArray() {
6
 
app/code/local/{O2TI/Moip → MOIP/Transparente}/Model/Source/FormasPagamento.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class O2TI_Moip_Model_Source_FormasPagamento {
4
 
5
  public function toOptionArray() {
6
 
1
  <?php
2
 
3
+ class MOIP_Transparente_Model_Source_FormasPagamento {
4
 
5
  public function toOptionArray() {
6
 
app/code/local/{O2TI/Moip → MOIP/Transparente}/Model/Source/Layout.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class O2TI_Moip_Model_Source_Layout {
4
 
5
  public function toOptionArray() {
6
 
1
  <?php
2
 
3
+ class MOIP_Transparente_Model_Source_Layout {
4
 
5
  public function toOptionArray() {
6
 
app/code/local/{O2TI/Moip → MOIP/Transparente}/Model/Standard.php RENAMED
@@ -1,8 +1,8 @@
1
  <?php
2
- class O2TI_Moip_Model_Standard extends Mage_Payment_Model_Method_Abstract {
3
- protected $_code = 'o2ti_moip_standard';
4
- protected $_formBlockType = 'moip/standard_form';
5
- protected $_infoBlockType = 'moip/info';
6
  protected $_isGateway = true;
7
  protected $_canAuthorize = true;
8
  protected $_canCapture = true;
@@ -18,7 +18,7 @@ class O2TI_Moip_Model_Standard extends Mage_Payment_Model_Method_Abstract {
18
  * Armazena as informações passadas via formulário no frontend
19
  * @access public
20
  * @param array $data
21
- * @return O2TI_Moip_Model_Standard
22
  */
23
  public function assignData($data) {
24
  if (!($data instanceof Varien_Object)) {
@@ -44,7 +44,7 @@ class O2TI_Moip_Model_Standard extends Mage_Payment_Model_Method_Abstract {
44
  return $this->getQuote()->getPayment();
45
  }
46
  public function getSession() {
47
- return Mage::getSingleton('moip/session');
48
  }
49
  public function getCheckout() {
50
  return Mage::getSingleton('checkout/session');
@@ -59,7 +59,7 @@ class O2TI_Moip_Model_Standard extends Mage_Payment_Model_Method_Abstract {
59
  parent::validate();
60
  $currency_code = Mage::app()->getStore()->getCurrentCurrencyCode();
61
  if (!in_array($currency_code, $this->_allowCurrencyCode)) {
62
- Mage::throwException(Mage::helper('moip')->__('Selected currency code (' . $currency_code . ') is not compatabile with Moip'));
63
  }
64
  return $this;
65
  }
@@ -77,7 +77,7 @@ class O2TI_Moip_Model_Standard extends Mage_Payment_Model_Method_Abstract {
77
  $pgtoArray['logincomissionamento'] = $this->getConfigData('logincomissionamento');
78
  $pgtoArray['porc_comissionamento'] = $this->getConfigData('porc_comissionamento');
79
  $pgtoArray['pagadordataxa'] = $this->getConfigData('pagadordataxa');
80
- $pgtoArray['conta_moip'] = $this->getConfigData('conta_moip');
81
  $pgtoArray['apelido'] = $this->getConfigData('apelido');
82
  $pgtoArray['credito_instituicao'] = $info->getCreditoInstituicao();
83
  $pgtoArray['credito_numero'] = $info->getCreditoNumero();
@@ -91,57 +91,37 @@ class O2TI_Moip_Model_Standard extends Mage_Payment_Model_Method_Abstract {
91
  $pgtoArray['credito_portador_DDD'] = $this->getNumberOrDDD($info->getCreditoPortadorTelefone(), true);
92
  $pgtoArray['credito_portador_telefone'] = $this->getNumberOrDDD($info->getCreditoPortadorTelefone());
93
  $pgtoArray['credito_portador_nascimento'] = date('Y-m-d', strtotime($info->getCreditoPortadorNascimento()));
94
- $api = Mage::getModel('moip/api');
95
  $api->setAmbiente($this->getConfigData('ambiente'));
96
  $session = Mage::getSingleton('checkout/session');
97
  $session->setPgtoArray($pgtoArray);
98
- $session->setMoIPFields($this->getStandardCheckoutFormFields());
99
  }
100
  public function getOrderPlaceRedirectUrl() {
101
  $this->prepare();
102
- return Mage::getUrl('moip/standard/redirect', array('_secure' => true));
103
  }
104
 
105
  public function getStandardCheckoutFormFields() {
106
- if ($this->getQuote()->getIsVirtual()) {
107
- $a = $this->getQuote()->getBillingAddress();
108
- $b = $this->getQuote()->getShippingAddress();
109
- } else {
110
- $a = $this->getQuote()->getShippingAddress();
111
- $b = $this->getQuote()->getBillingAddress();
112
- };
113
- $ss=Mage::getSingleton('customer/session')->getCustomer()->getEmail();
114
- if(!empty($ss)){
115
- $email=Mage::getSingleton('customer/session')->getCustomer()->getEmail();
116
- }elseif($b->getEmail() != "n/a@na.na")
117
- $email= $b->getEmail();
118
- elseif($a->getEmail() != "n/a@na.na")
119
- $email= $a->getEmail();
120
- if($email == "n/a@na.na"){
121
- $email = "comprador@email.com";
122
- }
123
  $currency_code = Mage::app()->getStore()->getCurrentCurrencyCode();
124
- $totalArr = $a->getTotals();
125
-
126
  $cep = substr(preg_replace("/[^0-9]/", "", $a->getPostcode()) . '00000000', 0, 8);
127
- $amount = $a->getGrandTotal();
128
- $shipping = $a->getShippingAmount();
129
- $valor = $amount;
130
  $dob = Mage::app()->getLocale()->date($this->getQuote()->getCustomerDob(), null, null, false)->toString('Y-MM-dd');
131
  $taxvat = $this->getQuote()->getCustomerTaxvat();
132
  $taxvat = preg_replace("/[^0-9]/", "", $taxvat);
133
  $website_id = Mage::app()->getWebsite()->getId();
134
  $website_name = Mage::app()->getWebsite()->getName();
135
  $store_name = Mage::app()->getStore()->getName();
 
136
  $Arr = array(
137
- 'id_carteira' => $this->getConfigData('conta_moip'),
138
- 'valor' => $valor,
139
  'nome' => 'Pagamento a ' . $website_name,
140
  'descricao' => $this->getListaProdutos(),
141
- 'shipping' => $shipping,
142
- 'peso_compra' => $this->getPesoProdutosPedido(),
143
  'pagador_nome' => $a->getFirstname() . ' ' . $a->getLastname(),
144
- //'pagador_email' => Mage::getSingleton('customer/session')->getCustomer()->getEmail(),// this is original code of Moip
145
  'pagador_email' => strtolower($email),
146
  'pagador_ddd' => $this->getNumberOrDDD($a->getTelephone(), true),
147
  'pagador_telefone' => $this->getNumberOrDDD($a->getTelephone()),
@@ -163,14 +143,14 @@ class O2TI_Moip_Model_Standard extends Mage_Payment_Model_Method_Abstract {
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
 
1
  <?php
2
+ class MOIP_Transparente_Model_Standard extends Mage_Payment_Model_Method_Abstract {
3
+ protected $_code = 'moip_transparente_standard';
4
+ protected $_formBlockType = 'transparente/standard_form';
5
+ protected $_infoBlockType = 'transparente/info';
6
  protected $_isGateway = true;
7
  protected $_canAuthorize = true;
8
  protected $_canCapture = true;
18
  * Armazena as informações passadas via formulário no frontend
19
  * @access public
20
  * @param array $data
21
+ * @return MOIP_Transparente_Model_Standard
22
  */
23
  public function assignData($data) {
24
  if (!($data instanceof Varien_Object)) {
44
  return $this->getQuote()->getPayment();
45
  }
46
  public function getSession() {
47
+ return Mage::getSingleton('transparente/session');
48
  }
49
  public function getCheckout() {
50
  return Mage::getSingleton('checkout/session');
59
  parent::validate();
60
  $currency_code = Mage::app()->getStore()->getCurrentCurrencyCode();
61
  if (!in_array($currency_code, $this->_allowCurrencyCode)) {
62
+ Mage::throwException(Mage::helper('transparente')->__('Selected currency code (' . $currency_code . ') is not compatabile with Transparente'));
63
  }
64
  return $this;
65
  }
77
  $pgtoArray['logincomissionamento'] = $this->getConfigData('logincomissionamento');
78
  $pgtoArray['porc_comissionamento'] = $this->getConfigData('porc_comissionamento');
79
  $pgtoArray['pagadordataxa'] = $this->getConfigData('pagadordataxa');
80
+ $pgtoArray['conta_transparente'] = $this->getConfigData('conta_transparente');
81
  $pgtoArray['apelido'] = $this->getConfigData('apelido');
82
  $pgtoArray['credito_instituicao'] = $info->getCreditoInstituicao();
83
  $pgtoArray['credito_numero'] = $info->getCreditoNumero();
91
  $pgtoArray['credito_portador_DDD'] = $this->getNumberOrDDD($info->getCreditoPortadorTelefone(), true);
92
  $pgtoArray['credito_portador_telefone'] = $this->getNumberOrDDD($info->getCreditoPortadorTelefone());
93
  $pgtoArray['credito_portador_nascimento'] = date('Y-m-d', strtotime($info->getCreditoPortadorNascimento()));
94
+ $api = Mage::getModel('transparente/api');
95
  $api->setAmbiente($this->getConfigData('ambiente'));
96
  $session = Mage::getSingleton('checkout/session');
97
  $session->setPgtoArray($pgtoArray);
98
+ $session->setTransparenteFields($this->getStandardCheckoutFormFields());
99
  }
100
  public function getOrderPlaceRedirectUrl() {
101
  $this->prepare();
102
+ return Mage::getUrl('transparente/standard/redirect', array('_secure' => true));
103
  }
104
 
105
  public function getStandardCheckoutFormFields() {
106
+
107
+ $a = $this->getQuote()->getBillingAddress();
108
+ $email=Mage::getSingleton('customer/session')->getCustomer()->getEmail();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
  $currency_code = Mage::app()->getStore()->getCurrentCurrencyCode();
 
 
110
  $cep = substr(preg_replace("/[^0-9]/", "", $a->getPostcode()) . '00000000', 0, 8);
111
+
 
 
112
  $dob = Mage::app()->getLocale()->date($this->getQuote()->getCustomerDob(), null, null, false)->toString('Y-MM-dd');
113
  $taxvat = $this->getQuote()->getCustomerTaxvat();
114
  $taxvat = preg_replace("/[^0-9]/", "", $taxvat);
115
  $website_id = Mage::app()->getWebsite()->getId();
116
  $website_name = Mage::app()->getWebsite()->getName();
117
  $store_name = Mage::app()->getStore()->getName();
118
+
119
  $Arr = array(
120
+ 'id_carteira' => $this->getConfigData('conta_transparente'),
121
+ 'id_transacao' => $this->getQuote()->getReservedOrderId(),
122
  'nome' => 'Pagamento a ' . $website_name,
123
  'descricao' => $this->getListaProdutos(),
 
 
124
  'pagador_nome' => $a->getFirstname() . ' ' . $a->getLastname(),
 
125
  'pagador_email' => strtolower($email),
126
  'pagador_ddd' => $this->getNumberOrDDD($a->getTelephone(), true),
127
  'pagador_telefone' => $this->getNumberOrDDD($a->getTelephone()),
143
  public function getInfoParcelamento() {
144
  $config = array();
145
  $max = 12;
146
+ $config['c_de1'] = (int)$this->getConfigData('parcelamento_c_de1');
147
  $config['c_ate1'] = (int) $this->getConfigData('parcelamento_c_ate1');
148
  $config['c_juros1'] = $this->getConfigData('parcelamento_c_juros1');
149
+ $config['c_de2'] = (int)$this->getConfigData('parcelamento_c_de2');
150
+ $config['c_ate2'] = (int)$this->getConfigData('parcelamento_c_ate2');
151
  $config['c_juros2'] = $this->getConfigData('parcelamento_c_juros2');
152
+ $config['c_de3'] = (int)$this->getConfigData('parcelamento_c_de3');
153
+ $config['c_ate3'] = (int)$this->getConfigData('parcelamento_c_ate3');
154
  $config['c_juros3'] = $this->getConfigData('parcelamento_c_juros3');
155
 
156
 
app/code/local/MOIP/Transparente/Model/Write.php ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class MOIP_Transparente_Model_Write extends Mage_Core_Model_Abstract
3
+ {
4
+ public function _construct()
5
+ {
6
+ $this->_init('transparente/write');
7
+ }
8
+ }
app/code/local/{O2TI/Moip → MOIP/Transparente}/controllers/IndexController.php RENAMED
@@ -1,17 +1,52 @@
1
  <?php
2
- class O2TI_Moip_IndexController extends Mage_Core_Controller_Front_Action
3
  {
4
  protected function indexAction() {
5
  $this->loadLayout();
6
  $this->renderLayout();
7
  return true;
8
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  public function NovaformaAction() {
10
  if($this->getRequest()->getParams()){
11
- $model = Mage::getModel('moip/write');
12
- $api = Mage::getModel('moip/api');
13
  $post = $this->getRequest()->getPost();
14
- $model->load($post['order_id'], 'realorder_id');
15
  $model->getDate();
16
  $pgtoArray = array();
17
  $pgtoArray['forma_pagamento'] = $post['forma_de_pagamento'];
@@ -30,17 +65,17 @@ class O2TI_Moip_IndexController extends Mage_Core_Controller_Front_Action
30
  $pgtoArray['credito_portador_nascimento'] = date('Y-m-d', strtotime($post['DataNascimento']));
31
  $model->setMeio_pg($post['forma_de_pagamento']);
32
  if($post['forma_de_pagamento'] == "BoletoBancario"){
33
- $model->setbrand_moip('Bradesco');
34
  }
35
  if ($post['forma_de_pagamento'] == "CartaoCredito") {
36
  $model->setCreditcard_parc($post['parcelas']);
37
- $model->setbrand_moip($post['bandeira']);
38
  $model->setfirst6(substr($post['Numero'], 0, 6));
39
  $model->setLast4(substr($post['Numero'], -4));
40
  }
41
  if($post['forma_de_pagamento'] == "DebitoBancario")
42
  {
43
- $model->setbrand_moip((string)$post['instituicao']);
44
 
45
  }
46
 
@@ -81,7 +116,7 @@ class O2TI_Moip_IndexController extends Mage_Core_Controller_Front_Action
81
  if($this->getRequest()->getParams()){
82
  $post = $this->getRequest()->getPost();
83
  $cpf = preg_replace("/[^0-9]/", "", $post['CPF']);
84
- $api = Mage::getModel('moip/api');
85
  $json = array(
86
  'Forma' => "CartaoCredito",
87
  'Instituicao' => $post['bandeira'],
1
  <?php
2
+ class MOIP_Transparente_IndexController extends Mage_Core_Controller_Front_Action
3
  {
4
  protected function indexAction() {
5
  $this->loadLayout();
6
  $this->renderLayout();
7
  return true;
8
  }
9
+ public function ParcelamentoAction() {
10
+ $api = Mage::getModel('transparente/api');
11
+ if($this->getRequest()->getParams()){
12
+ $data = $this->getRequest()->getPost();
13
+
14
+
15
+
16
+ if($data['itens_total'] > 1){
17
+ $item_count = $data['itens_total']." itens";
18
+ }
19
+ else {
20
+ $item_count = $data['itens_total']." item";
21
+ }
22
+ echo ' <div class="total_itens">
23
+ Você compra:
24
+ <span class="soma_related_itens">'.$item_count.'</span>
25
+ </div>';
26
+
27
+ $parcelamento = $api->getParcelamento($data['valor']);
28
+ $parcela_decode = json_decode($parcelamento,true);
29
+ foreach ($parcela_decode as $key => $value):
30
+ if ($key <= Mage::getSingleton('transparente/standard')->getConfigData('nummaxparcelamax')):
31
+ $juros = $parcela_decode[$key]['juros'];
32
+ $parcelas_result = $parcela_decode[$key]['parcela'];
33
+ $total_parcelado = $parcela_decode[$key]['total_parcelado'];
34
+ if($juros > 0)
35
+ $asterisco = '';
36
+ else
37
+ $asterisco = ' sem juros';
38
+ $parcelas[]= '<div class="parcela_add_prod_related">em <span class="parcelas_em">'.$key.'x de '.$parcelas_result.'</span>'.$asterisco.'</div><div>ou <span class="parcelas_em_total">'.Mage::helper('core')->currency($data['valor'], true, false).' à vista</span> com desconto</div>';
39
+ endif;
40
+ endforeach;
41
+ echo end($parcelas);
42
+ }
43
+ }
44
  public function NovaformaAction() {
45
  if($this->getRequest()->getParams()){
46
+ $model = Mage::getModel('transparente/write');
47
+ $api = Mage::getModel('transparente/api');
48
  $post = $this->getRequest()->getPost();
49
+ $model->load($post['order_id']);
50
  $model->getDate();
51
  $pgtoArray = array();
52
  $pgtoArray['forma_pagamento'] = $post['forma_de_pagamento'];
65
  $pgtoArray['credito_portador_nascimento'] = date('Y-m-d', strtotime($post['DataNascimento']));
66
  $model->setMeio_pg($post['forma_de_pagamento']);
67
  if($post['forma_de_pagamento'] == "BoletoBancario"){
68
+ $model->setbrand_transparente('Bradesco');
69
  }
70
  if ($post['forma_de_pagamento'] == "CartaoCredito") {
71
  $model->setCreditcard_parc($post['parcelas']);
72
+ $model->setbrand_transparente($post['bandeira']);
73
  $model->setfirst6(substr($post['Numero'], 0, 6));
74
  $model->setLast4(substr($post['Numero'], -4));
75
  }
76
  if($post['forma_de_pagamento'] == "DebitoBancario")
77
  {
78
+ $model->setbrand_transparente((string)$post['instituicao']);
79
 
80
  }
81
 
116
  if($this->getRequest()->getParams()){
117
  $post = $this->getRequest()->getPost();
118
  $cpf = preg_replace("/[^0-9]/", "", $post['CPF']);
119
+ $api = Mage::getModel('transparente/api');
120
  $json = array(
121
  'Forma' => "CartaoCredito",
122
  'Instituicao' => $post['bandeira'],
app/code/local/{O2TI/Moip → MOIP/Transparente}/controllers/StandardController.php RENAMED
@@ -1,17 +1,17 @@
1
  <?php
2
  /**
3
- * MoIP - Moip Payment Module
4
  *
5
- * @title Magento -> Custom Payment Module for Moip (Brazil)
6
  * @category Payment Gateway
7
- * @package O2TI_Moip
8
- * @author O2ti solucoes web ldta
9
- * @copyright Copyright (c) 2010 MoIP Pagamentos S/A
10
  * @license Autorizado o uso por tempo indeterminado
11
  */
12
- class O2TI_Moip_StandardController extends Mage_Core_Controller_Front_Action {
13
  public function getStandard() {
14
- return Mage::getSingleton('moip/standard');
15
  }
16
 
17
  protected function _expireAjax() {
@@ -25,13 +25,13 @@ class O2TI_Moip_StandardController extends Mage_Core_Controller_Front_Action {
25
  $session = Mage::getSingleton('checkout/session');
26
 
27
  $documento = 'Content-Type: application/xml; charset=utf-8';
28
- if (Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste") {
29
  $url = "https://desenvolvedor.moip.com.br/sandbox/ws/alpha/EnviarInstrucao/Unica";
30
- $header = "Authorization: Basic " . base64_encode(O2TI_Moip_Model_Api::TOKEN_TEST . ":" . O2TI_Moip_Model_Api::KEY_TEST);
31
  }
32
  else {
33
  $url = "https://www.moip.com.br/ws/alpha/EnviarInstrucao/Unica";
34
- $header = "Authorization: Basic " . base64_encode(O2TI_Moip_Model_Api::TOKEN_PROD . ":" . O2TI_Moip_Model_Api::KEY_PROD);
35
  }
36
  $result = array();
37
  $ch = curl_init();
@@ -40,13 +40,15 @@ class O2TI_Moip_StandardController extends Mage_Core_Controller_Front_Action {
40
  curl_setopt($ch, CURLOPT_TIMEOUT, 500);
41
  curl_setopt($ch, CURLOPT_POST, true);
42
  curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
 
 
43
  curl_setopt($ch, CURLOPT_HTTPHEADER, array($header, $documento));
44
  $res = curl_exec($ch);
45
  if($res === false)
46
  {
47
 
48
- Mage::log(curl_error($ch), null, 'O2TI_Moip.log', true);
49
- Mage::log($xml, null, 'O2TI_Moip.log', true);
50
  $this->generateToken($xml);
51
  }
52
  curl_close($ch);
@@ -56,8 +58,8 @@ class O2TI_Moip_StandardController extends Mage_Core_Controller_Front_Action {
56
  if($res->Resposta->Status == "Sucesso"){
57
  $result['status'] = (string)$res->Resposta->Status;
58
  $result['token'] = (string)$res->Resposta->Token;
59
- Mage::log($result['token'], null, 'O2TI_Moip.log', true);
60
- Mage::log($xml, null, 'O2TI_Moip.log', true);
61
  $session->setResult_decode($result);
62
 
63
  return $result;
@@ -65,8 +67,8 @@ class O2TI_Moip_StandardController extends Mage_Core_Controller_Front_Action {
65
  else {
66
  $result['status'] = (string)$res->Resposta->Status;
67
  $result['erro'] = (string)$res->Resposta->Erro;
68
- Mage::log("erro em status do server moip".$result['erro'], null, 'O2TI_Moip.log', true);
69
- Mage::log($xml, null, 'O2TI_Moip.log', true);
70
  return $result;
71
  }
72
 
@@ -76,10 +78,9 @@ class O2TI_Moip_StandardController extends Mage_Core_Controller_Front_Action {
76
  $session = Mage::getSingleton('checkout/session');
77
  $getSaltes = Mage::getModel('sales/order');
78
  $standard = $this->getStandard();
79
- $fields = $session->getMoIPFields();
80
- $fields['id_transacao'] = Mage::getSingleton('checkout/session')->getLastRealOrderId();
81
  $pgtoArray = $session->getPgtoArray();
82
- $api = Mage::getModel('moip/api');
83
  $api->setAmbiente($standard->getConfigData('ambiente'));
84
  $pedido_send = $api->generatePedido($fields, $pgtoArray);
85
  $gettoken = $this->generateToken($pedido_send);
@@ -87,15 +88,15 @@ class O2TI_Moip_StandardController extends Mage_Core_Controller_Front_Action {
87
  $session->setPgtoarry($pgtoArray);
88
  $session->setClient_array($fields);
89
  $this->loadLayout();
90
- #$this->getLayout()->getBlock('content')->append($this->getLayout()->createBlock('O2TI_Moip_Block_Standard_Redirect'));
91
  if($pgtoArray['forma_pagamento'] == "BoletoBancario"){
92
- $this->getLayout()->getBlock('content')->append('moip.boleto');
93
  }
94
  elseif ($pgtoArray['forma_pagamento'] == "DebitoBancario") {
95
- $this->getLayout()->getBlock('content')->append('moip.transferencia');
96
  }
97
  elseif ($pgtoArray['forma_pagamento'] == "CartaoCredito") {
98
- $this->getLayout()->getBlock('content')->append('moip.cartao');
99
  }
100
  $this->renderLayout();
101
  }
@@ -103,7 +104,7 @@ class O2TI_Moip_StandardController extends Mage_Core_Controller_Front_Action {
103
 
104
  public function cancelAction() {
105
  $session = Mage::getSingleton('checkout/session');
106
- $session->setQuoteId($session->getMoipStandardQuoteId(true));
107
 
108
  if ($session->getLastRealOrderId()) {
109
  $order = Mage::getModel('sales/order')->loadByIncrementId($session->getLastRealOrderId());
@@ -120,28 +121,28 @@ class O2TI_Moip_StandardController extends Mage_Core_Controller_Front_Action {
120
  $validacao = $this->getRequest()->getParams();
121
  if($validacao['validacao'] == $standard->getConfigData('validador_retorno')){
122
  $data = $this->getRequest()->getPost();
123
- $login = $standard->getConfigData('conta_moip')."_";
124
- $data_moip = trim($data['id_transacao']);
125
- $order_magento = strpos($data_moip, $login);
126
- $order_magento = substr($data_moip, strpos($data_moip, "_") + 1);
127
- $model = Mage::getModel('moip/write');
128
  $model->load($order_magento, 'key_payment');
129
- $order = Mage::getModel('sales/order')->load($order_magento, 'increment_id');
130
  $id_order = $order->getId();
131
  $states_atual = $order->getStatus();
132
- if($states_atual == "pending"){
133
- try{
134
- $order->sendNewOrderEmail();
135
- }
136
- catch (Exception $ex) { };
137
  }
138
- if($states_atual == 'processing'){
139
- $naexecuta = 1;
 
 
 
140
  }
141
  if($states_atual == 'canceled' && $data['status_pagamento']==5){
142
- $naexecuta = 1;
143
  }
144
- Mage::log("Nasp acionou para o pedido ".$order_magento. " - Status - " .$data['status_pagamento'], null, 'O2TI_Moip.log', true);
145
  if ($order->isCanceled() && $data['status_pagamento'] != "5") {
146
  if (Mage::helper('sales/reorder')->canReorder($order)) {
147
  $order->setState(Mage_Sales_Model_Order::STATE_NEW);
@@ -184,7 +185,7 @@ class O2TI_Moip_StandardController extends Mage_Core_Controller_Front_Action {
184
  if($states_atual != 'processing'){
185
  $state = Mage_Sales_Model_Order::STATE_PROCESSING;
186
  $status = 'processing';
187
- $comment = $this->getStatusPagamentoMoip($status).' - Codig. Moip: '.$data['cod_moip'];
188
  $invoice = $order->prepareInvoice();
189
  if ($this->getStandard()->canCapture())
190
  {
@@ -201,13 +202,13 @@ class O2TI_Moip_StandardController extends Mage_Core_Controller_Front_Action {
201
  case "2":
202
  $state = Mage_Sales_Model_Order::STATE_HOLDED;
203
  $status = 'holded';
204
- $comment = $this->getStatusPagamentoMoip($data['status_pagamento']).' - Codig. Moip: '.$data['cod_moip'];
205
  break;
206
  case "3":
207
  if($states_atual != 'processing' && $states_atual != 'holded'){
208
  $state = Mage_Sales_Model_Order::STATE_HOLDED;
209
  $status = 'holded';
210
- $comment = $this->getStatusPagamentoMoip($data['status_pagamento']).' - Codig. Moip: '.$data['cod_moip'];
211
  } else {
212
  $naexecuta = 1;
213
  }
@@ -215,24 +216,28 @@ class O2TI_Moip_StandardController extends Mage_Core_Controller_Front_Action {
215
  case "5":
216
  $state = Mage_Sales_Model_Order::STATE_CANCELED;
217
  $status = 'canceled';
218
- $comment = $this->getStatusPagamentoMoip($data['status_pagamento']).' - Codig. Moip: '.$data['cod_moip'].' - Motivo: '.utf8_encode($data['classificacao']);
219
  $order->cancel();
220
  break;
221
  case "6":
222
  $state = Mage_Sales_Model_Order::STATE_HOLDED;
223
  $status = 'holded';
224
- $comment = $this->getStatusPagamentoMoip($data['status_pagamento']).' - Codig. Moip: '.$data['cod_moip'];
225
  break;
226
  }
227
  if($naexecuta != 1){
228
  $order->setState($state, $status, $comment, $notified = true, $includeComment = true);
229
- $order->sendOrderUpdateEmail(true, $comment);
230
  $order->save();
 
 
 
 
 
231
  echo 'Processo de retorno concluido para o pedido #'.$id_order.' Status '.$status;
232
- Mage::log("Cliente do pedido ".$id_order. " - Status - " .$status, null, 'O2TI_Moip.log', true);
233
  }
234
  else {
235
- Mage::log("Nao atualizado moip Cliente do pedido ".$id_order. " - Status - " .$status, null, 'O2TI_Moip.log', true);
236
  }
237
  }
238
  }
@@ -256,7 +261,7 @@ class O2TI_Moip_StandardController extends Mage_Core_Controller_Front_Action {
256
  return $nome;
257
  }
258
 
259
- private function getStatusPagamentoMoip($param) {
260
  switch ($param) {
261
  case "1":
262
  $param = "Pagamento Autorizado";
@@ -283,7 +288,7 @@ class O2TI_Moip_StandardController extends Mage_Core_Controller_Front_Action {
283
  $param = "Pagamento Revertido pela Operadora";
284
  break;
285
  default:
286
- $param = "nao criado";
287
  break;
288
  }
289
  return $param;
@@ -292,7 +297,7 @@ class O2TI_Moip_StandardController extends Mage_Core_Controller_Front_Action {
292
  private function _sendStatusMail($order, $tokenpagamento)
293
  {
294
  $emailTemplate = Mage::getModel('core/email_template');
295
- $emailTemplate->loadDefault('o2ti_ordem_tpl');
296
  $emailTemplate->setTemplateSubject('Pedido Cancelado');
297
  $salesData['email'] = Mage::getStoreConfig('trans_email/ident_general/email');
298
  $salesData['name'] = Mage::getStoreConfig('trans_email/ident_general/name');
@@ -311,44 +316,45 @@ class O2TI_Moip_StandardController extends Mage_Core_Controller_Front_Action {
311
  $erro = $_GET['erro'];
312
  $pedido = $_GET['pedido'];
313
  $navegador = $_GET['navegador'];
314
- Mage::log("Cliente do pedido ".$pedido. " - Erro - " .$erro. " navegador ". $navegador, null, 'O2TI_Moip.log', true);
315
  }
316
  }
317
 
318
- public function buscaCepAction() {
319
-
320
- if ($_GET['meio'] == "buscaend") {
321
- function simple_curl($url, $post=array(), $get=array()) {
322
  $url = explode('?', $url, 2);
323
- if (count($url)===2) {
324
- $temp_get = array();
325
- parse_str($url[1], $temp_get);
326
- $get = array_merge($get, $temp_get);
327
- }
328
  $ch = curl_init($url[0]."?".http_build_query($get));
329
- curl_setopt($ch, CURLOPT_POST, 1);
330
- curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post));
331
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
332
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
333
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 
334
  return curl_exec($ch);
335
  }
336
- $cep = $_GET['s'];
337
- $vSomeSpecialChars = array("á", "é", "í", "ó", "ú", "Á", "É", "Í", "Ó", "Ú", "ç", "Ç", "ã", "Ã", "õ", "Õ");
338
- $vReplacementChars = array("a", "e", "i", "o", "u", "A", "E", "I", "O", "U", "c", "C", "a", "A", "o", "O");
339
- $cep = str_replace($vSomeSpecialChars, $vReplacementChars, $cep);
340
- $cep = preg_replace('/[^\p{L}\p{N}]/u', '+', $cep);
341
- $html = simple_curl('http://m.correios.com.br/movel/buscaCepConfirma.do', array(
342
- 'cepEntrada'=>''.utf8_encode($cep).'',
343
- 'metodo'=>'buscarCep'
344
- ));
345
- $topo = "<style>#divTelaAguarde, .secao, .divopcoes, .mopcoes, .botoes, .rodape { display:none;}.caixacampobranco {padding: 8px 8px 8px 8px;margin-top: 5px;background-color: #E0E2EE;-moz-border-radius: 3px;-moz-border-radius-bottomright: 10px;-webkit-border-radius: 3px;-webkit-border-bottom-right-radius: 10px;}.caixacampoazul {padding: 8px 8px 8px 8px;margin-top: 5px;background-color: #DADCEB;-moz-border-radius: 3px;-webkit-border-radius: 3px;-moz-border-radius-bottomright: 10px;-webkit-border-bottom-right-radius: 10px;}.conteudo {max-width: 372px;text-align: left;padding: 10px;}</style>";
346
- echo $topo;
347
- $html = $html;
348
- echo $html;
 
 
 
 
 
 
 
 
349
  }
350
 
351
- if ($_GET['meio'] == "cep") {
352
  function simple_curl($url, $post=array(), $get=array()) {
353
  $url = explode('?', $url, 2);
354
  if (count($url)===2) {
@@ -366,8 +372,7 @@ class O2TI_Moip_StandardController extends Mage_Core_Controller_Front_Action {
366
  Mage::log(curl_exec($ch));
367
  return curl_exec($ch);
368
  }
369
- $cep = $_GET['cep'];
370
- $cep = $_GET['cep'];
371
  $cep = substr(preg_replace("/[^0-9]/", "", $cep) . '00000000', 0, 8);
372
  $url_end = "http://endereco.ecorreios.com.br/getAddress.php?cep={$cep}";
373
  $config = array('adapter' => 'Zend_Http_Client_Adapter_Socket');
1
  <?php
2
  /**
3
+ * Transparente - Transparente Payment Module
4
  *
5
+ * @title Magento -> Custom Payment Module for Transparente (Brazil)
6
  * @category Payment Gateway
7
+ * @package MOIP_Transparente
8
+ * @author Moip solucoes web ldta
9
+ * @copyright Copyright (c) 2010 Transparente Pagamentos S/A
10
  * @license Autorizado o uso por tempo indeterminado
11
  */
12
+ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Action {
13
  public function getStandard() {
14
+ return Mage::getSingleton('transparente/standard');
15
  }
16
 
17
  protected function _expireAjax() {
25
  $session = Mage::getSingleton('checkout/session');
26
 
27
  $documento = 'Content-Type: application/xml; charset=utf-8';
28
+ if (Mage::getSingleton('transparente/standard')->getConfigData('ambiente') == "teste") {
29
  $url = "https://desenvolvedor.moip.com.br/sandbox/ws/alpha/EnviarInstrucao/Unica";
30
+ $header = "Authorization: Basic " . base64_encode(MOIP_Transparente_Model_Api::TOKEN_TEST . ":" . MOIP_Transparente_Model_Api::KEY_TEST);
31
  }
32
  else {
33
  $url = "https://www.moip.com.br/ws/alpha/EnviarInstrucao/Unica";
34
+ $header = "Authorization: Basic " . base64_encode(MOIP_Transparente_Model_Api::TOKEN_PROD . ":" . MOIP_Transparente_Model_Api::KEY_PROD);
35
  }
36
  $result = array();
37
  $ch = curl_init();
40
  curl_setopt($ch, CURLOPT_TIMEOUT, 500);
41
  curl_setopt($ch, CURLOPT_POST, true);
42
  curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
43
+ curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
44
+ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
45
  curl_setopt($ch, CURLOPT_HTTPHEADER, array($header, $documento));
46
  $res = curl_exec($ch);
47
  if($res === false)
48
  {
49
 
50
+ Mage::log(curl_error($ch), null, 'MOIP_Transparente.log', true);
51
+ Mage::log($xml, null, 'MOIP_Transparente.log', true);
52
  $this->generateToken($xml);
53
  }
54
  curl_close($ch);
58
  if($res->Resposta->Status == "Sucesso"){
59
  $result['status'] = (string)$res->Resposta->Status;
60
  $result['token'] = (string)$res->Resposta->Token;
61
+ Mage::log($result['token'], null, 'MOIP_Transparente.log', true);
62
+ Mage::log($xml, null, 'MOIP_Transparente.log', true);
63
  $session->setResult_decode($result);
64
 
65
  return $result;
67
  else {
68
  $result['status'] = (string)$res->Resposta->Status;
69
  $result['erro'] = (string)$res->Resposta->Erro;
70
+ Mage::log("erro em status do server transparente".$result['erro'], null, 'MOIP_Transparente.log', true);
71
+ Mage::log($xml, null, 'MOIP_Transparente.log', true);
72
  return $result;
73
  }
74
 
78
  $session = Mage::getSingleton('checkout/session');
79
  $getSaltes = Mage::getModel('sales/order');
80
  $standard = $this->getStandard();
81
+ $fields = $session->getTransparenteFields();
 
82
  $pgtoArray = $session->getPgtoArray();
83
+ $api = Mage::getModel('transparente/api');
84
  $api->setAmbiente($standard->getConfigData('ambiente'));
85
  $pedido_send = $api->generatePedido($fields, $pgtoArray);
86
  $gettoken = $this->generateToken($pedido_send);
88
  $session->setPgtoarry($pgtoArray);
89
  $session->setClient_array($fields);
90
  $this->loadLayout();
91
+ #$this->getLayout()->getBlock('content')->append($this->getLayout()->createBlock('MOIP_Transparente_Block_Standard_Redirect'));
92
  if($pgtoArray['forma_pagamento'] == "BoletoBancario"){
93
+ $this->getLayout()->getBlock('content')->append('transparente.boleto');
94
  }
95
  elseif ($pgtoArray['forma_pagamento'] == "DebitoBancario") {
96
+ $this->getLayout()->getBlock('content')->append('transparente.transferencia');
97
  }
98
  elseif ($pgtoArray['forma_pagamento'] == "CartaoCredito") {
99
+ $this->getLayout()->getBlock('content')->append('transparente.cartao');
100
  }
101
  $this->renderLayout();
102
  }
104
 
105
  public function cancelAction() {
106
  $session = Mage::getSingleton('checkout/session');
107
+ $session->setQuoteId($session->getTransparenteStandardQuoteId(true));
108
 
109
  if ($session->getLastRealOrderId()) {
110
  $order = Mage::getModel('sales/order')->loadByIncrementId($session->getLastRealOrderId());
121
  $validacao = $this->getRequest()->getParams();
122
  if($validacao['validacao'] == $standard->getConfigData('validador_retorno')){
123
  $data = $this->getRequest()->getPost();
124
+ $login = $standard->getConfigData('conta_transparente')."_";
125
+ $data_transparente = trim($data['id_transacao']);
126
+ $order_magento = strpos($data_transparente, $login);
127
+ $order_magento = substr($data_transparente, strpos($data_transparente, "_") + 1);
128
+ $model = Mage::getModel('transparente/write');
129
  $model->load($order_magento, 'key_payment');
130
+ $order = Mage::getModel('sales/order')->load($order_magento);
131
  $id_order = $order->getId();
132
  $states_atual = $order->getStatus();
133
+ if($states_atual == "processing"){
134
+ $naexecuta = 1;
 
 
 
135
  }
136
+ if($states_atual == "complete"){
137
+ $naexecuta = 1;
138
+ }
139
+ if($states_atual == "closed"){
140
+ $naexecuta = 1;
141
  }
142
  if($states_atual == 'canceled' && $data['status_pagamento']==5){
143
+ $naexecuta = 1;
144
  }
145
+ Mage::log("Nasp acionou para o pedido ".$order_magento. " - Status - " .$data['status_pagamento'], null, 'MOIP_Transparente.log', true);
146
  if ($order->isCanceled() && $data['status_pagamento'] != "5") {
147
  if (Mage::helper('sales/reorder')->canReorder($order)) {
148
  $order->setState(Mage_Sales_Model_Order::STATE_NEW);
185
  if($states_atual != 'processing'){
186
  $state = Mage_Sales_Model_Order::STATE_PROCESSING;
187
  $status = 'processing';
188
+ $comment = $this->getStatusPagamentoTransparente($status).' - Codig. Transparente: '.$data['cod_moip'];
189
  $invoice = $order->prepareInvoice();
190
  if ($this->getStandard()->canCapture())
191
  {
202
  case "2":
203
  $state = Mage_Sales_Model_Order::STATE_HOLDED;
204
  $status = 'holded';
205
+ $comment = $this->getStatusPagamentoTransparente($data['status_pagamento']).' - Codig. Transparente: '.$data['cod_moip'];
206
  break;
207
  case "3":
208
  if($states_atual != 'processing' && $states_atual != 'holded'){
209
  $state = Mage_Sales_Model_Order::STATE_HOLDED;
210
  $status = 'holded';
211
+ $comment = $this->getStatusPagamentoTransparente($data['status_pagamento']).' - Codig. Transparente: '.$data['cod_moip'];
212
  } else {
213
  $naexecuta = 1;
214
  }
216
  case "5":
217
  $state = Mage_Sales_Model_Order::STATE_CANCELED;
218
  $status = 'canceled';
219
+ $comment = $this->getStatusPagamentoTransparente($data['status_pagamento']).' - Codig. Transparente: '.$data['cod_moip'].' - Motivo: '.utf8_encode($data['classificacao']);
220
  $order->cancel();
221
  break;
222
  case "6":
223
  $state = Mage_Sales_Model_Order::STATE_HOLDED;
224
  $status = 'holded';
225
+ $comment = $this->getStatusPagamentoTransparente($data['status_pagamento']).' - Codig. Transparente: '.$data['cod_moip'];
226
  break;
227
  }
228
  if($naexecuta != 1){
229
  $order->setState($state, $status, $comment, $notified = true, $includeComment = true);
 
230
  $order->save();
231
+ if(Mage::getStoreConfig('payment/moip_transparente_standard/notificar_cliente') == 1){
232
+ if( $order->getStatus() != 'pending' && $data['status_pagamento'] != 2){
233
+ $order->sendOrderUpdateEmail(true, $comment);
234
+ }
235
+ }
236
  echo 'Processo de retorno concluido para o pedido #'.$id_order.' Status '.$status;
237
+ Mage::log("Cliente do pedido ".$id_order. " - Status - " .$states_atual, null, 'MOIP_Transparente.log', true);
238
  }
239
  else {
240
+ Mage::log("Nao atualizado transparente Cliente do pedido ".$id_order. " - Status - " .$states_atual , null, 'MOIP_Transparente.log', true);
241
  }
242
  }
243
  }
261
  return $nome;
262
  }
263
 
264
+ private function getStatusPagamentoTransparente($param) {
265
  switch ($param) {
266
  case "1":
267
  $param = "Pagamento Autorizado";
288
  $param = "Pagamento Revertido pela Operadora";
289
  break;
290
  default:
291
+ $param = "Consultar no Moip";
292
  break;
293
  }
294
  return $param;
297
  private function _sendStatusMail($order, $tokenpagamento)
298
  {
299
  $emailTemplate = Mage::getModel('core/email_template');
300
+ $emailTemplate->loadDefault('moip_ordem_tpl');
301
  $emailTemplate->setTemplateSubject('Pedido Cancelado');
302
  $salesData['email'] = Mage::getStoreConfig('trans_email/ident_general/email');
303
  $salesData['name'] = Mage::getStoreConfig('trans_email/ident_general/name');
316
  $erro = $_GET['erro'];
317
  $pedido = $_GET['pedido'];
318
  $navegador = $_GET['navegador'];
319
+ Mage::log("Cliente do pedido ".$pedido. " - Erro - " .$erro. " navegador ". $navegador, null, 'MOIP_Transparente.log', true);
320
  }
321
  }
322
 
323
+
324
+ public function post_correio($url, $get) {
 
 
325
  $url = explode('?', $url, 2);
326
+
 
 
 
 
327
  $ch = curl_init($url[0]."?".http_build_query($get));
 
 
328
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
329
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
330
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
331
+
332
  return curl_exec($ch);
333
  }
334
+ public function buscaCepAction() {
335
+ $data = $this->getRequest()->getParams();
336
+ if ($data['meio'] == "buscaend") {
337
+
338
+ $rua = $data['busca_end'];
339
+ $vSomeSpecialChars = array("á", "á","é","é", "í","í", "ó", "ú", "Á","À","É","È", "Í", "Ì","Ó", "Ú", "ç", "Ç", "ã", "Ã", "õ", "Õ");
340
+ $vReplacementChars = array("a", "a", "e","e", "i","i", "o", "u", "A", "A","E","E", "I", "I","O", "U", "c", "C", "a", "A", "o", "O");
341
+ $rua = str_replace($vSomeSpecialChars, $vReplacementChars, $rua);
342
+ $rua = preg_replace('/[^\p{L}\p{N}]/u', '+', $rua);
343
+ $uf = $data['busca_uf'];
344
+ $url_end = "http://endereco.ecorreios.com.br/getAddress.php?";
345
+ $get = array(
346
+ 'cep' =>'',
347
+ 'busca_end' =>$rua,
348
+ 'busca_uf' =>$uf,
349
+ );
350
+ $config = array('adapter' => 'Zend_Http_Client_Adapter_Socket');
351
+ $resposta = $this->post_correio($url_end, $get);
352
+
353
+
354
+ $this->getResponse()->setBody($resposta);
355
  }
356
 
357
+ if ($data['meio'] == "cep") {
358
  function simple_curl($url, $post=array(), $get=array()) {
359
  $url = explode('?', $url, 2);
360
  if (count($url)===2) {
372
  Mage::log(curl_exec($ch));
373
  return curl_exec($ch);
374
  }
375
+ $cep = $data['cep'];
 
376
  $cep = substr(preg_replace("/[^0-9]/", "", $cep) . '00000000', 0, 8);
377
  $url_end = "http://endereco.ecorreios.com.br/getAddress.php?cep={$cep}";
378
  $config = array('adapter' => 'Zend_Http_Client_Adapter_Socket');
app/code/local/{O2TI/Moip → MOIP/Transparente}/etc/adminhtml.xml RENAMED
File without changes
app/code/local/{O2TI/Moip → MOIP/Transparente}/etc/config.xml RENAMED
@@ -1,122 +1,111 @@
1
  <?xml version="1.0"?>
2
  <config>
3
  <modules>
4
- <O2TI_Moip>
5
- <version>0.2.4</version>
6
- </O2TI_Moip>
7
  </modules>
8
  <global>
9
  <models>
10
- <moip>
11
- <class>O2TI_Moip_Model</class>
12
- <resourceModel>moip_mysql4</resourceModel>
13
- </moip>
14
- <moip_mysql4>
15
- <class>O2TI_Moip_Model_Mysql4</class>
16
  <entities>
17
  <write>
18
- <table>o2ti_moip</table>
19
  </write>
20
  </entities>
21
- </moip_mysql4>
22
  </models>
23
  <resources>
24
- <moip_setup>
25
  <setup>
26
- <module>O2TI_Moip</module>
27
  </setup>
28
  <connection>
29
  <use>core_setup</use>
30
  </connection>
31
- </moip_setup>
32
- <moip_write>
33
  <connection>
34
  <use>core_write</use>
35
  </connection>
36
- </moip_write>
37
- <moip_read>
38
  <connection>
39
                      <use>core_read</use>
40
                  </connection>
41
- </moip_read>
42
  </resources>
43
  <blocks>
44
- <moip>
45
- <class>O2TI_Moip_Block</class>
46
- </moip>
47
  </blocks>
48
  <helpers>
49
- <moip>
50
- <class>O2TI_Moip_Helper</class>
51
- </moip>
52
- </helpers>
53
- <template>
54
- <email>
55
- <o2ti_ordem_tpl module="moip">
56
- <label>Email da Cancelamento</label>
57
- <file>statusmail_cancelado_o2ti.html</file>
58
- <type>html</type>
59
- </o2ti_ordem_tpl>
60
- </email>
61
- </template>
62
-
63
  </global>
64
  <frontend>
65
  <routers>
66
- <moip>
67
  <use>standard</use>
68
  <args>
69
- <module>O2TI_Moip</module>
70
- <frontName>Moip</frontName>
71
  </args>
72
- </moip>
73
  </routers>
74
  <translate>
75
  <modules>
76
- <moip>
77
  <files>
78
- <default>moip.csv</default>
79
  </files>
80
- </moip>
81
  </modules>
82
  </translate>
83
  <layout>
84
  <updates>
85
- <moip>
86
- <file>o2ti_moip.xml</file>
87
- </moip>
88
  </updates>
89
  </layout>
90
  </frontend>
91
  <admin>
92
  <routers>
93
- <O2TI_Moip>
94
  <use>admin</use>
95
  <args>
96
- <module>O2TI_Moip</module>
97
- <frontName>moip</frontName>
98
  </args>
99
- </O2TI_Moip>
100
  </routers>
101
  </admin>
102
  <adminhtml>
103
  <translate>
104
  <modules>
105
- <moip>
106
  <files>
107
- <default>moip.csv</default>
108
  </files>
109
- </moip>
110
  </modules>
111
  </translate>
112
- <layout>
113
- <updates>
114
- <moip>
115
- <file>moip.xml</file>
116
- </moip>
117
- </updates>
118
- </layout>
119
-
120
  </adminhtml>
121
  <crontab>
122
  <jobs>
@@ -125,33 +114,31 @@
125
  <cron_expr>00 01 * * *</cron_expr>
126
  </schedule>
127
  <run>
128
- <model>Moip/Orders::cancel</model>
129
  </run>
130
  </cancelarBoleto>
131
  </jobs>
132
  </crontab>
133
  <default>
134
  <payment>
135
- <o2ti_moip_standard>
136
  <active>1</active>
137
- <model>O2TI_Moip_Model_Standard</model>
138
- <title><![CDATA[Moip]]></title>
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>
147
- <idgoogle>UA-33860171-1</idgoogle>
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>
@@ -167,10 +154,17 @@
167
  <nummaxparcelamax>12</nummaxparcelamax>
168
  <valorminimoparcela>5</valorminimoparcela>
169
  <vcmentoboleto>3</vcmentoboleto>
170
- <estoqueboleto>-99</estoqueboleto>
171
  <ambiente>teste</ambiente>
172
  <allowspecific>0</allowspecific>
173
- </o2ti_moip_standard>
174
  </payment>
 
 
 
 
 
 
 
 
175
  </default>
176
  </config>
1
  <?xml version="1.0"?>
2
  <config>
3
  <modules>
4
+ <MOIP_Transparente>
5
+ <version>0.2.0</version>
6
+ </MOIP_Transparente>
7
  </modules>
8
  <global>
9
  <models>
10
+ <transparente>
11
+ <class>MOIP_Transparente_Model</class>
12
+ <resourceModel>transparente_mysql4</resourceModel>
13
+ </transparente>
14
+ <transparente_mysql4>
15
+ <class>MOIP_Transparente_Model_Mysql4</class>
16
  <entities>
17
  <write>
18
+ <table>moip_transparente</table>
19
  </write>
20
  </entities>
21
+ </transparente_mysql4>
22
  </models>
23
  <resources>
24
+ <transparente_setup>
25
  <setup>
26
+ <module>MOIP_Transparente</module>
27
  </setup>
28
  <connection>
29
  <use>core_setup</use>
30
  </connection>
31
+ </transparente_setup>
32
+ <transparente_write>
33
  <connection>
34
  <use>core_write</use>
35
  </connection>
36
+ </transparente_write>
37
+ <transparente_read>
38
  <connection>
39
                      <use>core_read</use>
40
                  </connection>
41
+ </transparente_read>
42
  </resources>
43
  <blocks>
44
+ <transparente>
45
+ <class>MOIP_Transparente_Block</class>
46
+ </transparente>
47
  </blocks>
48
  <helpers>
49
+ <transparente>
50
+ <class>MOIP_Transparente_Helper</class>
51
+ </transparente>
52
+ </helpers>
 
 
 
 
 
 
 
 
 
 
53
  </global>
54
  <frontend>
55
  <routers>
56
+ <transparente>
57
  <use>standard</use>
58
  <args>
59
+ <module>MOIP_Transparente</module>
60
+ <frontName>Transparente</frontName>
61
  </args>
62
+ </transparente>
63
  </routers>
64
  <translate>
65
  <modules>
66
+ <transparente>
67
  <files>
68
+ <default>transparente.csv</default>
69
  </files>
70
+ </transparente>
71
  </modules>
72
  </translate>
73
  <layout>
74
  <updates>
75
+ <transparente>
76
+ <file>moip_transparente.xml</file>
77
+ </transparente>
78
  </updates>
79
  </layout>
80
  </frontend>
81
  <admin>
82
  <routers>
83
+ <MOIP_Transparente>
84
  <use>admin</use>
85
  <args>
86
+ <module>MOIP_Transparente</module>
87
+ <frontName>transparente</frontName>
88
  </args>
89
+ </MOIP_Transparente>
90
  </routers>
91
  </admin>
92
  <adminhtml>
93
  <translate>
94
  <modules>
95
+ <transparente>
96
  <files>
97
+ <default>transparente.csv</default>
98
  </files>
99
+ </transparente>
100
  </modules>
101
  </translate>
102
+ <layout>
103
+ <updates>
104
+ <transparente>
105
+ <file>transparente.xml</file>
106
+ </transparente>
107
+ </updates>
108
+ </layout>
 
109
  </adminhtml>
110
  <crontab>
111
  <jobs>
114
  <cron_expr>00 01 * * *</cron_expr>
115
  </schedule>
116
  <run>
117
+ <model>Transparente/Orders::cancel</model>
118
  </run>
119
  </cancelarBoleto>
120
  </jobs>
121
  </crontab>
122
  <default>
123
  <payment>
124
+ <moip_transparente_standard>
125
  <active>1</active>
126
+ <model>MOIP_Transparente_Model_Standard</model>
127
+ <title><![CDATA[Transparente]]></title>
128
+ <title>Pagamento 100% Seguro - Transparente | Grupo IG</title>
 
 
129
  <order_status>pending</order_status>
130
+ <validador_retorno>dsakdsa123das</validador_retorno>
131
+ <validopara_transparente>1</validopara_transparente>
132
+ <conta_transparente>elisei</conta_transparente>
133
+ <apelido>Instalação Padrão MOIP | ALTERE PARA O NOME DA SUA EMPRESA</apelido>
134
+ <notificar_cliente>1</notificar_cliente>
135
  <tipoderecebimento>1</tipoderecebimento>
136
  <pagamento_direto>1</pagamento_direto>
137
  <parcelamento>1</parcelamento>
138
+ <jurostipo>1</jurostipo>
139
  <parcelamento_c_de1>1</parcelamento_c_de1>
140
  <parcelamento_c_ate1>12</parcelamento_c_ate1>
141
  <parcelamento_c_juros1>1.99</parcelamento_c_juros1>
 
142
  <parcelamento_s_juros2>1.25</parcelamento_s_juros2>
143
  <parcelamento_s_juros3>2.49</parcelamento_s_juros3>
144
  <parcelamento_s_juros4>3.74</parcelamento_s_juros4>
154
  <nummaxparcelamax>12</nummaxparcelamax>
155
  <valorminimoparcela>5</valorminimoparcela>
156
  <vcmentoboleto>3</vcmentoboleto>
 
157
  <ambiente>teste</ambiente>
158
  <allowspecific>0</allowspecific>
159
+ </moip_transparente_standard>
160
  </payment>
161
+ <moipall>
162
+ <config>
163
+ <enable_jquery>1</enable_jquery>
164
+ <icones_na_entrega>1</icones_na_entrega>
165
+ <enable_carrinho>1</enable_carrinho>
166
+ <transparente_layout>Horizontal</transparente_layout>
167
+ </config>
168
+ </moipall>
169
  </default>
170
  </config>
app/code/local/{O2TI/Moip → MOIP/Transparente}/etc/system.xml RENAMED
@@ -1,39 +1,21 @@
1
  <?xml version="1.0"?>
2
  <config>
3
  <sections>
4
- <payment translate="label" module="payment"><!-- payment tab -->
5
  <groups>
6
- <o2ti_moip_standard translate="label"><!-- fieldset -->
7
- <label><![CDATA[MoIP Transparente - O2ti]]></label>
8
- <comment>
9
- <![CDATA[
10
- <script type="text/javascript" src="//assets.zendesk.com/external/zenbox/v2.5/zenbox.js"></script>
11
- <style type="text/css" media="screen, projection">
12
- @import url(//assets.zendesk.com/external/zenbox/v2.5/zenbox.css);
13
- </style>
14
- <script type="text/javascript">
15
- if (typeof(Zenbox) !== "undefined") {
16
- Zenbox.init({
17
- dropboxID: "20116862",
18
- url: "https://o2ti.zendesk.com",
19
- tabID: "Suporte | Especialistas Magento",
20
- tabColor: "#2c3996",
21
- tabPosition: "Right"
22
- });
23
- }
24
- </script>
25
- ]]></comment>
26
- <sort_order>420</sort_order><!-- position between other payment methods -->
27
- <show_in_default>1</show_in_default><!-- do not show this configuration options in store scope -->
28
  <show_in_website>1</show_in_website>
29
  <show_in_store>1</show_in_store>
30
  <fields>
31
- <active translate="label"><!-- is this payment method active for the website? -->
32
- <label>Enabled</label><!-- label for the field -->
33
- <frontend_type>select</frontend_type><!-- input type for configuration value -->
34
- <source_model>adminhtml/system_config_source_yesno</source_model><!-- model to take the option values from -->
35
- <sort_order>1</sort_order><!-- field position -->
36
- <show_in_default>1</show_in_default><!-- do not show this field in store scope -->
37
  <show_in_website>1</show_in_website>
38
  <show_in_store>1</show_in_store>
39
  </active>
@@ -45,19 +27,7 @@
45
  <show_in_website>1</show_in_website>
46
  <show_in_store>1</show_in_store>
47
  </title>
48
- <validopara_moip translate="label">
49
- <label>Aplicar apartir do pedido</label>
50
- <comment>
51
- <![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
52
- <p>Informe o número do útimo pedido será apartir dele que aplicaremos as novas regras.</p>
53
- </div></div>]]>
54
- </comment>
55
- <frontend_type>text</frontend_type>
56
- <sort_order>4</sort_order>
57
- <show_in_default>1</show_in_default>
58
- <show_in_website>1</show_in_website>
59
- <show_in_store>1</show_in_store>
60
- </validopara_moip>
61
  <order_status translate="label">
62
  <label>Status dos novos pedidos</label>
63
  <frontend_type>select</frontend_type>
@@ -67,36 +37,45 @@
67
  <show_in_website>1</show_in_website>
68
  <show_in_store>1</show_in_store>
69
  </order_status>
70
- <conta_moip translate="label">
71
- <label>Login MoIP</label>
 
72
  <comment>
73
  <![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
74
- <p>Não utilize o email e sim o login.</p>
75
  </div></div>]]>
76
  </comment>
77
- <frontend_type>text</frontend_type>
 
78
  <sort_order>4</sort_order>
79
  <show_in_default>1</show_in_default>
80
  <show_in_website>1</show_in_website>
81
  <show_in_store>1</show_in_store>
82
- </conta_moip>
83
- <ambiente translate="label">
84
- <label>Ambiente</label>
 
 
 
85
  <comment>
86
  <![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
87
- <p>Ambiente de teste pode ser usado pela O2TI.</p>
88
  </div></div>]]>
89
  </comment>
90
- <frontend_type>select</frontend_type>
91
- <source_model>O2TI_Moip_Model_Source_Ambiente</source_model>
92
  <sort_order>5</sort_order>
93
  <show_in_default>1</show_in_default>
94
  <show_in_website>1</show_in_website>
95
  <show_in_store>1</show_in_store>
96
- </ambiente>
97
  <validador_retorno>
98
- <label>Chave de validacao para o retorno do Status</label>
99
- <comment>Informe um código que será analisado no retorno</comment>
 
 
 
 
 
100
  <frontend_type>text</frontend_type>
101
  <sort_order>6</sort_order>
102
  <show_in_default>1</show_in_default>
@@ -114,7 +93,7 @@
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>
118
  </div></div>]]>
119
  </comment>
120
  <frontend_type>select</frontend_type>
@@ -128,48 +107,26 @@
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>
@@ -181,6 +138,7 @@
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>
@@ -192,6 +150,7 @@
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;">
@@ -207,12 +166,23 @@
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>
@@ -412,43 +382,42 @@
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
 
@@ -470,19 +439,7 @@
470
  <show_in_website>1</show_in_website>
471
  <show_in_store>1</show_in_store>
472
  </vcmentoboleto>
473
- <estoqueboleto translate="label">
474
- <label>Permitir compra por boleto apenas e estoque for maior ou igual a:</label>
475
- <comment><![CDATA[<br /><div class="custom-options "><div class="box" style="width:243px;">
476
- <p>Informe a quantidade mínima em estoque que permite ao cliente pagar por boleto.</br>
477
- Para não limitar a geração do boleto informe um valor negativo ex: -99.</p>
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>
485
- </estoqueboleto>
486
 
487
  <allowspecific translate="label">
488
  <label>Pagamento a partir de países aplicáveis</label>
@@ -504,12 +461,12 @@
504
  </specificcountry>
505
 
506
  </fields>
507
- </o2ti_moip_standard>
508
  </groups>
509
  </payment>
510
- <o2tiall translate="label" module="o2tiall">
511
- <label><![CDATA[ <div style="height: 33px; "><img src="//imagem.o2ti.com/moip_o2ti.png" style="float:left; "/><div style="padding-top:8px;color:#2f3850">MoIP Avançado!<sup style="float: right;">v2.0.0</sup></div></div>]]></label>
512
- <tab>o2ti</tab>
513
  <frontend_type>text</frontend_type>
514
  <sort_order>200</sort_order>
515
  <show_in_default>1</show_in_default>
@@ -517,38 +474,6 @@
517
  <show_in_store>1</show_in_store>
518
  <groups>
519
  <config translate="label">
520
- <comment>
521
- <![CDATA[
522
- <script type="text/javascript" src="//assets.zendesk.com/external/zenbox/v2.5/zenbox.js"></script>
523
- <style type="text/css" media="screen, projection">
524
- @import url(//assets.zendesk.com/external/zenbox/v2.5/zenbox.css);
525
- </style>
526
- <script type="text/javascript">
527
- if (typeof(Zenbox) !== "undefined") {
528
- Zenbox.init({
529
- dropboxID: "20116862",
530
- url: "https://o2ti.zendesk.com",
531
- tabID: "Suporte | Especialistas Magento",
532
- tabColor: "#2c3996",
533
- tabPosition: "Right"
534
- });
535
- }
536
- </script>
537
- <div>
538
- <a style="float: left;text-decoration:none;width:100%" href="//www.o2ti.com/magento.php" target="_blank" style="float: left;"><img src="//imagem.o2ti.com/moip_o2ti.png" style="float:left;"/><h1 style="float:left;">MoIP Recursos Avançados!</h1><sup>v2.0.0</sup>
539
- </a>
540
- <div style="float: left; color:#2f3850">
541
- <label style="font-size: 34px">Vers&atilde;o: <strong>Gratuita!</strong></label>
542
- </div>
543
-
544
- <br style="clear: both;"/>
545
-
546
- <p>Essa versão tem o download gratuito desde que mantidos os créditos a O2TI.</p>
547
- <p>Criado por: <a href=//www.o2ti.com" target="_blank">O2ti Soluções em Web LTDA</a></p>
548
-
549
- <hr>
550
- </div>
551
- ]]></comment>
552
  <label>Designer</label>
553
  <frontend_type>text</frontend_type>
554
  <sort_order>1</sort_order>
@@ -556,66 +481,85 @@
556
  <show_in_website>1</show_in_website>
557
  <show_in_store>1</show_in_store>
558
  <fields>
559
-
560
- <moip_layout translate="label">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
561
  <label>Qual o Layout escolhido?</label>
562
  <frontend_type>select</frontend_type>
563
- <source_model>O2TI_Moip_Model_Source_Layout</source_model>
564
- <sort_order>0</sort_order>
565
  <show_in_default>1</show_in_default>
566
  <show_in_website>1</show_in_website>
567
  <show_in_store>1</show_in_store>
568
- </moip_layout>
569
  <trocar_icone translate="label">
570
  <label>Trocar Ícones Meios Aceitos</label>
571
  <frontend_type>select</frontend_type>
572
  <source_model>adminhtml/system_config_source_yesno</source_model>
573
- <sort_order>1</sort_order>
574
  <show_in_default>1</show_in_default>
575
  <show_in_website>1</show_in_website>
576
  <show_in_store>1</show_in_store>
577
  </trocar_icone>
578
- <icone_cartao translate="label comment">
579
- <depends>
580
  <trocar_icone>1</trocar_icone>
581
  </depends>
582
  <label>Icone Cartão: </label>
583
  <comment>Icone para a aba dos cartões</comment>
584
  <frontend_type>image</frontend_type>
585
  <backend_model>adminhtml/system_config_backend_image</backend_model>
586
- <upload_dir config="system/filesystem/media" scope_info="1">o2ti/allmoip</upload_dir>
587
- <base_url type="media" scope_info="1">o2ti/allmoip</base_url>
588
- <sort_order>1</sort_order>
589
  <show_in_default>1</show_in_default>
590
  <show_in_website>1</show_in_website>
591
  <show_in_store>1</show_in_store>
592
  </icone_cartao>
593
  <icone_boleto translate="label comment">
594
- <depends>
595
  <trocar_icone>1</trocar_icone>
596
  </depends>
597
  <label>Icone Boleto: </label>
598
  <comment>Icone para a aba dos Boleto</comment>
599
  <frontend_type>image</frontend_type>
600
  <backend_model>adminhtml/system_config_backend_image</backend_model>
601
- <upload_dir config="system/filesystem/media" scope_info="1">o2ti/allmoip</upload_dir>
602
- <base_url type="media" scope_info="1">o2ti/allmoip</base_url>
603
- <sort_order>2</sort_order>
604
  <show_in_default>1</show_in_default>
605
  <show_in_website>1</show_in_website>
606
  <show_in_store>1</show_in_store>
607
  </icone_boleto>
608
  <icone_transf translate="label comment">
609
- <depends>
610
  <trocar_icone>1</trocar_icone>
611
  </depends>
612
  <label>Icone Transferência: </label>
613
  <comment>Icone para a aba dos Transferência</comment>
614
  <frontend_type>image</frontend_type>
615
  <backend_model>adminhtml/system_config_backend_image</backend_model>
616
- <upload_dir config="system/filesystem/media" scope_info="1">o2ti/allmoip</upload_dir>
617
- <base_url type="media" scope_info="1">o2ti/allmoip</base_url>
618
- <sort_order>3</sort_order>
619
  <show_in_default>1</show_in_default>
620
  <show_in_website>1</show_in_website>
621
  <show_in_store>1</show_in_store>
@@ -624,7 +568,7 @@
624
  <label>Trocar Ícones das Bandeira dos Cartões</label>
625
  <frontend_type>select</frontend_type>
626
  <source_model>adminhtml/system_config_source_yesno</source_model>
627
- <sort_order>4</sort_order>
628
  <show_in_default>1</show_in_default>
629
  <show_in_website>1</show_in_website>
630
  <show_in_store>1</show_in_store>
@@ -636,23 +580,23 @@
636
  <label>Visa</label>
637
  <frontend_type>image</frontend_type>
638
  <backend_model>adminhtml/system_config_backend_image</backend_model>
639
- <upload_dir config="system/filesystem/media" scope_info="1">o2ti/allmoip</upload_dir>
640
- <base_url type="media" scope_info="1">o2ti/allmoip</base_url>
641
- <sort_order>5</sort_order>
642
  <show_in_default>1</show_in_default>
643
  <show_in_website>1</show_in_website>
644
  <show_in_store>1</show_in_store>
645
  </cartao_visa>
646
- <cartao_master translate="label">
647
  <depends>
648
  <trocar_bandeira_cartao>1</trocar_bandeira_cartao>
649
  </depends>
650
  <label>MasterCard</label>
651
  <frontend_type>image</frontend_type>
652
  <backend_model>adminhtml/system_config_backend_image</backend_model>
653
- <upload_dir config="system/filesystem/media" scope_info="1">o2ti/allmoip</upload_dir>
654
- <base_url type="media" scope_info="1">o2ti/allmoip</base_url>
655
- <sort_order>6</sort_order>
656
  <show_in_default>1</show_in_default>
657
  <show_in_website>1</show_in_website>
658
  <show_in_store>1</show_in_store>
@@ -664,9 +608,9 @@
664
  <label>Diners</label>
665
  <frontend_type>image</frontend_type>
666
  <backend_model>adminhtml/system_config_backend_image</backend_model>
667
- <upload_dir config="system/filesystem/media" scope_info="1">o2ti/allmoip</upload_dir>
668
- <base_url type="media" scope_info="1">o2ti/allmoip</base_url>
669
- <sort_order>7</sort_order>
670
  <show_in_default>1</show_in_default>
671
  <show_in_website>1</show_in_website>
672
  <show_in_store>1</show_in_store>
@@ -678,9 +622,9 @@
678
  <label>American Express</label>
679
  <frontend_type>image</frontend_type>
680
  <backend_model>adminhtml/system_config_backend_image</backend_model>
681
- <upload_dir config="system/filesystem/media" scope_info="1">o2ti/allmoip</upload_dir>
682
- <base_url type="media" scope_info="1">o2ti/allmoip</base_url>
683
- <sort_order>8</sort_order>
684
  <show_in_default>1</show_in_default>
685
  <show_in_website>1</show_in_website>
686
  <show_in_store>1</show_in_store>
@@ -692,9 +636,9 @@
692
  <label>Hipercard</label>
693
  <frontend_type>image</frontend_type>
694
  <backend_model>adminhtml/system_config_backend_image</backend_model>
695
- <upload_dir config="system/filesystem/media" scope_info="1">o2ti/allmoip</upload_dir>
696
- <base_url type="media" scope_info="1">o2ti/allmoip</base_url>
697
- <sort_order>9</sort_order>
698
  <show_in_default>1</show_in_default>
699
  <show_in_website>1</show_in_website>
700
  <show_in_store>1</show_in_store>
@@ -703,7 +647,7 @@
703
  <label>Trocar Ícones das Bandeira dos Bancos</label>
704
  <frontend_type>select</frontend_type>
705
  <source_model>adminhtml/system_config_source_yesno</source_model>
706
- <sort_order>10</sort_order>
707
  <show_in_default>1</show_in_default>
708
  <show_in_website>1</show_in_website>
709
  <show_in_store>1</show_in_store>
@@ -715,23 +659,23 @@
715
  <label>Banco do Brasil</label>
716
  <frontend_type>image</frontend_type>
717
  <backend_model>adminhtml/system_config_backend_image</backend_model>
718
- <upload_dir config="system/filesystem/media" scope_info="1">o2ti/allmoip</upload_dir>
719
- <base_url type="media" scope_info="1">o2ti/allmoip</base_url>
720
- <sort_order>11</sort_order>
721
  <show_in_default>1</show_in_default>
722
  <show_in_website>1</show_in_website>
723
  <show_in_store>1</show_in_store>
724
  </cartao_bb>
725
- <cartao_bradesco translate="label">
726
  <depends>
727
  <trocar_bandeira_banco>1</trocar_bandeira_banco>
728
  </depends>
729
  <label>Bradesco</label>
730
  <frontend_type>image</frontend_type>
731
  <backend_model>adminhtml/system_config_backend_image</backend_model>
732
- <upload_dir config="system/filesystem/media" scope_info="1">o2ti/allmoip</upload_dir>
733
- <base_url type="media" scope_info="1">o2ti/allmoip</base_url>
734
- <sort_order>12</sort_order>
735
  <show_in_default>1</show_in_default>
736
  <show_in_website>1</show_in_website>
737
  <show_in_store>1</show_in_store>
@@ -743,9 +687,9 @@
743
  <label>Itaú</label>
744
  <frontend_type>image</frontend_type>
745
  <backend_model>adminhtml/system_config_backend_image</backend_model>
746
- <upload_dir config="system/filesystem/media" scope_info="1">o2ti/allmoip</upload_dir>
747
- <base_url type="media" scope_info="1">o2ti/allmoip</base_url>
748
- <sort_order>13</sort_order>
749
  <show_in_default>1</show_in_default>
750
  <show_in_website>1</show_in_website>
751
  <show_in_store>1</show_in_store>
@@ -757,9 +701,9 @@
757
  <label>Banrisul</label>
758
  <frontend_type>image</frontend_type>
759
  <backend_model>adminhtml/system_config_backend_image</backend_model>
760
- <upload_dir config="system/filesystem/media" scope_info="1">o2ti/allmoip</upload_dir>
761
- <base_url type="media" scope_info="1">o2ti/allmoip</base_url>
762
- <sort_order>14</sort_order>
763
  <show_in_default>1</show_in_default>
764
  <show_in_website>1</show_in_website>
765
  <show_in_store>1</show_in_store>
@@ -768,7 +712,7 @@
768
  <label>Trocar Ícones do boleto</label>
769
  <frontend_type>select</frontend_type>
770
  <source_model>adminhtml/system_config_source_yesno</source_model>
771
- <sort_order>15</sort_order>
772
  <show_in_default>1</show_in_default>
773
  <show_in_website>1</show_in_website>
774
  <show_in_store>1</show_in_store>
@@ -781,9 +725,9 @@
781
  <comment>Icone de dentro da aba do boleto. Lembre-se o banco emissor é o Bradesco</comment>
782
  <frontend_type>image</frontend_type>
783
  <backend_model>adminhtml/system_config_backend_image</backend_model>
784
- <upload_dir config="system/filesystem/media" scope_info="1">o2ti/allmoip</upload_dir>
785
- <base_url type="media" scope_info="1">o2ti/allmoip</base_url>
786
- <sort_order>16</sort_order>
787
  <show_in_default>1</show_in_default>
788
  <show_in_website>1</show_in_website>
789
  <show_in_store>1</show_in_store>
@@ -792,7 +736,7 @@
792
  <label>Mostrar icones da entrega?</label>
793
  <frontend_type>select</frontend_type>
794
  <source_model>adminhtml/system_config_source_yesno</source_model>
795
- <sort_order>17</sort_order>
796
  <show_in_default>1</show_in_default>
797
  <show_in_website>1</show_in_website>
798
  <show_in_store>1</show_in_store>
@@ -804,148 +748,148 @@
804
  </depends>
805
  <frontend_type>select</frontend_type>
806
  <source_model>adminhtml/system_config_source_yesno</source_model>
807
- <sort_order>18</sort_order>
808
  <show_in_default>1</show_in_default>
809
  <show_in_website>1</show_in_website>
810
  <show_in_store>1</show_in_store>
811
  </trocar_icones_na_entrega>
812
  <icone_sedex translate="label comment">
813
- <depends>
814
  <trocar_icones_na_entrega>1</trocar_icones_na_entrega>
815
  </depends>
816
  <label>Icone Sedex: </label>
817
  <frontend_type>image</frontend_type>
818
  <backend_model>adminhtml/system_config_backend_image</backend_model>
819
- <upload_dir config="system/filesystem/media" scope_info="1">o2ti/allmoip</upload_dir>
820
- <base_url type="media" scope_info="1">o2ti/allmoip</base_url>
821
- <sort_order>19</sort_order>
822
  <show_in_default>1</show_in_default>
823
  <show_in_website>1</show_in_website>
824
  <show_in_store>1</show_in_store>
825
  </icone_sedex>
826
  <icone_pac translate="label comment">
827
- <depends>
828
  <trocar_icones_na_entrega>1</trocar_icones_na_entrega>
829
  </depends>
830
  <label>Icone Pac: </label>
831
  <frontend_type>image</frontend_type>
832
  <backend_model>adminhtml/system_config_backend_image</backend_model>
833
- <upload_dir config="system/filesystem/media" scope_info="1">o2ti/allmoip</upload_dir>
834
- <base_url type="media" scope_info="1">o2ti/allmoip</base_url>
835
- <sort_order>20</sort_order>
836
  <show_in_default>1</show_in_default>
837
  <show_in_website>1</show_in_website>
838
  <show_in_store>1</show_in_store>
839
  </icone_pac>
840
  <icone_sedex_a translate="label comment">
841
- <depends>
842
  <trocar_icones_na_entrega>1</trocar_icones_na_entrega>
843
  </depends>
844
  <label>Sedex a Cobrar: </label>
845
 
846
  <frontend_type>image</frontend_type>
847
  <backend_model>adminhtml/system_config_backend_image</backend_model>
848
- <upload_dir config="system/filesystem/media" scope_info="1">o2ti/allmoip</upload_dir>
849
- <base_url type="media" scope_info="1">o2ti/allmoip</base_url>
850
- <sort_order>21</sort_order>
851
  <show_in_default>1</show_in_default>
852
  <show_in_website>1</show_in_website>
853
  <show_in_store>1</show_in_store>
854
  </icone_sedex_a>
855
  <icone_sedex_hoje translate="label comment">
856
- <depends>
857
  <trocar_icones_na_entrega>1</trocar_icones_na_entrega>
858
  </depends>
859
  <label>Sedex Hoje: </label>
860
  <frontend_type>image</frontend_type>
861
  <backend_model>adminhtml/system_config_backend_image</backend_model>
862
- <upload_dir config="system/filesystem/media" scope_info="1">o2ti/allmoip</upload_dir>
863
- <base_url type="media" scope_info="1">o2ti/allmoip</base_url>
864
- <sort_order>22</sort_order>
865
  <show_in_default>1</show_in_default>
866
  <show_in_website>1</show_in_website>
867
  <show_in_store>1</show_in_store>
868
  </icone_sedex_hoje>
869
  <icone_sedex_10 translate="label comment">
870
- <depends>
871
  <trocar_icones_na_entrega>1</trocar_icones_na_entrega>
872
  </depends>
873
  <label>Sedex 10: </label>
874
  <frontend_type>image</frontend_type>
875
  <backend_model>adminhtml/system_config_backend_image</backend_model>
876
- <upload_dir config="system/filesystem/media" scope_info="1">o2ti/allmoip</upload_dir>
877
- <base_url type="media" scope_info="1">o2ti/allmoip</base_url>
878
- <sort_order>23</sort_order>
879
  <show_in_default>1</show_in_default>
880
  <show_in_website>1</show_in_website>
881
  <show_in_store>1</show_in_store>
882
  </icone_sedex_10>
883
  <icone_sedex_c translate="label comment">
884
- <depends>
885
  <trocar_icones_na_entrega>1</trocar_icones_na_entrega>
886
  </depends>
887
  <label>Sedex Com Contrato:</label>
888
  <frontend_type>image</frontend_type>
889
  <backend_model>adminhtml/system_config_backend_image</backend_model>
890
- <upload_dir config="system/filesystem/media" scope_info="1">o2ti/allmoip</upload_dir>
891
- <base_url type="media" scope_info="1">o2ti/allmoip</base_url>
892
- <sort_order>24</sort_order>
893
  <show_in_default>1</show_in_default>
894
  <show_in_website>1</show_in_website>
895
  <show_in_store>1</show_in_store>
896
  </icone_sedex_c>
897
  <icone_sedex_e translate="label comment">
898
- <depends>
899
  <trocar_icones_na_entrega>1</trocar_icones_na_entrega>
900
  </depends>
901
  <label>E-Sedex Com Contrato:</label>
902
  <frontend_type>image</frontend_type>
903
  <backend_model>adminhtml/system_config_backend_image</backend_model>
904
- <upload_dir config="system/filesystem/media" scope_info="1">o2ti/allmoip</upload_dir>
905
- <base_url type="media" scope_info="1">o2ti/allmoip</base_url>
906
- <sort_order>25</sort_order>
907
  <show_in_default>1</show_in_default>
908
  <show_in_website>1</show_in_website>
909
  <show_in_store>1</show_in_store>
910
  </icone_sedex_e>
911
  <icone_pac_c translate="label comment">
912
- <depends>
913
  <trocar_icones_na_entrega>1</trocar_icones_na_entrega>
914
  </depends>
915
  <label>PAC Com Contrato:</label>
916
  <frontend_type>image</frontend_type>
917
  <backend_model>adminhtml/system_config_backend_image</backend_model>
918
- <upload_dir config="system/filesystem/media" scope_info="1">o2ti/allmoip</upload_dir>
919
- <base_url type="media" scope_info="1">o2ti/allmoip</base_url>
920
- <sort_order>26</sort_order>
921
  <show_in_default>1</show_in_default>
922
  <show_in_website>1</show_in_website>
923
  <show_in_store>1</show_in_store>
924
  </icone_pac_c>
925
  <icone_gratis translate="label comment">
926
- <depends>
927
  <trocar_icones_na_entrega>1</trocar_icones_na_entrega>
928
  </depends>
929
  <label>Frete Grátis: </label>
930
  <frontend_type>image</frontend_type>
931
  <backend_model>adminhtml/system_config_backend_image</backend_model>
932
- <upload_dir config="system/filesystem/media" scope_info="1">o2ti/allmoip</upload_dir>
933
- <base_url type="media" scope_info="1">o2ti/allmoip</base_url>
934
- <sort_order>27</sort_order>
935
  <show_in_default>1</show_in_default>
936
  <show_in_website>1</show_in_website>
937
  <show_in_store>1</show_in_store>
938
  </icone_gratis>
939
  <icone_fixo translate="label comment">
940
- <depends>
941
  <trocar_icones_na_entrega>1</trocar_icones_na_entrega>
942
  </depends>
943
  <label>Frete Fixo: </label>
944
  <frontend_type>image</frontend_type>
945
  <backend_model>adminhtml/system_config_backend_image</backend_model>
946
- <upload_dir config="system/filesystem/media" scope_info="1">o2ti/allmoip</upload_dir>
947
- <base_url type="media" scope_info="1">o2ti/allmoip</base_url>
948
- <sort_order>28</sort_order>
949
  <show_in_default>1</show_in_default>
950
  <show_in_website>1</show_in_website>
951
  <show_in_store>1</show_in_store>
@@ -971,7 +915,7 @@
971
  <show_in_store>1</show_in_store>
972
  </pagamento_boleto>
973
  <boleto_desc translate="label comment">
974
- <depends>
975
  <pagamento_boleto>1</pagamento_boleto>
976
  </depends>
977
  <label>1º Valor de desconto: </label>
@@ -984,7 +928,7 @@
984
  <show_in_store>1</show_in_store>
985
  </boleto_desc>
986
  <boleto_valor translate="label comment">
987
- <depends>
988
  <pagamento_boleto>1</pagamento_boleto>
989
  </depends>
990
  <label>Para nos pedidos acima de: </label>
@@ -997,7 +941,7 @@
997
  <show_in_store>1</show_in_store>
998
  </boleto_valor>
999
  <boleto_desc2 translate="label comment">
1000
- <depends>
1001
  <pagamento_boleto>1</pagamento_boleto>
1002
  </depends>
1003
  <label>2º Valor de desconto: </label>
@@ -1010,7 +954,7 @@
1010
  <show_in_store>1</show_in_store>
1011
  </boleto_desc2>
1012
  <boleto_valor2 translate="label comment">
1013
- <depends>
1014
  <pagamento_boleto>1</pagamento_boleto>
1015
  </depends>
1016
  <label>Para nos pedidos acima de: </label>
@@ -1023,7 +967,7 @@
1023
  <show_in_store>1</show_in_store>
1024
  </boleto_valor2>
1025
  <boleto_desc3 translate="label comment">
1026
- <depends>
1027
  <pagamento_boleto>1</pagamento_boleto>
1028
  </depends>
1029
  <label>3º Valor de desconto: </label>
@@ -1036,7 +980,7 @@
1036
  <show_in_store>1</show_in_store>
1037
  </boleto_desc3>
1038
  <boleto_valor3 translate="label comment">
1039
- <depends>
1040
  <pagamento_boleto>1</pagamento_boleto>
1041
  </depends>
1042
  <label>Para nos pedidos acima de: </label>
@@ -1049,7 +993,7 @@
1049
  <show_in_store>1</show_in_store>
1050
  </boleto_valor3>
1051
  <transf_desc translate="label comment">
1052
- <depends>
1053
  <pagamento_boleto>1</pagamento_boleto>
1054
  </depends>
1055
  <label>Aplicar mesmas regras ao pagamento por transferência?</label>
@@ -1065,7 +1009,7 @@
1065
 
1066
  </fields>
1067
  </pagamento_avancado>
1068
- <mktplace translate="label">
1069
  <label>MarketPlace - A melhor maneira de comissionar suas multilojas</label>
1070
  <frontend_type>text</frontend_type>
1071
  <sort_order>2</sort_order>
@@ -1077,7 +1021,7 @@
1077
  <comissionamento translate="label">
1078
  <label>Ativar Comissionamento para MktPlace?</label>
1079
  <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
1080
- <p>Esta opção deverá ser utilizada por quem realiza pagamento de comissões a outros logins MoIP.</p>
1081
  </div></div>]]>
1082
  </comment>
1083
  <frontend_type>select</frontend_type>
@@ -1089,9 +1033,9 @@
1089
  </comissionamento>
1090
  <logincomissionamento translate="label">
1091
  <label>Login de Comissionamento</label>
1092
- <depends>
1093
- <comissionamento>1</comissionamento>
1094
- </depends>
1095
  <frontend_type>text</frontend_type>
1096
  <sort_order>23</sort_order>
1097
  <show_in_default>1</show_in_default>
@@ -1099,9 +1043,9 @@
1099
  <show_in_store>1</show_in_store>
1100
  </logincomissionamento>
1101
  <pagadordataxa translate="label">
1102
- <label>É o comissionado deverá pagar a taxa MoIP</label>
1103
  <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
1104
- <p>Marque sim para a taxa MoIP da transação ser descontada do valor pago ao comissionado.</p>
1105
  </div></div>]]>
1106
  </comment>
1107
  <depends>
@@ -1202,6 +1146,6 @@
1202
  </fields>
1203
  </google>
1204
  </groups>
1205
- </o2tiall>
1206
  </sections>
1207
  </config>
1
  <?xml version="1.0"?>
2
  <config>
3
  <sections>
4
+ <payment translate="label" module="payment">
5
  <groups>
6
+ <moip_transparente_standard translate="label">
7
+ <label><![CDATA[Moip Transparente]]></label>
8
+ <sort_order>420</sort_order>
9
+ <show_in_default>1</show_in_default>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  <show_in_website>1</show_in_website>
11
  <show_in_store>1</show_in_store>
12
  <fields>
13
+ <active translate="label">
14
+ <label>Habilitar módulo</label>
15
+ <frontend_type>select</frontend_type>
16
+ <source_model>adminhtml/system_config_source_yesno</source_model>
17
+ <sort_order>1</sort_order>
18
+ <show_in_default>1</show_in_default>
19
  <show_in_website>1</show_in_website>
20
  <show_in_store>1</show_in_store>
21
  </active>
27
  <show_in_website>1</show_in_website>
28
  <show_in_store>1</show_in_store>
29
  </title>
30
+
 
 
 
 
 
 
 
 
 
 
 
 
31
  <order_status translate="label">
32
  <label>Status dos novos pedidos</label>
33
  <frontend_type>select</frontend_type>
37
  <show_in_website>1</show_in_website>
38
  <show_in_store>1</show_in_store>
39
  </order_status>
40
+
41
+ <ambiente translate="label">
42
+ <label>Ambiente</label>
43
  <comment>
44
  <![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
45
+ <p>Ambiente de teste pode ser usado pela MOIP.</p>
46
  </div></div>]]>
47
  </comment>
48
+ <frontend_type>select</frontend_type>
49
+ <source_model>MOIP_Transparente_Model_Source_Ambiente</source_model>
50
  <sort_order>4</sort_order>
51
  <show_in_default>1</show_in_default>
52
  <show_in_website>1</show_in_website>
53
  <show_in_store>1</show_in_store>
54
+ </ambiente>
55
+ <conta_transparente translate="label">
56
+ <label>Login Transparente</label>
57
+ <depends>
58
+ <ambiente>producao</ambiente>
59
+ </depends>
60
  <comment>
61
  <![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
62
+ <p>Não utilize o email e sim o login.</p>
63
  </div></div>]]>
64
  </comment>
65
+ <frontend_type>text</frontend_type>
 
66
  <sort_order>5</sort_order>
67
  <show_in_default>1</show_in_default>
68
  <show_in_website>1</show_in_website>
69
  <show_in_store>1</show_in_store>
70
+ </conta_transparente>
71
  <validador_retorno>
72
+ <label>Chave de validação para o retorno do Status</label>
73
+ <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
74
+ <p>Coloque qualquer valor, desde que não contenha espaço ou caracter especial.</p>
75
+ <p>Ex. válido: NomeDaSuaLoja1313.</p>
76
+ <p>Ex. inválido: Nome Da Sua Loja 1313.</p>
77
+ </div></div>]]>
78
+ </comment>
79
  <frontend_type>text</frontend_type>
80
  <sort_order>6</sort_order>
81
  <show_in_default>1</show_in_default>
93
  <tipoderecebimento translate="label">
94
  <label>Receber o valor do parcelamento à vista?</label>
95
  <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
96
+ <p>Deixe marcado como sim para o recebimento convencional no transparente, não altere se não possuir autorização para recebimento parcelado.</p>
97
  </div></div>]]>
98
  </comment>
99
  <frontend_type>select</frontend_type>
107
  <formas_pagamento translate="label">
108
  <label>Formas de Pagamento</label>
109
  <frontend_type>multiselect</frontend_type>
110
+ <source_model>MOIP_Transparente_Model_Source_FormasPagamento</source_model>
111
+ <sort_order>9</sort_order>
112
  <show_in_default>1</show_in_default>
113
  <show_in_website>1</show_in_website>
114
  <show_in_store>1</show_in_store>
115
  </formas_pagamento>
116
+ <notificar_cliente>
117
+ <label>Enviar email a cada alteração de status ao cliente</label>
 
 
 
 
 
 
 
 
 
 
 
 
 
118
  <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
119
+ <p>Deixe marcado como sim para o acompanhar via email a alteração de status de seu pedido.</p>
120
  </div></div>]]>
121
  </comment>
 
 
 
 
 
 
 
 
 
 
122
  <frontend_type>select</frontend_type>
123
  <source_model>adminhtml/system_config_source_yesno</source_model>
124
+ <sort_order>10</sort_order>
125
  <show_in_default>1</show_in_default>
126
  <show_in_website>1</show_in_website>
127
  <show_in_store>1</show_in_store>
128
+ </notificar_cliente>
129
+
130
  <parcelamento_c_de1 translate="label">
131
  <label>1° - Parcelas de:</label>
132
  <depends>
138
  <show_in_website>1</show_in_website>
139
  <show_in_store>1</show_in_store>
140
  </parcelamento_c_de1>
141
+
142
  <parcelamento_c_ate1 translate="label">
143
  <label>1° - Parcelas até:</label>
144
  <depends>
150
  <show_in_website>1</show_in_website>
151
  <show_in_store>1</show_in_store>
152
  </parcelamento_c_ate1>
153
+
154
  <parcelamento_c_juros1 translate="label">
155
  <label>1° - Juros de (%):</label>
156
  <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
166
  <show_in_website>1</show_in_website>
167
  <show_in_store>1</show_in_store>
168
  </parcelamento_c_juros1>
 
 
 
 
169
 
170
 
171
+ <parcelamento_s_juros1 translate="label">
172
+ <label>2° - Juros de (%):</label>
173
+ <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
174
+ <p>Faixas de parcelamento com cartão de crédito. (somente para Transparente)</p>
175
+ </div></div>]]>
176
+ </comment>
177
+ <depends>
178
+ <jurostipo>0</jurostipo>
179
+ </depends>
180
+ <frontend_type>text</frontend_type>
181
+ <sort_order>31</sort_order>
182
+ <show_in_default>1</show_in_default>
183
+ <show_in_website>1</show_in_website>
184
+ <show_in_store>1</show_in_store>
185
+ </parcelamento_s_juros1>
186
 
187
  <parcelamento_s_juros2 translate="label">
188
  <label>2° - Juros de (%):</label>
382
  </parcelamento_s_juros12>
383
 
384
 
385
+ <nummaxparcelamax translate="label">
386
+ <label>Número Máximo de Parcelas Permitido</label>
387
+ <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
388
+ <p>Por default são 12 parcelas.</p>
389
+ </div></div>]]>
390
+ </comment>
391
+ <frontend_type>text</frontend_type>
392
+ <sort_order>10</sort_order>
393
+ <show_in_default>1</show_in_default>
394
+ <show_in_website>1</show_in_website>
395
+ <show_in_store>1</show_in_store>
396
+ </nummaxparcelamax>
397
+ <valorminimoparcela translate="label">
398
+ <label>Valor Mínimo das Parcelas</label>
399
+ <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
400
+ <p>Não pode ser menor que 5 reais.</p>
401
+ </div></div>]]>
402
+ </comment>
403
+ <frontend_type>text</frontend_type>
404
+ <sort_order>11</sort_order>
405
+ <show_in_default>1</show_in_default>
406
+ <show_in_website>1</show_in_website>
407
+ <show_in_store>1</show_in_store>
408
+ </valorminimoparcela>
409
 
410
 
411
+ <jurostipo translate="label">
412
+ <label>Usar juros composto?</label>
413
+ <frontend_type>select</frontend_type>
414
+ <source_model>adminhtml/system_config_source_yesno</source_model>
415
+ <sort_order>12</sort_order>
416
+ <show_in_default>1</show_in_default>
417
+ <show_in_website>1</show_in_website>
418
+ <show_in_store>1</show_in_store>
419
+ </jurostipo>
420
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
421
 
422
 
423
 
439
  <show_in_website>1</show_in_website>
440
  <show_in_store>1</show_in_store>
441
  </vcmentoboleto>
442
+
 
 
 
 
 
 
 
 
 
 
 
 
443
 
444
  <allowspecific translate="label">
445
  <label>Pagamento a partir de países aplicáveis</label>
461
  </specificcountry>
462
 
463
  </fields>
464
+ </moip_transparente_standard>
465
  </groups>
466
  </payment>
467
+ <moipall translate="label" module="moipall">
468
+ <label><![CDATA[ <div style="height: 33px; "><img src="//imagem.O2TI.com/transparente_moip.png" style="float:left; "/><div style="padding-top:8px;color:#2f3850">Moip Avançado!<sup style="float: right;">v2.0.0</sup></div></div>]]></label>
469
+ <tab>moip</tab>
470
  <frontend_type>text</frontend_type>
471
  <sort_order>200</sort_order>
472
  <show_in_default>1</show_in_default>
474
  <show_in_store>1</show_in_store>
475
  <groups>
476
  <config translate="label">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
477
  <label>Designer</label>
478
  <frontend_type>text</frontend_type>
479
  <sort_order>1</sort_order>
481
  <show_in_website>1</show_in_website>
482
  <show_in_store>1</show_in_store>
483
  <fields>
484
+ <enable_jquery>
485
+ <label>Habilitar jquery dos módulos?</label>
486
+ <frontend_type>select</frontend_type>
487
+ <source_model>adminhtml/system_config_source_yesno</source_model>
488
+ <comment>Se sua loja já possuí o jquery sendo chamado coloque desabilite a nova chamada.</comment>
489
+ <sort_order>0</sort_order>
490
+ <show_in_default>1</show_in_default>
491
+ <show_in_website>1</show_in_website>
492
+ <show_in_store>1</show_in_store>
493
+ </enable_jquery>
494
+ <enable_carrinho>
495
+ <label>Vai usar o módulo Carrinho MoIP?</label>
496
+ <frontend_type>select</frontend_type>
497
+ <source_model>adminhtml/system_config_source_yesno</source_model>
498
+ <comment>Se sua loja sua loja for usar outro checkout, marque como não?.</comment>
499
+ <sort_order>1</sort_order>
500
+ <show_in_default>1</show_in_default>
501
+ <show_in_website>1</show_in_website>
502
+ <show_in_store>1</show_in_store>
503
+ </enable_carrinho>
504
+ <transparente_layout translate="label">
505
  <label>Qual o Layout escolhido?</label>
506
  <frontend_type>select</frontend_type>
507
+ <source_model>MOIP_Transparente_Model_Source_Layout</source_model>
508
+ <sort_order>2</sort_order>
509
  <show_in_default>1</show_in_default>
510
  <show_in_website>1</show_in_website>
511
  <show_in_store>1</show_in_store>
512
+ </transparente_layout>
513
  <trocar_icone translate="label">
514
  <label>Trocar Ícones Meios Aceitos</label>
515
  <frontend_type>select</frontend_type>
516
  <source_model>adminhtml/system_config_source_yesno</source_model>
517
+ <sort_order>3</sort_order>
518
  <show_in_default>1</show_in_default>
519
  <show_in_website>1</show_in_website>
520
  <show_in_store>1</show_in_store>
521
  </trocar_icone>
522
+ <icone_cartao translate="label comment">
523
+ <depends>
524
  <trocar_icone>1</trocar_icone>
525
  </depends>
526
  <label>Icone Cartão: </label>
527
  <comment>Icone para a aba dos cartões</comment>
528
  <frontend_type>image</frontend_type>
529
  <backend_model>adminhtml/system_config_backend_image</backend_model>
530
+ <upload_dir config="system/filesystem/media" scope_info="1">moip/alltransparente</upload_dir>
531
+ <base_url type="media" scope_info="1">moip/alltransparente</base_url>
532
+ <sort_order>4</sort_order>
533
  <show_in_default>1</show_in_default>
534
  <show_in_website>1</show_in_website>
535
  <show_in_store>1</show_in_store>
536
  </icone_cartao>
537
  <icone_boleto translate="label comment">
538
+ <depends>
539
  <trocar_icone>1</trocar_icone>
540
  </depends>
541
  <label>Icone Boleto: </label>
542
  <comment>Icone para a aba dos Boleto</comment>
543
  <frontend_type>image</frontend_type>
544
  <backend_model>adminhtml/system_config_backend_image</backend_model>
545
+ <upload_dir config="system/filesystem/media" scope_info="1">moip/alltransparente</upload_dir>
546
+ <base_url type="media" scope_info="1">moip/alltransparente</base_url>
547
+ <sort_order>5</sort_order>
548
  <show_in_default>1</show_in_default>
549
  <show_in_website>1</show_in_website>
550
  <show_in_store>1</show_in_store>
551
  </icone_boleto>
552
  <icone_transf translate="label comment">
553
+ <depends>
554
  <trocar_icone>1</trocar_icone>
555
  </depends>
556
  <label>Icone Transferência: </label>
557
  <comment>Icone para a aba dos Transferência</comment>
558
  <frontend_type>image</frontend_type>
559
  <backend_model>adminhtml/system_config_backend_image</backend_model>
560
+ <upload_dir config="system/filesystem/media" scope_info="1">moip/alltransparente</upload_dir>
561
+ <base_url type="media" scope_info="1">moip/alltransparente</base_url>
562
+ <sort_order>6</sort_order>
563
  <show_in_default>1</show_in_default>
564
  <show_in_website>1</show_in_website>
565
  <show_in_store>1</show_in_store>
568
  <label>Trocar Ícones das Bandeira dos Cartões</label>
569
  <frontend_type>select</frontend_type>
570
  <source_model>adminhtml/system_config_source_yesno</source_model>
571
+ <sort_order>7</sort_order>
572
  <show_in_default>1</show_in_default>
573
  <show_in_website>1</show_in_website>
574
  <show_in_store>1</show_in_store>
580
  <label>Visa</label>
581
  <frontend_type>image</frontend_type>
582
  <backend_model>adminhtml/system_config_backend_image</backend_model>
583
+ <upload_dir config="system/filesystem/media" scope_info="1">moip/alltransparente</upload_dir>
584
+ <base_url type="media" scope_info="1">moip/alltransparente</base_url>
585
+ <sort_order>8</sort_order>
586
  <show_in_default>1</show_in_default>
587
  <show_in_website>1</show_in_website>
588
  <show_in_store>1</show_in_store>
589
  </cartao_visa>
590
+ <cartao_master translate="label">
591
  <depends>
592
  <trocar_bandeira_cartao>1</trocar_bandeira_cartao>
593
  </depends>
594
  <label>MasterCard</label>
595
  <frontend_type>image</frontend_type>
596
  <backend_model>adminhtml/system_config_backend_image</backend_model>
597
+ <upload_dir config="system/filesystem/media" scope_info="1">moip/alltransparente</upload_dir>
598
+ <base_url type="media" scope_info="1">moip/alltransparente</base_url>
599
+ <sort_order>9</sort_order>
600
  <show_in_default>1</show_in_default>
601
  <show_in_website>1</show_in_website>
602
  <show_in_store>1</show_in_store>
608
  <label>Diners</label>
609
  <frontend_type>image</frontend_type>
610
  <backend_model>adminhtml/system_config_backend_image</backend_model>
611
+ <upload_dir config="system/filesystem/media" scope_info="1">moip/alltransparente</upload_dir>
612
+ <base_url type="media" scope_info="1">moip/alltransparente</base_url>
613
+ <sort_order>10</sort_order>
614
  <show_in_default>1</show_in_default>
615
  <show_in_website>1</show_in_website>
616
  <show_in_store>1</show_in_store>
622
  <label>American Express</label>
623
  <frontend_type>image</frontend_type>
624
  <backend_model>adminhtml/system_config_backend_image</backend_model>
625
+ <upload_dir config="system/filesystem/media" scope_info="1">moip/alltransparente</upload_dir>
626
+ <base_url type="media" scope_info="1">moip/alltransparente</base_url>
627
+ <sort_order>11</sort_order>
628
  <show_in_default>1</show_in_default>
629
  <show_in_website>1</show_in_website>
630
  <show_in_store>1</show_in_store>
636
  <label>Hipercard</label>
637
  <frontend_type>image</frontend_type>
638
  <backend_model>adminhtml/system_config_backend_image</backend_model>
639
+ <upload_dir config="system/filesystem/media" scope_info="1">moip/alltransparente</upload_dir>
640
+ <base_url type="media" scope_info="1">moip/alltransparente</base_url>
641
+ <sort_order>12</sort_order>
642
  <show_in_default>1</show_in_default>
643
  <show_in_website>1</show_in_website>
644
  <show_in_store>1</show_in_store>
647
  <label>Trocar Ícones das Bandeira dos Bancos</label>
648
  <frontend_type>select</frontend_type>
649
  <source_model>adminhtml/system_config_source_yesno</source_model>
650
+ <sort_order>13</sort_order>
651
  <show_in_default>1</show_in_default>
652
  <show_in_website>1</show_in_website>
653
  <show_in_store>1</show_in_store>
659
  <label>Banco do Brasil</label>
660
  <frontend_type>image</frontend_type>
661
  <backend_model>adminhtml/system_config_backend_image</backend_model>
662
+ <upload_dir config="system/filesystem/media" scope_info="1">moip/alltransparente</upload_dir>
663
+ <base_url type="media" scope_info="1">moip/alltransparente</base_url>
664
+ <sort_order>14</sort_order>
665
  <show_in_default>1</show_in_default>
666
  <show_in_website>1</show_in_website>
667
  <show_in_store>1</show_in_store>
668
  </cartao_bb>
669
+ <cartao_bradesco translate="label">
670
  <depends>
671
  <trocar_bandeira_banco>1</trocar_bandeira_banco>
672
  </depends>
673
  <label>Bradesco</label>
674
  <frontend_type>image</frontend_type>
675
  <backend_model>adminhtml/system_config_backend_image</backend_model>
676
+ <upload_dir config="system/filesystem/media" scope_info="1">moip/alltransparente</upload_dir>
677
+ <base_url type="media" scope_info="1">moip/alltransparente</base_url>
678
+ <sort_order>15</sort_order>
679
  <show_in_default>1</show_in_default>
680
  <show_in_website>1</show_in_website>
681
  <show_in_store>1</show_in_store>
687
  <label>Itaú</label>
688
  <frontend_type>image</frontend_type>
689
  <backend_model>adminhtml/system_config_backend_image</backend_model>
690
+ <upload_dir config="system/filesystem/media" scope_info="1">moip/alltransparente</upload_dir>
691
+ <base_url type="media" scope_info="1">moip/alltransparente</base_url>
692
+ <sort_order>16</sort_order>
693
  <show_in_default>1</show_in_default>
694
  <show_in_website>1</show_in_website>
695
  <show_in_store>1</show_in_store>
701
  <label>Banrisul</label>
702
  <frontend_type>image</frontend_type>
703
  <backend_model>adminhtml/system_config_backend_image</backend_model>
704
+ <upload_dir config="system/filesystem/media" scope_info="1">moip/alltransparente</upload_dir>
705
+ <base_url type="media" scope_info="1">moip/alltransparente</base_url>
706
+ <sort_order>17</sort_order>
707
  <show_in_default>1</show_in_default>
708
  <show_in_website>1</show_in_website>
709
  <show_in_store>1</show_in_store>
712
  <label>Trocar Ícones do boleto</label>
713
  <frontend_type>select</frontend_type>
714
  <source_model>adminhtml/system_config_source_yesno</source_model>
715
+ <sort_order>18</sort_order>
716
  <show_in_default>1</show_in_default>
717
  <show_in_website>1</show_in_website>
718
  <show_in_store>1</show_in_store>
725
  <comment>Icone de dentro da aba do boleto. Lembre-se o banco emissor é o Bradesco</comment>
726
  <frontend_type>image</frontend_type>
727
  <backend_model>adminhtml/system_config_backend_image</backend_model>
728
+ <upload_dir config="system/filesystem/media" scope_info="1">moip/alltransparente</upload_dir>
729
+ <base_url type="media" scope_info="1">moip/alltransparente</base_url>
730
+ <sort_order>19</sort_order>
731
  <show_in_default>1</show_in_default>
732
  <show_in_website>1</show_in_website>
733
  <show_in_store>1</show_in_store>
736
  <label>Mostrar icones da entrega?</label>
737
  <frontend_type>select</frontend_type>
738
  <source_model>adminhtml/system_config_source_yesno</source_model>
739
+ <sort_order>20</sort_order>
740
  <show_in_default>1</show_in_default>
741
  <show_in_website>1</show_in_website>
742
  <show_in_store>1</show_in_store>
748
  </depends>
749
  <frontend_type>select</frontend_type>
750
  <source_model>adminhtml/system_config_source_yesno</source_model>
751
+ <sort_order>21</sort_order>
752
  <show_in_default>1</show_in_default>
753
  <show_in_website>1</show_in_website>
754
  <show_in_store>1</show_in_store>
755
  </trocar_icones_na_entrega>
756
  <icone_sedex translate="label comment">
757
+ <depends>
758
  <trocar_icones_na_entrega>1</trocar_icones_na_entrega>
759
  </depends>
760
  <label>Icone Sedex: </label>
761
  <frontend_type>image</frontend_type>
762
  <backend_model>adminhtml/system_config_backend_image</backend_model>
763
+ <upload_dir config="system/filesystem/media" scope_info="1">moip/alltransparente</upload_dir>
764
+ <base_url type="media" scope_info="1">moip/alltransparente</base_url>
765
+ <sort_order>22</sort_order>
766
  <show_in_default>1</show_in_default>
767
  <show_in_website>1</show_in_website>
768
  <show_in_store>1</show_in_store>
769
  </icone_sedex>
770
  <icone_pac translate="label comment">
771
+ <depends>
772
  <trocar_icones_na_entrega>1</trocar_icones_na_entrega>
773
  </depends>
774
  <label>Icone Pac: </label>
775
  <frontend_type>image</frontend_type>
776
  <backend_model>adminhtml/system_config_backend_image</backend_model>
777
+ <upload_dir config="system/filesystem/media" scope_info="1">moip/alltransparente</upload_dir>
778
+ <base_url type="media" scope_info="1">moip/alltransparente</base_url>
779
+ <sort_order>23</sort_order>
780
  <show_in_default>1</show_in_default>
781
  <show_in_website>1</show_in_website>
782
  <show_in_store>1</show_in_store>
783
  </icone_pac>
784
  <icone_sedex_a translate="label comment">
785
+ <depends>
786
  <trocar_icones_na_entrega>1</trocar_icones_na_entrega>
787
  </depends>
788
  <label>Sedex a Cobrar: </label>
789
 
790
  <frontend_type>image</frontend_type>
791
  <backend_model>adminhtml/system_config_backend_image</backend_model>
792
+ <upload_dir config="system/filesystem/media" scope_info="1">moip/alltransparente</upload_dir>
793
+ <base_url type="media" scope_info="1">moip/alltransparente</base_url>
794
+ <sort_order>24</sort_order>
795
  <show_in_default>1</show_in_default>
796
  <show_in_website>1</show_in_website>
797
  <show_in_store>1</show_in_store>
798
  </icone_sedex_a>
799
  <icone_sedex_hoje translate="label comment">
800
+ <depends>
801
  <trocar_icones_na_entrega>1</trocar_icones_na_entrega>
802
  </depends>
803
  <label>Sedex Hoje: </label>
804
  <frontend_type>image</frontend_type>
805
  <backend_model>adminhtml/system_config_backend_image</backend_model>
806
+ <upload_dir config="system/filesystem/media" scope_info="1">moip/alltransparente</upload_dir>
807
+ <base_url type="media" scope_info="1">moip/alltransparente</base_url>
808
+ <sort_order>25</sort_order>
809
  <show_in_default>1</show_in_default>
810
  <show_in_website>1</show_in_website>
811
  <show_in_store>1</show_in_store>
812
  </icone_sedex_hoje>
813
  <icone_sedex_10 translate="label comment">
814
+ <depends>
815
  <trocar_icones_na_entrega>1</trocar_icones_na_entrega>
816
  </depends>
817
  <label>Sedex 10: </label>
818
  <frontend_type>image</frontend_type>
819
  <backend_model>adminhtml/system_config_backend_image</backend_model>
820
+ <upload_dir config="system/filesystem/media" scope_info="1">moip/alltransparente</upload_dir>
821
+ <base_url type="media" scope_info="1">moip/alltransparente</base_url>
822
+ <sort_order>26</sort_order>
823
  <show_in_default>1</show_in_default>
824
  <show_in_website>1</show_in_website>
825
  <show_in_store>1</show_in_store>
826
  </icone_sedex_10>
827
  <icone_sedex_c translate="label comment">
828
+ <depends>
829
  <trocar_icones_na_entrega>1</trocar_icones_na_entrega>
830
  </depends>
831
  <label>Sedex Com Contrato:</label>
832
  <frontend_type>image</frontend_type>
833
  <backend_model>adminhtml/system_config_backend_image</backend_model>
834
+ <upload_dir config="system/filesystem/media" scope_info="1">moip/alltransparente</upload_dir>
835
+ <base_url type="media" scope_info="1">moip/alltransparente</base_url>
836
+ <sort_order>27</sort_order>
837
  <show_in_default>1</show_in_default>
838
  <show_in_website>1</show_in_website>
839
  <show_in_store>1</show_in_store>
840
  </icone_sedex_c>
841
  <icone_sedex_e translate="label comment">
842
+ <depends>
843
  <trocar_icones_na_entrega>1</trocar_icones_na_entrega>
844
  </depends>
845
  <label>E-Sedex Com Contrato:</label>
846
  <frontend_type>image</frontend_type>
847
  <backend_model>adminhtml/system_config_backend_image</backend_model>
848
+ <upload_dir config="system/filesystem/media" scope_info="1">moip/alltransparente</upload_dir>
849
+ <base_url type="media" scope_info="1">moip/alltransparente</base_url>
850
+ <sort_order>28</sort_order>
851
  <show_in_default>1</show_in_default>
852
  <show_in_website>1</show_in_website>
853
  <show_in_store>1</show_in_store>
854
  </icone_sedex_e>
855
  <icone_pac_c translate="label comment">
856
+ <depends>
857
  <trocar_icones_na_entrega>1</trocar_icones_na_entrega>
858
  </depends>
859
  <label>PAC Com Contrato:</label>
860
  <frontend_type>image</frontend_type>
861
  <backend_model>adminhtml/system_config_backend_image</backend_model>
862
+ <upload_dir config="system/filesystem/media" scope_info="1">moip/alltransparente</upload_dir>
863
+ <base_url type="media" scope_info="1">moip/alltransparente</base_url>
864
+ <sort_order>29</sort_order>
865
  <show_in_default>1</show_in_default>
866
  <show_in_website>1</show_in_website>
867
  <show_in_store>1</show_in_store>
868
  </icone_pac_c>
869
  <icone_gratis translate="label comment">
870
+ <depends>
871
  <trocar_icones_na_entrega>1</trocar_icones_na_entrega>
872
  </depends>
873
  <label>Frete Grátis: </label>
874
  <frontend_type>image</frontend_type>
875
  <backend_model>adminhtml/system_config_backend_image</backend_model>
876
+ <upload_dir config="system/filesystem/media" scope_info="1">moip/alltransparente</upload_dir>
877
+ <base_url type="media" scope_info="1">moip/alltransparente</base_url>
878
+ <sort_order>30</sort_order>
879
  <show_in_default>1</show_in_default>
880
  <show_in_website>1</show_in_website>
881
  <show_in_store>1</show_in_store>
882
  </icone_gratis>
883
  <icone_fixo translate="label comment">
884
+ <depends>
885
  <trocar_icones_na_entrega>1</trocar_icones_na_entrega>
886
  </depends>
887
  <label>Frete Fixo: </label>
888
  <frontend_type>image</frontend_type>
889
  <backend_model>adminhtml/system_config_backend_image</backend_model>
890
+ <upload_dir config="system/filesystem/media" scope_info="1">moip/alltransparente</upload_dir>
891
+ <base_url type="media" scope_info="1">moip/alltransparente</base_url>
892
+ <sort_order>31</sort_order>
893
  <show_in_default>1</show_in_default>
894
  <show_in_website>1</show_in_website>
895
  <show_in_store>1</show_in_store>
915
  <show_in_store>1</show_in_store>
916
  </pagamento_boleto>
917
  <boleto_desc translate="label comment">
918
+ <depends>
919
  <pagamento_boleto>1</pagamento_boleto>
920
  </depends>
921
  <label>1º Valor de desconto: </label>
928
  <show_in_store>1</show_in_store>
929
  </boleto_desc>
930
  <boleto_valor translate="label comment">
931
+ <depends>
932
  <pagamento_boleto>1</pagamento_boleto>
933
  </depends>
934
  <label>Para nos pedidos acima de: </label>
941
  <show_in_store>1</show_in_store>
942
  </boleto_valor>
943
  <boleto_desc2 translate="label comment">
944
+ <depends>
945
  <pagamento_boleto>1</pagamento_boleto>
946
  </depends>
947
  <label>2º Valor de desconto: </label>
954
  <show_in_store>1</show_in_store>
955
  </boleto_desc2>
956
  <boleto_valor2 translate="label comment">
957
+ <depends>
958
  <pagamento_boleto>1</pagamento_boleto>
959
  </depends>
960
  <label>Para nos pedidos acima de: </label>
967
  <show_in_store>1</show_in_store>
968
  </boleto_valor2>
969
  <boleto_desc3 translate="label comment">
970
+ <depends>
971
  <pagamento_boleto>1</pagamento_boleto>
972
  </depends>
973
  <label>3º Valor de desconto: </label>
980
  <show_in_store>1</show_in_store>
981
  </boleto_desc3>
982
  <boleto_valor3 translate="label comment">
983
+ <depends>
984
  <pagamento_boleto>1</pagamento_boleto>
985
  </depends>
986
  <label>Para nos pedidos acima de: </label>
993
  <show_in_store>1</show_in_store>
994
  </boleto_valor3>
995
  <transf_desc translate="label comment">
996
+ <depends>
997
  <pagamento_boleto>1</pagamento_boleto>
998
  </depends>
999
  <label>Aplicar mesmas regras ao pagamento por transferência?</label>
1009
 
1010
  </fields>
1011
  </pagamento_avancado>
1012
+ <mktplace translate="label">
1013
  <label>MarketPlace - A melhor maneira de comissionar suas multilojas</label>
1014
  <frontend_type>text</frontend_type>
1015
  <sort_order>2</sort_order>
1021
  <comissionamento translate="label">
1022
  <label>Ativar Comissionamento para MktPlace?</label>
1023
  <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
1024
+ <p>Esta opção deverá ser utilizada por quem realiza pagamento de comissões a outros logins Transparente.</p>
1025
  </div></div>]]>
1026
  </comment>
1027
  <frontend_type>select</frontend_type>
1033
  </comissionamento>
1034
  <logincomissionamento translate="label">
1035
  <label>Login de Comissionamento</label>
1036
+ <depends>
1037
+ <comissionamento>1</comissionamento>
1038
+ </depends>
1039
  <frontend_type>text</frontend_type>
1040
  <sort_order>23</sort_order>
1041
  <show_in_default>1</show_in_default>
1043
  <show_in_store>1</show_in_store>
1044
  </logincomissionamento>
1045
  <pagadordataxa translate="label">
1046
+ <label>É o comissionado deverá pagar a taxa Transparente</label>
1047
  <comment><![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
1048
+ <p>Marque sim para a taxa Transparente da transação ser descontada do valor pago ao comissionado.</p>
1049
  </div></div>]]>
1050
  </comment>
1051
  <depends>
1146
  </fields>
1147
  </google>
1148
  </groups>
1149
+ </moipall>
1150
  </sections>
1151
  </config>
app/code/local/{O2TI/Moip/sql/moip_setup → MOIP/Transparente/sql/transparente_setup}/mysql4-install-0.1.0.php RENAMED
@@ -1,12 +1,12 @@
1
  <?php
2
  /**
3
- * MoIP - Moip Payment Module
4
  *
5
- * @title Magento -> Custom Payment Module for Moip (Brazil)
6
  * @category Payment Gateway
7
- * @package O2TI_Moip
8
- * @author MoIP Pagamentos S/a
9
- * @copyright Copyright (c) 2010 MoIP Pagamentos S/A
10
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
11
  */
12
  $installer = $this;
1
  <?php
2
  /**
3
+ * Transparente - Transparente Payment Module
4
  *
5
+ * @title Magento -> Custom Payment Module for Transparente (Brazil)
6
  * @category Payment Gateway
7
+ * @package MOIP_Transparente
8
+ * @author Transparente Pagamentos S/a
9
+ * @copyright Copyright (c) 2010 Transparente Pagamentos S/A
10
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
11
  */
12
  $installer = $this;
app/code/local/{O2TI/Moip/sql/moip_setup/mysql4-upgrade-0.2.1-0.2.4.php → MOIP/Transparente/sql/transparente_setup/mysql4-upgrade-0.1.0-0.2.0.php} RENAMED
@@ -1,12 +1,12 @@
1
  <?php
2
  /**
3
- * MoIP - Moip Payment Module
4
  *
5
- * @title Magento -> Custom Payment Module for Moip (Brazil)
6
  * @category Payment Gateway
7
- * @package O2TI_Moip
8
- * @author MoIP Pagamentos S/a
9
- * @copyright Copyright (c) 2013 O2ti Soluções Web
10
  * @license Licença válida por tempo indeterminado
11
  */
12
  $installer = $this;
@@ -14,17 +14,17 @@ $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,
21
  `key_payment` char(50) DEFAULT NULL,
22
- `order_idmoip` char(50) DEFAULT NULL,
23
  `customer_id` int(11) DEFAULT NULL,
24
- `customer_idmoip` char(50) DEFAULT NULL,
25
  `creditcard_parc` char(50) DEFAULT NULL,
26
- `creditcard_idmoip` char(50) DEFAULT NULL,
27
- `brand_moip` varchar(250) DEFAULT NULL,
28
  `first6` int(11) DEFAULT NULL,
29
  `last4` int(11) DEFAULT NULL,
30
  `boleto_line` char(100) DEFAULT NULL,
1
  <?php
2
  /**
3
+ * Transparente - Transparente Payment Module
4
  *
5
+ * @title Magento -> Custom Payment Module for Transparente (Brazil)
6
  * @category Payment Gateway
7
+ * @package MOIP_Transparente
8
+ * @author Transparente Pagamentos S/a
9
+ * @copyright Copyright (c) 2013 Moip Soluções Web
10
  * @license Licença válida por tempo indeterminado
11
  */
12
  $installer = $this;
14
  $tablePrefix = (string) Mage::getConfig()->getTablePrefix();
15
 
16
  $installer->run("
17
+ CREATE TABLE IF NOT EXISTS `".$tablePrefix."moip_transparente` (
18
  `order_id` int(11) NOT NULL AUTO_INCREMENT,
19
  `realorder_id` int(11) DEFAULT NULL,
20
  `meio_pg` longtext DEFAULT NULL,
21
  `key_payment` char(50) DEFAULT NULL,
22
+ `order_idtransparente` char(50) DEFAULT NULL,
23
  `customer_id` int(11) DEFAULT NULL,
24
+ `customer_idtransparente` char(50) DEFAULT NULL,
25
  `creditcard_parc` char(50) DEFAULT NULL,
26
+ `creditcard_idtransparente` char(50) DEFAULT NULL,
27
+ `brand_transparente` varchar(250) DEFAULT NULL,
28
  `first6` int(11) DEFAULT NULL,
29
  `last4` int(11) DEFAULT NULL,
30
  `boleto_line` char(100) DEFAULT NULL,
app/code/local/O2TI/All/Helper/Data.php DELETED
@@ -1,14 +0,0 @@
1
- <?php
2
- /**
3
- * MoIP - Moip Payment Module
4
- *
5
- * @title Magento -> Custom Payment Module for Moip (Brazil)
6
- * @category Payment Gateway
7
- * @package O2TI_Moip
8
- * @author MoIP Pagamentos S/a
9
- * @copyright Copyright (c) 2010 MoIP Pagamentos S/A
10
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
11
- */
12
- class O2TI_All_Helper_Data extends Mage_Core_Helper_Abstract {
13
-
14
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/O2TI/All/etc/system.xml DELETED
@@ -1,9 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <tabs>
4
- <o2ti translate="label" module="o2tiall">
5
- <label>O2TI.COM</label>
6
- <sort_order>100</sort_order>
7
- </o2ti>
8
- </tabs>
9
- </config>
 
 
 
 
 
 
 
 
 
app/code/local/O2TI/Moip/Block/Standard/Info.php DELETED
@@ -1,56 +0,0 @@
1
- <?php
2
-
3
- class O2TI_Moip_Block_Standard_Info extends Mage_Payment_Block_Info_Container
4
- {
5
- protected function _construct()
6
- {
7
- parent::_construct();
8
- $this->setTemplate('O2TI/moip/info.phtml');
9
- }
10
-
11
-
12
-
13
- public function getMoip()
14
- {
15
- return Mage::getSingleton('moip/standard');
16
- }
17
-
18
-
19
-
20
- private function getNomePagamento($param) {
21
- $nome = "";
22
- switch ($param) {
23
- case "BoletoBancario":
24
- $nome = "Boleto Bancário";
25
- break;
26
- case "DebitoBancario":
27
- $nome = "Débito Bancário";
28
- break;
29
- case "CartaoDeCredito":
30
- $nome = "Cartão de Crédito";
31
- break;
32
- }
33
- return $nome;
34
- }
35
-
36
-
37
- protected function _prepareInfo()
38
- {
39
-
40
- $order_get = Mage::app()->getRequest()->getParam('order_id');
41
- $order = $this->getInfo()->getOrder();
42
- $order = $order->getIncrementId();
43
- $model = Mage::getModel('moip/write');
44
- $result = $model->load($order, 'realorder_id');
45
- $meio_forma = json_decode($result->getbrand_moip());
46
- $dados = array();
47
- $dados['result_meio'] = $result->getMeio_pg();
48
- $dados['realorder_id'] = $result->getRealorder_id();
49
- $dados['brand'] = $result->getBrand();
50
- $dados['creditcard_parc'] = $result->getCreditcard_parc();
51
- $dados['first6'] = $result->getFirst6();
52
- $dados['last4'] = $result->getLast4();
53
- $dados['url'] = $result->getUrlcheckout_pg();
54
- return $dados;
55
- }
56
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/O2TI/Moip/Helper/Data.php DELETED
@@ -1,14 +0,0 @@
1
- <?php
2
- /**
3
- * MoIP - Moip Payment Module
4
- *
5
- * @title Magento -> Custom Payment Module for Moip (Brazil)
6
- * @category Payment Gateway
7
- * @package O2TI_Moip
8
- * @author MoIP Pagamentos S/a
9
- * @copyright Copyright (c) 2010 MoIP Pagamentos S/A
10
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
11
- */
12
- class O2TI_Moip_Helper_Data extends Mage_Core_Helper_Abstract {
13
-
14
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/O2TI/Moip/Model/Mysql4/Collection.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
- class O2TI_Moip_Model_Mysql4_Write_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
3
- {
4
- public function _construct()
5
- {
6
- parent::_construct();
7
- $this->_init('moip/write');
8
- }
9
- }
 
 
 
 
 
 
 
 
 
app/code/local/O2TI/Moip/Model/Mysql4/Write.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
- class O2TI_Moip_Model_Mysql4_Write extends Mage_Core_Model_Mysql4_Abstract
3
- {
4
- public function _construct()
5
- {
6
- $this->_init('moip/write', 'order_id');
7
- }
8
- }
9
- ?>
 
 
 
 
 
 
 
 
 
app/code/local/O2TI/Moip/Model/Write.php DELETED
@@ -1,8 +0,0 @@
1
- <?php
2
- class O2TI_Moip_Model_Write extends Mage_Core_Model_Abstract
3
- {
4
- public function _construct()
5
- {
6
- $this->_init('moip/write');
7
- }
8
- }
 
 
 
 
 
 
 
 
app/code/local/O2TI/Moip/sql/moip_setup/mysql4-upgrade-0.1.0-0.2.0.php DELETED
@@ -1,21 +0,0 @@
1
- <?php
2
- /**
3
- * MoIP - Moip Payment Module
4
- *
5
- * @title Magento -> Custom Payment Module for Moip (Brazil)
6
- * @category Payment Gateway
7
- * @package O2TI_Moip
8
- * @author MoIP Pagamentos S/a
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 DELETED
@@ -1,21 +0,0 @@
1
- <?php
2
- /**
3
- * MoIP - Moip Payment Module
4
- *
5
- * @title Magento -> Custom Payment Module for Moip (Brazil)
6
- * @category Payment Gateway
7
- * @package O2TI_Moip
8
- * @author MoIP Pagamentos S/a
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.2.1-0.2.2.php DELETED
@@ -1,30 +0,0 @@
1
- <?php
2
- /**
3
- * MoIP - Moip Payment Module
4
- *
5
- * @title Magento -> Custom Payment Module for Moip (Brazil)
6
- * @category Payment Gateway
7
- * @package O2TI_Moip
8
- * @author MoIP Pagamentos S/a
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
- $setup = new Mage_Eav_Model_Entity_Setup('core_setup');
16
-
17
- $config = array(
18
- 'position' => 1,
19
- 'required'=> 0,
20
- 'label' => 'Proibir Compra Por Boleto:',
21
- 'type' => 'int',
22
- 'input'=>'boolean',
23
- 'apply_to'=>'simple,bundle,grouped,configurable',
24
- 'note'=>'Proibe a compra do carrinho com boleto caso o produto esteja no carrinho'
25
- );
26
-
27
- $setup->addAttribute('catalog_product', 'proibir_boleto' , $config);
28
-
29
- $installer->endSetup();
30
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/O2TI/Moip/sql/moip_setup/mysql4-upgrade-0.2.1-0.2.3.php DELETED
@@ -1,21 +0,0 @@
1
- <?php
2
- /**
3
- * MoIP - Moip Payment Module
4
- *
5
- * @title Magento -> Custom Payment Module for Moip (Brazil)
6
- * @category Payment Gateway
7
- * @package O2TI_Moip
8
- * @author MoIP Pagamentos S/a
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/Onestepcheckout/Block/Checkout/Onepage/Review/Options.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
- class O2TI_Onestepcheckout_Block_Checkout_Onepage_Review_Options extends Mage_Core_Block_Template
3
- {
4
- public function _prepareLayout()
5
- {
6
- return parent::_prepareLayout();
7
- }
8
-
9
- public function getModuletest()
10
- {
11
- if (!$this->hasData('onestepcheckout')) {
12
- $this->setData('onestepcheckout', Mage::registry('onestepcheckout'));
13
- }
14
- return $this->getData('onestepcheckout');
15
-
16
- }
17
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/O2TI/Onestepcheckout/Block/Sales/Info/Customermessages.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
- class O2TI_Onestepcheckout_Block_Sales_Info_Customermessages extends Mage_Core_Block_Template
3
- {
4
- public function _prepareLayout()
5
- {
6
- return parent::_prepareLayout();
7
- }
8
-
9
- }
 
 
 
 
 
 
 
 
 
app/code/local/O2TI/Onestepcheckout/sql/onestepcheckout_setup/mysql4-install-0.1.0.php DELETED
@@ -1,82 +0,0 @@
1
- <?php
2
- $setup = new Mage_Eav_Model_Entity_Setup('core_setup');
3
- $setup->addAttribute('order', 'o2ti_customercomment', array(
4
- 'label' => 'Customer Comment',
5
- 'type' => 'text',
6
- 'input' => 'text',
7
- 'visible' => true,
8
- 'required' => false,
9
- 'position' => 1,
10
- ));
11
-
12
- $installer = $this;
13
-
14
- $installer->startSetup();
15
- $collection =Mage::getModel('onestepcheckout/onestepcheckout')->getCollection();
16
- $installer->run("
17
-
18
- DROP TABLE IF EXISTS o2ti_onestepcheckout;
19
- CREATE TABLE o2ti_onestepcheckout (
20
- `o2ti_onestepcheckout_date_id` int(11) unsigned NOT NULL auto_increment,
21
- `sales_order_id` int(11) unsigned NOT NULL,
22
- `o2ti_customercomment_info` varchar(255) default '',
23
- `o2ti_deliverydate_date` varchar(15) default '',
24
- `o2ti_deliverydate_time` varchar(10) default '',
25
- `status` smallint(6) default '0',
26
- `created_time` datetime NULL,
27
- `update_time` datetime NULL,
28
- PRIMARY KEY (`o2ti_onestepcheckout_date_id`)
29
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
30
-
31
- ");
32
-
33
- $installer->endSetup();
34
- $setup = new Mage_Eav_Model_Entity_Setup('core_setup');
35
- $setup->addAttribute('order', 'o2ti_customercomment', array(
36
- 'label' => 'Customer Comment',
37
- 'type' => 'text',
38
- 'input' => 'text',
39
- 'visible' => true,
40
- 'required' => false,
41
- 'position' => 1,
42
- ));
43
-
44
- $installer->startSetup();
45
- $collection =Mage::getResourceModel('eav/entity_attribute_collection');
46
- $installer->run("
47
-
48
- UPDATE {$collection->getTable('attribute')}
49
- SET is_required =1
50
- WHERE (entity_type_id =1 OR entity_type_id =2)
51
- AND (
52
- attribute_code ='postcode'
53
- )
54
- ");
55
- //
56
- $installer->endSetup();
57
- $installer = $this;
58
-
59
- $installer->startSetup();
60
- $collection =Mage::getResourceModel('eav/entity_attribute_collection');
61
- $installer->run("
62
-
63
- UPDATE {$collection->getTable('attribute')}
64
- SET is_required =0
65
- WHERE (entity_type_id =1 OR entity_type_id =2)
66
- AND (
67
- attribute_code ='firstname' or
68
- attribute_code ='lastname' or
69
- attribute_code ='email' or
70
- attribute_code ='country_id' or
71
- attribute_code ='city' or
72
- attribute_code ='street' or
73
- attribute_code ='telephone' or
74
- attribute_code ='region_id' or
75
- attribute_code ='region' or
76
- attribute_code ='postcode' or
77
- attribute_code ='fax' or
78
- attribute_code ='company'
79
- )
80
- ");
81
-
82
- $installer->endSetup();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/O2TI/Onestepcheckout/sql/onestepcheckout_setup/mysql4-upgrade-0.1.0-0.2.0.php DELETED
@@ -1,188 +0,0 @@
1
- <?php
2
- $setup = new Mage_Eav_Model_Entity_Setup('core_setup');
3
- $setup->addAttribute('order', 'o2ti_customercomment', array(
4
- 'label' => 'Customer Comment',
5
- 'type' => 'text',
6
- 'input' => 'text',
7
- 'visible' => true,
8
- 'required' => false,
9
- 'position' => 1,
10
- ));
11
-
12
- $installer = $this;
13
-
14
- $installer->startSetup();
15
- $collection =Mage::getModel('onestepcheckout/onestepcheckout')->getCollection();
16
- $installer->run("
17
-
18
- DROP TABLE IF EXISTS o2ti_onestepcheckout;
19
- CREATE TABLE o2ti_onestepcheckout (
20
- `o2ti_onestepcheckout_date_id` int(11) unsigned NOT NULL auto_increment,
21
- `sales_order_id` int(11) unsigned NOT NULL,
22
- `o2ti_customercomment_info` varchar(255) default '',
23
- `o2ti_deliverydate_date` varchar(15) default '',
24
- `o2ti_deliverydate_time` varchar(10) default '',
25
- `status` smallint(6) default '0',
26
- `created_time` datetime NULL,
27
- `update_time` datetime NULL,
28
- PRIMARY KEY (`o2ti_onestepcheckout_date_id`)
29
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
30
-
31
- ");
32
-
33
- $installer->endSetup();
34
- $setup = new Mage_Eav_Model_Entity_Setup('core_setup');
35
- $setup->addAttribute('order', 'o2ti_customercomment', array(
36
- 'label' => 'Customer Comment',
37
- 'type' => 'text',
38
- 'input' => 'text',
39
- 'visible' => true,
40
- 'required' => false,
41
- 'position' => 1,
42
- ));
43
-
44
- $installer->startSetup();
45
- $collection =Mage::getResourceModel('eav/entity_attribute_collection');
46
- $installer->run("
47
-
48
- UPDATE {$collection->getTable('attribute')}
49
- SET is_required =1
50
- WHERE (entity_type_id =1 OR entity_type_id =2)
51
- AND (
52
- attribute_code ='postcode'
53
- )
54
- ");
55
- //
56
- $installer->endSetup();
57
- $installer = $this;
58
-
59
- $installer->startSetup();
60
- $collection =Mage::getResourceModel('eav/entity_attribute_collection');
61
- $installer->run("
62
-
63
- UPDATE {$collection->getTable('attribute')}
64
- SET is_required =0
65
- WHERE (entity_type_id =1 OR entity_type_id =2)
66
- AND (
67
- attribute_code ='firstname' or
68
- attribute_code ='lastname' or
69
- attribute_code ='email' or
70
- attribute_code ='country_id' or
71
- attribute_code ='city' or
72
- attribute_code ='street' or
73
- attribute_code ='telephone' or
74
- attribute_code ='region_id' or
75
- attribute_code ='region' or
76
- attribute_code ='postcode' or
77
- attribute_code ='fax' or
78
- attribute_code ='company'
79
- )
80
- ");
81
-
82
- $installer->endSetup();
83
- $installer = $this;
84
- $installer->startSetup();
85
-
86
- $setup = Mage::getModel('customer/entity_setup', 'core_setup');
87
-
88
- $attributes = array(
89
- array(
90
- 'entity' => 'customer',
91
- 'code' => 'tipopessoa',
92
- 'type' => 'int',
93
- 'input' => 'text',
94
- 'label' => 'Comprar Como?',
95
- 'global' => 1,
96
- 'visible' => 1,
97
- 'required' => 0,
98
- 'user_defined' => 1,
99
- 'default' => '1',
100
- 'visible_on_front' => 1,
101
- 'source' => '',
102
- ),
103
- array(
104
- 'entity' => 'customer',
105
- 'code' => 'razaosocial',
106
- 'type' => 'varchar',
107
- 'input' => 'text',
108
- 'label' => 'Razao Social',
109
- 'global' => 1,
110
- 'visible' => 1,
111
- 'required' => 0,
112
- 'user_defined' => 1,
113
- 'default' => '0',
114
- 'visible_on_front' => 1,
115
- 'source' => '',
116
- ),
117
- array(
118
- 'entity' => 'customer',
119
- 'code' => 'nomefantasia',
120
- 'type' => 'varchar',
121
- 'input' => 'text',
122
- 'label' => 'Nome Fantasia',
123
- 'global' => 1,
124
- 'visible' => 1,
125
- 'required' => 0,
126
- 'user_defined' => 1,
127
- 'default' => '0',
128
- 'visible_on_front' => 1,
129
- 'source' => '',
130
- ),
131
- array(
132
- 'entity' => 'customer',
133
- 'code' => 'cnpj',
134
- 'type' => 'varchar',
135
- 'input' => 'text',
136
- 'label' => 'CNPJ',
137
- 'global' => 1,
138
- 'visible' => 1,
139
- 'required' => 0,
140
- 'user_defined' => 1,
141
- 'default' => '0',
142
- 'visible_on_front' => 1,
143
- 'source' => '',
144
- ),
145
- array(
146
- 'entity' => 'customer',
147
- 'code' => 'insestadual',
148
- 'type' => 'varchar',
149
- 'input' => 'text',
150
- 'label' => 'Inscrição Estadual',
151
- 'global' => 1,
152
- 'visible' => 1,
153
- 'required' => 0,
154
- 'user_defined' => 1,
155
- 'default' => '0',
156
- 'visible_on_front' => 1,
157
- 'source' => '',
158
- )
159
-
160
- );
161
-
162
- foreach($attributes as $attribute){
163
- $setup->addAttribute($attribute['entity'], $attribute['code'], array(
164
- 'input' => $attribute['input'],
165
- 'type' => $attribute['type'],
166
- 'label' => $attribute['label'],
167
- 'visible' => $attribute['visible'],
168
- 'required' => $attribute['required'],
169
- 'global' => $attribute['global'],
170
- 'default' => $attribute['default'],
171
- 'visible_on_front' => $attribute['visible_on_front'],
172
- 'source' => $attribute['source'],
173
- 'user_defined' => $attribute['user_defined']
174
- ));
175
-
176
- if (version_compare(Mage::getVersion(), '1.4.2', '>='))
177
- {
178
- Mage::getSingleton('eav/config')
179
- ->getAttribute($attribute['entity'], $attribute['code'])
180
- ->setData('used_in_forms', array('adminhtml_customer','customer_account_create','customer_account_edit','checkout_register'))
181
- ->save();
182
- }else{
183
- $tablequote = $this->getTable('sales/quote');
184
- $installer->run("ALTER TABLE {$tablequote} ADD `{$attribute['code']}` INT NOT NULL");
185
- }
186
- }
187
-
188
- $installer->endSetup();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/adminhtml/default/default/layout/{o2ti_onestepcheckout.xml → moip_onestepcheckout.xml} RENAMED
@@ -7,9 +7,9 @@
7
  </onestepcheckout_adminhtml_onestepcheckout_index>
8
  <adminhtml_sales_order_view>
9
  <reference name="order_tab_info">
10
- <action method="setTemplate"><template>O2TI/onestepcheckout/sales/order/view/tab/info.phtml</template></action>
11
- <block type="onestepcheckout/adminhtml_onestepcheckout_sales_order_view_tab_info_customermessages" name="customer_messages" template="O2TI/onestepcheckout/sales/order/view/tab/info/Customermessages.phtml"></block>
12
- <block type="onestepcheckout/adminhtml_onestepcheckout_sales_order_view_tab_info_deliverydate" name="deliverydate" template="O2TI/onestepcheckout/sales/order/view/tab/info/Deliverydate.phtml"></block>
13
  </reference>
14
  </adminhtml_sales_order_view>
15
  <adminhtml_system_config_edit>
7
  </onestepcheckout_adminhtml_onestepcheckout_index>
8
  <adminhtml_sales_order_view>
9
  <reference name="order_tab_info">
10
+ <action method="setTemplate"><template>MOIP/onestepcheckout/sales/order/view/tab/info.phtml</template></action>
11
+ <block type="onestepcheckout/adminhtml_onestepcheckout_sales_order_view_tab_info_customermessages" name="customer_messages" template="MOIP/onestepcheckout/sales/order/view/tab/info/Customermessages.phtml"></block>
12
+ <block type="onestepcheckout/adminhtml_onestepcheckout_sales_order_view_tab_info_deliverydate" name="deliverydate" template="MOIP/onestepcheckout/sales/order/view/tab/info/Deliverydate.phtml"></block>
13
  </reference>
14
  </adminhtml_sales_order_view>
15
  <adminhtml_system_config_edit>
app/design/adminhtml/default/default/template/{O2TI → MOIP}/onestepcheckout/sales/order/view/tab/info.phtml RENAMED
File without changes
app/design/adminhtml/default/default/template/{O2TI → MOIP}/onestepcheckout/sales/order/view/tab/info/Customermessages.phtml RENAMED
@@ -23,7 +23,7 @@ foreach($orders as $order)
23
  </div>
24
  <fieldset>
25
  <?php if($o):?>
26
- <?php echo $o->getO2tiCustomercommentInfo(); ?>
27
  <?php endif?>
28
  </fieldset>
29
  </div>
23
  </div>
24
  <fieldset>
25
  <?php if($o):?>
26
+ <?php echo $o->getMoipCustomercommentInfo(); ?>
27
  <?php endif?>
28
  </fieldset>
29
  </div>
app/design/adminhtml/default/default/template/{O2TI → MOIP}/onestepcheckout/sales/order/view/tab/info/Deliverydate.phtml RENAMED
@@ -22,8 +22,8 @@ foreach($orders as $order) //$orders chua nhieu doi tuong. va` chi lay dc doi tu
22
  </div>
23
  <fieldset>
24
  <?php if($o):?>
25
- <?php echo $this->__('Data de entrega:')?><span style="font-weight:bold;"> <?php echo $o->getO2tiDeliverydateDate();?></span><br>
26
- <?php echo $this->__('Horário:')?><span style="font-weight:bold;"> <?php echo $o->getO2tiDeliverydateTime();?></span>
27
  <?php endif?>
28
  </fieldset>
29
  </div>
22
  </div>
23
  <fieldset>
24
  <?php if($o):?>
25
+ <?php echo $this->__('Data de entrega:')?><span style="font-weight:bold;"> <?php echo $o->getMoipDeliverydateDate();?></span><br>
26
+ <?php echo $this->__('Horário:')?><span style="font-weight:bold;"> <?php echo $o->getMoipDeliverydateTime();?></span>
27
  <?php endif?>
28
  </fieldset>
29
  </div>
app/design/adminhtml/default/default/template/{O2TI → MOIP}/sales/order/view/info.phtml RENAMED
File without changes
app/design/adminhtml/default/default/template/{O2TI/moip → MOIP/transparente}/form.phtml RENAMED
@@ -1,7 +1,7 @@
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 = "";
@@ -10,39 +10,39 @@ $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');
@@ -97,23 +97,23 @@ $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
 
@@ -123,23 +123,23 @@ $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
 
@@ -216,28 +216,28 @@ function countChar(val) {
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"});
@@ -253,7 +253,7 @@ jQuery('.btn-checkout').on("click",function(e)
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"});
@@ -267,9 +267,9 @@ jQuery('.btn-checkout').on("click",function(e)
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';
@@ -278,7 +278,7 @@ bb = function(){
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';
@@ -287,7 +287,7 @@ bradesco = function(){
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';
@@ -296,7 +296,7 @@ itau = function(){
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';
@@ -346,8 +346,8 @@ hipercard = function(){
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
 
@@ -468,26 +468,26 @@ hipercard = function(){
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>
@@ -544,7 +544,7 @@ hipercard = function(){
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
@@ -581,7 +581,7 @@ hipercard = function(){
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>
@@ -651,7 +651,7 @@ hipercard = function(){
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" >
@@ -670,7 +670,7 @@ hipercard = function(){
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>
@@ -678,5 +678,5 @@ hipercard = function(){
678
 
679
  </ul>
680
  </div>
681
- <div id="checkout-payment-o2ti" class="validation-advice" style="position:relative;display:none;"></div>
682
 
1
  <?php
2
+ $standad = Mage::getSingleton('transparente/standard');
3
+ $api = Mage::getSingleton('transparente/api');
4
+ $api->setContaTransparente($standad->getConfigData('conta_transparente'));
5
  $api->setAmbiente($standad->getConfigData('ambiente'));
6
  $parcelas = "";
7
  $descontotexto = "";
10
  $telefone = "";
11
  $cpf = "";
12
  $dn = "";
13
+ $icone_cartao = $this->getSkinUrl('MOIP/transparente/imagem/abacartao.png');
14
+ $icone_boleto = $this->getSkinUrl('MOIP/transparente/imagem/ababoleto.png');
15
+ $icone_transf = $this->getSkinUrl('MOIP/transparente/imagem/abatransf.png');
16
+ $cartao_visa = $this->getSkinUrl('MOIP/transparente/imagem/Visa.png');
17
+ $cartao_master = $this->getSkinUrl('MOIP/transparente/imagem/Mastercard.png');
18
+ $cartao_diners = $this->getSkinUrl('MOIP/transparente/imagem/Diners.png');
19
+ $cartao_american = $this->getSkinUrl('MOIP/transparente/imagem/AmericanExpress.png');
20
+ $cartao_hipercard = $this->getSkinUrl('MOIP/transparente/imagem/Hipercard.png');
21
+ $boleto = $this->getSkinUrl('MOIP/transparente/imagem/Bradesco.png');
22
+ $cartao_bb = $this->getSkinUrl('MOIP/transparente/imagem/BancoDoBrasil.png');
23
+ $cartao_bradesco = $this->getSkinUrl('MOIP/transparente/imagem/Bradesco.png');
24
+ $cartao_itau = $this->getSkinUrl('MOIP/transparente/imagem/Itau.png');
25
+ $cartao_banrisul = $this->getSkinUrl('MOIP/transparente/imagem/Banrisul.png');
26
+ if(Mage::getStoreConfig('moipall/config/trocar_icone')):
27
+ $icone_cartao = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/icone_cartao');
28
+ $icone_boleto = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/icone_boleto');
29
+ $icone_transf = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/icone_transf');
30
  endif;
31
+ if(Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')):
32
+ $cartao_visa = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_visa');
33
+ $cartao_master = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_master');
34
+ $cartao_diners = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_diners');
35
+ $cartao_american = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_american');
36
+ $cartao_hipercard = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_hipercard');
37
  endif;
38
+ if(Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')):
39
+ $cartao_bb = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_bb');
40
+ $cartao_bradesco = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_bradesco');
41
+ $cartao_itau = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_itau');
42
+ $cartao_banrisul = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_banrisul');
43
  endif;
44
+ if(Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')):
45
+ $boleto = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/boleto');
46
  endif;
47
  $mostraboleto = 1;
48
  $nivelestoque = $standad->getConfigData('estoqueboleto');
97
  endif;
98
 
99
 
100
+ if (Mage::getStoreConfig('moipall/pagamento_avancado/pagamento_boleto')):
101
+ if ($valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor')):
102
+ $descontotexto = "Com desconto de: ".Mage::getStoreConfig('moipall/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('moipall/pagamento_avancado/boleto_desc')/100;
105
  endif;
106
 
107
+ if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') && $valor_pedido < Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ):
108
+ $descontotexto = "Com desconto de: ".Mage::getStoreConfig('moipall/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('moipall/pagamento_avancado/boleto_desc2')/100;
111
  endif;
112
 
113
+ if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ):
114
+ $descontotexto = "Com desconto de: ".Mage::getStoreConfig('moipall/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('moipall/pagamento_avancado/boleto_desc3')/100;
117
  endif;
118
 
119
 
123
  endif;
124
 
125
 
126
+ if (Mage::getStoreConfig('moipall/pagamento_avancado/transf_desc')):
127
+ if ($valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor')):
128
+ $descontotexto = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc')."%.";
129
  $descontotexto1 = $descontotexto ."<br/>Págavel únicamente através internet bank.";
130
+ $desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc')/100;
131
  endif;
132
 
133
+ if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') && $valor_pedido < Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ):
134
+ $descontotexto = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc2')."%.";
135
  $descontotexto1 = $descontotexto ."<br/>Págavel únicamente através internet bank.";
136
+ $desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc2')/100;
137
  endif;
138
 
139
+ if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ):
140
+ $descontotexto = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc3')."%.";
141
  $descontotexto1 = $descontotexto ."<br/>Págavel únicamente através internet bank.";
142
+ $desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc3')/100;
143
  endif;
144
 
145
 
216
  }
217
  }
218
  };
219
+ //validacao do transparente - inicio
220
  jQuery('.btn-checkout').on("click",function(e)
221
  {
222
+ if(jQuery('input[name=payment\\[method\\]]:checked').val() == "moip_transparente_standard"){
223
  if(!jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val()){
224
+ if(!jQuery('#advice-required-moip').length)
225
  {
226
  logic=false;
227
+ jQuery('#checkout-payment-moip').css({display:"block"});
228
+ jQuery('#checkout-payment-moip').html('Selecione a forma de pagamento.');
229
  return false;
230
  }
231
  }
232
  else
233
+ jQuery('#checkout-payment-moip').css({display:"none"});
234
+ jQuery('#advice-required-entry_payment_moip').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-moip').length)
241
  {
242
  logic=false;
243
  jQuery('#checkout-payment-bandeira').css({display:"block"});
253
  {
254
  if(!jQuery("input[name=payment\\[debito_instituicao\\]]:checked").val())
255
  {
256
+ if(!jQuery('#advice-required-moip').length)
257
  {
258
  logic=false;
259
  jQuery('#checkout-payment-banco').css({display:"block"});
267
  }
268
  });
269
 
270
+ //validacao do transparente - fim
271
  bb = function(){
272
+ document.getElementById('checkout-payment-moip-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';
278
  document.getElementById('checkout-payment-banco').style.display='none';
279
  };
280
  bradesco = function(){
281
+ document.getElementById('checkout-payment-moip-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';
287
  document.getElementById('checkout-payment-banco').style.display='none';
288
  };
289
  itau = function(){
290
+ document.getElementById('checkout-payment-moip-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';
296
  document.getElementById('checkout-payment-banco').style.display='none';
297
  };
298
  banrisul = function(){
299
+ document.getElementById('checkout-payment-moip-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';
346
  };
347
  </script>
348
 
349
+ <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('MOIP/transparente/css/formulario.css'); ?> "media="all">
350
+ <div id="checkoutmoip">
351
  <ul id="payment_form_<?php echo $this->getMethodCode() ?>">
352
 
353
 
468
  <div class="input-box" style="text-align:center;">
469
 
470
  <label id="band">
471
+ <input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" onclick="visa();" value="Visa"><img src="<?php echo $cartao_visa; ?>" onclick=";" id="Visa" alt="Visa" border="0">
472
  </label>
473
 
474
  <label id="band">
475
+ <input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" onclick="mastercard();" value="Mastercard"><img src="<?php echo $cartao_master; ?>" onclick="" id="Mastercard" alt="Mastercard" border="0">
476
  </label>
477
 
478
 
479
  <label id="band">
480
+ <input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" onclick="americanexpress();" value="AmericanExpress"><img src="<?php echo $cartao_american; ?>" onclick="" id="AmericanExpress" alt="AmericanExpress" border="0">
481
  </label>
482
  </div>
483
  <div class="input-box" style="text-align:center;">
484
  <label id="band">
485
+ <input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" onclick="diners();" value="Diners"> <img onclick="" src="<?php echo $cartao_diners; ?>" id="Diners" alt="Diners" border="0">
486
  </label>
487
 
488
 
489
  <label id="band">
490
+ <input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" onclick="hipercard();" value="Hipercard"><img onclick="" src="<?php echo $cartao_hipercard; ?>" id="Hipercard" alt="Hipercard" border="0">
491
  </label>
492
 
493
  </div>
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('MOIP/transparente/imagem/codigo-seguranca.png'); ?>" id="imageseguratransparente" border="0"></span></span>
548
  </div>
549
  </li>
550
  <?php
581
 
582
  <div id="formcli" style="display:none;">
583
  <h3>Dados do Titular</h3>
584
+ <div id="pjtransparente" style="display:none;width:80%; float:left;color:red;">Atenção para Pessoa Júridica você deverá informar os dados do seu cartão empresarial, não os dados da empresa.</div>
585
 
586
  <li class="wide">
587
  <label class="required" for="credito_parcela">Nome no Cartão:</label>
651
  <?php echo $descontotexto1; ?>
652
  </br>
653
  </div>
654
+ <div id="transparente_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" >
670
  </label>
671
  </div>
672
  <div id="checkout-payment-banco" class="validation-advice" style="position:relative;display:none;"></div>
673
+ <div id="checkout-payment-moip-deb" class="validation-advice" style="position:relative;display:none;" >
674
  Por favor, selecione o banco!
675
  </div>
676
  </div>
678
 
679
  </ul>
680
  </div>
681
+ <div id="checkout-payment-moip" class="validation-advice" style="position:relative;display:none;"></div>
682
 
app/design/adminhtml/default/default/template/{O2TI/moip → MOIP/transparente}/info.phtml RENAMED
@@ -24,7 +24,7 @@ $css_email_img = "position: absolute !important;left: -70px !important;top: -20p
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 ?>
@@ -33,12 +33,12 @@ $css_email_img = "position: absolute !important;left: -70px !important;top: -20p
33
  <?php if($info['result_meio'] == "Boleto Bancário"): ?>
34
  <div class="metodo title"><h3><?php echo $info['result_meio'] ?></h3></div>
35
  <div style="clear:both; width:100%;">
36
- <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>
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
 
@@ -47,11 +47,11 @@ $css_email_img = "position: absolute !important;left: -70px !important;top: -20p
47
  <?php if($info['result_meio'] == "Transferência Bancária"): ?>
48
  <div class="metodo title"><h3><?php echo $info['result_meio'] ?></h3></div>
49
  <div class="trans" style="width:100%">
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 ?>
24
  <div class="input-text"><strong><?php echo $info['last4'] ?></strong></div>
25
  </div>
26
  <div class="token_repagamento">
27
+ <div class="input-text"><strong><a href="https://www.moip.com.br/Instrucao.do?token=<?php echo $info['token'] ?>">Link Para repagamento no transparente</a></strong></div>
28
  </div>
29
  </div>
30
  <?php endif ?>
33
  <?php if($info['result_meio'] == "Boleto Bancário"): ?>
34
  <div class="metodo title"><h3><?php echo $info['result_meio'] ?></h3></div>
35
  <div style="clear:both; width:100%;">
36
+ <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('MOIP/transparente/imagem/printer.png');echo") no-repeat;"; ?>"/></div>Visualize o boleto aqui</span></button>
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 transparente</a></strong></div>
42
  </div>
43
  <?php endif ?>
44
 
47
  <?php if($info['result_meio'] == "Transferência Bancária"): ?>
48
  <div class="metodo title"><h3><?php echo $info['result_meio'] ?></h3></div>
49
  <div class="trans" style="width:100%">
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('MOIP/transparente/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 transparente</a></strong></div>
55
  </div>
56
  </div>
57
  <?php endif ?>
app/design/adminhtml/default/default/template/MOIP/transparente/redirect.phtml ADDED
File without changes
app/design/adminhtml/default/default/template/O2TI/moip/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/base/default/layout/{o2ti_onestepcheckout.xml → moip_onestepcheckout.xml} RENAMED
@@ -4,17 +4,32 @@
4
 
5
  <checkout_onepage_index>
6
  <reference name="head">
7
- <action method="removeItem"><type>skin_js</type><name>js/lib/jquery-1.10.2.min.js</name></action>
8
- <action method="addJs"><script>O2TI/jquery.js</script></action>
9
- <action method="addJs"><script>O2TI/jquery_noconflict.js</script></action>
10
- <action method="addJs"><script>O2TI/onestepcheckout/jquery.fancybox-1.3.1.js</script></action>
11
- <action method="addJs"><script>O2TI/onestepcheckout/change-events.js</script></action>
12
- <action method="addJs"><script>O2TI/novamascara.js</script></action>
13
- <action method="addJs"><script>O2TI/validacao.js</script></action>
14
- <action method="addCss"><stylesheet>O2TI/onestepcheckout/css/onestepcheckout.css</stylesheet></action>
15
- <action method="addCss"><stylesheet>O2TI/onestepcheckout/css/jquery.fancybox-1.3.1.css</stylesheet></action>
16
-
 
17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  <!-- estes são exemplos de como remover outros js do site
19
  use o <type>skin_js</type> se o js estiver na pasta skin
20
  <action method="removeItem"><type>skin_js</type><name>js/jquery.js</name></action>
@@ -27,40 +42,48 @@ ou use <type>js</type> caso o js da pasta pasta_da_loja/js
27
  </reference>
28
  <reference name="checkout.onepage">
29
  <action method="setTemplate">
30
- <template>O2TI/onestepcheckout/onepage.phtml</template>
31
  </action>
32
  </reference>
33
  <reference name="content">
34
- <block type="core/template" name="onestepcheckout.daskboard" as="daskboard" template="O2TI/onestepcheckout/daskboard.phtml">
35
- <block type="checkout/onepage_login" name="checkout.onepage.login" as="login" template="O2TI/onestepcheckout/daskboard/onepage/login.phtml"/>
36
- <block type="customer/account_forgotpassword" name="checkout.onepage.forgotpassword" as="forgotpassword" template="O2TI/onestepcheckout/daskboard/onepage/forgotpassword.phtml"/>
 
 
 
 
 
 
 
 
37
 
38
- <block type="onestepcheckout/checkout_onepage_billing" name="checkout.onepage.billing" as="billing" template="O2TI/onestepcheckout/daskboard/onepage/billing.phtml">
39
- <block type="onestepcheckout/checkout_onepage_billing" name="checkout.onepage.billing.billingform" as="billing_form" template="O2TI/onestepcheckout/daskboard/onepage/billing/billing_form.phtml"/>
40
  </block>
41
- <block type="onestepcheckout/checkout_onepage_shipping" name="checkout.onepage.shipping" as="shipping" template="O2TI/onestepcheckout/daskboard/onepage/shipping.phtml">
42
- <block type="onestepcheckout/checkout_onepage_shipping" name="checkout.onepage.shipping.shippingform" as="shipping_form" template="O2TI/onestepcheckout/daskboard/onepage/shipping/shipping_form.phtml"/>
43
  </block>
44
- <block type="checkout/onepage_shipping_method" name="onestepcheckout.onepage.shipping_method" as="shipping_method" template="O2TI/onestepcheckout/daskboard/onepage/shipping_method.phtml">
45
- <block type="checkout/onepage_shipping_method_available" name="onestepcheckout.onepage.shipping_method.available" as="available" template="O2TI/onestepcheckout/daskboard/onepage/shipping_method/available.phtml"/>
46
  </block>
47
- <block type="checkout/onepage_payment" name="onestepcheckout.onepage.payment" as="payment" template="O2TI/onestepcheckout/daskboard/onepage/payment.phtml">
48
- <block type="checkout/onepage_payment_methods" name="onestepcheckout.onepage.payment.methods" as="methods" template="O2TI/onestepcheckout/daskboard/onepage/payment/methods.phtml"/>
49
  </block>
50
- <block type="checkout/onepage_review" name="checkout.onepage.review" as="review" template="O2TI/onestepcheckout/daskboard/onepage/review.phtml">
51
- <block type="checkout/onepage_review_info" name="info" template="O2TI/onestepcheckout/daskboard/onepage/review/info.phtml">
52
- <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>O2TI/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
53
- <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>O2TI/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
54
- <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>O2TI/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
55
- <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>O2TI/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
56
- <block type="checkout/cart_totals" name="checkout.onepage.review.info.totals" as="totals" template="O2TI/onestepcheckout/daskboard/onepage/review/totals.phtml"/>
 
 
57
  <block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before"/>
 
58
  </block>
59
- <block type="onestepcheckout/checkout_onepage_review_options" name="checkout.onepage.review.options" as="options" template="O2TI/onestepcheckout/daskboard/onepage/review/options.phtml">
60
- <block type="checkout/onepage_shipping_method_additional" name="onestepcheckout.onepage.shipping_method.additional" as="additional" template="O2TI/onestepcheckout/daskboard/onepage/review/options/additional.phtml"/>
61
- <block type="checkout/cart_coupon" name="checkout.onepage.coupon" as="coupon" template="O2TI/onestepcheckout/daskboard/onepage/coupon.phtml"/>
62
- </block>
63
- <block type="checkout/agreements" name="checkout.onepage.agreements" as="agreements" template="O2TI/onestepcheckout/daskboard/onepage/agreements.phtml"/>
64
  </block>
65
  </block>
66
  </reference>
@@ -68,30 +91,30 @@ ou use <type>js</type> caso o js da pasta pasta_da_loja/js
68
 
69
  <onestepcheckout_index_updateshippingmethod>
70
  <reference name="root">
71
- <action method="setTemplate"><template>O2TI/onestepcheckout/emptyupdate.phtml</template></action>
72
  </reference>
73
  <reference name="content">
74
- <block type="checkout/onepage_review_info" name="info" template="O2TI/onestepcheckout/daskboard/onepage/review/info.phtml">
75
- <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>O2TI/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
76
- <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>O2TI/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
77
- <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>O2TI/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
78
- <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>O2TI/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
79
- <block type="checkout/cart_totals" name="checkout.onepage.review.info.totals" as="totals" template="O2TI/onestepcheckout/daskboard/onepage/review/totals.phtml"/>
80
  <block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before"/>
81
  </block>
82
  </reference>
83
  </onestepcheckout_index_updateshippingmethod>
84
  <onestepcheckout_index_updatepaymentmethod>
85
  <reference name="root">
86
- <action method="setTemplate"><template>O2TI/onestepcheckout/emptyupdate.phtml</template></action>
87
  </reference>
88
  <reference name="content">
89
- <block type="checkout/onepage_review_info" name="info" template="O2TI/onestepcheckout/daskboard/onepage/review/info.phtml">
90
- <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>O2TI/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
91
- <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>O2TI/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
92
- <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>O2TI/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
93
- <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>O2TI/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
94
- <block type="checkout/cart_totals" name="checkout.onepage.review.info.totals" as="totals" template="O2TI/onestepcheckout/daskboard/onepage/review/totals.phtml"/>
95
  <block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before"/>
96
  </block>
97
  </reference>
@@ -99,41 +122,41 @@ ou use <type>js</type> caso o js da pasta pasta_da_loja/js
99
 
100
  <onestepcheckout_index_updateshippingtype>
101
  <reference name="root">
102
- <action method="setTemplate"><template>O2TI/onestepcheckout/emptyupdate.phtml</template></action>
103
  </reference>
104
  <reference name="content">
105
- <block type="checkout/onepage_shipping_method_available" name="root" template="O2TI/onestepcheckout/daskboard/onepage/shipping_method/available.phtml"/>
106
  </reference>
107
  </onestepcheckout_index_updateshippingtype>
108
  <onestepcheckout_index_updatepaymenttype>
109
  <reference name="root">
110
- <action method="setTemplate"><template>O2TI/onestepcheckout/emptyupdate.phtml</template></action>
111
  </reference>
112
  <reference name="content">
113
- <block type="checkout/onepage_payment_methods" name="root" template="O2TI/onestepcheckout/daskboard/onepage/payment/methods.phtml"/>
114
  </reference>
115
  </onestepcheckout_index_updatepaymenttype>
116
 
117
  <onestepcheckout_index_updatebillingform>
118
  <reference name="root">
119
- <action method="setTemplate"><template>O2TI/onestepcheckout/emptyupdate.phtml</template></action>
120
  </reference>
121
  <reference name="content">
122
- <block type="onestepcheckout/checkout_onepage_billing_sortbilling" name="checkout.onepage.billing.disablesortbilling" as="disablesortbilling" template="O2TI/onestepcheckout/daskboard/onepage/billing/billing_form.phtml"/>
123
  </reference>
124
  </onestepcheckout_index_updatebillingform>
125
  <sales_order_view>
126
  <reference name="sales.order.info">
127
- <action method="setTemplate"><template>O2TI/onestepcheckout/sales/order/info.phtml</template></action>
128
- <block type="onestepcheckout/sales_info_customermessages" name="customer_messages" as="customer_messages" template="O2TI/onestepcheckout/sales/order/info/customermessages.phtml"></block>
129
  </reference>
130
  </sales_order_view>
131
  <onestepcheckout_index_updateshippingform>
132
  <reference name="root">
133
- <action method="setTemplate"><template>O2TI/onestepcheckout/emptyupdate.phtml</template></action>
134
  </reference>
135
  <reference name="content">
136
- <block type="onestepcheckout/checkout_onepage_shipping" name="checkout.onepage.shipping.shippingform" as="shipping_form" template="O2TI/onestepcheckout/daskboard/onepage/shipping/shipping_form.phtml"/>
137
  </reference>
138
  </onestepcheckout_index_updateshippingform>
139
 
4
 
5
  <checkout_onepage_index>
6
  <reference name="head">
7
+
8
+ <action method="addJs" ifconfig="moipall/config/enable_jquery"><script>MOIP/jquery.js</script></action>
9
+ <action method="addJs"><script>MOIP/jquery_noconflict.js</script></action>
10
+ <action method="addJs"><script>MOIP/onestepcheckout/jquery.fancybox-1.3.1.js</script></action>
11
+ <action method="addJs"><script>MOIP/onestepcheckout/change-events.js</script></action>
12
+ <action method="addJs"><script>MOIP/jquery.mask.min.js</script></action>
13
+ <action method="addJs"><script>MOIP/script_mask.js</script></action>
14
+ <action method="addJs"><script>MOIP/validacao.js</script></action>
15
+ <action method="addJs"><script>MOIP/transparente/checkout.js</script></action>
16
+ <action method="addCss"><stylesheet>MOIP/onestepcheckout/css/onestepcheckout.css</stylesheet></action>
17
+ <action method="addCss"><stylesheet>MOIP/onestepcheckout/css/jquery.fancybox-1.3.1.css</stylesheet></action>
18
 
19
+ <!-- para o tema ultimo remove esse comentario, nao esquecer da linha de baixo e do checkout
20
+ <action method="removeItem"><type>js</type><name>infortis/jquery/jquery-1.7.2.min.js</name></action>
21
+ <action method="removeItem"><type>js</type><name>infortis/jquery/jquery-noconflict.js</name></action>
22
+ <action method="removeItem"><type>js</type><name>infortis/jquery/plugins/jquery.owlcarousel.min.js</name></action>
23
+ <action method="removeItem"><type>js</type><name>infortis/jquery/plugins/jquery.easing.min.js</name></action>
24
+ <action method="removeItem"><type>js</type><name>infortis/jquery/plugins/jquery.accordion.min.js</name></action>
25
+ <action method="removeItem"><type>js</type><name>infortis/jquery/plugins/jquery.tabs.min.js</name></action>
26
+ <action method="removeItem"><type>js</type><name>infortis/jquery/plugins/jquery.ba-throttle-debounce.min.js</name></action>
27
+ <action method="addJs"><script>infortis/jquery/plugins/jquery.owlcarousel.min.js</script></action>
28
+ <action method="addJs"><script>infortis/jquery/plugins/jquery.easing.min.js</script></action>
29
+ <action method="addJs"><script>infortis/jquery/plugins/jquery.accordion.min.js</script></action>
30
+ <action method="addJs"><script>infortis/jquery/plugins/jquery.tabs.min.js</script></action>
31
+ <action method="addJs"><script>infortis/jquery/plugins/jquery.ba-throttle-debounce.min.js</script></action>
32
+ -->
33
  <!-- estes são exemplos de como remover outros js do site
34
  use o <type>skin_js</type> se o js estiver na pasta skin
35
  <action method="removeItem"><type>skin_js</type><name>js/jquery.js</name></action>
42
  </reference>
43
  <reference name="checkout.onepage">
44
  <action method="setTemplate">
45
+ <template>MOIP/onestepcheckout/onepage.phtml</template>
46
  </action>
47
  </reference>
48
  <reference name="content">
49
+ <block type="core/template" name="onestepcheckout.daskboard" as="daskboard" template="MOIP/onestepcheckout/daskboard.phtml">
50
+ <block type="checkout/onepage_login" name="checkout.onepage.login" as="login" template="MOIP/onestepcheckout/daskboard/onepage/login.phtml"/>
51
+ <block type="customer/account_forgotpassword" name="checkout.onepage.forgotpassword" as="forgotpassword" template="MOIP/onestepcheckout/daskboard/onepage/forgotpassword.phtml"/>
52
+
53
+ <block type="onestepcheckout/checkout_onepage_billing" name="checkout.onepage.billing" as="billing" template="MOIP/onestepcheckout/daskboard/onepage/billing.phtml">
54
+ <block type="onestepcheckout/checkout_onepage_billing" name="checkout.onepage.billing.billingform" as="billing_form" template="MOIP/onestepcheckout/daskboard/onepage/billing/billing_form.phtml"/>
55
+
56
+ </block>
57
+
58
+ <block type="checkout/cart_coupon" name="checkout.onepage.coupon" as="coupon" template="MOIP/onestepcheckout/daskboard/onepage/coupon.phtml"/>
59
+ <block type="checkout/onepage_shipping_method_additional" name="onestepcheckout.onepage.shipping_method.additional" as="additional" template="MOIP/onestepcheckout/daskboard/onepage/review/options/additional.phtml"/>
60
 
61
+ <block type="onestepcheckout/checkout_onepage_review_options" name="checkout.onepage.review.options" as="options" template="MOIP/onestepcheckout/daskboard/onepage/review/options.phtml">
62
+
63
  </block>
64
+ <block type="onestepcheckout/checkout_onepage_shipping" name="checkout.onepage.shipping" as="shipping" template="MOIP/onestepcheckout/daskboard/onepage/shipping.phtml">
65
+ <block type="onestepcheckout/checkout_onepage_shipping" name="checkout.onepage.shipping.shippingform" as="shipping_form" template="MOIP/onestepcheckout/daskboard/onepage/shipping/shipping_form.phtml"/>
66
  </block>
67
+ <block type="checkout/onepage_shipping_method" name="onestepcheckout.onepage.shipping_method" as="shipping_method" template="MOIP/onestepcheckout/daskboard/onepage/shipping_method.phtml">
68
+ <block type="checkout/onepage_shipping_method_available" name="onestepcheckout.onepage.shipping_method.available" as="available" template="MOIP/onestepcheckout/daskboard/onepage/shipping_method/available.phtml"/>
69
  </block>
70
+ <block type="checkout/onepage_payment" name="onestepcheckout.onepage.payment" as="payment" template="MOIP/onestepcheckout/daskboard/onepage/payment.phtml">
71
+ <block type="checkout/onepage_payment_methods" name="onestepcheckout.onepage.payment.methods" as="methods" template="MOIP/onestepcheckout/daskboard/onepage/payment/methods.phtml"/>
72
  </block>
73
+
74
+ <block type="checkout/onepage_review" name="checkout.onepage.review" as="review" template="MOIP/onestepcheckout/daskboard/onepage/review.phtml">
75
+ <block type="checkout/onepage_review_info" name="info" template="MOIP/onestepcheckout/daskboard/onepage/review/info.phtml">
76
+ <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
77
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
78
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
79
+ <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
80
+ <block type="checkout/cart_totals" name="checkout.onepage.review.info.totals" as="totals" template="MOIP/onestepcheckout/daskboard/onepage/review/totals.phtml"/>
81
+
82
  <block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before"/>
83
+
84
  </block>
85
+
86
+
 
 
 
87
  </block>
88
  </block>
89
  </reference>
91
 
92
  <onestepcheckout_index_updateshippingmethod>
93
  <reference name="root">
94
+ <action method="setTemplate"><template>MOIP/onestepcheckout/emptyupdate.phtml</template></action>
95
  </reference>
96
  <reference name="content">
97
+ <block type="checkout/onepage_review_info" name="info" template="MOIP/onestepcheckout/daskboard/onepage/review/info.phtml">
98
+ <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
99
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
100
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
101
+ <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
102
+ <block type="checkout/cart_totals" name="checkout.onepage.review.info.totals" as="totals" template="MOIP/onestepcheckout/daskboard/onepage/review/totals.phtml"/>
103
  <block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before"/>
104
  </block>
105
  </reference>
106
  </onestepcheckout_index_updateshippingmethod>
107
  <onestepcheckout_index_updatepaymentmethod>
108
  <reference name="root">
109
+ <action method="setTemplate"><template>MOIP/onestepcheckout/emptyupdate.phtml</template></action>
110
  </reference>
111
  <reference name="content">
112
+ <block type="checkout/onepage_review_info" name="info" template="MOIP/onestepcheckout/daskboard/onepage/review/info.phtml">
113
+ <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
114
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
115
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
116
+ <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>MOIP/onestepcheckout/daskboard/onepage/review/item.phtml</template></action>
117
+ <block type="checkout/cart_totals" name="checkout.onepage.review.info.totals" as="totals" template="MOIP/onestepcheckout/daskboard/onepage/review/totals.phtml"/>
118
  <block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before"/>
119
  </block>
120
  </reference>
122
 
123
  <onestepcheckout_index_updateshippingtype>
124
  <reference name="root">
125
+ <action method="setTemplate"><template>MOIP/onestepcheckout/emptyupdate.phtml</template></action>
126
  </reference>
127
  <reference name="content">
128
+ <block type="checkout/onepage_shipping_method_available" name="root" template="MOIP/onestepcheckout/daskboard/onepage/shipping_method/available.phtml"/>
129
  </reference>
130
  </onestepcheckout_index_updateshippingtype>
131
  <onestepcheckout_index_updatepaymenttype>
132
  <reference name="root">
133
+ <action method="setTemplate"><template>MOIP/onestepcheckout/emptyupdate.phtml</template></action>
134
  </reference>
135
  <reference name="content">
136
+ <block type="checkout/onepage_payment_methods" name="root" template="MOIP/onestepcheckout/daskboard/onepage/payment/methods.phtml"/>
137
  </reference>
138
  </onestepcheckout_index_updatepaymenttype>
139
 
140
  <onestepcheckout_index_updatebillingform>
141
  <reference name="root">
142
+ <action method="setTemplate"><template>MOIP/onestepcheckout/emptyupdate.phtml</template></action>
143
  </reference>
144
  <reference name="content">
145
+ <block type="onestepcheckout/checkout_onepage_billing_sortbilling" name="checkout.onepage.billing.disablesortbilling" as="disablesortbilling" template="MOIP/onestepcheckout/daskboard/onepage/billing/billing_form.phtml"/>
146
  </reference>
147
  </onestepcheckout_index_updatebillingform>
148
  <sales_order_view>
149
  <reference name="sales.order.info">
150
+ <action method="setTemplate"><template>MOIP/onestepcheckout/sales/order/info.phtml</template></action>
151
+ <block type="onestepcheckout/sales_info_customermessages" name="customer_messages" as="customer_messages" template="MOIP/onestepcheckout/sales/order/info/customermessages.phtml"></block>
152
  </reference>
153
  </sales_order_view>
154
  <onestepcheckout_index_updateshippingform>
155
  <reference name="root">
156
+ <action method="setTemplate"><template>MOIP/onestepcheckout/emptyupdate.phtml</template></action>
157
  </reference>
158
  <reference name="content">
159
+ <block type="onestepcheckout/checkout_onepage_shipping" name="checkout.onepage.shipping.shippingform" as="shipping_form" template="MOIP/onestepcheckout/daskboard/onepage/shipping/shipping_form.phtml"/>
160
  </reference>
161
  </onestepcheckout_index_updateshippingform>
162
 
app/design/frontend/base/default/layout/moip_transparente.xml ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <sales>
4
+ <block type="Transparente/Standard_Info" name="transparente.info" template="MOIP/transparente/info.phtml"></block>
5
+ </sales>
6
+ <onepagecheckout_index_index>
7
+ <reference name="head">
8
+ <action method="addJs" ifconfig="moipall/config/enable_jquery"><script>MOIP/jquery.js</script></action>
9
+ <action method="addJs"><script>MOIP/jquery_noconflict.js</script></action>
10
+ <action method="addJs"><script>MOIP/transparente/checkout.js</script></action>
11
+
12
+
13
+ </reference>
14
+ </onepagecheckout_index_index>
15
+ <checkout_onepage_index>
16
+ <reference name="head">
17
+ <action method="addJs" ifconfig="moipall/config/enable_jquery"><script>MOIP/jquery.js</script></action>
18
+ <action method="addJs"><script>MOIP/jquery_noconflict.js</script></action>
19
+ <action method="addJs"><script>MOIP/jquery.mask.min.js</script></action>
20
+ <action method="addJs"><script>MOIP/script_mask.js</script></action>
21
+ <action method="addJs"><script>MOIP/validacao.js</script></action>
22
+ <action method="addJs"><script>MOIP/transparente/checkout.js</script></action>
23
+ </reference>
24
+ </checkout_onepage_index>
25
+ <transparente_standard_redirect>
26
+
27
+ <reference name="head">
28
+ <action method="setTitle"><params><![CDATA[Pagamento via MoIP S/A]]></params></action>
29
+ <action method="addJs" ifconfig="moipall/config/enable_jquery"><script>MOIP/jquery.js</script></action>
30
+ <action method="addJs"><script>MOIP/jquery_noconflict.js</script></action>
31
+ <action method="addJs"><script>MOIP/transparente/bootstrap.min.js</script></action>
32
+ <action method="addJs"><script>MOIP/transparente/bootstrap-modal.js</script></action>
33
+ <action method="addJs"><script>MOIP/jquery.mask.min.js</script></action>
34
+ <action method="addJs"><script>MOIP/script_mask.js</script></action>
35
+ <action method="addJs"><script>MOIP/validacao.js</script></action>
36
+ <action method="addCss"><stylesheet>MOIP/transparente/css/bootstrap.css</stylesheet></action>
37
+
38
+ <!-- para o tema ultimo remove esse comentario, nao esquecer da linha de baixo e do checkout
39
+ <action method="removeItem"><type>js</type><name>infortis/jquery/jquery-1.7.2.min.js</name></action>
40
+ <action method="removeItem"><type>js</type><name>infortis/jquery/jquery-noconflict.js</name></action>
41
+ <action method="removeItem"><type>js</type><name>infortis/jquery/plugins/jquery.owlcarousel.min.js</name></action>
42
+ <action method="removeItem"><type>js</type><name>infortis/jquery/plugins/jquery.easing.min.js</name></action>
43
+ <action method="removeItem"><type>js</type><name>infortis/jquery/plugins/jquery.accordion.min.js</name></action>
44
+ <action method="removeItem"><type>js</type><name>infortis/jquery/plugins/jquery.tabs.min.js</name></action>
45
+ <action method="removeItem"><type>js</type><name>infortis/jquery/plugins/jquery.ba-throttle-debounce.min.js</name></action>
46
+ <action method="addJs"><script>infortis/jquery/plugins/jquery.owlcarousel.min.js</script></action>
47
+ <action method="addJs"><script>infortis/jquery/plugins/jquery.easing.min.js</script></action>
48
+ <action method="addJs"><script>infortis/jquery/plugins/jquery.accordion.min.js</script></action>
49
+ <action method="addJs"><script>infortis/jquery/plugins/jquery.tabs.min.js</script></action>
50
+ <action method="addJs"><script>infortis/jquery/plugins/jquery.ba-throttle-debounce.min.js</script></action>
51
+ -->
52
+ </reference>
53
+ <reference name="root">
54
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
55
+ </reference>
56
+ <reference name="left">
57
+
58
+ <block type="MOIP_Transparente_Block_Standard_Redirect" name="transparente.comum" template="MOIP/transparente/redirect.phtml">
59
+ </block>
60
+ <block type="MOIP_Transparente_Block_Standard_Redirect" name="transparente.transferencia" template="MOIP/transparente/transferencia.phtml">
61
+ </block>
62
+ <block type="MOIP_Transparente_Block_Standard_Redirect" name="transparente.boleto" template="MOIP/transparente/boleto.phtml">
63
+ <block type="MOIP_Transparente_Block_Standard_Redirect" name="cartao_form" template="MOIP/transparente/layout_boleto.phtml">
64
+ <action method="setBlockId"><block_id>cartao_form</block_id></action>
65
+ </block>
66
+ </block>
67
+ <block type="MOIP_Transparente_Block_Standard_Redirect" name="transparente.cartao" template="MOIP/transparente/cartao.phtml">
68
+ <block type="MOIP_Transparente_Block_Standard_Redirect" name="cartao_form" template="MOIP/transparente/refaz.phtml">
69
+ <action method="setBlockId"><block_id>cartao_form</block_id></action>
70
+ </block>
71
+ </block>
72
+ </reference>
73
+
74
+ </transparente_standard_redirect>
75
+
76
+ <transparente_index_index>
77
+ <reference name="root">
78
+ <action method="setTemplate"><template>MOIP/transparente/emptyupdate.phtml</template></action>
79
+ </reference>
80
+ </transparente_index_index>
81
+
82
+ <transparente_index_novaforma>
83
+ <reference name="root">
84
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
85
+ </reference>
86
+ </transparente_index_novaforma>
87
+
88
+ <sales_order_view>
89
+ <reference name="head">
90
+ <action method="addJs"><script>MOIP/jquery.js</script></action>
91
+ <action method="addJs"><script>MOIP/jquery_noconflict.js</script></action>
92
+ <action method="addJs"><script>MOIP/transparente/bootstrap.min.js</script></action>
93
+ <action method="addJs"><script>MOIP/transparente/bootstrap-modal.js</script></action>
94
+ <action method="addJs"><script>MOIP/jquery.mask.min.js</script></action>
95
+ <action method="addJs"><script>MOIP/script_mask.js</script></action>
96
+ <action method="addJs"><script>MOIP/validacao.js</script></action>
97
+ <action method="addCss"><stylesheet>MOIP/transparente/css/bootstrap.css</stylesheet></action>
98
+ </reference>
99
+ </sales_order_view>
100
+
101
+ <transparente_info>
102
+ <reference name="content">
103
+ <action method="setTemplate"><template>MOIP/transparente/info.phtml</template></action>
104
+ <block type="MOIP_Transparente_Block_Info" name="transparente_info" template="MOIP/transparente/info.phtml">
105
+ <block type="MOIP_Transparente_Block_Info" name="transparente.info" template="MOIP/transparente/form.phtml">
106
+ <action method="setBlockId"><block_id>refaz_forma</block_id></action>
107
+ </block>
108
+ </block>
109
+ </reference>
110
+ </transparente_info>
111
+
112
+ <customer_address_form>
113
+ <reference name="head">
114
+ <action method="addJs"><script>MOIP/jquery.js</script></action>
115
+ <action method="addJs"><script>MOIP/jquery_noconflict.js</script></action>
116
+ <action method="addJs"><script>MOIP/transparente/bootstrap.min.js</script></action>
117
+ <action method="addJs"><script>MOIP/transparente/bootstrap-modal.js</script></action>
118
+ <action method="addJs"><script>MOIP/jquery.mask.min.js</script></action>
119
+ <action method="addJs"><script>MOIP/script_mask.js</script></action>
120
+ <action method="addJs"><script>MOIP/validacao.js</script></action>
121
+ <action method="addCss"><stylesheet>MOIP/transparente/css/bootstrap.css</stylesheet></action>
122
+ </reference>
123
+
124
+ <reference name="my.account.wrapper">
125
+ <block type="customer/address_edit" name="customer_address_edit" template="MOIP/customer/address/edit.phtml"/>
126
+ </reference>
127
+ </customer_address_form>
128
+ </layout>
app/design/frontend/base/default/layout/o2ti_moip.xml DELETED
@@ -1,96 +0,0 @@
1
- <?xml version="1.0"?>
2
- <layout version="0.1.0">
3
- <sales>
4
- <block type="Moip/Standard_Info" name="moip.info" template="O2TI/moip/info.phtml"></block>
5
- </sales>
6
- <onepagecheckout_index_index>
7
- <reference name="head">
8
- <action method="addJs"><script>O2TI/jquery.js</script></action>
9
- <action method="addJs"><script>O2TI/jquery_noconflict.js</script></action>
10
- <action method="addJs"><script>O2TI/novamascara.js</script></action>
11
- <action method="addJs"><script>O2TI/validacao.js</script></action>
12
- <action method="addJs"><script>O2TI/moip/checkout.js</script></action>
13
- </reference>
14
- </onepagecheckout_index_index>
15
- <checkout_onepage_index>
16
- <reference name="head">
17
- <action method="addJs"><script>O2TI/jquery.js</script></action>
18
- <action method="addJs"><script>O2TI/jquery_noconflict.js</script></action>
19
- <action method="addJs"><script>O2TI/novamascara.js</script></action>
20
- <action method="addJs"><script>O2TI/validacao.js</script></action>
21
- <action method="addJs"><script>O2TI/moip/checkout.js</script></action>
22
- </reference>
23
- </checkout_onepage_index>
24
- <moip_standard_redirect translate="label">
25
-
26
- <reference name="head">
27
- <action method="setTitle"><params><![CDATA[Pagamento via MoIP S/A]]></params></action>
28
- <action method="removeItem"><type>skin_js</type><name>js/lib/jquery-1.10.2.min.js</name></action>
29
- <action method="addJs"><script>O2TI/jquery.js</script></action>
30
- <action method="addJs"><script>O2TI/jquery_noconflict.js</script></action>
31
- <action method="addJs"><script>O2TI/moip/bootstrap.min.js</script></action>
32
- <action method="addJs"><script>O2TI/moip/bootstrap-modal.js</script></action>
33
- <action method="addJs"><script>O2TI/novamascara.js</script></action>
34
- <action method="addJs"><script>O2TI/validacao.js</script></action>
35
- <action method="addCss"><stylesheet>O2TI/moip/css/bootstrap.css</stylesheet></action>
36
-
37
- </reference>
38
- <reference name="root">
39
-
40
- <action method="setTemplate"><template>page/1column.phtml</template></action>
41
- </reference>
42
- <reference name="left">
43
-
44
- <block type="O2TI_Moip_Block_Standard_Redirect" name="moip.comum" template="O2TI/moip/redirect.phtml">
45
- </block>
46
- <block type="O2TI_Moip_Block_Standard_Redirect" name="moip.transferencia" template="O2TI/moip/transferencia.phtml">
47
- </block>
48
- <block type="O2TI_Moip_Block_Standard_Redirect" name="moip.boleto" template="O2TI/moip/boleto.phtml">
49
- <block type="O2TI_Moip_Block_Standard_Redirect" name="cartao_form" template="O2TI/moip/layout_boleto.phtml">
50
- <action method="setBlockId"><block_id>cartao_form</block_id></action>
51
- </block>
52
- </block>
53
- <block type="O2TI_Moip_Block_Standard_Redirect" name="moip.cartao" template="O2TI/moip/cartao.phtml">
54
- <block type="O2TI_Moip_Block_Standard_Redirect" name="cartao_form" template="O2TI/moip/refaz.phtml">
55
- <action method="setBlockId"><block_id>cartao_form</block_id></action>
56
- </block>
57
- </block>
58
- </reference>
59
-
60
- </moip_standard_redirect>
61
-
62
- <moip_index_index>
63
- <reference name="root">
64
- <action method="setTemplate"><template>O2TI/moip/emptyupdate.phtml</template></action>
65
- </reference>
66
- </moip_index_index>
67
-
68
- <moip_index_novaforma>
69
- <reference name="root">
70
- <action method="setTemplate"><template>page/1column.phtml</template></action>
71
- </reference>
72
- </moip_index_novaforma>
73
-
74
- <sales_order_view>
75
- <reference name="head">
76
- <action method="addJs"><script>O2TI/jquery.js</script></action>
77
- <action method="addJs"><script>O2TI/jquery_noconflict.js</script></action>
78
- <action method="addJs"><script>O2TI/moip/bootstrap.min.js</script></action>
79
- <action method="addJs"><script>O2TI/moip/bootstrap-modal.js</script></action>
80
- <action method="addJs"><script>O2TI/novamascara.js</script></action>
81
- <action method="addJs"><script>O2TI/validacao.js</script></action>
82
- <action method="addCss"><stylesheet>O2TI/moip/css/bootstrap.css</stylesheet></action>
83
- </reference>
84
- </sales_order_view>
85
-
86
- <moip_info>
87
- <reference name="content">
88
- <action method="setTemplate"><template>O2TI/moip/info.phtml</template></action>
89
- <block type="O2TI_Moip_Block_Info" name="moip_info" template="O2TI/moip/info.phtml">
90
- <block type="O2TI_Moip_Block_Info" name="moip.info" template="O2TI/moip/form.phtml">
91
- <action method="setBlockId"><block_id>refaz_forma</block_id></action>
92
- </block>
93
- </block>
94
- </reference>
95
- </moip_info>
96
- </layout>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/base/default/template/MOIP/customer/address/book.phtml ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2012 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * Temlate for Mage_Customer_Block_Address_Book block
30
+ * @var $test Mage_Customer_Block_Address_Book
31
+ */
32
+ ?>
33
+ <div class="page-title title-buttons">
34
+ <h1><?php echo $this->__('Address Book') ?></h1>
35
+ <button type="button" title="<?php echo $this->__('Add New Address') ?>" class="button" onclick="window.location='<?php echo $this->getAddAddressUrl() ?>';"><span><span><?php echo $this->__('Add New Address') ?></span></span></button>
36
+ </div>
37
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
38
+ <div class="col2-set addresses-list">
39
+ <div class="col-1 addresses-primary">
40
+ <h2><?php echo $this->__('Default Addresses') ?></h2>
41
+ <ol>
42
+ <?php if($_pAddsses = Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling()): ?>
43
+ <li class="item">
44
+ <h3><?php echo $this->__('Default Billing Address') ?></h3>
45
+ <address>
46
+ <?php echo $this->getAddressHtml(Mage::getSingleton('customer/session')->getCustomer()->getAddressById($_pAddsses)) ?>
47
+ </address>
48
+ <p><a href="<?php echo $this->getAddressEditUrl(Mage::getSingleton('customer/session')->getCustomer()->getAddressById($_pAddsses)) ?>"><?php echo $this->__('Change Billing Address') ?></a></p>
49
+ </li>
50
+ <?php else: ?>
51
+ <li class="item">
52
+ <h3><?php echo $this->__('Default Billing Address') ?></h3>
53
+ <?php echo $this->__('You have no default billing address in your address book.') ?>
54
+ </li>
55
+ <?php endif ?>
56
+
57
+ <?php if($_pAddsses = Mage::getSingleton('customer/session')->getCustomer()->getDefaultShipping()): ?>
58
+ <li class="item">
59
+ <h3><?php echo $this->__('Default Shipping Address') ?></h3>
60
+ <address>
61
+ <?php echo $this->getAddressHtml(Mage::getSingleton('customer/session')->getCustomer()->getAddressById($_pAddsses)) ?>
62
+ </address>
63
+ <p><a href="<?php echo $this->getAddressEditUrl(Mage::getSingleton('customer/session')->getCustomer()->getAddressById($_pAddsses)) ?>"><?php echo $this->__('Change Shipping Address') ?></a></p>
64
+ </li>
65
+ <?php else: ?>
66
+ <li class="item empty">
67
+ <h3><?php echo $this->__('Default Shipping Address') ?></h3>
68
+ <p><?php echo $this->__('You have no default shipping address in your address book.') ?></p>
69
+ </li>
70
+ <?php endif ?>
71
+ </ol>
72
+ </div>
73
+ <div class="col-2 addresses-additional">
74
+ <h2><?php echo $this->__('Additional Address Entries') ?></h2>
75
+ <ol>
76
+ <?php if($_pAddsses = $this->getAdditionalAddresses()): ?>
77
+ <?php foreach($_pAddsses as $_address): ?>
78
+ <li class="item">
79
+ <address>
80
+ <?php echo $this->getAddressHtml($_address) ?>
81
+ </address>
82
+ <p><a href="<?php echo $this->getUrl('customer/address/edit', array('id'=>$_address->getId())) ?>"><?php echo $this->__('Edit Address') ?></a> <span class="separator">|</span> <a href="#" class="link-remove" onclick="return deleteAddress('<?php echo $_address->getId() ?>');"><?php echo $this->__('Delete Address') ?></a></p>
83
+ </li>
84
+ <?php endforeach; ?>
85
+ <?php else: ?>
86
+ <li class="item empty">
87
+ <p><?php echo $this->__('You have no additional address entries in your address book.') ?></p>
88
+ </li>
89
+ <?php endif ?>
90
+ </ol>
91
+ </div>
92
+ </div>
93
+ <div class="buttons-set">
94
+ <p class="back-link"><a href="<?php echo $this->escapeUrl($this->getBackUrl()) ?>"><small>&laquo; </small><?php echo $this->__('Back') ?></a></p>
95
+ </div>
96
+ <script type="text/javascript">
97
+ //<![CDATA[
98
+ function deleteAddress(addressId) {
99
+ if(confirm('<?php echo $this->__('Are you sure you want to delete this address?') ?>')) {
100
+ window.location='<?php echo $this->getDeleteUrl() ?>id/'+addressId;
101
+ }
102
+ return false;
103
+ }
104
+ //]]>
105
+ </script>
app/design/frontend/base/default/template/MOIP/customer/address/edit.phtml ADDED
@@ -0,0 +1,219 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2012 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php $urldosite = Mage::getBaseUrl('web', true);?>
28
+ <?php
29
+ /**
30
+ * Edit customer address template
31
+ *
32
+ * @see Mage_Customer_Block_Address_Edit
33
+ */
34
+ ?>
35
+
36
+ <?php if($this->getTitle()): ?>
37
+ <div class="page-title">
38
+ <h1><?php echo $this->getTitle() ?></h1>
39
+ </div>
40
+ <?php endif; ?>
41
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
42
+ <form action="<?php echo $this->getSaveUrl() ?>" method="post" id="form-validate">
43
+ <div class="fieldset">
44
+ <?php echo $this->getBlockHtml('formkey')?>
45
+ <input type="hidden" name="success_url" value="<?php echo $this->getSuccessUrl() ?>" />
46
+ <input type="hidden" name="error_url" value="<?php echo $this->getErrorUrl() ?>" />
47
+ <h2 class="legend"><?php echo $this->__('Contact Information') ?></h2>
48
+ <ul class="form-list">
49
+ <li class="fields">
50
+ <?php echo $this->getNameBlockHtml() ?>
51
+ </li>
52
+ <li class="wide">
53
+
54
+ <li class="fields">
55
+ <div class="field">
56
+ <label for="telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
57
+ <div class="input-box">
58
+ <input type="text" name="telephone" value="<?php echo $this->escapeHtml($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('telephone') ?>" id="telephone" />
59
+ </div>
60
+ </div>
61
+ <div class="field">
62
+ <label for="fax"><?php echo $this->__('Celular') ?></label>
63
+ <div class="input-box">
64
+ <input type="text" name="fax" id="fax" title="<?php echo $this->__('Celular') ?>" value="<?php echo $this->escapeHtml($this->getAddress()->getFax()) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('fax') ?>" />
65
+ </div>
66
+ </div>
67
+ </li>
68
+ </ul>
69
+ </div>
70
+ <div class="fieldset">
71
+ <h2 class="legend"><?php echo $this->__('Address') ?></h2>
72
+ <ul class="form-list">
73
+
74
+ <li class="fields">
75
+ <div class="field">
76
+ <label for="country" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
77
+ <div class="input-box">
78
+ <?php echo $this->getCountryHtmlSelect() ?>
79
+ </div>
80
+ </div>
81
+ <div class="field">
82
+ <label for="zip" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
83
+ <div class="input-box">
84
+ <input type="text" name="postcode" value="<?php echo $this->escapeHtml($this->getAddress()->getPostcode()) ?>" title="<?php echo $this->__('Zip/Postal Code') ?>" id="zip" class="input-text validate-zip-international <?php echo $this->helper('customer/address')->getAttributeValidationClass('postcode') ?>" onchange="javascript: buscarEndereco();" />
85
+ </div>
86
+ </div>
87
+ </li>
88
+
89
+ <li class="wide">
90
+ <label for="street_1" class="required"><em>*</em><?php echo $this->__('Rua') ?></label>
91
+ <div class="input-box">
92
+ <input type="text" name="street[]" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet(1)) ?>" title="<?php echo $this->__('Street Address') ?>" id="street_1" class="input-text required-entry" />
93
+ </div>
94
+ </li>
95
+ <li class="fields">
96
+ <div class="field">
97
+ <label for="street_1" class="required"><em>*</em><?php echo $this->__('Número') ?></label>
98
+ <div class="input-box">
99
+ <input type="text" name="street[]" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet(2)) ?>" title="<?php echo $this->__('Street Address') ?>" id="street_2" class="input-text required-entry" />
100
+ </div>
101
+ </div>
102
+ <div class="field">
103
+ <label for="street_1" class="required"><em>*</em><?php echo $this->__('Complemento') ?></label>
104
+ <div class="input-box">
105
+ <input type="text" name="street[]" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet(3)) ?>" title="<?php echo $this->__('Street Address') ?>" id="street_3" class="input-text required-entry" />
106
+ </div>
107
+ </div>
108
+ </li>
109
+ <li class="fields">
110
+ <div class="field">
111
+ <label for="street_1" class="required"><em>*</em><?php echo $this->__('Bairro') ?></label>
112
+ <div class="input-box">
113
+ <input type="text" name="street[]" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet(4)) ?>" title="<?php echo $this->__('Street Address') ?>" id="street_4" class="input-text required-entry" />
114
+ </div>
115
+ </div>
116
+ <div class="field">
117
+
118
+ </div>
119
+ </li>
120
+
121
+
122
+ <?php if ($this->helper('customer/address')->isVatAttributeVisible()) : ?>
123
+ <li class="wide">
124
+ <label for="vat_id"><?php echo $this->__('VAT Number') ?></label>
125
+ <div class="input-box">
126
+ <input type="text" name="vat_id" value="<?php echo $this->escapeHtml($this->getAddress()->getVatId()) ?>" title="<?php echo $this->__('VAT Number') ?>" id="vat_id" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('vat_id') ?>" />
127
+ </div>
128
+ </li>
129
+ <?php endif; ?>
130
+ <li class="fields">
131
+ <div class="field">
132
+ <label for="city" class="required"><em>*</em><?php echo $this->__('City') ?></label>
133
+ <div class="input-box">
134
+ <input type="text" name="city" value="<?php echo $this->escapeHtml($this->getAddress()->getCity()) ?>" title="<?php echo $this->__('City') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('city') ?>" id="city" />
135
+ </div>
136
+ </div>
137
+ <div class="field">
138
+ <label for="region_id" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
139
+ <div class="input-box">
140
+ <select id="region_id" name="region_id" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
141
+ <option value=""><?php echo $this->__('Please select region, state or province') ?></option>
142
+ </select>
143
+ <script type="text/javascript">
144
+ //<![CDATA[
145
+ $('region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
146
+ //]]>
147
+ </script>
148
+ <input type="text" id="region" name="region" value="<?php echo $this->escapeHtml($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('region') ?>" />
149
+ </div>
150
+ </div>
151
+ </li>
152
+
153
+ <li<?php if($this->canSetAsDefaultBilling()) echo ' class="control"' ?>>
154
+ <?php if($this->isDefaultBilling()): ?>
155
+ <strong><?php echo $this->__('Default Billing Address') ?></strong>
156
+ <?php elseif($this->canSetAsDefaultBilling()): ?>
157
+ <input type="checkbox" id="primary_billing" name="default_billing" value="1" title="<?php echo $this->__('Use as My Default Billing Address') ?>" class="checkbox" /><label for="primary_billing"><?php echo $this->__('Use as my default billing address') ?></label>
158
+ <?php else: ?>
159
+ <input type="hidden" name="default_billing" value="1" />
160
+ <?php endif; ?>
161
+ </li>
162
+ <li<?php if($this->canSetAsDefaultShipping()) echo ' class="control"' ?>>
163
+ <?php if($this->isDefaultShipping()): ?>
164
+ <strong><?php echo $this->__('Default Shipping Address') ?></strong>
165
+ <?php elseif($this->canSetAsDefaultShipping()): ?>
166
+ <input type="checkbox" id="primary_shipping" name="default_shipping" value="1" title="<?php echo $this->__('Use as My Default Shipping Address') ?>" class="checkbox" /><label for="primary_shipping"><?php echo $this->__('Use as my default shipping address') ?></label>
167
+ <?php else: ?>
168
+ <input type="hidden" name="default_shipping" value="1" />
169
+ <?php endif; ?>
170
+ </li>
171
+ </ul>
172
+ </div>
173
+ <div class="buttons-set">
174
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
175
+ <p class="back-link"><a href="<?php echo $this->escapeUrl($this->getBackUrl()) ?>"><small>&laquo; </small><?php echo $this->__('Back') ?></a></p>
176
+ <button type="submit" title="<?php echo $this->__('Save Address') ?>" class="button"><span><span><?php echo $this->__('Save Address') ?></span></span></button>
177
+ </div>
178
+ </form>
179
+ <script type="text/javascript">
180
+ //<![CDATA[
181
+
182
+ var dataForm = new VarienForm('form-validate', true);
183
+ new RegionUpdater('country', 'region', 'region_id', <?php echo $this->helper('directory')->getRegionJson() ?>, undefined, 'zip');
184
+ function buscarEndereco() {
185
+ var campos = {
186
+ postcode: document.getElementById('zip'),
187
+ street_1: document.getElementById('street_1'),
188
+ street_4: document.getElementById('street_4'),
189
+ city: document.getElementById('city'),
190
+ region: document.getElementById('region_id')
191
+ };
192
+ jQuery.ajax({
193
+ type:'GET',
194
+ url: '<?php echo $urldosite?>index.php/Transparente/Standard/buscaCep/meio/cep/cep/' + campos.postcode.value.replace(/\+/g, ''),
195
+
196
+ beforeSend: function(data){
197
+ jQuery(campos.street_1).val("Buscando Endereço");
198
+ jQuery(campos.street_4).val("Buscando Endereço");
199
+ jQuery(campos.city).val("Buscando Endereço");
200
+ },
201
+
202
+ success: function(data){
203
+ jQuery('#loading-mask').fadeOut();
204
+ var addressData = jQuery.parseJSON(data);
205
+ jQuery(campos.street_1).val(addressData.logradouro);
206
+ jQuery(campos.street_4).val(addressData.bairro);
207
+ jQuery(campos.city).val(addressData.cidade);
208
+ jQuery(campos.region).val(addressData.ufid);
209
+ },
210
+ error: function(){
211
+ jQuery(campos.street_1).val("");
212
+ jQuery(campos.street_4).val("");
213
+ jQuery(campos.city).val("");
214
+ jQuery(campos.region).val("");
215
+ },
216
+ });
217
+ };
218
+ //]]>
219
+ </script>
app/design/frontend/base/default/template/MOIP/customer/widget/dob.phtml ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script type="text/javascript">
2
+ <!--
3
+ //Pula de uma Campo a Outro Automatico
4
+ function ProxCamp(fields) {
5
+ fields.value=soNumeros(fields.value)
6
+ if (fields.value.length == fields.maxLength) {
7
+ for (var i = 0; i < fields.form.length; i++) {
8
+ if (fields.form[i] == fields && fields.form[(i + 1)] && fields.form[(i + 1)].type != "hidden") {
9
+ fields.form[(i + 1)].focus();
10
+ break;
11
+ }
12
+ }
13
+ }
14
+ }
15
+ function soNumeros(v){
16
+ return v.replace(/\D/g,"")
17
+ }
18
+ //-->
19
+ </script>
20
+ <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>
21
+ <div class="input-box customer-dob">
22
+ <?php
23
+ $this->setDateInput('d',
24
+ '<div class="dob-day" style="min-width:30px;max-width:30px;float:left; ">
25
+ <input onkeyup="ProxCamp(this);" id="' . $this->getFieldId('day') . '" name="' . $this->getFieldName('day') . '" value="' . $this->getDay() . '" title="' . $this->__('Day') . '" style="max-width:25px;min-width:25px" placeholder="' . $this->__('DD') . '" maxlength="2" class="input-text validate-custom" ' . $this->getFieldParams() . '/>
26
+ </div>'
27
+ );
28
+
29
+ $this->setDateInput('m',
30
+ '<div class="dob-month" style="min-width:30px;max-width:30px; margin-left:5px;float:left;">
31
+ <input onkeyup="ProxCamp(this);" id="' . $this->getFieldId('month') . '" name="' . $this->getFieldName('month') . '" value="' . $this->getMonth() . '" title="' . $this->__('Month') . '" style="max-width:25px;min-width:25px" placeholder="' . $this->__('MM') . '" maxlength="2" class="input-text validate-custom" ' . $this->getFieldParams() . ' />
32
+ </div>'
33
+ );
34
+
35
+ $this->setDateInput('y',
36
+ '<div class="dob-year" style="min-width:40px;max-width:40px; margin-left:5px;float:left;" >
37
+ <input onkeyup="ProxCamp(this);" id="' . $this->getFieldId('year') . '" name="' . $this->getFieldName('year') . '" value="' . $this->getYear() . '" title="' . $this->__('Year') . '" style="max-width:40px;min-width:40px" placeholder="' . $this->__('YYYY') . '" maxlength="4" class="input-text validate-custom" ' . $this->getFieldParams() . ' />
38
+ </div>'
39
+ );
40
+ ?>
41
+ <?php echo $this->getSortedDateInputs() ?>
42
+ <div class="dob-full" style="display:none;">
43
+ <input type="hidden" id="<?php echo $this->getFieldId('dob')?>" name="<?php echo $this->getFieldName('dob')?>" />
44
+ </div>
45
+
46
+ <div class="validation-advice" style="display:none;"></div>
47
+ </div>
48
+ <script type="text/javascript">
49
+ //<![CDATA[
50
+ var customer_dob = new Varien.DOB('.customer-dob', <?php echo $this->isRequired() ? 'true' : 'false' ?>, '<?php echo $this->getDateFormat() ?>');
51
+ //]]>
52
+ </script>
app/design/frontend/base/default/template/{O2TI → MOIP}/customer/widget/taxvat.phtml RENAMED
File without changes
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard.phtml RENAMED
@@ -1,13 +1,64 @@
1
  <?php if(Mage::getStoreConfig('onestepcheckout/config/enabled')):?>
2
- <?php $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
  $data = $standad->getQuote()->getShippingAddress();
7
  $valuegetGrandTotal = $data->getGrandTotal();
8
  ?>
 
9
  <script type="text/javascript">
10
  //<![CDATA[
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  var message_payment = "<?php echo Mage::helper('onestepcheckout')->__('Please select a payment method for your order!');?>";
12
  var message_ship = "<?php echo Mage::helper('onestepcheckout')->__('Please select a shipping method for your order!');?>";
13
  var updatepaymenttypeurl = "<?php echo Mage::getUrl('onestepcheckout/index/updatepaymenttype')?>";
@@ -20,10 +71,22 @@ var urls = "<?php echo Mage::getUrl('onestepcheckout/index/updateshippingmethod'
20
  function update_paymentmethods(){return 1;}
21
  function update_shippingmethods(){return 1;}
22
  function zip_load(){return 1;}
23
- function region_load(){return 0;}
24
- function country_load(){return 1;}
25
  function payment_load(){return 1;}
26
  function shipping_load(){return 1;}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  function has_default_billing()
28
  {
29
  <?php if (Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling()): ?>
@@ -44,6 +107,29 @@ function getval(sel) {
44
  function marcar_isento() {
45
  jQuery("#insestadual").val("Isento");
46
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  function buscarEndereco(whatform) {
48
  if (whatform == "billing") {
49
  var campos = {
@@ -53,9 +139,7 @@ function buscarEndereco(whatform) {
53
  city: document.getElementById('billing:city'),
54
  region: document.getElementById('billing:region_id')
55
  };
56
- if (campos.postcode != "" && campos.postcode != ".") {
57
- updateShippingType(campos.postcode);
58
- }
59
  }
60
  if (whatform == "shipping") {
61
  var campos = {
@@ -65,9 +149,7 @@ function buscarEndereco(whatform) {
65
  city: document.getElementById('shipping:city'),
66
  region: document.getElementById('shipping:region_id'),
67
  };
68
- if (campos.postcode != "" && campos.postcode != ".") {
69
- updateShippingType(campos.postcode);
70
- }
71
  }
72
  if (whatform == "register") {
73
  var campos = {
@@ -78,10 +160,10 @@ function buscarEndereco(whatform) {
78
  region: document.getElementById('region_id')
79
  };
80
  }
81
- <?php $urldosite = Mage::getBaseUrl('web', true);?>
82
  jQuery.ajax({
83
  type:'GET',
84
- url: '<?php echo $urldosite?>index.php/Moip/Standard/buscaCep?meio=cep&cep=' + campos.postcode.value.replace(/\+/g, ''),
85
 
86
  beforeSend: function(data){
87
  jQuery(campos.street_1).val("Buscando Endereço");
@@ -96,17 +178,26 @@ function buscarEndereco(whatform) {
96
  jQuery(campos.street_4).val(addressData.bairro);
97
  jQuery(campos.city).val(addressData.cidade);
98
  jQuery(campos.region).val(addressData.ufid);
 
 
 
 
99
  },
100
  error: function(){
101
  jQuery(campos.street_1).val("");
102
  jQuery(campos.street_4).val("");
103
  jQuery(campos.city).val("");
104
  jQuery(campos.region).val("");
 
 
 
 
105
  },
106
  });
107
  };
108
  function updateShippingMethod() {
109
- if(document.getElementById('shipping:postcode') != "" && document.getElementById('shipping:postcode') != "." ){
 
110
  jQuery.ajax({
111
  url: urls,
112
  type: "POST",
@@ -115,7 +206,7 @@ function updateShippingMethod() {
115
  .done(function(msg) {
116
  msg = msg.replace("[]", "");
117
  jQuery('#checkout-review-load').html(msg);
118
- jQuery('#checkout-payment-method-load').html('<div class="update_payment">Calculando valor do pagamento.<img class="Loading" alt="Loading..." src="<?php echo $this->getSkinUrl("O2TI/onestepcheckout/images/ajax-loader-tr.gif")?>"></div>');
119
  updatePaymentAssociated();
120
  })
121
  .fail(function() {
@@ -128,7 +219,7 @@ function updateShippingMethod() {
128
  };
129
  function updateShippingType(str_value){
130
  jQuery('#message-box').html('');
131
- jQuery('#checkout-shipping-method-load').html('<div class="update_shipping">Calculando Frete.<img class="Loading" alt="Loading..." src="<?php echo $this->getSkinUrl("O2TI/onestepcheckout/images/ajax-loader-tr.gif")?>"></div>');
132
 
133
  <?php if(!Mage::helper('onestepcheckout')->onlyProductDownloadable()):?>
134
  if(update_shippingmethods()){
@@ -138,8 +229,10 @@ function updateShippingType(str_value){
138
  data:jQuery("#onestep_form").serialize(),
139
  success: function(msg){
140
  jQuery('#checkout-shipping-method-load').html(msg);
141
-
142
- }
 
 
143
  });
144
  }else{
145
  updatePaymentAssociated();
@@ -253,6 +346,7 @@ function logined()
253
  }
254
  function hasaddress(){
255
  <?php if(count(Mage::getSingleton('customer/session')->getCustomer()->getAddresses())): ?>
 
256
  return 1;
257
  <?php else:?>
258
  return 0;
@@ -265,24 +359,34 @@ function reDrawOnepage(versao)
265
  jQuery("#payment_collum").css({'width':'100%', 'float':'left','margin-left': '0'});
266
  };
267
  if(versao == 4){
268
- jQuery('body').addClass('o2ti-opc-2columns');
269
- jQuery('.o2ti-opc-2columns .o2ti-osc-checkoutcontainer .o2ti-osc-column-2 .shipping-payment').removeClass('row-fluid');
270
- jQuery('.o2ti-opc-2columns .o2ti-osc-checkoutcontainer .o2ti-osc-column-2 .shipping-payment').removeClass('grid12-12');
271
- jQuery('.o2ti-opc-2columns .o2ti-osc-checkoutcontainer .o2ti-osc-column-2 .review').removeClass('row-fluid');
272
- jQuery('.o2ti-opc-2columns .o2ti-osc-checkoutcontainer .o2ti-osc-column-2 .review').removeClass('grid12-12');
273
- jQuery('.o2ti-opc-2columns .o2ti-osc-checkoutcontainer .o2ti-osc-column-2 .shipping-payment .o2ti-osc-column').removeClass('grid12-6');
274
- jQuery('.o2ti-opc-2columns .o2ti-osc-checkoutcontainer .o2ti-osc-column-2 .shipping-payment .o2ti-osc-column').removeClass('span6');
275
- jQuery('.o2ti-opc-2columns .o2ti-osc-checkoutcontainer .o2ti-osc-column-2 .shipping-payment').addClass('grid12-6');
276
- jQuery('.o2ti-opc-2columns .o2ti-osc-checkoutcontainer .o2ti-osc-column-2 .shipping-payment').addClass('span6');
277
- jQuery('.o2ti-opc-2columns .o2ti-osc-checkoutcontainer .o2ti-osc-column-2 .shipping-payment .o2ti-osc-column').addClass('span12');
278
- jQuery('.o2ti-opc-2columns .o2ti-osc-checkoutcontainer .o2ti-osc-column-2 .shipping-payment .o2ti-osc-column').addClass('grid12-12');
279
- jQuery('.o2ti-opc-2columns .o2ti-osc-checkoutcontainer .o2ti-osc-column-2 .review').addClass('span6');
280
- jQuery('.o2ti-opc-2columns .o2ti-osc-checkoutcontainer .o2ti-osc-column-2 .review').addClass('grid12-6');
281
  };
282
  }
283
  jQuery(function(){
 
 
 
 
 
 
 
 
 
 
284
  jQuery(".customer-dob").css('width','100px');
285
- jQuery(".o2tizip").css('width','100px');
286
  jQuery(".cart .discount").css({'border':'none','background':'none'});
287
  jQuery('[id="billing:postcode"]').addClass('required-entry');
288
  jQuery('[id="shipping:postcode"]').addClass('required-entry');
@@ -307,56 +411,7 @@ function reDrawOnepage(versao)
307
  jQuery('#billing-new-address-form').clearForm();
308
  jQuery('#shipping-new-address-form').clearForm();
309
  }
310
- jQuery("#correio").fancybox({
311
- 'titlePosition': 'inside',
312
- 'openEffect': 'elastic',
313
- 'openSpeed': '150',
314
- 'closeEffect': 'elastic',
315
- 'closeSpeed': '150',
316
- 'width': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxwidth");?>px',
317
- 'height': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxheight"); ?>px',
318
- });
319
- jQuery("#loginbox").fancybox({
320
- 'titlePosition': 'inside',
321
- 'openEffect': 'elastic',
322
- 'openSpeed': '150',
323
- 'closeEffect': 'elastic',
324
- 'closeSpeed': '150',
325
- 'width': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxwidth");?>px',
326
- 'height': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxheight"); ?>px',
327
- });
328
- jQuery("#onestepcheckout-toc-link").fancybox({
329
- 'titlePosition': 'inside',
330
- 'openEffect': 'elastic',
331
- 'openSpeed': '150',
332
- 'closeEffect': 'elastic',
333
- 'closeSpeed': '150',
334
- });
335
- jQuery("#forgotpassword").fancybox({
336
- 'titlePosition': 'inside',
337
- 'openEffect': 'elastic',
338
- 'openSpeed': '150',
339
- 'closeEffect': 'elastic',
340
- 'closeSpeed': '150',
341
- 'width': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxwidth");?>px',
342
- 'height': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxheight")+50; ?>px',
343
- });
344
- jQuery("#backlogin").fancybox({
345
- 'titlePosition': 'inside',
346
- 'openEffect': 'elastic',
347
- 'openSpeed': '150',
348
- 'closeEffect': 'elastic',
349
- 'closeSpeed': '150',
350
- });
351
- jQuery("#store_secure").fancybox({
352
- 'titlePosition': 'inside',
353
- 'openEffect': 'elastic',
354
- 'openSpeed': '150',
355
- 'closeEffect': 'elastic',
356
- 'closeSpeed': '150',
357
- 'width': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxwidth");?>px',
358
- 'height': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxheight")+50; ?>px',
359
- });
360
  <?php
361
  $islogin=0;
362
  if(Mage::getSingleton('customer/session')->isLoggedIn()){
@@ -376,7 +431,7 @@ $taxvat = Mage::getSingleton('customer/session')->getCustomer()->getTaxvat();
376
  jQuery("#billing\\:taxvat").val("<?php echo $taxvat; ?>");
377
  <?php } ?>
378
  var completeajax=1;
379
- if (jQuery('input[name=shipping_method]:checked').val() && shipping_load()) {
380
 
381
  jQuery.ajax({
382
  type: "POST",
@@ -388,20 +443,7 @@ $taxvat = Mage::getSingleton('customer/session')->getCustomer()->getTaxvat();
388
  }
389
  });
390
  }
391
- if (jQuery('input[name=payment\\[method\\]]:checked').val() && payment_load()) {
392
-
393
- value = jQuery('input[name=payment\\[method\\]]:checked').val();
394
- jQuery.ajax({
395
- type: "POST",
396
- url: updatepaymentmethodurl,
397
- data: "payment%5Bmethod%5D=" + value,
398
- success: function(msg) {
399
- if (msg.search("<script") != 0) {
400
- jQuery('#checkout-review-load').html(msg);
401
- } else jQuery('#checkout-review-load').append(msg);
402
- }
403
- });
404
- }
405
 
406
  jQuery('.btn-checkout').bind("click",function(e){
407
 
@@ -475,7 +517,7 @@ $taxvat = Mage::getSingleton('customer/session')->getCustomer()->getTaxvat();
475
  <script type="text/javascript">
476
  //<![CDATA[
477
  function removeProductId(product_id){
478
- if(confirm('<?php echo $this->__('Tem certeza que deseja remover o produto?')?>')){
479
  removeProduct(product_id);
480
  }
481
  }
@@ -507,42 +549,35 @@ function updateEmailmsg(val){
507
  }
508
  //]]>
509
  </script>
510
-
511
- <?php if(Mage::getStoreConfig('onestepcheckout/layout/style_cor')!= ""):
512
- $color = "#".Mage::getStoreConfig('onestepcheckout/layout/style_cor');
513
- $botao_color = "#".Mage::getStoreConfig('onestepcheckout/layout/botao_cor');
514
- ?>
515
  <style type="text/css">
516
- #loginbox{background:<?php echo $botao_color;?>;padding: 10px;color:#fff;text-decoration: none;border-radius: 5px;}
517
- div.o2ti-osc-block-title{border-bottom:4px solid <?php echo $color;?>;}
518
- .onestepcheckout-numbers{background:<?php echo $color;?>;}
519
- p.o2ti-osc-block-title{color:<?php echo $color;?>;}
520
- .o2ti-osc-threecolumns button.button span, .o2ti-osc-threecolumns button.button span span, button.button.btn-checkout, .cart .buttons-set .button{background:<?php echo $botao_color?>; border: 1px solid <?php echo $botao_color;?>;}
521
- .onestepcheckout-numbers { border-radius: 6px 6px 0 0;background-repeat:no-repeat;float: left;height: 35px;margin-right: 4px;width: 40px;background-position: 14px 6px;font-weight:normal; padding-left:10px; padding-top:3px;}
522
- .onestepcheckout-numbers-1{background-image:url("<?php echo $this->getSkinUrl('O2TI/onestepcheckout/images/01.png') ?>");}
523
- .onestepcheckout-numbers-2{background-image:url("<?php echo $this->getSkinUrl('O2TI/onestepcheckout/images/02.png') ?>");}
524
- .onestepcheckout-numbers-3{background-image:url("<?php echo $this->getSkinUrl('O2TI/onestepcheckout/images/03.png') ?>");}
525
- .onestepcheckout-numbers-4{background-image:url("<?php echo $this->getSkinUrl('O2TI/onestepcheckout/images/04.png') ?>");}
526
- .onestepcheckout-numbers-5{background-image:url("<?php echo $this->getSkinUrl('O2TI/onestepcheckout/images/05.png') ?>");}
527
- .onestepcheckout-numbers-6{background-image:url("<?php echo $this->getSkinUrl('O2TI/onestepcheckout/images/bkg-step-review.png') ?>");}
528
- .cart .discount h2{color: <?php echo $color;?>;}
529
- .o2ti-osc-title-login{background: <?php echo $color;?>;}
530
- div#fancybox-wrap .col2-set .col-2 #login-form fieldset .col-2 .buttons-set button span,
531
- div#fancybox-wrap #form-validate div.buttons-set #btforgotpass span{background:<?php echo $color;?>; border: 1px solid <?php echo $color;?>;}
532
- .o2ti-osc-fancybox-wrap button.button span, .o2ti-osc-fancybox-wrap button.button span span{background:<?php echo $color;?>; border: 1px solid <?php echo $color;?>;}
533
  </style>
534
  <?php endif;?>
535
- <h1 class="o2ti-osc-page-tittle"><?php echo $this->__(Mage::getStoreConfig('onestepcheckout/layout/page_titulo'))?></h1>
536
- <p class="o2ti-osc-page-content"><?php echo $this->__(Mage::getStoreConfig('onestepcheckout/layout/page_conteudo'))?></p>
537
- <div class="o2ti-osc-threecolumns o2ti-osc-checkoutcontainer o2ti-osc-skin-generic row-fluid grid12-12">
 
 
538
  <form id="onestep_form" action="<?php echo $this->getUrl('onestepcheckout/index/updateordermethod') ?>" method="POST">
539
- <div class="o2ti-osc-column">
540
- <div class="o2ti-osc-column-left span4 grid12-4 o2ti-osc-block">
541
- <div class="o2ti-osc-block-title">
542
  <div class="onestepcheckout-numbers onestepcheckout-numbers-1"></div>
543
  <h3><?php echo $this->__('Billing address');?></h3>
544
  </div>
545
- <div class="o2ti-osc-block-content">
546
  <div>
547
  <?php if(!$islogin):?>
548
  <?php if(Mage::getStoreConfig('onestepcheckout/layout/enable_quicklogin')):?>
@@ -550,16 +585,23 @@ function updateEmailmsg(val){
550
  <?php endif?>
551
  <?php endif?>
552
  <?php echo $this->getChildHtml('billing');?>
 
 
 
 
 
 
 
553
  </div>
554
  </div>
555
  <?php if(!Mage::helper('onestepcheckout')->onlyProductDownloadable()): ?>
556
  <?php if(Mage::getStoreConfig('onestepcheckout/config/allowshippingotheraddress')):?>
557
  <div style="display:none;" id="shipping_show">
558
- <div class="o2ti-osc-block-title">
559
  <div class="onestepcheckout-numbers onestepcheckout-numbers-2" ></div>
560
  <h3><?php echo $this->__('Shipping address');?></h3>
561
  </div>
562
- <div class="o2ti-osc-block-content">
563
  <div>
564
  <?php echo $this->getChildHtml('shipping');?>
565
  </div>
@@ -569,38 +611,37 @@ function updateEmailmsg(val){
569
  <?php endif;?>
570
  </div>
571
  </div>
572
- <div class="o2ti-osc-column-2 span8 grid12-8">
573
- <div id="o2ti-osc-column-container row-fluid grid12-12">
574
- <div class="row-fluid grid12-12 shipping-payment">
575
  <?php if(!Mage::helper('onestepcheckout')->onlyProductDownloadable()):?>
576
- <div class="o2ti-osc-column o2ti-osc-column-middle span6 grid12-6" id="shipping_collum">
577
- <div class="o2ti-osc-block" >
578
- <div class="o2ti-osc-block-title">
579
- <div class="onestepcheckout-numbers onestepcheckout-numbers-2" id="o2ti-osc-p2"></div>
580
  <h3> <?php echo $this->__('Shipping method');?> </h3>
581
  </div>
582
  <?php echo $this->getChildHtml('shipping_method');?>
 
 
 
583
  </div>
584
  </div>
585
  <?php endif?>
586
- <div class="o2ti-osc-column o2ti-osc-column-right span6 grid12-6" id="payment_collum">
587
- <div class="o2ti-osc-block">
588
- <div class="o2ti-osc-block-title">
589
  <div <?php
590
  if(Mage::helper('onestepcheckout')->onlyProductDownloadable()){
591
- echo "class='onestepcheckout-numbers onestepcheckout-numbers-2' id='o2ti-osc-p2'";
592
  }else{
593
- if(Mage::getStoreConfig("onestepcheckout/deliverydate/allow_options")){
594
- echo "class='onestepcheckout-numbers onestepcheckout-numbers-4' id='o2ti-osc-p4'";
595
- }else{
596
- echo "class='onestepcheckout-numbers onestepcheckout-numbers-3' id='o2ti-osc-p3'";
597
- }
598
  }
599
  ?>>
600
  </div>
601
  <h3><?php echo $this->__('Payment method');?></h3>
602
  </div>
603
- <div class="o2ti-osc-block-content">
604
  <?php echo $this->getChildHtml('payment');?>
605
  </div>
606
  </div>
@@ -608,8 +649,8 @@ function updateEmailmsg(val){
608
  </div>
609
 
610
  <div class="review row-fluid grid12-12" id="review_collum">
611
- <div class="o2ti-osc-block span12">
612
- <div class="o2ti-osc-block-title">
613
  <div class="onestepcheckout-numbers onestepcheckout-numbers-6"></div>
614
  <h3><?php echo $this->__('Review your order');?></h3>
615
  </div>
@@ -625,64 +666,74 @@ function updateEmailmsg(val){
625
  </form>
626
 
627
  <div style="display: none;">
628
- <div id="inlinecorreio" style="width:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxwidth')?>px;height:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')?>px;overflow:auto;">
629
- <div class="o2ti-osc-title-login">
630
  <h1>Busque seu CEP</h1>
631
  </div>
632
- <?php $urldosite = Mage::getBaseUrl('web', true);?>
633
- <form action="<?php echo $urldosite?>/Moip/Standard/buscaCep" id="searchForm" style="text-align:left;padding:10px">
634
- <p style="text-align:left;padding:10px">Digite o endereço a baixo para pesquisar o seu Cep.</p>
635
- <input type="text" name="s" placeholder="Digite o endereço..." />
636
- <input type="submit" value="Buscar" style="background:<?php echo $color;?>;border: 1px solid #337BAA;color: white;border-radius: 2px;height: 19px;padding: 0 8px;cursor:pointer" />
637
- </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
638
  <div style="left: 0px;height:100%; display: none; top:0px;" id="loading-mask2">
639
- <p id="loading_mask_loader" class="loader"><img alt="Loading..." src="<?php echo $this->getSkinUrl('O2TI/onestepcheckout/images/ajax-loader-tr.gif')?>"><br>Obtendo dados, por favor aguarde...</p>
640
  </div>
641
- <div id="resultado"></div>
642
- <script type="text/javascript">
643
- //<![CDATA[
644
- jQuery("#searchForm").submit(function(event) {
645
- jQuery('#loading-mask2').show();
646
- event.preventDefault();
647
- var $form = jQuery(this),
648
- term = $form.find('input[name="s"]').val(),
649
- url = $form.attr('action');
650
- jQuery.get(url, {
651
- s: term,
652
- meio: 'buscaend'
653
- }, function(data) {
654
- var content = data;
655
- jQuery('#loading-mask2').hide();
656
- jQuery("#inlinecorreio").css("height", "400px");
657
- jQuery("#resultado").empty().append(content);
658
- });
659
- });
660
- //]]>
661
  </script>
662
  </div>
663
  <div id="inline1" style="width:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxwidth')?>px;height:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')?>px;overflow:auto;">
664
- <div class="o2ti-osc-ct-term" style="height: <?php echo (Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')-30).'px';?>">
665
  <?php echo $this->getChildHtml('login');?>
666
  </div>
667
  </div>
668
  <div id="inline3" style="width:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxwidth')?>px;height:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')+40?>px;overflow:auto;">
669
- <div class="o2ti-osc-ct-term" style="height: <?php echo (Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')+40).'px';?>">
670
  <?php echo $this->getChildHtml('forgotpassword');?>
671
  </div>
672
  </div>
673
  <div id="inline2" style="width:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxwidth')?>px;height:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')?>px;overflow:auto;">
674
- <div class="o2ti-osc-title-login">
675
  <h1><?php echo $this->__('Terms and Conditions');?> </h1>
676
  </div>
677
- <div class="o2ti-osc-ct-term" style="height: <?php echo (Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')-90).'px';?>">
678
  <?php echo $this->__(Mage::getStoreConfig('onestepcheckout/termcondition/content_options'));?>
679
  </div>
680
  </div>
681
  <div id="store_secure_content" style="width:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxwidth')?>px;height:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')?>px;overflow:auto;">
682
- <div class="o2ti-osc-title-login">
683
  <h1><?php echo $this->__('Loja Segura');?> </h1>
684
  </div>
685
- <div class="o2ti-osc-ct-term" style="height: <?php echo (Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')-90).'px';?>">
686
  <?php echo $this->__(Mage::getStoreConfig('onestepcheckout/layout/secure'));?>
687
  </div>
688
  </div>
@@ -691,6 +742,6 @@ function updateEmailmsg(val){
691
  </div>
692
  <div class="clear_both">&nbsp;</div>
693
  <div style="left: 0px; min-height: 710px; display: none; top:0px;" id="loading-mask">
694
- <p id="loading_mask_loader" class="loader"><img alt="Loading..." src="<?php echo $this->getSkinUrl('O2TI/onestepcheckout/images/ajax-loader-tr.gif')?>"><br>Atualizando dados, por favor aguarde...</p>
695
  </div>
696
- <?php endif?>
1
  <?php if(Mage::getStoreConfig('onestepcheckout/config/enabled')):?>
2
+ <?php $standad = Mage::getSingleton('transparente/standard');
3
+ $api = Mage::getSingleton('transparente/api');
4
+ $api->setContaTransparente($standad->getConfigData('conta_transparente'));
5
  $api->setAmbiente($standad->getConfigData('ambiente'));
6
  $data = $standad->getQuote()->getShippingAddress();
7
  $valuegetGrandTotal = $data->getGrandTotal();
8
  ?>
9
+ <?php $urldosite = Mage::getBaseUrl('web', true);?>
10
  <script type="text/javascript">
11
  //<![CDATA[
12
+ jQuery("#correio").fancybox({
13
+ 'titlePosition': 'inside',
14
+ 'openEffect': 'elastic',
15
+ 'openSpeed': '150',
16
+ 'closeEffect': 'elastic',
17
+ 'closeSpeed': '150',
18
+ 'width': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxwidth");?>px',
19
+ 'height': '280px',
20
+ });
21
+ jQuery("#loginbox").fancybox({
22
+ 'titlePosition': 'inside',
23
+ 'openEffect': 'elastic',
24
+ 'openSpeed': '150',
25
+ 'closeEffect': 'elastic',
26
+ 'closeSpeed': '150',
27
+ 'width': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxwidth");?>px',
28
+ 'height': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxheight"); ?>px',
29
+ });
30
+ jQuery("#onestepcheckout-toc-link").fancybox({
31
+ 'titlePosition': 'inside',
32
+ 'openEffect': 'elastic',
33
+ 'openSpeed': '150',
34
+ 'closeEffect': 'elastic',
35
+ 'closeSpeed': '150',
36
+ });
37
+ jQuery("#forgotpassword").fancybox({
38
+ 'titlePosition': 'inside',
39
+ 'openEffect': 'elastic',
40
+ 'openSpeed': '150',
41
+ 'closeEffect': 'elastic',
42
+ 'closeSpeed': '150',
43
+ 'width': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxwidth");?>px',
44
+ 'height': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxheight")+50; ?>px',
45
+ });
46
+ jQuery("#backlogin").fancybox({
47
+ 'titlePosition': 'inside',
48
+ 'openEffect': 'elastic',
49
+ 'openSpeed': '150',
50
+ 'closeEffect': 'elastic',
51
+ 'closeSpeed': '150',
52
+ });
53
+ jQuery("#store_secure").fancybox({
54
+ 'titlePosition': 'inside',
55
+ 'openEffect': 'elastic',
56
+ 'openSpeed': '150',
57
+ 'closeEffect': 'elastic',
58
+ 'closeSpeed': '150',
59
+ 'width': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxwidth");?>px',
60
+ 'height': '<?php echo Mage::getStoreConfig("onestepcheckout/termcondition/boxheight")+50; ?>px',
61
+ });
62
  var message_payment = "<?php echo Mage::helper('onestepcheckout')->__('Please select a payment method for your order!');?>";
63
  var message_ship = "<?php echo Mage::helper('onestepcheckout')->__('Please select a shipping method for your order!');?>";
64
  var updatepaymenttypeurl = "<?php echo Mage::getUrl('onestepcheckout/index/updatepaymenttype')?>";
71
  function update_paymentmethods(){return 1;}
72
  function update_shippingmethods(){return 1;}
73
  function zip_load(){return 1;}
 
 
74
  function payment_load(){return 1;}
75
  function shipping_load(){return 1;}
76
+ function ProxCamp(fields) {
77
+ fields.value=soNumeros(fields.value)
78
+ if (fields.value.length == fields.maxLength) {
79
+ for (var i = 0; i < fields.form.length; i++) {
80
+ if (fields.form[i] == fields && fields.form[(i + 1)] && fields.form[(i + 1)].type != "hidden") {
81
+ fields.form[(i + 1)].focus();
82
+ break;
83
+ }
84
+ }
85
+ }
86
+ }
87
+ function soNumeros(v){
88
+ return v.replace(/\D/g,"")
89
+ }
90
  function has_default_billing()
91
  {
92
  <?php if (Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling()): ?>
107
  function marcar_isento() {
108
  jQuery("#insestadual").val("Isento");
109
  }
110
+ function seleciona_cep_busca(valor) {
111
+ var cep_buscado = jQuery('.'+valor.className).val();
112
+ jQuery("#billing\\:postcode").val(cep_buscado);
113
+ buscarEndereco('billing');
114
+ jQuery.fancybox.close();
115
+ jQuery("#billing\\:street2").focus();
116
+ }
117
+ function busca_endereco_correios(){
118
+ var url = '<?php echo $urldosite?>index.php/Transparente/Standard/buscaCep/meio/buscaend/busca_end/' + jQuery("#endereco_de_consulta").val().replace(/[^a-zA-ZãéíóúãõàèìòùÀÈÌÙÒÃÂâÁÉÍÓÚ ]/g, '') +'/busca_uf/'+jQuery("#busca_uf").val();
119
+ jQuery.getJSON(url, function (json) {
120
+ var qty_consulta = json.consulta.length;
121
+ if(qty_consulta > 1){
122
+ jQuery("#searchForm").hide();
123
+ jQuery("#buscar_nos_correios").show();
124
+ }
125
+ jQuery(".resultados_get_busca").html();
126
+ jQuery.each(json.consulta, function (i, fb) {
127
+ jQuery(".resultados_get_busca").append('<label><div class="seletec_result_end"><input type="radio" value="'+fb.retorno.cep+'" class="cep_encontrado_'+fb.retorno.cep+'" onclick="javascript:seleciona_cep_busca(this);"></div><div class="dados_result_end"><span class="cidade">'+fb.retorno.cidade + ' - ' + fb.retorno.uf+'</span><span class="cep">'+fb.retorno.cep+'</span><span class="rua">'+fb.retorno.rua+'</span></div></label>');
128
+ });
129
+
130
+ });
131
+ };
132
+
133
  function buscarEndereco(whatform) {
134
  if (whatform == "billing") {
135
  var campos = {
139
  city: document.getElementById('billing:city'),
140
  region: document.getElementById('billing:region_id')
141
  };
142
+ updateShippingType(document.getElementById('billing:postcode'));
 
 
143
  }
144
  if (whatform == "shipping") {
145
  var campos = {
149
  city: document.getElementById('shipping:city'),
150
  region: document.getElementById('shipping:region_id'),
151
  };
152
+
 
 
153
  }
154
  if (whatform == "register") {
155
  var campos = {
160
  region: document.getElementById('region_id')
161
  };
162
  }
163
+
164
  jQuery.ajax({
165
  type:'GET',
166
+ url: '<?php echo $urldosite?>index.php/Transparente/Standard/buscaCep/meio/cep/cep/' + campos.postcode.value.replace(/\+/g, ''),
167
 
168
  beforeSend: function(data){
169
  jQuery(campos.street_1).val("Buscando Endereço");
178
  jQuery(campos.street_4).val(addressData.bairro);
179
  jQuery(campos.city).val(addressData.cidade);
180
  jQuery(campos.region).val(addressData.ufid);
181
+ if (campos.postcode != "" && campos.postcode != ".")
182
+ {
183
+ updateShippingType(campos.postcode);
184
+ }
185
  },
186
  error: function(){
187
  jQuery(campos.street_1).val("");
188
  jQuery(campos.street_4).val("");
189
  jQuery(campos.city).val("");
190
  jQuery(campos.region).val("");
191
+ if (campos.postcode != "" && campos.postcode != ".")
192
+ {
193
+ updateShippingType(campos.postcode);
194
+ }
195
  },
196
  });
197
  };
198
  function updateShippingMethod() {
199
+ if(document.getElementById('billing:postcode') != "" && document.getElementById('billing:postcode') != "." ){
200
+ jQuery('#checkout-payment-method-load').html('<div class="update_payment">Calculando valor do pagamento.<img class="Loading" alt="Loading..." src="<?php echo $this->getSkinUrl("MOIP/onestepcheckout/images/ajax-loader-tr.gif")?>"></div>');
201
  jQuery.ajax({
202
  url: urls,
203
  type: "POST",
206
  .done(function(msg) {
207
  msg = msg.replace("[]", "");
208
  jQuery('#checkout-review-load').html(msg);
209
+ jQuery('#checkout-payment-method-load').html('<div class="update_payment">Calculando valor do pagamento.<img class="Loading" alt="Loading..." src="<?php echo $this->getSkinUrl("MOIP/onestepcheckout/images/ajax-loader-tr.gif")?>"></div>');
210
  updatePaymentAssociated();
211
  })
212
  .fail(function() {
219
  };
220
  function updateShippingType(str_value){
221
  jQuery('#message-box').html('');
222
+ jQuery('#checkout-shipping-method-load').html('<div class="update_shipping">Calculando Frete.<img class="Loading" alt="Loading..." src="<?php echo $this->getSkinUrl("MOIP/onestepcheckout/images/ajax-loader-tr.gif")?>"></div>');
223
 
224
  <?php if(!Mage::helper('onestepcheckout')->onlyProductDownloadable()):?>
225
  if(update_shippingmethods()){
229
  data:jQuery("#onestep_form").serialize(),
230
  success: function(msg){
231
  jQuery('#checkout-shipping-method-load').html(msg);
232
+ },
233
+ error: function(){
234
+ alert("Problemas no Serviço de cotação, entre em contato com a loja.");
235
+ },
236
  });
237
  }else{
238
  updatePaymentAssociated();
346
  }
347
  function hasaddress(){
348
  <?php if(count(Mage::getSingleton('customer/session')->getCustomer()->getAddresses())): ?>
349
+ updateShippingType(document.getElementById('billing:postcode'));
350
  return 1;
351
  <?php else:?>
352
  return 0;
359
  jQuery("#payment_collum").css({'width':'100%', 'float':'left','margin-left': '0'});
360
  };
361
  if(versao == 4){
362
+ jQuery('body').addClass('moip-opc-2columns');
363
+ jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment').removeClass('row-fluid');
364
+ jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment').removeClass('grid12-12');
365
+ jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review').removeClass('row-fluid');
366
+ jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review').removeClass('grid12-12');
367
+ jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment .moip-osc-column').removeClass('grid12-6');
368
+ jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment .moip-osc-column').removeClass('span6');
369
+ jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment').addClass('grid12-6');
370
+ jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment').addClass('span6');
371
+ jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment .moip-osc-column').addClass('span12');
372
+ jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment .moip-osc-column').addClass('grid12-12');
373
+ jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review').addClass('span6');
374
+ jQuery('.moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review').addClass('grid12-6');
375
  };
376
  }
377
  jQuery(function(){
378
+ jQuery("#billing\\:day").attr('maxlength', '2');
379
+ jQuery("#billing\\:day").attr('onkeyup', 'ProxCamp(this)');
380
+ jQuery("#billing\\:month").attr('maxlength', '2');
381
+ jQuery("#billing\\:month").attr('onkeyup', 'ProxCamp(this)');
382
+ jQuery("#billing\\:year").attr('maxlength', '4');
383
+ jQuery("#billing\\:year").attr('onkeyup', 'ProxCamp(this)');
384
+
385
+ if (!logined()) {
386
+ jQuery('#allow-gift-message-container').clearForm();
387
+ }
388
  jQuery(".customer-dob").css('width','100px');
389
+ jQuery(".moipzip").css('width','100px');
390
  jQuery(".cart .discount").css({'border':'none','background':'none'});
391
  jQuery('[id="billing:postcode"]').addClass('required-entry');
392
  jQuery('[id="shipping:postcode"]').addClass('required-entry');
411
  jQuery('#billing-new-address-form').clearForm();
412
  jQuery('#shipping-new-address-form').clearForm();
413
  }
414
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
415
  <?php
416
  $islogin=0;
417
  if(Mage::getSingleton('customer/session')->isLoggedIn()){
431
  jQuery("#billing\\:taxvat").val("<?php echo $taxvat; ?>");
432
  <?php } ?>
433
  var completeajax=1;
434
+ if (jQuery('input[name=shipping_method]:checked').val()) {
435
 
436
  jQuery.ajax({
437
  type: "POST",
443
  }
444
  });
445
  }
446
+
 
 
 
 
 
 
 
 
 
 
 
 
 
447
 
448
  jQuery('.btn-checkout').bind("click",function(e){
449
 
517
  <script type="text/javascript">
518
  //<![CDATA[
519
  function removeProductId(product_id){
520
+ if(confirm("<?php echo $this->__('Tem certeza que deseja remover o produto?')?>")){
521
  removeProduct(product_id);
522
  }
523
  }
549
  }
550
  //]]>
551
  </script>
552
+ <?php if(Mage::getStoreConfig('onestepcheckout/layout/style_cor')!= ""):
553
+ $color = "#".Mage::getStoreConfig('onestepcheckout/layout/style_cor');
554
+ $botao_color = "#".Mage::getStoreConfig('onestepcheckout/layout/botao_cor');
555
+ ?>
 
556
  <style type="text/css">
557
+ #loginbox{background:<?php echo $botao_color;?>;padding: 10px;color:#fff;text-decoration: none;border-radius: 5px;}
558
+ div.moip-osc-block-title{border-bottom:4px solid <?php echo $color;?>;}
559
+ .onestepcheckout-numbers{background:<?php echo $color;?>;}
560
+ p.moip-osc-block-title{color:<?php echo $color;?>;}
561
+ .moip-osc-block-title>h3 {color: <?php echo $color;?>;}
562
+
563
+ <?php if(!Mage::getStoreConfig('onestepcheckout/layout/site_response')): ?>
564
+ .moip-osc-column.span4.grid12-4 {width: 33%;}
565
+ <?php endif ?>
 
 
 
 
 
 
 
 
566
  </style>
567
  <?php endif;?>
568
+ <div class=" row-fluid grid12-12">
569
+ <h1 class="moip-osc-page-tittle"><?php echo $this->__(Mage::getStoreConfig('onestepcheckout/layout/page_titulo'))?></h1>
570
+ <p class="moip-osc-page-content"><?php echo $this->__(Mage::getStoreConfig('onestepcheckout/layout/page_conteudo'))?></p>
571
+ </div>
572
+ <div class="moip-osc-threecolumns moip-osc-checkoutcontainer moip-osc-skin-generic">
573
  <form id="onestep_form" action="<?php echo $this->getUrl('onestepcheckout/index/updateordermethod') ?>" method="POST">
574
+ <div class="moip-osc-column span4 grid12-4">
575
+ <div class="moip-osc-column-left moip-osc-block">
576
+ <div class="moip-osc-block-title">
577
  <div class="onestepcheckout-numbers onestepcheckout-numbers-1"></div>
578
  <h3><?php echo $this->__('Billing address');?></h3>
579
  </div>
580
+ <div class="moip-osc-block-content">
581
  <div>
582
  <?php if(!$islogin):?>
583
  <?php if(Mage::getStoreConfig('onestepcheckout/layout/enable_quicklogin')):?>
585
  <?php endif?>
586
  <?php endif?>
587
  <?php echo $this->getChildHtml('billing');?>
588
+ <?php if(Mage::helper('onestepcheckout')->showCouponCode()):?>
589
+ <div class="tab-coupon">
590
+ <div id="tab-coupon">
591
+ <?php echo $this->getChildHtml('coupon');?>
592
+ </div>
593
+ </div>
594
+ <?php endif;?>
595
  </div>
596
  </div>
597
  <?php if(!Mage::helper('onestepcheckout')->onlyProductDownloadable()): ?>
598
  <?php if(Mage::getStoreConfig('onestepcheckout/config/allowshippingotheraddress')):?>
599
  <div style="display:none;" id="shipping_show">
600
+ <div class="moip-osc-block-title">
601
  <div class="onestepcheckout-numbers onestepcheckout-numbers-2" ></div>
602
  <h3><?php echo $this->__('Shipping address');?></h3>
603
  </div>
604
+ <div class="moip-osc-block-content">
605
  <div>
606
  <?php echo $this->getChildHtml('shipping');?>
607
  </div>
611
  <?php endif;?>
612
  </div>
613
  </div>
614
+ <div class="moip-osc-column-2 span8 grid12-8">
615
+ <div id="moip-osc-column-container row-fluid grid12-12">
616
+ <div class="shipping-payment">
617
  <?php if(!Mage::helper('onestepcheckout')->onlyProductDownloadable()):?>
618
+ <div class="moip-osc-column moip-osc-column-middle ow-fluid grid12-6" id="shipping_collum">
619
+ <div class="moip-osc-block" >
620
+ <div class="moip-osc-block-title">
621
+ <div class="onestepcheckout-numbers onestepcheckout-numbers-2" id="moip-osc-p2"></div>
622
  <h3> <?php echo $this->__('Shipping method');?> </h3>
623
  </div>
624
  <?php echo $this->getChildHtml('shipping_method');?>
625
+ <?php if(Mage::helper('onestepcheckout')->enableGiftMessage()):?>
626
+ <?php echo $this->getChildHtml('additional') ?>
627
+ <?php endif; ?>
628
  </div>
629
  </div>
630
  <?php endif?>
631
+ <div class="moip-osc-column moip-osc-column-right span6 grid12-6" id="payment_collum">
632
+ <div class="moip-osc-block">
633
+ <div class="moip-osc-block-title">
634
  <div <?php
635
  if(Mage::helper('onestepcheckout')->onlyProductDownloadable()){
636
+ echo "class='onestepcheckout-numbers onestepcheckout-numbers-2' id='moip-osc-p2'";
637
  }else{
638
+ echo "class='onestepcheckout-numbers onestepcheckout-numbers-3' id='moip-osc-p3'";
 
 
 
 
639
  }
640
  ?>>
641
  </div>
642
  <h3><?php echo $this->__('Payment method');?></h3>
643
  </div>
644
+ <div class="moip-osc-block-content">
645
  <?php echo $this->getChildHtml('payment');?>
646
  </div>
647
  </div>
649
  </div>
650
 
651
  <div class="review row-fluid grid12-12" id="review_collum">
652
+ <div class="moip-osc-block span12">
653
+ <div class="moip-osc-block-title">
654
  <div class="onestepcheckout-numbers onestepcheckout-numbers-6"></div>
655
  <h3><?php echo $this->__('Review your order');?></h3>
656
  </div>
666
  </form>
667
 
668
  <div style="display: none;">
669
+ <div id="inlinecorreio" style="width:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxwidth')?>px;height:280px>px;overflow:auto;">
670
+ <div class="moip-osc-title-login">
671
  <h1>Busque seu CEP</h1>
672
  </div>
673
+
674
+
675
+ <div id="searchForm" >
676
+
677
+ <ul class="form-list" style="width:260px;">
678
+
679
+ <li class="wide">
680
+ <label class="required"><em>*</em>Rua, Avenida, travessa...</label>
681
+ <div class="input-box">
682
+ <input type="text" name="endereco" value="" id="endereco_de_consulta" class="input-text"/>
683
+ </div>
684
+ </li>
685
+ <li class="field">
686
+ <label class="required"><em>*</em>Estado</label>
687
+ <div class="input-box">
688
+ <input type="text" name="uf_busca" value="" maxlength="2" id="busca_uf" class="input-text"/>
689
+ </div>
690
+
691
+ </li>
692
+ <button type="button" title="Buscar endereço" class="button btn-inline" id="correios_end" onclick="javascript:busca_endereco_correios();" />
693
+ <span><span>Buscar Endereço</span></span>
694
+ </ul>
695
+
696
+ </button>
697
+ </div>
698
+ <div id="resultado">
699
+ <ul class="resultados_get_busca">
700
+
701
+ </ul>
702
+ </div>
703
+ <div id="buscar_nos_correios">
704
+ <h4>Não achou o seu endereço?</h4>
705
+ <div><a href="http://www.buscacep.correios.com.br/servicos/dnec/index.do" target="_blank">Busque direto nos Correios.</a></div>
706
+ </div>
707
  <div style="left: 0px;height:100%; display: none; top:0px;" id="loading-mask2">
708
+ <p id="loading_mask_loader" class="loader"><img alt="Loading..." src="<?php echo $this->getSkinUrl('MOIP/onestepcheckout/images/ajax-loader-tr.gif')?>"><br>Obtendo dados, por favor aguarde...</p>
709
  </div>
710
+
711
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
712
  </script>
713
  </div>
714
  <div id="inline1" style="width:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxwidth')?>px;height:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')?>px;overflow:auto;">
715
+ <div class="moip-osc-ct-term" style="height: <?php echo (Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')-30).'px';?>">
716
  <?php echo $this->getChildHtml('login');?>
717
  </div>
718
  </div>
719
  <div id="inline3" style="width:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxwidth')?>px;height:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')+40?>px;overflow:auto;">
720
+ <div class="moip-osc-ct-term" style="height: <?php echo (Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')+40).'px';?>">
721
  <?php echo $this->getChildHtml('forgotpassword');?>
722
  </div>
723
  </div>
724
  <div id="inline2" style="width:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxwidth')?>px;height:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')?>px;overflow:auto;">
725
+ <div class="moip-osc-title-login">
726
  <h1><?php echo $this->__('Terms and Conditions');?> </h1>
727
  </div>
728
+ <div class="moip-osc-ct-term" style="height: <?php echo (Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')-90).'px';?>">
729
  <?php echo $this->__(Mage::getStoreConfig('onestepcheckout/termcondition/content_options'));?>
730
  </div>
731
  </div>
732
  <div id="store_secure_content" style="width:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxwidth')?>px;height:<?php echo Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')?>px;overflow:auto;">
733
+ <div class="moip-osc-title-login">
734
  <h1><?php echo $this->__('Loja Segura');?> </h1>
735
  </div>
736
+ <div class="moip-osc-ct-term" style="height: <?php echo (Mage::getStoreConfig('onestepcheckout/termcondition/boxheight')-90).'px';?>">
737
  <?php echo $this->__(Mage::getStoreConfig('onestepcheckout/layout/secure'));?>
738
  </div>
739
  </div>
742
  </div>
743
  <div class="clear_both">&nbsp;</div>
744
  <div style="left: 0px; min-height: 710px; display: none; top:0px;" id="loading-mask">
745
+ <p id="loading_mask_loader" class="loader"><img alt="Loading..." src="<?php echo $this->getSkinUrl('MOIP/onestepcheckout/images/ajax-loader-tr.gif')?>"><br>Atualizando dados, por favor aguarde...</p>
746
  </div>
747
+ <?php endif?>
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/agreements.phtml RENAMED
File without changes
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/billing.phtml RENAMED
@@ -13,29 +13,27 @@
13
  <li id="billing-new-address-form" >
14
  <fieldset>
15
  <input type="hidden" name="billing[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="billing:address_id" />
16
- <ul id="o2ti_onstepcheckout_billing_form">
17
  <?php echo $this->getChildHtml('billing_form');?>
18
  </ul>
19
  <ul class="form-list">
20
-
21
- <?php if ($this->isCustomerLoggedIn() && Mage::helper('onestepcheckout')->showAddressBook()):?>
22
- <li class="control">
23
 
24
- <input type="checkbox" name="billing[save_in_address_book]" <?php if (!Mage::getSingleton('customer/session')->getCustomer()->getDefaultShipping()):?> value="1" <?php else: ?> value='0' <?php endif; ?>onchange="if(window.shipping) shipping.setSameAsBilling(false);"<?php if (!Mage::getSingleton('customer/session')->getCustomer()->getDefaultShipping()):?> checked="checked"<?php endif;?> title="<?php echo $this->__('Save in address book') ?>" id="billing:save_in_address_book" class="checkbox" />
25
  <label for="billing:save_in_address_book" ><?php echo $this->__('Salvar como novo endereço') ?></label>
26
-
27
  </li>
28
- <?php elseif ($this->isCustomerLoggedIn() && !Mage::helper('onestepcheckout')->showAddressBook()):?>
29
- <li class="control">
30
- <li class="no-display"><input type="hidden" name="billing[save_in_address_book]" value="0" /></li>
31
- </li>
32
- <?php else :?>
33
- <li class="control">
34
- <li class="no-display"><input type="hidden" name="billing[save_in_address_book]" value="1" /></li>
35
- </li>
36
- <?php endif; ?>
37
- <li class="control">
38
  <?php if(Mage::getStoreConfig('onestepcheckout/config/allowshippingotheraddress')):?>
 
39
  <?php if(!Mage::helper('onestepcheckout')->onlyProductDownloadable()):?>
40
  <input type="checkbox" name="ship_to_same_address" value="1" title="<?php echo $this->__('ship to same address') ?>" id="ship_to_same_address" class="checkbox" checked="checked" oncharge="jQuery('#billing\\:save_in_address_book').val('1');" > <label for="ship_to_same_address" ><?php echo $this->__('Ship to same address') ?></label>
41
  <?php else:?>
@@ -43,8 +41,9 @@
43
  <?php endif; ?>
44
  <?php else:?>
45
  <input type="hidden" name="ship_to_same_address" value="1" title="<?php echo $this->__('ship to same address') ?>">
 
46
  <?php endif; ?>
47
- </li>
48
  </ul>
49
  </fieldset>
50
  </li>
@@ -76,7 +75,7 @@ function updateBillingForm(address_id, flag) {
76
  url: "<?php echo Mage::getUrl('onestepcheckout/index/updatebillingform')?>",
77
  data: jQuery("#onestep_form").serialize(),
78
  success: function(msg) {
79
- jQuery('#o2ti_onstepcheckout_billing_form').html(msg);
80
  updateShippingType();
81
  }
82
  });
13
  <li id="billing-new-address-form" >
14
  <fieldset>
15
  <input type="hidden" name="billing[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="billing:address_id" />
16
+ <ul id="moip_onstepcheckout_billing_form">
17
  <?php echo $this->getChildHtml('billing_form');?>
18
  </ul>
19
  <ul class="form-list">
20
+
21
+ <?php if ($this->isCustomerLoggedIn()):?>
22
+ <li class="control">
23
 
24
+ <input type="checkbox" name="save_in_address_book" <?php if (!Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling()):?> value="1" <?php else: ?> value='0' <?php endif; ?>onchange="if(window.shipping) shipping.setSameAsBilling(false);"<?php if (!Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling()):?> checked="checked"<?php endif;?> title="<?php echo $this->__('Save in address book') ?>" id="billing:save_in_address_book" class="checkbox" />
25
  <label for="billing:save_in_address_book" ><?php echo $this->__('Salvar como novo endereço') ?></label>
 
26
  </li>
27
+
28
+ <?php else : ?>
29
+
30
+ <input type="hidden" name="billing[save_in_address_book]" value="1" />
31
+ <input type="hidden" name="billing[address_id]" value=""/>
32
+
33
+ <?php endif; ?>
34
+
 
 
35
  <?php if(Mage::getStoreConfig('onestepcheckout/config/allowshippingotheraddress')):?>
36
+ <li class="control">
37
  <?php if(!Mage::helper('onestepcheckout')->onlyProductDownloadable()):?>
38
  <input type="checkbox" name="ship_to_same_address" value="1" title="<?php echo $this->__('ship to same address') ?>" id="ship_to_same_address" class="checkbox" checked="checked" oncharge="jQuery('#billing\\:save_in_address_book').val('1');" > <label for="ship_to_same_address" ><?php echo $this->__('Ship to same address') ?></label>
39
  <?php else:?>
41
  <?php endif; ?>
42
  <?php else:?>
43
  <input type="hidden" name="ship_to_same_address" value="1" title="<?php echo $this->__('ship to same address') ?>">
44
+ </li>
45
  <?php endif; ?>
46
+
47
  </ul>
48
  </fieldset>
49
  </li>
75
  url: "<?php echo Mage::getUrl('onestepcheckout/index/updatebillingform')?>",
76
  data: jQuery("#onestep_form").serialize(),
77
  success: function(msg) {
78
+ jQuery('#moip_onstepcheckout_billing_form').html(msg);
79
  updateShippingType();
80
  }
81
  });
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/billing/billing_form.phtml RENAMED
@@ -27,7 +27,7 @@ if (Mage::getSingleton('customer/session')->isLoggedIn()) {
27
  $_gender = $this->getLayout()->createBlock('customer/widget_gender');
28
  ?>
29
 
30
- <script type="text/javascript" src="<?php echo $this->getJsUrl('O2TI/onestepcheckout/billing.js') ?>"></script>
31
 
32
  <li class="customer-name field">
33
  <label for="billing:firstname" class="required"><em>*</em>Nome</label>
@@ -97,7 +97,7 @@ if (Mage::getSingleton('customer/session')->isLoggedIn()) {
97
  <li class="field dados-pj">
98
  <label for="billing:cnpj" class="required"><em>*</em>CNPJ</label>
99
  <div class="input-box">
100
- <input type="text" title="cnpj" class="input-text" name="billing[cnpj]" id="cnpj" value="<?php $this->htmlEscape(Mage::getSingleton('customer/session')->getCustomer()->getCnpj()) ?>" placeholder="99.999.999/0001-99" onkeypress="return txtBoxFormat(this, '99.999.999/0001-99', event);" maxlength="18" autocomplete="off">
101
  </div>
102
  </li>
103
  <li class="field dados-pj">
@@ -113,7 +113,7 @@ if (Mage::getSingleton('customer/session')->isLoggedIn()) {
113
  <li class="field">
114
  <label for="billing:taxvat" class="required"><em>*</em>CPF </label>
115
  <div class="input-box">
116
- <input type="text" id="billing:taxvat" name="billing[taxvat]"value="<?php echo $taxvat;?>" title="CPF" class="input-text required-entry" onkeypress="return txtBoxFormat(this, '999.999.999-99', event);" placeholder="123.456.789-10" maxlength="14">
117
  </div>
118
  <script type="text/javascript">
119
  //<![CDATA[
@@ -126,7 +126,7 @@ if (Mage::getSingleton('customer/session')->isLoggedIn()) {
126
  <li class="field">
127
  <label for="billing:telephone" class="required"><em>*</em>Telefone</label>
128
  <div class="input-box">
129
- <input type="text" name="billing[telephone]" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="Telefone" class="input-text required-entry" id="billing:telephone" placeholder="(99)9999-9999" onkeypress="return txtBoxFormat(this, '(99)9999-9999', event);" maxlength="14" autocomplete="off">
130
  </div>
131
  </li>
132
  <div style="clear:both"></div>
@@ -149,7 +149,7 @@ if (Mage::getSingleton('customer/session')->isLoggedIn()) {
149
  <li class="field">
150
  <label for="billing:postcode" class="required"><em>*</em>CEP</label>
151
  <div class="input-box">
152
- <input type="text" title="CEP" name="billing[postcode]" id="billing:postcode" value="<?php echo $this->htmlEscape($this->getAddress()->getPostcode()) ?>" class="input-text validate-zip-international required-entry o2tizip" placeholder="99999-999" onchange="javascript: buscarEndereco('billing');" onkeypress="return txtBoxFormat(this, '99999-999', event);" maxlength="9" autocomplete="off" style="width: 100px;">
153
  </div>
154
  </li>
155
  <li class="field">
27
  $_gender = $this->getLayout()->createBlock('customer/widget_gender');
28
  ?>
29
 
30
+ <script type="text/javascript" src="<?php echo $this->getJsUrl('MOIP/onestepcheckout/billing.js') ?>"></script>
31
 
32
  <li class="customer-name field">
33
  <label for="billing:firstname" class="required"><em>*</em>Nome</label>
97
  <li class="field dados-pj">
98
  <label for="billing:cnpj" class="required"><em>*</em>CNPJ</label>
99
  <div class="input-box">
100
+ <input type="text" title="cnpj" class="input-text" name="billing[cnpj]" id="cnpj" value="<?php $this->htmlEscape(Mage::getSingleton('customer/session')->getCustomer()->getCnpj()) ?>" autocomplete="off">
101
  </div>
102
  </li>
103
  <li class="field dados-pj">
113
  <li class="field">
114
  <label for="billing:taxvat" class="required"><em>*</em>CPF </label>
115
  <div class="input-box">
116
+ <input type="text" id="billing:taxvat" name="billing[taxvat]"value="<?php echo $taxvat;?>" title="CPF" class="input-text required-entry" >
117
  </div>
118
  <script type="text/javascript">
119
  //<![CDATA[
126
  <li class="field">
127
  <label for="billing:telephone" class="required"><em>*</em>Telefone</label>
128
  <div class="input-box">
129
+ <input type="text" name="billing[telephone]" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="Telefone" class="input-text required-entry" id="billing:telephone" autocomplete="off">
130
  </div>
131
  </li>
132
  <div style="clear:both"></div>
149
  <li class="field">
150
  <label for="billing:postcode" class="required"><em>*</em>CEP</label>
151
  <div class="input-box">
152
+ <input type="text" title="CEP" name="billing[postcode]" id="billing:postcode" value="<?php echo $this->htmlEscape($this->getAddress()->getPostcode()) ?>" class="input-text validate-zip-international required-entry moipzip" onchange="javascript: buscarEndereco('billing');" autocomplete="off" style="width: 100px;">
153
  </div>
154
  </li>
155
  <li class="field">
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/correio.phtml RENAMED
File without changes
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/coupon.phtml RENAMED
@@ -1,35 +1,8 @@
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
- <form id="discount-coupon-form" action="<?php echo $this->getUrl('checkout/cart/couponPost') ?>" method="post">
28
- */?>
29
- <div class="cart">
30
  <div id="discount-coupon-form">
31
  <div class="discount">
32
- <?php /* <h2><?php echo $this->__('Discount Codes') ?></h2>*/?>
33
  <div class="discount-form">
34
  <h2 style="margin-top:3px"> <?php echo $this->__('Discount Codes') ?></h2>
35
  <span class="cupom_tem" style="cursor:pointer"><?php echo $this->__('Você tem um cupom de desconto? Clique aqui para utiliza-lo.') ?></span>
@@ -52,7 +25,6 @@
52
  </div>
53
  </div>
54
  </div>
55
- <div style="clear:both;"></div>
56
  <script type="text/javascript">
57
  //<![CDATA[
58
  jQuery(document).ready(function(){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
 
2
+ <div id="tab-coupon">
 
 
 
3
  <div id="discount-coupon-form">
4
  <div class="discount">
5
+
6
  <div class="discount-form">
7
  <h2 style="margin-top:3px"> <?php echo $this->__('Discount Codes') ?></h2>
8
  <span class="cupom_tem" style="cursor:pointer"><?php echo $this->__('Você tem um cupom de desconto? Clique aqui para utiliza-lo.') ?></span>
25
  </div>
26
  </div>
27
  </div>
 
28
  <script type="text/javascript">
29
  //<![CDATA[
30
  jQuery(document).ready(function(){
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/forgotpassword.phtml RENAMED
@@ -1,5 +1,5 @@
1
  <?php if(version_compare(Mage::getVersion(),'1.4.0.1','>='))://fix cho magento 1.3?>
2
- <div class="o2ti-osc-title-login">
3
  <h1 ><?php echo $this->__('Forgot Your Password?') ?></h1>
4
  </div>
5
  <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
@@ -20,7 +20,7 @@
20
 
21
 
22
  <span id="forgotpass-please-wait" class="please-wait">
23
- <img class="v-middle" title="Loading next step..." alt="Loading next step..." src="<?php echo $this->getSkinUrl('/O2TI/onestepcheckout/images/opc-ajax-loader.gif') ?>"><?php echo $this->__('Loading...');?>
24
  </span>
25
  <a id="backlogin" href="#inline1" <?php /*href="<?php echo $this->helper('customer')->getLoginUrl() ?>"*/?> >Voltar para p&aacute;gina de login</a>
26
  <button id="btforgotpass" type="button" onclick="onepageforgotpassword(this)" title="<?php echo $this->__('Submit') ?>" class="button"><span ><span><?php echo $this->__('Submit') ?></span></span></button>
@@ -51,7 +51,7 @@
51
  <p class="required" style="margin:0px;color:#EB340A;font-size:11px;text-align:right;"><?php echo $this->__('* Required Fields') ?></p>
52
  <p class="back-link" style="float:left;margin:0;"><a id="backlogin" href="#inline1" style="color:#1E7EC8;text-decoration:underline;"<?php /*href="<?php echo $this->helper('customer')->getLoginUrl() ?>"*/?> ><small style="font-size:1em;">&laquo; </small><?php echo $this->__('Back to Login') ?></a></p>
53
  <span style="display: none; " id="forgotpass-please-wait" class="please-wait">
54
- <img class="v-middle" style="vertical-align:middle;border:0 none;"title="Loading next step..." alt="Loading next step..." src="<?php echo $this->getSkinUrl('/O2TI/onestepcheckout/images/opc-ajax-loader.gif') ?>"><?php echo $this->__('Loading...');?>
55
  </span>
56
  <button id="btforgotpass" style="float:right;margin-left:5px;background:none repeat scroll 0 0 transparent;border:0 none;cursor:pointer;margin:0;overflow:visible;padding:0;width:auto;color:#2F2F2F;font:12px/15px Arial,Helvetica,sans-serif;vertical-align:middle;"type="button" onclick="onepageforgotpassword(this)" title="<?php echo $this->__('Submit') ?>" class="button"><span style="background:none repeat scroll 0 0 #F18200;border:1px solid #DE5400;color:#FFFFFF;display:block;font:bold 12px/19px Arial,Helvetica,sans-serif;height:19px;padding:0 8px;text-align:center;white-space:nowrap;"><span style="border:0 none;padding:0;background:none repeat scroll 0 0 #F18200;color:#FFFFFF;display:block;font:bold 12px/19px Arial,Helvetica,sans-serif;height:19px;text-align:center;white-space:nowrap;"><?php echo $this->__('Submit') ?></span></span></button>
57
  </div>
@@ -83,7 +83,7 @@ jQuery('#forgotpass-please-wait').css('display','block'); //note: echo $this->ge
83
  data: "email="+email,
84
  success: function(msg){
85
  if(msg==1){
86
- jQuery('#inline3').html("<div class=\"o2ti-osc-title-login envia-senha\"><h1><?php echo $this->__('Forgotten your password?')?></h1></div><?php echo $this->__("We have now sent you a new password to your email address. Click the link below to return to login.");?><br><p class='back-link'><a id='backlogin1' class='voltar-login' href='#inline1'>Voltar para p&aacute;gina de login</a></p></div>");
87
  jQuery('#inline3').css("height","243px");
88
  jQuery("#backlogin1").fancybox({
89
  'titlePosition' : 'inside',
1
  <?php if(version_compare(Mage::getVersion(),'1.4.0.1','>='))://fix cho magento 1.3?>
2
+ <div class="moip-osc-title-login">
3
  <h1 ><?php echo $this->__('Forgot Your Password?') ?></h1>
4
  </div>
5
  <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
20
 
21
 
22
  <span id="forgotpass-please-wait" class="please-wait">
23
+ <img class="v-middle" title="Loading next step..." alt="Loading next step..." src="<?php echo $this->getSkinUrl('/MOIP/onestepcheckout/images/opc-ajax-loader.gif') ?>"><?php echo $this->__('Loading...');?>
24
  </span>
25
  <a id="backlogin" href="#inline1" <?php /*href="<?php echo $this->helper('customer')->getLoginUrl() ?>"*/?> >Voltar para p&aacute;gina de login</a>
26
  <button id="btforgotpass" type="button" onclick="onepageforgotpassword(this)" title="<?php echo $this->__('Submit') ?>" class="button"><span ><span><?php echo $this->__('Submit') ?></span></span></button>
51
  <p class="required" style="margin:0px;color:#EB340A;font-size:11px;text-align:right;"><?php echo $this->__('* Required Fields') ?></p>
52
  <p class="back-link" style="float:left;margin:0;"><a id="backlogin" href="#inline1" style="color:#1E7EC8;text-decoration:underline;"<?php /*href="<?php echo $this->helper('customer')->getLoginUrl() ?>"*/?> ><small style="font-size:1em;">&laquo; </small><?php echo $this->__('Back to Login') ?></a></p>
53
  <span style="display: none; " id="forgotpass-please-wait" class="please-wait">
54
+ <img class="v-middle" style="vertical-align:middle;border:0 none;"title="Loading next step..." alt="Loading next step..." src="<?php echo $this->getSkinUrl('/MOIP/onestepcheckout/images/opc-ajax-loader.gif') ?>"><?php echo $this->__('Loading...');?>
55
  </span>
56
  <button id="btforgotpass" style="float:right;margin-left:5px;background:none repeat scroll 0 0 transparent;border:0 none;cursor:pointer;margin:0;overflow:visible;padding:0;width:auto;color:#2F2F2F;font:12px/15px Arial,Helvetica,sans-serif;vertical-align:middle;"type="button" onclick="onepageforgotpassword(this)" title="<?php echo $this->__('Submit') ?>" class="button"><span style="background:none repeat scroll 0 0 #F18200;border:1px solid #DE5400;color:#FFFFFF;display:block;font:bold 12px/19px Arial,Helvetica,sans-serif;height:19px;padding:0 8px;text-align:center;white-space:nowrap;"><span style="border:0 none;padding:0;background:none repeat scroll 0 0 #F18200;color:#FFFFFF;display:block;font:bold 12px/19px Arial,Helvetica,sans-serif;height:19px;text-align:center;white-space:nowrap;"><?php echo $this->__('Submit') ?></span></span></button>
57
  </div>
83
  data: "email="+email,
84
  success: function(msg){
85
  if(msg==1){
86
+ jQuery('#inline3').html("<div class=\"moip-osc-title-login envia-senha\"><h1><?php echo $this->__('Forgotten your password?')?></h1></div><?php echo $this->__("We have now sent you a new password to your email address. Click the link below to return to login.");?><br><p class='back-link'><a id='backlogin1' class='voltar-login' href='#inline1'>Voltar para p&aacute;gina de login</a></p></div>");
87
  jQuery('#inline3').css("height","243px");
88
  jQuery("#backlogin1").fancybox({
89
  'titlePosition' : 'inside',
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/local.xml RENAMED
File without changes
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/login.phtml RENAMED
@@ -3,7 +3,7 @@
3
  <div >
4
 
5
  <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
6
- <div class="o2ti-osc-title-login">
7
 
8
  <h1>Acesse sua conta!</h1>
9
 
3
  <div >
4
 
5
  <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
6
+ <div class="moip-osc-title-login">
7
 
8
  <h1>Acesse sua conta!</h1>
9
 
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/payment.phtml RENAMED
File without changes
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/payment/methods.phtml RENAMED
File without changes
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/review.phtml RENAMED
@@ -1,37 +1,8 @@
1
  <div id="checkout-review-load">
2
  <?php echo $this->getChildHtml('info') ?>
3
  </div>
4
- <div class="coluna_1_checkout span4 grid12-4">
5
- <div id="checkout-review-options">
6
- <?php echo $this->getChildHtml('options') ?>
7
- </div>
8
- <div id="checkout-review-submit">
9
- <div class="news_subscribe">
10
- <?php if(Mage::getStoreConfig('onestepcheckout/layout/allowsubscribenewsletter')==1):?>
11
- <?php if(Mage::helper('onestepcheckout')->issubscribed()):?>
12
- <ul class="form-list">
13
- <li class="control">
14
- <input type="checkbox" name="subscribe_newsletter" value="0" title="<?php echo $this->__('Receber novidades') ?>" id="subscribe_newsletter" class="checkbox"> <label for="subscribe_newsletter"><?php echo $this->__('Receber novidades') ?></label>
15
- </li>
16
- </ul>
17
- <?php endif?>
18
- <?php endif ?>
19
- <?php if(Mage::getStoreConfig('onestepcheckout/layout/allowsubscribenewsletter')==2):?>
20
- <?php if(Mage::helper('onestepcheckout')->issubscribed()):?>
21
-
22
- <ul class="form-list">
23
- <li class="control">
24
- <input type="checkbox" name="subscribe_newsletter" value="1" checked="checked" title="<?php echo $this->__('Receber novidades') ?>" id="subscribe_newsletter" class="checkbox"> <label for="subscribe_newsletter" style="float:none;"><?php echo $this->__('Receber novidades') ?></label>
25
- </li>
26
- </ul>
27
-
28
- <?php endif?>
29
- <?php endif?>
30
- </div>
31
- </div>
32
- </div>
33
 
34
- <div class="coluna_2_checkout span8 grid12-8">
35
  <div id="checkout-review-terms">
36
  <?php if(Mage::getStoreConfig('onestepcheckout/termcondition/allow_options')):?>
37
  <div class="onestepcheckout-enable-terms" style="postion:relative;">
@@ -50,12 +21,36 @@
50
  <span><span><?php echo $this->__('Place Order') ?></span></span></button>
51
  </div>
52
  <?php if(Mage::getStoreConfig('onestepcheckout/layout/use_secure')){ ?>
53
- <div>
54
  <a id="store_secure" target="_blank" href="#store_secure_content">
55
- <span class="secure_store"><img src="<?php echo $this->getSkinUrl('O2TI/onestepcheckout/images/loja_segura.jpg') ?>" alt="<?php echo $this->__('Loja Segura, Saiba mais') ?>" title="<?php echo $this->__('Loja Segura, Saiba mais...') ?>" class="v-middle" /> </span>
56
  </a>
57
  </div>
58
  <?php } ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  </div>
60
  </div>
61
 
1
  <div id="checkout-review-load">
2
  <?php echo $this->getChildHtml('info') ?>
3
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
+ <div class="coluna_2_checkout span12 grid12-12">
6
  <div id="checkout-review-terms">
7
  <?php if(Mage::getStoreConfig('onestepcheckout/termcondition/allow_options')):?>
8
  <div class="onestepcheckout-enable-terms" style="postion:relative;">
21
  <span><span><?php echo $this->__('Place Order') ?></span></span></button>
22
  </div>
23
  <?php if(Mage::getStoreConfig('onestepcheckout/layout/use_secure')){ ?>
24
+ <div class="float:left">
25
  <a id="store_secure" target="_blank" href="#store_secure_content">
26
+ <span class="secure_store"><img src="<?php echo $this->getSkinUrl('MOIP/onestepcheckout/images/loja_segura.jpg') ?>" alt="<?php echo $this->__('Loja Segura, Saiba mais') ?>" title="<?php echo $this->__('Loja Segura, Saiba mais...') ?>" class="v-middle" /> </span>
27
  </a>
28
  </div>
29
  <?php } ?>
30
+ <?php if(Mage::getStoreConfig('onestepcheckout/layout/allowsubscribenewsletter')==1):?>
31
+ <?php if(Mage::helper('onestepcheckout')->issubscribed()):?>
32
+ <ul class="form-list">
33
+ <li class="control">
34
+ <input type="checkbox" name="subscribe_newsletter" value="0" title="<?php echo $this->__('Receber novidades') ?>" id="subscribe_newsletter" class="checkbox"> <label for="subscribe_newsletter"><?php echo $this->__('Receber novidades') ?></label>
35
+ </li>
36
+ </ul>
37
+ <?php endif?>
38
+ <?php endif ?>
39
+ <?php if(Mage::getStoreConfig('onestepcheckout/layout/allowsubscribenewsletter')==2):?>
40
+ <?php if(Mage::helper('onestepcheckout')->issubscribed()):?>
41
+ <ul class="form-list">
42
+ <li class="control">
43
+ <input type="checkbox" name="subscribe_newsletter" value="1" checked="checked" title="<?php echo $this->__('Receber novidades') ?>" id="subscribe_newsletter" class="checkbox"> <label for="subscribe_newsletter" style="float:none;"><?php echo $this->__('Receber novidades') ?></label>
44
+ </li>
45
+ </ul>
46
+ <?php endif?>
47
+ <?php endif?>
48
+ <?php if(Mage::helper('onestepcheckout')->showComment()):?>
49
+ <div class="onestepcheckout-comments">
50
+ <label for="id_comments"><?php echo $this->__('Comments');?></label><br/>
51
+ <textarea id="id_comments" name="onestepcheckout_comments" cols="40" rows="4"></textarea>
52
+ </div>
53
+ <?php endif;?>
54
  </div>
55
  </div>
56
 
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/review/button.phtml RENAMED
File without changes
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/review/info.phtml RENAMED
@@ -60,7 +60,7 @@
60
  </tbody>
61
  </table>
62
  </div>
63
- <?php echo $this->getChildHtml('items_after'); ?>
64
  <script type="text/javascript">
65
  //<![CDATA[
66
  decorateTable('checkout-review-table');
@@ -68,16 +68,15 @@
68
  //]]>
69
  </script>
70
  <div id="checkout-review-submit">
71
- <?php echo $this->getChildHtml('agreements') ?>
72
  <div class="buttons-set" id="review-buttons-container">
73
- <?php echo $this->getChildHtml('button') ?>
74
  <span class="please-wait" id="review-please-wait" style="display:none;">
75
  <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Submitting order information...') ?>" title="<?php echo $this->__('Submitting order information...') ?>" class="v-middle" /> <?php echo $this->__('Submitting order information...') ?>
76
  </span>
77
  </div>
78
  <script type="text/javascript">
79
  //<![CDATA[
80
- review = new Review('<?php echo $this->getUrl('checkout/onepage/saveOrder') ?>', '<?php echo $this->getUrl('checkout/onepage/success') ?>', $('checkout-agreements'));
81
  //]]>
82
  </script>
83
  </div>
60
  </tbody>
61
  </table>
62
  </div>
63
+
64
  <script type="text/javascript">
65
  //<![CDATA[
66
  decorateTable('checkout-review-table');
68
  //]]>
69
  </script>
70
  <div id="checkout-review-submit">
 
71
  <div class="buttons-set" id="review-buttons-container">
72
+
73
  <span class="please-wait" id="review-please-wait" style="display:none;">
74
  <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Submitting order information...') ?>" title="<?php echo $this->__('Submitting order information...') ?>" class="v-middle" /> <?php echo $this->__('Submitting order information...') ?>
75
  </span>
76
  </div>
77
  <script type="text/javascript">
78
  //<![CDATA[
79
+ review = new Review('<?php echo $this->getUrl('checkout/onepage/saveOrder') ?>', '<?php echo $this->getUrl('checkout/onepage/success') ?>', $('id_accept_terms'));
80
  //]]>
81
  </script>
82
  </div>
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/review/item.phtml RENAMED
File without changes
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/review/options.phtml ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <?php if(Mage::helper('onestepcheckout')->enableGiftMessage()):?>
2
+ <?php echo $this->getChildHtml('additional') ?>
3
+ <?php endif?>
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/review/options/additional.phtml RENAMED
@@ -1,5 +1,3 @@
1
  <?php if (!$this->getQuote()->isVirtual()): ?>
2
- <div class="o2ti-osc-ct-giftmessage">
3
  <?php echo $this->helper('giftmessage/message')->getInline('onepage_checkout', $this->getQuote(), $this->getDontDisplayContainer()) ?>
4
- </div>
5
  <?php endif; ?>
1
  <?php if (!$this->getQuote()->isVirtual()): ?>
 
2
  <?php echo $this->helper('giftmessage/message')->getInline('onepage_checkout', $this->getQuote(), $this->getDontDisplayContainer()) ?>
 
3
  <?php endif; ?>
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/review/totals.phtml RENAMED
File without changes
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/shipping.phtml RENAMED
@@ -1,4 +1,4 @@
1
- <script type="text/javascript" src="<?php echo $this->getJsUrl('O2TI/onestepcheckout/shipping.js') ?>"></script>
2
 
3
  <script type="text/javascript">
4
  //<![CDATA[
@@ -31,7 +31,7 @@
31
  url: "<?php echo Mage::getUrl('onestepcheckout/index/updateshippingform')?>",
32
  data:jQuery("#onestep_form").serialize(),
33
  success: function(msg){
34
- jQuery('#o2ti_onstepcheckout_shipping_form').html(msg);
35
  updateShippingType();
36
  }
37
  });
1
+ <script type="text/javascript" src="<?php echo $this->getJsUrl('MOIP/onestepcheckout/shipping.js') ?>"></script>
2
 
3
  <script type="text/javascript">
4
  //<![CDATA[
31
  url: "<?php echo Mage::getUrl('onestepcheckout/index/updateshippingform')?>",
32
  data:jQuery("#onestep_form").serialize(),
33
  success: function(msg){
34
+ jQuery('#moip_onstepcheckout_shipping_form').html(msg);
35
  updateShippingType();
36
  }
37
  });
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/shipping/shipping_form.phtml RENAMED
@@ -22,7 +22,7 @@
22
  <div id="shipping-new-address-form">
23
 
24
  <input type="hidden" name="shipping[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="shipping:address_id" />
25
- <div id="o2ti_onstepcheckout_shipping_form">
26
  <div class="customer-name">
27
  <div class="field name-firstname">
28
  <label for="shipping:firstname" class="required"><em>*</em>Nome</label>
@@ -42,7 +42,7 @@
42
 
43
  <label for="shipping:telephone" class="required"><?php echo $this->__('Telephone') ?></label>
44
  <div class="input-box">
45
- <input type="text" name="shipping[telephone]" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text required-entry inputtext" placeholder="(99)9999-9999" onkeypress="return txtBoxFormat(this, '(99)9999-9999', event);" maxlength="14" autocomplete="off" id="shipping:telephone" onchange="shipping.setSameAsshipping(false);" />
46
  </div>
47
 
48
  </li>
@@ -57,7 +57,7 @@
57
  <li class="field">
58
  <label for="shipping:postcode" class="required"><em>*</em>CEP</label>
59
  <div class="input-box">
60
- <input type="text" title="CEP" name="shipping[postcode]" id="shipping:postcode" value="<?php echo $this->htmlEscape($this->getAddress()->getPostcode()) ?>" class="input-text inputtext validate-zip-international required-entry o2tizip" placeholder="99999-999" onchange="javascript: buscarEndereco('shipping');" onkeypress="return txtBoxFormat(this, '99999-999', event);" maxlength="9" autocomplete="off" style="width: 100px;">
61
  </div>
62
  </li>
63
  <li class="field">
22
  <div id="shipping-new-address-form">
23
 
24
  <input type="hidden" name="shipping[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="shipping:address_id" />
25
+ <div id="moip_onstepcheckout_shipping_form">
26
  <div class="customer-name">
27
  <div class="field name-firstname">
28
  <label for="shipping:firstname" class="required"><em>*</em>Nome</label>
42
 
43
  <label for="shipping:telephone" class="required"><?php echo $this->__('Telephone') ?></label>
44
  <div class="input-box">
45
+ <input type="text" name="shipping[telephone]" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text required-entry inputtext" autocomplete="off" id="shipping:telephone" onchange="shipping.setSameAsshipping(false);" />
46
  </div>
47
 
48
  </li>
57
  <li class="field">
58
  <label for="shipping:postcode" class="required"><em>*</em>CEP</label>
59
  <div class="input-box">
60
+ <input type="text" title="CEP" name="shipping[postcode]" id="shipping:postcode" value="<?php echo $this->htmlEscape($this->getAddress()->getPostcode()) ?>" class="input-text inputtext validate-zip-international required-entry moipzip" onchange="javascript: buscarEndereco('shipping');" autocomplete="off" style="width: 100px;">
61
  </div>
62
  </li>
63
  <li class="field">
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/daskboard/onepage/shipping_method.phtml RENAMED
@@ -1,5 +1,5 @@
1
  <div id="co-shipping-method-form" >
2
- <div id="checkout-shipping-method-load" class="o2ti-osc-block-content">
3
  <?php echo $this->getChildHtml('available') ?>
4
  </div>
5
  <script type="text/javascript">
1
  <div id="co-shipping-method-form" >
2
+ <div id="checkout-shipping-method-load" class="moip-osc-block-content">
3
  <?php echo $this->getChildHtml('available') ?>
4
  </div>
5
  <script type="text/javascript">
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/shipping_method/available.phtml ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if (!($_shippingRateGroups = $this->getShippingRates())): ?>
2
+ <div class="erro_cep sem_cep" style="display:none;">
3
+ Aguardando preenchimento do CEP, para calculo do frete, pelos correios.
4
+ </div>
5
+ <div class="erro_cep com_cep" style="display:none;">
6
+ Não Há Meio de Envio disponível, entre em contato com a loja.
7
+ </div>
8
+ <?php else: ?>
9
+ <dl id="checkout-shipping-method-loadding" class="sp-methods">
10
+ <?php $_sole = count($this->getShippingRates()) == 1; foreach ($this->getShippingRates() as $code => $_rates): ?>
11
+ <dt><?php echo $this->getCarrierName($code); ?></dt>
12
+ <dd>
13
+ <ul>
14
+ <?php $_sole = $_sole && count($_rates) == "nada"; foreach ($_rates as $_rate): ?>
15
+ <li>
16
+ <?php if ($_rate->getErrorMessage()): ?>
17
+ <div class="erro_cep sem_cep" style="display:none;">
18
+ Aguardando preenchimento do CEP, para cálculo do frete, pelos correios.
19
+ </div>
20
+ <div class="erro_cep com_cep" style="display:none;">
21
+ <?php echo $_rate->getErrorMessage() ?>
22
+ </div>
23
+ <?php else: ?>
24
+ <?php if ($_sole) : ?>
25
+ <span class="no-display"><input name="shipping_method" type="radio" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>" checked="checked" /></span>
26
+ <?php else: ?>
27
+ <span class="radio"><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();"/></span>
28
+ <?php endif; ?>
29
+ <label for="s_method_<?php echo $_rate->getCode() ?>" onclick="updateShippingMethod();" id="s_method_<?php echo $_rate->getCode() ?>" value="<?php echo $_rate->getPrice() ?>">
30
+
31
+
32
+ <?php if(Mage::getStoreConfig('moipall/config/icones_na_entrega')): ?>
33
+ <?php if(Mage::getStoreConfig('moipall/config/trocar_icones_na_entrega')):
34
+ if ($code == "pedroteixeira_correios" || $code == "flatrate" || $code == "freeshipping"):
35
+ $parametro = $_rate->getCode();
36
+
37
+ switch ($parametro){
38
+ case "pedroteixeira_correios_40045":
39
+ $imagem = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/icone_sedex_a');
40
+ break;
41
+ case "freeshipping_freeshipping":
42
+ $imagem = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/icone_gratis');
43
+ break;
44
+ case "pedroteixeira_correios_41106":
45
+ $imagem = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/icone_pac');
46
+ break;
47
+ case "pedroteixeira_correios_40010":
48
+ $imagem = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/icone_sedex');
49
+ break;
50
+ case "pedroteixeira_correios_40215":
51
+ $imagem = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/icone_sedex_10');
52
+ break;
53
+ case "pedroteixeira_correios_40290":
54
+ $imagem = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/icone_sedex_hoje');
55
+ break;
56
+ case "flatrate_flatrate":
57
+ $imagem = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/icone_fixo');//pac
58
+ break;
59
+ }
60
+ ?>
61
+ <div class="image_shipping">
62
+ <img src="<?php echo $imagem?>">
63
+ </div>
64
+ <?php endif; ?>
65
+ <?php else: ?>
66
+ <?php if ($code == "pedroteixeira_correios" || $code == "flatrate" || $code == "freeshipping"):
67
+ $pedroteixeira_correios_40045 = $this->getSkinUrl('MOIP/transparente/imagem/pedroteixeira_correios_40045.png'); //sedex_acobrar
68
+ $pedroteixeira_correios_41106 = $this->getSkinUrl('MOIP/transparente/imagem/pedroteixeira_correios_41106.png'); //pac
69
+ $pedroteixeira_correios_40010 = $this->getSkinUrl('MOIP/transparente/imagem/pedroteixeira_correios_40010.png'); //sedex
70
+ $pedroteixeira_correios_40215 = $this->getSkinUrl('MOIP/transparente/imagem/pedroteixeira_correios_40215.png'); //sedex10
71
+ $pedroteixeira_correios_40290 = $this->getSkinUrl('MOIP/transparente/imagem/pedroteixeira_correios_40290.png'); //sedexhoje
72
+ $freeshipping_freeshipping = $this->getSkinUrl('MOIP/transparente/imagem/freeshipping_freeshipping.png'); //frete gratis
73
+ $flatrate_flatrate = $this->getSkinUrl('MOIP/transparente/imagem/flatrate_flatrate.png'); //frete fixo
74
+ ?>
75
+ <div class="image_shipping">
76
+ <img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem/'); echo $_rate->getCode()?>.gif" id="moip<?php echo $_rate->getCode() ?>.png" alt="<?php echo $_rate->getMethodTitle() ?>">
77
+ </div>
78
+ <?php endif; ?>
79
+ <?php endif; ?>
80
+ <?php endif; ?>
81
+
82
+
83
+ <div class="title_shipping"><?php echo $_rate->getMethodTitle() ?>
84
+ <?php $_excl = $this->getShippingPrice($_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
85
+ <?php $_incl = $this->getShippingPrice($_rate->getPrice(), true); ?>
86
+ <?php echo $_excl; ?>
87
+ <?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
88
+ (<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
89
+ <?php endif; ?>
90
+ </div>
91
+ </label>
92
+ <?php endif ?>
93
+ </li>
94
+ <?php endforeach; ?>
95
+ </ul>
96
+ </dd>
97
+ <?php endforeach; ?>
98
+ </dl>
99
+ <?php endif; ?>
100
+ <script type="text/javascript">
101
+ //<![CDATA[
102
+ if(jQuery("#billing\\:postcode").val() == '' || jQuery("#billing\\:postcode").val() == '.'){
103
+ jQuery(".sem_cep").show();
104
+ jQuery(".com_cep").hide();
105
+ } else{
106
+ jQuery(".sem_cep").hide();
107
+ jQuery(".com_cep").show();
108
+ }
109
+ //]]>
110
+ </script>
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/emptyupdate.phtml RENAMED
File without changes
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/onepage.phtml RENAMED
File without changes
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/sales/order/info.phtml RENAMED
File without changes
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/sales/order/info/customermessages.phtml RENAMED
@@ -15,6 +15,6 @@ foreach($orders as $order)
15
  <div class="col2-set generic-box">
16
  <div class="">
17
  <h4><?php echo $this->__('Comentáriso do Pedido') ?></h4>
18
- <span><?php if($o):?><?php echo $o->getO2tiCustomercommentInfo(); ?><?php endif?></span>
19
  </div>
20
  </div>
15
  <div class="col2-set generic-box">
16
  <div class="">
17
  <h4><?php echo $this->__('Comentáriso do Pedido') ?></h4>
18
+ <span><?php if($o):?><?php echo $o->getMoipCustomercommentInfo(); ?><?php endif?></span>
19
  </div>
20
  </div>
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/sales/order/info/customermessages.phtml~ RENAMED
File without changes
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/sales/order/info/deliverydate.phtml RENAMED
@@ -14,7 +14,7 @@ foreach($orders as $order)
14
  <div class="col2-set generic-box">
15
  <div class="">
16
  <h4><?php echo $this->__('Data de Entrega') ?></h4>
17
- Data de entrega: <span style="font-weight:bold;"><?php if($o):?><?php echo $o->getO2tiDeliverydateDate(); ?><?php endif?></span><br>
18
- Horário de entrega: <span style="font-weight:bold;"><?php if($o):?><?php echo $o->getO2tiDeliverydateTime(); ?><?php endif?></span><br>
19
  </div>
20
  </div>
14
  <div class="col2-set generic-box">
15
  <div class="">
16
  <h4><?php echo $this->__('Data de Entrega') ?></h4>
17
+ Data de entrega: <span style="font-weight:bold;"><?php if($o):?><?php echo $o->getMoipDeliverydateDate(); ?><?php endif?></span><br>
18
+ Horário de entrega: <span style="font-weight:bold;"><?php if($o):?><?php echo $o->getMoipDeliverydateTime(); ?><?php endif?></span><br>
19
  </div>
20
  </div>
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/sales/order/info/deliverydate.phtml~ RENAMED
File without changes
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/sales/order/view/tab/info.phtml RENAMED
File without changes
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/sales/order/view/tab/info/customermessages.phtml RENAMED
File without changes
app/design/frontend/base/default/template/{O2TI → MOIP}/onestepcheckout/sales/order/view/tab/info/deliverydate.phtml RENAMED
File without changes
app/design/frontend/base/default/template/{O2TI/moip → MOIP/transparente}/Novaforma.phtml RENAMED
File without changes
app/design/frontend/base/default/template/{O2TI/moip → MOIP/transparente}/boleto.phtml RENAMED
@@ -8,12 +8,12 @@ $customerData = "";
8
  if(Mage::getSingleton('customer/session')->isLoggedIn()) {
9
  $customerData = Mage::getSingleton('customer/session')->getCustomer();
10
  }
11
- if (Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste") {
12
  $url = "https://desenvolvedor.moip.com.br/sandbox/Instrucao.do?token=";
13
  $urljs = "https://desenvolvedor.moip.com.br/sandbox/";
14
  }
15
  else {
16
- $url = "https://www.moip.com.br/Instrucao.do?token=";
17
  $urljs = "https://www.moip.com.br/";
18
  }
19
  ?>
@@ -22,8 +22,8 @@ if (Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste") {
22
  <script type="text/javascript">
23
  //<![CDATA[
24
  var _gaq = _gaq || [];
25
- _gaq.push(['_setAccount', '<?php echo Mage::getStoreConfig("o2tiall/google/idgoogle") ?>']);
26
- <?php echo $this->getTrackingMoip($client_array); ?>
27
  (function() {
28
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
29
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
@@ -32,21 +32,21 @@ if (Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste") {
32
  //]]>
33
  </script>
34
  <?php endif; ?>
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">
42
  <h3>Seu pedido foi enviado com sucesso, <strong><?php echo $client_array['pagador_nome'] ?></strong>!</h3>
43
 
44
- <div class="corpo_moip grid12-5 alpha">
45
  <div class="method-type boleto-title">
46
  <h3>Falta apenas um passo para finalizar sua compra.</h3>
47
  <h4>Imprima seu boleto e faça o pagamento em qualquer banco.</h4>
48
  </div>
49
- <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>
50
  <div class="row boleto-can-pay">
51
  <strong>
52
  <h3>Você sabia que:</h3>
@@ -58,7 +58,7 @@ if (Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste") {
58
  <div class="col-md-6 grid12-6 omega">
59
  <div class="order-id-wrapper">
60
  <p>O número do seu pedido é:</p>
61
- <span class="order-id">#<?php echo $pgtoArray['id_transacao'] ?></span>
62
  <h4>Seu pedido será enviado por <?php echo $order->getShippingDescription(); ?></h4>
63
  </div>
64
  <div class="row">
@@ -67,7 +67,7 @@ if (Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste") {
67
  </div>
68
  </div>
69
  </div>
70
- <?php echo Mage::getStoreConfig("o2tiall/google/outros_funil"); ?>
71
  <!-- js importantes não alterem -->
72
  <script type="text/javascript">
73
  //<![CDATA[
8
  if(Mage::getSingleton('customer/session')->isLoggedIn()) {
9
  $customerData = Mage::getSingleton('customer/session')->getCustomer();
10
  }
11
+ if (Mage::getSingleton('transparente/standard')->getConfigData('ambiente') == "teste") {
12
  $url = "https://desenvolvedor.moip.com.br/sandbox/Instrucao.do?token=";
13
  $urljs = "https://desenvolvedor.moip.com.br/sandbox/";
14
  }
15
  else {
16
+ $url = "https://www.moip.com.br/Instrucao.do?token=";
17
  $urljs = "https://www.moip.com.br/";
18
  }
19
  ?>
22
  <script type="text/javascript">
23
  //<![CDATA[
24
  var _gaq = _gaq || [];
25
+ _gaq.push(['_setAccount', '<?php echo Mage::getStoreConfig("moipall/google/idgoogle") ?>']);
26
+ <?php echo $this->getTrackingTransparente($client_array); ?>
27
  (function() {
28
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
29
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
32
  //]]>
33
  </script>
34
  <?php endif; ?>
35
+ <?php $order = Mage::getModel('sales/order')->load($pgtoArray['id_transacao']); ?>
36
  <?php $this->getSaveDate($pgtoArray['id_transacao'], $result_decode, $customerData, $pgtoArraya, $client_array); ?>
37
 
38
+ <script type="text/javascript" charset="ISO-8859-1" src="<?php echo $urljs ?>transparente/MoipWidget-v2.js" onerror="erro_mail('erro caiu o transparente widget')" ></script>
39
  <div id="MoipWidget" data-token="<?php echo $result_decode['token'] ?>" callback-method-error="erroValidacao" callback-method-success="sucesso"></div>
40
  <div class="row grid-full">
41
  <div class="grid12-12">
42
  <h3>Seu pedido foi enviado com sucesso, <strong><?php echo $client_array['pagador_nome'] ?></strong>!</h3>
43
 
44
+ <div class="corpo_transparente grid12-5 alpha">
45
  <div class="method-type boleto-title">
46
  <h3>Falta apenas um passo para finalizar sua compra.</h3>
47
  <h4>Imprima seu boleto e faça o pagamento em qualquer banco.</h4>
48
  </div>
49
+ <button class="btn-transparente btn-boleto buttontransparente" onclick="abre_boleto()" ><img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem/printer.png') ?>" alt="" />Visualize o boleto<span>clique aqui</span></button>
50
  <div class="row boleto-can-pay">
51
  <strong>
52
  <h3>Você sabia que:</h3>
58
  <div class="col-md-6 grid12-6 omega">
59
  <div class="order-id-wrapper">
60
  <p>O número do seu pedido é:</p>
61
+ <span class="order-id">#<?php echo Mage::getSingleton('checkout/session')->getLastRealOrderId() ?></span>
62
  <h4>Seu pedido será enviado por <?php echo $order->getShippingDescription(); ?></h4>
63
  </div>
64
  <div class="row">
67
  </div>
68
  </div>
69
  </div>
70
+ <?php echo Mage::getStoreConfig("moipall/google/outros_funil"); ?>
71
  <!-- js importantes não alterem -->
72
  <script type="text/javascript">
73
  //<![CDATA[
app/design/frontend/base/default/template/{O2TI/moip → MOIP/transparente}/cartao.phtml RENAMED
@@ -7,7 +7,7 @@ $customerData = "";
7
  if(Mage::getSingleton('customer/session')->isLoggedIn()) {
8
  $customerData = Mage::getSingleton('customer/session')->getCustomer();
9
  }
10
- if (Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste") {
11
  $url = "https://desenvolvedor.moip.com.br/sandbox/Instrucao.do?token=";
12
  $urljs = "https://desenvolvedor.moip.com.br/sandbox/";
13
  }
@@ -21,8 +21,8 @@ if (Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste") {
21
  <script type="text/javascript">
22
  //<![CDATA[
23
  var _gaq = _gaq || [];
24
- _gaq.push(['_setAccount', '<?php echo Mage::getStoreConfig("o2tiall/google/idgoogle") ?>']);
25
- <?php echo $this->getTrackingMoip($client_array); ?>
26
  (function() {
27
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
28
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
@@ -31,34 +31,34 @@ if (Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste") {
31
  //]]>
32
  </script>
33
  <?php endif; ?>
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 ">
41
  <h3>Seu pedido foi enviado com sucesso, <strong><?php echo $client_array['pagador_nome'] ?></strong>!</h3>
42
 
43
- <div class="corpo_moip grid12-5 ">
44
  <div class="pgcartao">
45
 
46
  <div class="method-type cc-title">
47
  <h3>Cartão de Crédito</h3>
48
- <div class="loader"/>Por favor, aguarde!</br><img src="<?php echo $this->getSkinUrl('O2TI/moip/imagem/ajax-loader.gif'); ?>" border="0"></div>
49
  </div>
50
  <div id="pgcartao">
51
- <div id="statusmoip"></div>
52
- <div id="statusmoipadd"></div>
53
  </div>
54
 
55
  <div class="warning-block" style="display:none">
56
  <h3>O Pagamento não pode ser realizado</h3>
57
  <strong>Erros Apresentados:</strong>
58
- <div class="error-msg"><ul class="erros_moip"></ul></div>
59
  </div>
60
  <div style="display: none;" id="loading-mask">
61
- <p id="loading_mask_loader" class="loader"><img alt="Loading..." src="<?php echo $this->getSkinUrl('O2TI/onestepcheckout/images/ajax-loader-tr.gif')?>"><br>Realizando pagamento, por favor aguarde...</p>
62
  </div>
63
  <div class="repeat_cartao" style="display:none;clear:both;">
64
  <div class="title_refaz"><h3>Você poderá refazer o pagamento usando o formulário abaixo</h3></div>
@@ -71,7 +71,7 @@ if (Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste") {
71
  <div class="col-md-6 grid12-6 omega">
72
  <div class="order-id-wrapper">
73
  <p>O número do seu pedido é:</p>
74
- <span class="order-id">#<?php echo $pgtoArray['id_transacao'] ?></span>
75
  <h4>Seu pedido será enviado por <?php echo $order->getShippingDescription(); ?></h4>
76
  </div>
77
  <div class="warning-block">
@@ -83,7 +83,7 @@ if (Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste") {
83
  </div>
84
  </div>
85
  </div>
86
- <?php echo Mage::getStoreConfig("o2tiall/google/outros_funil"); ?>
87
  <script type="text/javascript">
88
  //<![CDATA[
89
  var sucesso = function(data){
@@ -91,45 +91,45 @@ if (Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste") {
91
  jQuery(".repeat_cartao").show();
92
  jQuery(".warning-block").css({display:"block"});
93
  jQuery(".loader").css({display:"none"});
94
- jQuery("#statusmoip").html("<h3>Pagamento Cancelado</h3>");
95
- jQuery("#statusmoipadd").html("Transação não aprovada.");
96
  if(data.hasOwnProperty(data.Classificacao)){
97
  var motivo = JSON.stringify(data.Classificacao.Descricao);
98
  } else{
99
  var motivo = "semretorno";
100
  }
101
  if(motivo == '"Desconhecido"'){
102
- jQuery(".erros_moip").html("Seus dados estão incorretos ou não podemos envia-los a operadora de crédito.");
103
  }
104
  if(motivo == '"Transação não processada"'){
105
- jQuery(".erros_moip").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.");
106
  }
107
- if(motivo == '"Política de segurança do Moip"'){
108
- jQuery(".erros_moip").html("Pagamento não autorizado.</br>Entre em contato com o seu banco antes de uma nova tentativa.");
109
  }
110
  if(motivo == '"Política de segurança do Banco Emissor"'){
111
- jQuery(".erros_moip").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..");
112
  }
113
  if(motivo == '"Cartão vencido"'){
114
- jQuery(".erros_moip").html("A validade do seu Cartão expirou.</br>Escolha outra forma de pagamento para concluir o pagamento.");
115
  }
116
  if(motivo == '"Dados inválidos"'){
117
- jQuery(".erros_moip").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.");
118
  }
119
  if(motivo =='semretorno' ){
120
- jQuery(".erros_moip").html("Verifique os dados e tente pagar novamente.");
121
  }
122
  }
123
  if (data.Status == "EmAnalise"){
124
  jQuery(".loader").css({display:"none"});
125
- jQuery("#statusmoip").html("<h3>Pagamento Aguardando Aprovação</h3>");
126
- 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.");
127
 
128
  }
129
  if (data.Status == "Autorizado"){
130
  jQuery(".loader").css({display:"none"});
131
- jQuery("#statusmoip").html("<h3>Pagamento Aprovado</h3>");
132
- jQuery("#statusmoipadd").html("Por favor, aguarde o processo de envio.");
133
 
134
  }
135
  }
@@ -138,20 +138,20 @@ if (Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste") {
138
  jQuery(".loading-mask").hide();
139
  jQuery(".loader").css({display:"none"});
140
  jQuery(".warning-block").show();
141
- var infosMoip ="";
142
  for (i=0; i<data.length; i++) {
143
- Moip = data[i];
144
- for(j in Moip)
145
  {
146
  atributo = j;
147
  if(atributo == "Mensagem")
148
  {
149
- valor = Moip[j];
150
- infosMoip = '<li class="erro" style="list-style: none;margin-left: 29px;font-weight: bold;">'+valor+'</li>';
151
  }
152
  }
153
- jQuery(".erros_moip").html("");
154
- jQuery(".erros_moip").append(infosMoip);
155
  }
156
  }
157
  jQuery(document).ready(function(){
7
  if(Mage::getSingleton('customer/session')->isLoggedIn()) {
8
  $customerData = Mage::getSingleton('customer/session')->getCustomer();
9
  }
10
+ if (Mage::getSingleton('transparente/standard')->getConfigData('ambiente') == "teste") {
11
  $url = "https://desenvolvedor.moip.com.br/sandbox/Instrucao.do?token=";
12
  $urljs = "https://desenvolvedor.moip.com.br/sandbox/";
13
  }
21
  <script type="text/javascript">
22
  //<![CDATA[
23
  var _gaq = _gaq || [];
24
+ _gaq.push(['_setAccount', '<?php echo Mage::getStoreConfig("moipall/google/idgoogle") ?>']);
25
+ <?php echo $this->getTrackingTransparente($client_array); ?>
26
  (function() {
27
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
28
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
31
  //]]>
32
  </script>
33
  <?php endif; ?>
34
+ <?php $order = Mage::getModel('sales/order')->load($pgtoArray['id_transacao']); ?>
35
  <?php $this->getSaveDate($pgtoArray['id_transacao'], $result_decode, $customerData, $pgtoArraya, $client_array); ?>
36
 
37
+ <script type="text/javascript" charset="ISO-8859-1" src="<?php echo $urljs ?>transparente/MoipWidget-v2.js" onerror="erro_mail('erro caiu o transparente widget')" ></script>
38
  <div id="MoipWidget" data-token="<?php echo $result_decode['token'] ?>" callback-method-error="erroValidacao" callback-method-success="sucesso"></div>
39
  <div class="row grid-full">
40
  <div class="section clearer grid12-12 ">
41
  <h3>Seu pedido foi enviado com sucesso, <strong><?php echo $client_array['pagador_nome'] ?></strong>!</h3>
42
 
43
+ <div class="corpo_transparente grid12-5 ">
44
  <div class="pgcartao">
45
 
46
  <div class="method-type cc-title">
47
  <h3>Cartão de Crédito</h3>
48
+ <div class="loader"/>Por favor, aguarde!</br><img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem/ajax-loader.gif'); ?>" border="0"></div>
49
  </div>
50
  <div id="pgcartao">
51
+ <div id="statustransparente"></div>
52
+ <div id="statustransparenteadd"></div>
53
  </div>
54
 
55
  <div class="warning-block" style="display:none">
56
  <h3>O Pagamento não pode ser realizado</h3>
57
  <strong>Erros Apresentados:</strong>
58
+ <div class="error-msg"><ul class="erros_transparente"></ul></div>
59
  </div>
60
  <div style="display: none;" id="loading-mask">
61
+ <p id="loading_mask_loader" class="loader"><img alt="Loading..." src="<?php echo $this->getSkinUrl('MOIP/onestepcheckout/images/ajax-loader-tr.gif')?>"><br>Realizando pagamento, por favor aguarde...</p>
62
  </div>
63
  <div class="repeat_cartao" style="display:none;clear:both;">
64
  <div class="title_refaz"><h3>Você poderá refazer o pagamento usando o formulário abaixo</h3></div>
71
  <div class="col-md-6 grid12-6 omega">
72
  <div class="order-id-wrapper">
73
  <p>O número do seu pedido é:</p>
74
+ <span class="order-id">#<?php echo Mage::getSingleton('checkout/session')->getLastRealOrderId() ?></span>
75
  <h4>Seu pedido será enviado por <?php echo $order->getShippingDescription(); ?></h4>
76
  </div>
77
  <div class="warning-block">
83
  </div>
84
  </div>
85
  </div>
86
+ <?php echo Mage::getStoreConfig("moipall/google/outros_funil"); ?>
87
  <script type="text/javascript">
88
  //<![CDATA[
89
  var sucesso = function(data){
91
  jQuery(".repeat_cartao").show();
92
  jQuery(".warning-block").css({display:"block"});
93
  jQuery(".loader").css({display:"none"});
94
+ jQuery("#statustransparente").html("<h3>Pagamento Cancelado</h3>");
95
+ jQuery("#statustransparenteadd").html("Transação não aprovada.");
96
  if(data.hasOwnProperty(data.Classificacao)){
97
  var motivo = JSON.stringify(data.Classificacao.Descricao);
98
  } else{
99
  var motivo = "semretorno";
100
  }
101
  if(motivo == '"Desconhecido"'){
102
+ jQuery(".erros_transparente").html("Seus dados estão incorretos ou não podemos envia-los a operadora de crédito.");
103
  }
104
  if(motivo == '"Transação não processada"'){
105
+ jQuery(".erros_transparente").html("O pagamento não pode ser processado.</br>Por favor, tente novamente.</br>Caso o erro persista, entre em contato com o nosso atendimento.");
106
  }
107
+ if(motivo == '"Política de segurança do Transparente"'){
108
+ jQuery(".erros_transparente").html("Pagamento não autorizado.</br>Entre em contato com o seu banco antes de uma nova tentativa.");
109
  }
110
  if(motivo == '"Política de segurança do Banco Emissor"'){
111
+ jQuery(".erros_transparente").html("O pagamento não foi autorizado pelo Banco Emissor do seu Cartão.</br>Entre em contato com o Banco para entender o motivo e refazer o pagamento..");
112
  }
113
  if(motivo == '"Cartão vencido"'){
114
+ jQuery(".erros_transparente").html("A validade do seu Cartão expirou.</br>Escolha outra forma de pagamento para concluir o pagamento.");
115
  }
116
  if(motivo == '"Dados inválidos"'){
117
+ jQuery(".erros_transparente").html("Dados informados inválidos.</br>Você digitou algo errado durante o preenchimento dos dados do seu Cartão.</br>Certifique-se de que está usando o Cartão correto e faça uma nova tentativa.");
118
  }
119
  if(motivo =='semretorno' ){
120
+ jQuery(".erros_transparente").html("Verifique os dados e tente pagar novamente.");
121
  }
122
  }
123
  if (data.Status == "EmAnalise"){
124
  jQuery(".loader").css({display:"none"});
125
+ jQuery("#statustransparente").html("<h3>Pagamento Aguardando Aprovação</h3>");
126
+ jQuery("#statustransparenteadd").html("Por favor, aguarde a em análise da transação. Assim que for alterado o status você será informado via e-mail.");
127
 
128
  }
129
  if (data.Status == "Autorizado"){
130
  jQuery(".loader").css({display:"none"});
131
+ jQuery("#statustransparente").html("<h3>Pagamento Aprovado</h3>");
132
+ jQuery("#statustransparenteadd").html("Por favor, aguarde o processo de envio.");
133
 
134
  }
135
  }
138
  jQuery(".loading-mask").hide();
139
  jQuery(".loader").css({display:"none"});
140
  jQuery(".warning-block").show();
141
+ var infosTransparente ="";
142
  for (i=0; i<data.length; i++) {
143
+ Transparente = data[i];
144
+ for(j in Transparente)
145
  {
146
  atributo = j;
147
  if(atributo == "Mensagem")
148
  {
149
+ valor = Transparente[j];
150
+ infosTransparente = '<li class="erro" style="list-style: none;margin-left: 29px;font-weight: bold;">'+valor+'</li>';
151
  }
152
  }
153
+ jQuery(".erros_transparente").html("");
154
+ jQuery(".erros_transparente").append(infosTransparente);
155
  }
156
  }
157
  jQuery(document).ready(function(){
app/design/frontend/base/default/template/{O2TI/moip → MOIP/transparente}/emptyupdate.phtml RENAMED
@@ -1,6 +1,6 @@
1
  <?php if($this->getRequest()->getParams()){
2
  $post = $this->getRequest()->getPost();
3
- $moip_id = $post['moip_id'];
4
  $pgtoArray = array();
5
  $pgtoArray['forma_pagamento'] = $post['forma_de_pagamento'];
6
  $pgtoArray['credito_instituicao'] = $post['bandeira'];
@@ -17,8 +17,8 @@
17
  $pgtoArray['credito_portador_telefone'] = $this->getNumberOrDDD($post['Telefone']);
18
  $pgtoArray['credito_portador_nascimento'] = date('Y-m-d', strtotime($post['DataNascimento']));
19
  Mage::unregister('result_decode');
20
- $api = Mage::getModel('moip/api');
21
- $pagar = $api->getRePagar($moip_id, $pgtoArray);
22
  Mage::Register('result_decode', $pagar);
23
  $refez = json_decode($pagar);
24
  }
1
  <?php if($this->getRequest()->getParams()){
2
  $post = $this->getRequest()->getPost();
3
+ $transparente_id = $post['transparente_id'];
4
  $pgtoArray = array();
5
  $pgtoArray['forma_pagamento'] = $post['forma_de_pagamento'];
6
  $pgtoArray['credito_instituicao'] = $post['bandeira'];
17
  $pgtoArray['credito_portador_telefone'] = $this->getNumberOrDDD($post['Telefone']);
18
  $pgtoArray['credito_portador_nascimento'] = date('Y-m-d', strtotime($post['DataNascimento']));
19
  Mage::unregister('result_decode');
20
+ $api = Mage::getModel('transparente/api');
21
+ $pagar = $api->getRePagar($transparente_id, $pgtoArray);
22
  Mage::Register('result_decode', $pagar);
23
  $refez = json_decode($pagar);
24
  }
app/design/frontend/base/default/template/{O2TI/moip → MOIP/transparente}/form.phtml RENAMED
@@ -1,7 +1,7 @@
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 = "";
@@ -10,39 +10,39 @@ $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');
@@ -98,23 +98,23 @@ $parcelas .= "<option value=\"1\"> Pagamento à vista </option>";
98
  endif;
99
 
100
 
101
- if (Mage::getStoreConfig('o2tiall/pagamento_avancado/pagamento_boleto')):
102
- if ($valor_pedido >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor')):
103
- $descontotexto = "Com desconto de: ".Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc')."%.";
104
  $descontotexto1 = $descontotexto ."<br/>Págavel em qualquer banco, casas lotéricas ou via internet bank.";
105
- $desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc')/100;
106
  endif;
107
 
108
- 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') ):
109
- $descontotexto = "Com desconto de: ".Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc2')."%.";
110
  $descontotexto1 = $descontotexto ."<br/>Págavel em qualquer banco, casas lotéricas ou via internet bank.";
111
- $desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc2')/100;
112
  endif;
113
 
114
- if (Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3') != "" && $valor_pedido >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3') ):
115
- $descontotexto = "Com desconto de: ".Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc3')."%.";
116
  $descontotexto1 = $descontotexto ."<br/>Págavel em qualquer banco, casas lotéricas ou via internet bank.";
117
- $desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc3')/100;
118
  endif;
119
 
120
 
@@ -124,23 +124,23 @@ $desconto = $data->getGrandTotal();
124
  endif;
125
 
126
 
127
- if (Mage::getStoreConfig('o2tiall/pagamento_avancado/transf_desc')):
128
- if ($valor_pedido >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor')):
129
- $descontotexto = "Com desconto de: ".Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc')."%.";
130
  $descontotexto1 = $descontotexto ."<br/>Págavel únicamente através internet bank.";
131
- $desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc')/100;
132
  endif;
133
 
134
- 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') ):
135
- $descontotexto = "Com desconto de: ".Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc2')."%.";
136
  $descontotexto1 = $descontotexto ."<br/>Págavel únicamente através internet bank.";
137
- $desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc2')/100;
138
  endif;
139
 
140
- if (Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3') != "" && $valor_pedido >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3') ):
141
- $descontotexto = "Com desconto de: ".Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc3')."%.";
142
  $descontotexto1 = $descontotexto ."<br/>Págavel únicamente através internet bank.";
143
- $desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc3')/100;
144
  endif;
145
 
146
 
@@ -217,28 +217,28 @@ function countChar(val) {
217
  }
218
  }
219
  };
220
- //validacao do moip - inicio
221
  jQuery('.btn-checkout').on("click",function(e)
222
  {
223
- if(jQuery('input[name=payment\\[method\\]]:checked').val() == "o2ti_moip_standard"){
224
  if(!jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val()){
225
- if(!jQuery('#advice-required-o2ti').length)
226
  {
227
  logic=false;
228
- jQuery('#checkout-payment-o2ti').css({display:"block"});
229
- jQuery('#checkout-payment-o2ti').html('Selecione a forma de pagamento.');
230
  return false;
231
  }
232
  }
233
  else
234
- jQuery('#checkout-payment-o2ti').css({display:"none"});
235
- jQuery('#advice-required-entry_payment_o2ti').remove();
236
  }
237
  if(jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val() == "CartaoCredito")
238
  {
239
  if(!jQuery("input[name=payment\\[credito_instituicao\\]]:checked").val())
240
  {
241
- if(!jQuery('#advice-required-o2ti').length)
242
  {
243
  logic=false;
244
  jQuery('#checkout-payment-bandeira').css({display:"block"});
@@ -254,7 +254,7 @@ jQuery('.btn-checkout').on("click",function(e)
254
  {
255
  if(!jQuery("input[name=payment\\[debito_instituicao\\]]:checked").val())
256
  {
257
- if(!jQuery('#advice-required-o2ti').length)
258
  {
259
  logic=false;
260
  jQuery('#checkout-payment-banco').css({display:"block"});
@@ -268,9 +268,9 @@ jQuery('.btn-checkout').on("click",function(e)
268
  }
269
  });
270
 
271
- //validacao do moip - fim
272
  bb = function(){
273
- document.getElementById('checkout-payment-o2ti-deb').style.display='none';
274
  document.getElementById('debbb').style.opacity='1';
275
  document.getElementById('debbradesco').style.opacity='0.4';
276
  document.getElementById('debitau').style.opacity='0.4';
@@ -279,7 +279,7 @@ bb = function(){
279
  document.getElementById('checkout-payment-banco').style.display='none';
280
  };
281
  bradesco = function(){
282
- document.getElementById('checkout-payment-o2ti-deb').style.display='none';
283
  document.getElementById('debbb').style.opacity='0.4';
284
  document.getElementById('debbradesco').style.opacity='1';
285
  document.getElementById('debitau').style.opacity='0.4';
@@ -288,7 +288,7 @@ bradesco = function(){
288
  document.getElementById('checkout-payment-banco').style.display='none';
289
  };
290
  itau = function(){
291
- document.getElementById('checkout-payment-o2ti-deb').style.display='none';
292
  document.getElementById('debbb').style.opacity='0.4';
293
  document.getElementById('debbradesco').style.opacity='0.4';
294
  document.getElementById('debitau').style.opacity='1';
@@ -297,7 +297,7 @@ itau = function(){
297
  document.getElementById('checkout-payment-banco').style.display='none';
298
  };
299
  banrisul = function(){
300
- document.getElementById('checkout-payment-o2ti-deb').style.display='none';
301
  document.getElementById('debbb').style.opacity='0.4';
302
  document.getElementById('debbradesco').style.opacity='0.4';
303
  document.getElementById('debitau').style.opacity='0.4';
@@ -347,8 +347,8 @@ hipercard = function(){
347
  };
348
  </script>
349
 
350
- <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('O2TI/moip/css/formulario.css'); ?> "media="all">
351
- <div id="checkouto2ti">
352
  <ul id="payment_form_<?php echo $this->getMethodCode() ?>">
353
 
354
 
@@ -469,26 +469,26 @@ hipercard = function(){
469
  <div class="input-box" style="text-align:center;">
470
 
471
  <label id="band">
472
- <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">
473
  </label>
474
 
475
  <label id="band">
476
- <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">
477
  </label>
478
 
479
 
480
  <label id="band">
481
- <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">
482
  </label>
483
  </div>
484
  <div class="input-box" style="text-align:center;">
485
  <label id="band">
486
- <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">
487
  </label>
488
 
489
 
490
  <label id="band">
491
- <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">
492
  </label>
493
 
494
  </div>
@@ -545,7 +545,7 @@ hipercard = function(){
545
  <div class="input-box">
546
  <span class="tooltip">
547
  <input type="text" name="payment[credito_codigo_seguranca]" onkeyup="countChar(this)" class="input-text required-entry" id="credito_codigo_seguranca" >
548
- <span class="custom help" style=" width:260px;"><em>Código de segurança:</em>Veja no verso do seu cartão.<img src="<?php echo $this->getSkinUrl('O2TI/moip/imagem/codigo-seguranca.png'); ?>" id="imageseguramoip" border="0"></span></span>
549
  </div>
550
  </li>
551
  <?php
@@ -582,7 +582,7 @@ hipercard = function(){
582
 
583
  <div id="formcli" style="display:none;">
584
  <h3>Dados do Titular</h3>
585
- <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>
586
 
587
  <li class="wide">
588
  <label class="required" for="credito_parcela">Nome no Cartão:</label>
@@ -652,7 +652,7 @@ hipercard = function(){
652
  <?php echo $descontotexto1; ?>
653
  </br>
654
  </div>
655
- <div id="moip_debito_bandeiras">
656
  <label>
657
  <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" onclick="bb();" value="BancoDoBrasil">
658
  <img src="<?php echo $cartao_bb; ?>" alt="Banco do Brasil" id="debbb" >
@@ -671,7 +671,7 @@ hipercard = function(){
671
  </label>
672
  </div>
673
  <div id="checkout-payment-banco" class="validation-advice" style="position:relative;display:none;"></div>
674
- <div id="checkout-payment-o2ti-deb" class="validation-advice" style="position:relative;display:none;" >
675
  Por favor, selecione o banco!
676
  </div>
677
  </div>
@@ -679,4 +679,4 @@ hipercard = function(){
679
 
680
  </ul>
681
  </div>
682
- <div id="checkout-payment-o2ti" class="validation-advice" style="position:relative;display:none;"></div>
1
  <?php
2
+ $standad = Mage::getSingleton('transparente/standard');
3
+ $api = Mage::getSingleton('transparente/api');
4
+ $api->setContaTransparente($standad->getConfigData('conta_transparente'));
5
  $api->setAmbiente($standad->getConfigData('ambiente'));
6
  $parcelas = "";
7
  $descontotexto = "";
10
  $telefone = "";
11
  $cpf = "";
12
  $dn = "";
13
+ $icone_cartao = $this->getSkinUrl('MOIP/transparente/imagem/abacartao.png');
14
+ $icone_boleto = $this->getSkinUrl('MOIP/transparente/imagem/ababoleto.png');
15
+ $icone_transf = $this->getSkinUrl('MOIP/transparente/imagem/abatransf.png');
16
+ $cartao_visa = $this->getSkinUrl('MOIP/transparente/imagem/Visa.png');
17
+ $cartao_master = $this->getSkinUrl('MOIP/transparente/imagem/Mastercard.png');
18
+ $cartao_diners = $this->getSkinUrl('MOIP/transparente/imagem/Diners.png');
19
+ $cartao_american = $this->getSkinUrl('MOIP/transparente/imagem/AmericanExpress.png');
20
+ $cartao_hipercard = $this->getSkinUrl('MOIP/transparente/imagem/Hipercard.png');
21
+ $boleto = $this->getSkinUrl('MOIP/transparente/imagem/Bradesco.png');
22
+ $cartao_bb = $this->getSkinUrl('MOIP/transparente/imagem/BancoDoBrasil.png');
23
+ $cartao_bradesco = $this->getSkinUrl('MOIP/transparente/imagem/Bradesco.png');
24
+ $cartao_itau = $this->getSkinUrl('MOIP/transparente/imagem/Itau.png');
25
+ $cartao_banrisul = $this->getSkinUrl('MOIP/transparente/imagem/Banrisul.png');
26
+ if(Mage::getStoreConfig('moipall/config/trocar_icone')):
27
+ $icone_cartao = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/icone_cartao');
28
+ $icone_boleto = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/icone_boleto');
29
+ $icone_transf = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/icone_transf');
30
  endif;
31
+ if(Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')):
32
+ $cartao_visa = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_visa');
33
+ $cartao_master = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_master');
34
+ $cartao_diners = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_diners');
35
+ $cartao_american = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_american');
36
+ $cartao_hipercard = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_hipercard');
37
  endif;
38
+ if(Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')):
39
+ $cartao_bb = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_bb');
40
+ $cartao_bradesco = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_bradesco');
41
+ $cartao_itau = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_itau');
42
+ $cartao_banrisul = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/cartao_banrisul');
43
  endif;
44
+ if(Mage::getStoreConfig('moipall/config/trocar_bandeira_cartao')):
45
+ $boleto = Mage::getBaseUrl('media') . "moip/alltransparente/". Mage::getStoreConfig('moipall/config/boleto');
46
  endif;
47
  $mostraboleto = 1;
48
  $nivelestoque = $standad->getConfigData('estoqueboleto');
98
  endif;
99
 
100
 
101
+ if (Mage::getStoreConfig('moipall/pagamento_avancado/pagamento_boleto')):
102
+ if ($valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor')):
103
+ $descontotexto = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc')."%.";
104
  $descontotexto1 = $descontotexto ."<br/>Págavel em qualquer banco, casas lotéricas ou via internet bank.";
105
+ $desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc')/100;
106
  endif;
107
 
108
+ if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') && $valor_pedido < Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ):
109
+ $descontotexto = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc2')."%.";
110
  $descontotexto1 = $descontotexto ."<br/>Págavel em qualquer banco, casas lotéricas ou via internet bank.";
111
+ $desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc2')/100;
112
  endif;
113
 
114
+ if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ):
115
+ $descontotexto = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc3')."%.";
116
  $descontotexto1 = $descontotexto ."<br/>Págavel em qualquer banco, casas lotéricas ou via internet bank.";
117
+ $desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc3')/100;
118
  endif;
119
 
120
 
124
  endif;
125
 
126
 
127
+ if (Mage::getStoreConfig('moipall/pagamento_avancado/transf_desc')):
128
+ if ($valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor')):
129
+ $descontotexto = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc')."%.";
130
  $descontotexto1 = $descontotexto ."<br/>Págavel únicamente através internet bank.";
131
+ $desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc')/100;
132
  endif;
133
 
134
+ if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor2') && $valor_pedido < Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ):
135
+ $descontotexto = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc2')."%.";
136
  $descontotexto1 = $descontotexto ."<br/>Págavel únicamente através internet bank.";
137
+ $desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc2')/100;
138
  endif;
139
 
140
+ if (Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') != "" && $valor_pedido >= Mage::getStoreConfig('moipall/pagamento_avancado/boleto_valor3') ):
141
+ $descontotexto = "Com desconto de: ".Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc3')."%.";
142
  $descontotexto1 = $descontotexto ."<br/>Págavel únicamente através internet bank.";
143
+ $desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('moipall/pagamento_avancado/boleto_desc3')/100;
144
  endif;
145
 
146
 
217
  }
218
  }
219
  };
220
+ //validacao do transparente - inicio
221
  jQuery('.btn-checkout').on("click",function(e)
222
  {
223
+ if(jQuery('input[name=payment\\[method\\]]:checked').val() == "moip_transparente_standard"){
224
  if(!jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val()){
225
+ if(!jQuery('#advice-required-moip').length)
226
  {
227
  logic=false;
228
+ jQuery('#checkout-payment-moip').css({display:"block"});
229
+ jQuery('#checkout-payment-moip').html('Selecione a forma de pagamento.');
230
  return false;
231
  }
232
  }
233
  else
234
+ jQuery('#checkout-payment-moip').css({display:"none"});
235
+ jQuery('#advice-required-entry_payment_moip').remove();
236
  }
237
  if(jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val() == "CartaoCredito")
238
  {
239
  if(!jQuery("input[name=payment\\[credito_instituicao\\]]:checked").val())
240
  {
241
+ if(!jQuery('#advice-required-moip').length)
242
  {
243
  logic=false;
244
  jQuery('#checkout-payment-bandeira').css({display:"block"});
254
  {
255
  if(!jQuery("input[name=payment\\[debito_instituicao\\]]:checked").val())
256
  {
257
+ if(!jQuery('#advice-required-moip').length)
258
  {
259
  logic=false;
260
  jQuery('#checkout-payment-banco').css({display:"block"});
268
  }
269
  });
270
 
271
+ //validacao do transparente - fim
272
  bb = function(){
273
+ document.getElementById('checkout-payment-moip-deb').style.display='none';
274
  document.getElementById('debbb').style.opacity='1';
275
  document.getElementById('debbradesco').style.opacity='0.4';
276
  document.getElementById('debitau').style.opacity='0.4';
279
  document.getElementById('checkout-payment-banco').style.display='none';
280
  };
281
  bradesco = function(){
282
+ document.getElementById('checkout-payment-moip-deb').style.display='none';
283
  document.getElementById('debbb').style.opacity='0.4';
284
  document.getElementById('debbradesco').style.opacity='1';
285
  document.getElementById('debitau').style.opacity='0.4';
288
  document.getElementById('checkout-payment-banco').style.display='none';
289
  };
290
  itau = function(){
291
+ document.getElementById('checkout-payment-moip-deb').style.display='none';
292
  document.getElementById('debbb').style.opacity='0.4';
293
  document.getElementById('debbradesco').style.opacity='0.4';
294
  document.getElementById('debitau').style.opacity='1';
297
  document.getElementById('checkout-payment-banco').style.display='none';
298
  };
299
  banrisul = function(){
300
+ document.getElementById('checkout-payment-moip-deb').style.display='none';
301
  document.getElementById('debbb').style.opacity='0.4';
302
  document.getElementById('debbradesco').style.opacity='0.4';
303
  document.getElementById('debitau').style.opacity='0.4';
347
  };
348
  </script>
349
 
350
+ <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('MOIP/transparente/css/formulario.css'); ?> "media="all">
351
+ <div id="checkoutmoip">
352
  <ul id="payment_form_<?php echo $this->getMethodCode() ?>">
353
 
354
 
469
  <div class="input-box" style="text-align:center;">
470
 
471
  <label id="band">
472
+ <input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" onclick="visa();" value="Visa"><img src="<?php echo $cartao_visa; ?>" onclick=";" id="Visa" alt="Visa" border="0">
473
  </label>
474
 
475
  <label id="band">
476
+ <input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" onclick="mastercard();" value="Mastercard"><img src="<?php echo $cartao_master; ?>" onclick="" id="Mastercard" alt="Mastercard" border="0">
477
  </label>
478
 
479
 
480
  <label id="band">
481
+ <input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" onclick="americanexpress();" value="AmericanExpress"><img src="<?php echo $cartao_american; ?>" onclick="" id="AmericanExpress" alt="AmericanExpress" border="0">
482
  </label>
483
  </div>
484
  <div class="input-box" style="text-align:center;">
485
  <label id="band">
486
+ <input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" onclick="diners();" value="Diners"> <img onclick="" src="<?php echo $cartao_diners; ?>" id="Diners" alt="Diners" border="0">
487
  </label>
488
 
489
 
490
  <label id="band">
491
+ <input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" onclick="hipercard();" value="Hipercard"><img onclick="" src="<?php echo $cartao_hipercard; ?>" id="Hipercard" alt="Hipercard" border="0">
492
  </label>
493
 
494
  </div>
545
  <div class="input-box">
546
  <span class="tooltip">
547
  <input type="text" name="payment[credito_codigo_seguranca]" onkeyup="countChar(this)" class="input-text required-entry" id="credito_codigo_seguranca" >
548
+ <span class="custom help" style=" width:260px;"><em>Código de segurança:</em>Veja no verso do seu cartão.<img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem/codigo-seguranca.png'); ?>" id="imageseguratransparente" border="0"></span></span>
549
  </div>
550
  </li>
551
  <?php
582
 
583
  <div id="formcli" style="display:none;">
584
  <h3>Dados do Titular</h3>
585
+ <div id="pjtransparente" style="display:none;width:80%; float:left;color:red;">Atenção para Pessoa Júridica você deverá informar os dados do seu cartão empresarial, não os dados da empresa.</div>
586
 
587
  <li class="wide">
588
  <label class="required" for="credito_parcela">Nome no Cartão:</label>
652
  <?php echo $descontotexto1; ?>
653
  </br>
654
  </div>
655
+ <div id="transparente_debito_bandeiras">
656
  <label>
657
  <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" onclick="bb();" value="BancoDoBrasil">
658
  <img src="<?php echo $cartao_bb; ?>" alt="Banco do Brasil" id="debbb" >
671
  </label>
672
  </div>
673
  <div id="checkout-payment-banco" class="validation-advice" style="position:relative;display:none;"></div>
674
+ <div id="checkout-payment-moip-deb" class="validation-advice" style="position:relative;display:none;" >
675
  Por favor, selecione o banco!
676
  </div>
677
  </div>
679
 
680
  </ul>
681
  </div>
682
+ <div id="checkout-payment-moip" class="validation-advice" style="position:relative;display:none;"></div>
app/design/frontend/base/default/template/MOIP/transparente/horizontal_form.phtml ADDED
@@ -0,0 +1,456 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <?php
3
+ $nome = "";
4
+ $cpf = "";
5
+ $telefone = "";
6
+ $selector = "";
7
+ $dn = "";
8
+ ?>
9
+ <script type="text/javascript">
10
+ //<![CDATA[
11
+ fechar = function(){
12
+ jQuery('.transparente-payment-method-content').slideUp();
13
+ }
14
+ function setCcType(ccType)
15
+ {
16
+ if(ccType != 'HI'){
17
+ jQuery('#transparente_cc_type').val(ccType);
18
+ jQuery('#credito_numero').addClass('validate-cc-number');
19
+ jQuery('#credito_numero').addClass('validate-cc-type');
20
+ } else {
21
+ jQuery('#credito_numero').removeClass('validate-cc-number');
22
+ jQuery('#credito_numero').removeClass('validate-cc-type');
23
+
24
+ }
25
+
26
+ }
27
+ if(Validation) {
28
+ if($H != 'HI'){
29
+ Validation.creditCartTypes = $H({
30
+ 'VI': [new RegExp('^4[0-9]{12}([0-9]{3})?$'), new RegExp('^[0-9]{3}$'), true],
31
+ 'MC': [new RegExp('^5[1-5][0-9]{14}$'), new RegExp('^[0-9]{3}$'), true],
32
+ 'AE': [new RegExp('^3[47][0-9]{13}$'), new RegExp('^[0-9]{4}$'), true],
33
+ 'HI': [new RegExp('/^(606282\d{10}(\d{3})?)|(3841\d{15})$/'), new RegExp('^[0-9]{3}$'), true],
34
+ 'DI': [false, new RegExp('^[0-9]+'), true]
35
+ });
36
+ }
37
+ }
38
+ function countChar(val) {
39
+ var cvv = val.value.length;
40
+ if (cvv > 2) {
41
+ jQuery(".dados-titular").slideDown("slow");
42
+ jQuery("#formcli").slideDown("slow");
43
+
44
+ jQuery('.dados-titular').css({
45
+ display: "block"
46
+ });
47
+ jQuery("#formcli").css({
48
+ display: "block"
49
+ });
50
+ document.getElementById('credito_portador_nome').value = document.getElementById('billing:firstname').value + ' ' + document.getElementById('billing:lastname').value;
51
+ document.getElementById('credito_portador_telefone').value = document.getElementById('billing:telephone').value;
52
+ document.getElementById('credito_portador_cpf').value = document.getElementById('billing:taxvat').value;
53
+ if (document.getElementById('billing:year').value) {
54
+ document.getElementById('credito_portador_nascimento').value = document.getElementById('billing:day').value + '/' + document.getElementById('billing:month').value + '/' + document.getElementById('billing:year').value
55
+ }
56
+ }
57
+ };
58
+ jQuery(document).ready(function() {
59
+ var creditcards = {
60
+ list:[
61
+ {
62
+ brand: 'American Express',
63
+ value_brand: 'Amex-moip',
64
+ verification: '^3[47][0-9]',
65
+ separation: '^([0-9]{4})([0-9]{6})?(?:([0-9]{6})([0-9]{5}))?$',
66
+ hidden: '**** ****** *[0-9][0-9][0-9][0-9]',
67
+ accepted: true,
68
+ length: 15
69
+ },
70
+ {
71
+ brand: 'MasterCard',
72
+ value_brand: 'Mastercard-moip',
73
+ verification: '^5[1-5][0-9]',
74
+ separation: '^([0-9]{4})([0-9]{4})?([0-9]{4})?([0-9]{4})?$',
75
+ hidden: '**** **** **** [0-9][0-9][0-9][0-9]',
76
+ accepted: true,
77
+ length: 16
78
+ },
79
+ {
80
+ brand: 'Visa',
81
+ value_brand: 'Visa-moip',
82
+ verification: '^4[0-9]',
83
+ separation: '^([0-9]{4})([0-9]{4})?([0-9]{4})?([0-9]{4})?$',
84
+ hidden: '**** **** **** [0-9][0-9][0-9][0-9]',
85
+ accepted: true,
86
+ length: 16
87
+ },
88
+ {
89
+ brand: 'Hipercard',
90
+ value_brand: 'Hipercard-moip',
91
+ verification: '^606282|3841(?:0[0-9])[0-9]',
92
+ separation: '^([0-9]{19})?$',
93
+ hidden: '*****************',
94
+ accepted: true,
95
+ length: 19
96
+ },
97
+ {
98
+ brand: 'Diners Club',
99
+ value_brand: 'Dinners-moip',
100
+ verification: '^3(?:0[0-5]|[68][0-9])[0-9]',
101
+ separation: '^([0-9]{4})([0-9]{4})?([0-9]{4})?(?:([0-9]{4})([0-9]{4})([0-9]{2}))?$',
102
+ hidden: '**** **** **[0-9][0-9] [0-9][0-9]',
103
+ accepted: true,
104
+ length: 14
105
+ }
106
+
107
+ ],
108
+ active:null
109
+ };
110
+ jQuery('#credito_numero').keydown(function(e){
111
+ var card = jQuery(this).val().replace(/[^0-9]/g,''),
112
+ trim = jQuery.trim( jQuery(this).val().slice(0,-1) );
113
+ for( var i=0; i<creditcards.list.length; i++ ){
114
+ if(card.match( new RegExp(creditcards.list[i].verification) )){
115
+ creditcards.active = i;
116
+ if( jQuery(this).next('img').length == 0 ){
117
+ jQuery(this).next('small').remove();
118
+ jQuery("."+creditcards.list[i].value_brand).trigger('click');
119
+ }
120
+ if( !creditcards.list[i].accepted && jQuery(this).nextAll('small').length == 0 ){
121
+
122
+ }
123
+ break;
124
+ }
125
+ }
126
+ if( creditcards.active == null && card.length > 4 && jQuery(this).nextAll('small').length == 0 ){
127
+ jQuery(this).after('<small style="margin-left:5px; color:#F00;">'+'Cartão Inválido'+'</small>');
128
+ jQuery('.input-brand-bandeira > li').find('img').show();
129
+ }
130
+ key = creditcards.active !== null? creditcards.active : 1 ;
131
+ if( e.keyCode == 8 && trim != jQuery(this).val().slice(0,-1) ){
132
+ jQuery(this).val( trim );
133
+ e.preventDefault();
134
+ return;
135
+ }
136
+ if( card.length >= creditcards.list[ key ].length && jQuery.inArray(e.keyCode, [37, 38, 39, 40, 46, 8, 9, 27, 13, 110, 190]) === -1 && !e.metaKey && !e.ctrlKey ){
137
+ e.preventDefault();
138
+ return;
139
+ }
140
+ if( new RegExp(creditcards.list[ key ].separation).exec( card ) && e.keyCode >= 48 && e.keyCode <= 57 ){
141
+ jQuery(this).val( jQuery(this).val() + ' ' );
142
+ }
143
+ return;
144
+ });
145
+ jQuery('#credito_numero').keyup(function(e){
146
+ var card = jQuery(this).val().replace(/[^0-9]/,'');
147
+ if( creditcards.active !== null && !card.match( new RegExp(creditcards.list[ creditcards.active ].verification) ) ){
148
+ jQuery(this).nextAll('small').remove();
149
+ jQuery(this).next('img').remove();
150
+ creditcards.active = null;
151
+ }else
152
+ if( card.length < 4 ){
153
+ jQuery(this).next('small').remove();
154
+ }
155
+ });
156
+ jQuery('#credito_numero').on('paste',function(e){
157
+ var el = this;
158
+ setTimeout(function(){
159
+ var card = jQuery(el).val().replace(/[^0-9]/g,'');
160
+ jQuery(el).val( card );
161
+ var e = jQuery.Event('keydown',{
162
+ which: 37,
163
+ keyCode: 37
164
+ });
165
+ jQuery(el).trigger(e).promise().done(function(e){
166
+ key = creditcards.active !== null? creditcards.active : 1 ;
167
+ card.substr( 0 , creditcards.list[ key ].length );
168
+ var separation = new RegExp(creditcards.list[ key ].separation).exec( card ),
169
+ storage = '';
170
+ while( !separation && card.length > 1 ){
171
+ storage = card.charAt( card.length - 1 );
172
+ card = card.slice(0,-1);
173
+ separation = new RegExp(creditcards.list[ key ].separation).exec( card );
174
+ }
175
+ if( separation ){
176
+ var separated = [];
177
+ for( var i=0; i<separation.length; i++){
178
+ if( typeof separation[i] != 'undefined' ) separated.push( separation[i] );
179
+ }
180
+ var string = separated.slice(1).join(' ') + (storage!=''? ' '+storage : '' )
181
+ jQuery(el).val( string )
182
+ }
183
+ });
184
+ },0);
185
+ });
186
+
187
+
188
+ jQuery('#credito_portador_telefone').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
189
+ jQuery('#credito_portador_cpf').mask("000.000.000-00", {placeholder: "___.___.___-__"});
190
+ jQuery('#credito_portador_nascimento').mask("99/99/9999", {placeholder: "__/__/____"});
191
+ jQuery('#credito_codigo_seguranca').mask("999Z", {placeholder: "999",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
192
+
193
+ jQuery('.input-brand-bandeira > li').bind({
194
+ click: function() {
195
+ jQuery(this).parent().find('input[type="radio"]').attr('checked', false);
196
+ jQuery(this).parent().find('img').hide();
197
+ jQuery(this).find('img').show();
198
+ jQuery(this).fadeTo(0, 1);
199
+ jQuery(this).find('input[type="radio"]').attr('checked', true);
200
+ }
201
+ });
202
+
203
+ jQuery('.input-switcher > li').bind({
204
+ click: function() {
205
+ jQuery(this).parent().children('li').fadeTo(300, 0.4);
206
+ jQuery(this).parent().find('input[type="radio"]').attr('checked', false);
207
+ jQuery('#checkout-payment-bandeira').hide();
208
+ jQuery('#checkout-payment-banco').hide();
209
+ jQuery(this).fadeTo(0, 1);
210
+ jQuery(this).find('input[type="radio"]').attr('checked', true);
211
+ }
212
+ });
213
+ jQuery('.transparente-payment-methods > li').bind({
214
+ click: function() {
215
+ jQuery('.transparente-payment-method-content').not('#' + jQuery(this).attr('data-target')).slideUp();
216
+ jQuery('#' + jQuery(this).attr('data-target')).slideDown();
217
+ }
218
+ });
219
+
220
+ jQuery("input.radio.payment_method_handle:checked").live({
221
+ click: function() {
222
+ if (jQuery(this).val() == 'moip_transparente_standard') {
223
+ showBlocks();
224
+ } else {
225
+ hideBlocks();
226
+ }
227
+ }
228
+ });
229
+
230
+ <?php if(Mage::getStoreConfig('moipall/config/enable_carrinho')): ?>
231
+ if(jQuery("input.radio.payment_method_handle:checked").val() == "moip_transparente_standard"){
232
+ setTimeout(function(){showBlocks()}, 100);
233
+ } else {
234
+ hideBlocks();
235
+ }
236
+ if(jQuery("input[name=payment\\[method\\]]:checked").val() == "moip_transparente_standard" && jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val() != ""){
237
+ jQuery("#cartao_radio").trigger("click");
238
+ jQuery("#transparente-cartao").css({'display':'block'})
239
+ } else {
240
+ jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val();
241
+ jQuery("#transparente-cartao").css({'display':'none'});
242
+ }
243
+ <?php endif ?>
244
+ });
245
+
246
+ function showBlocks(){
247
+ jQuery('ul.transparente-payment-methods li').first().click();
248
+ jQuery('ul.transparente-payment-methods').css({'display':'block'});
249
+ jQuery('#transparente-cartao, #transparente-boleto, #transparente-transferencia').children().show();
250
+ }
251
+
252
+ function hideBlocks(){
253
+ jQuery('.transparente-payment-method-content').css({'display':'none'});
254
+ jQuery('ul.transparente-payment-methods').css({'display':'none'});
255
+ jQuery('#transparente-cartao, #transparente-boleto, #transparente-transferencia').children().hide();
256
+ }
257
+ //]]>
258
+ </script>
259
+
260
+ <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('MOIP/transparente/css/formulario.css'); ?>"media="all">
261
+ <div id="payment_form_<?php echo $this->getMethodCode() ?>" style="display:none">
262
+ <ul class="inline transparente-payment-methods input-switcher">
263
+ <?php if($this->mostraCartao()): ?>
264
+ <li data-target="transparente-cartao">
265
+ <img alt="Cartão de Crédito" src="<?php echo $this->getCartaoIcon(); ?>">
266
+ <input id="cartao_radio" type="radio" name="payment[forma_pagamento]" title="Cartão de Crédito" value="CartaoCredito" class="forma_pg validate-one-required-by-name">
267
+ </li>
268
+ <?php endif; ?>
269
+ <?php if($this->mostraBoleto()): ?>
270
+ <li data-target="transparente-boleto">
271
+ <img alt="Boleto Bancário" src="<?php echo $this->getBoletoIcon(); ?>">
272
+ <input type="radio" name="payment[forma_pagamento]" title="Boleto" <?php if(!$this->boletoDisponivel('valid')): ?>value="BoletoBancario" <?php endif; ?>class="forma_pg<?php if(!$this->boletoDisponivel('valid')): ?> invalid-boleto<?php endif; ?> validate-one-required-by-name">
273
+ </li>
274
+ <?php endif; ?>
275
+ <?php if($this->mostraTransferencia()): ?>
276
+ <li data-target="transparente-transferencia">
277
+ <img alt="Transferência Bancária" id="imageboleto" src="<?php echo $this->getTransferenciaIcon(); ?>">
278
+ <input type="radio" class="forma_pg validate-one-required-by-name" name="payment[forma_pagamento]" value="DebitoBancario" >
279
+ </li>
280
+ <?php endif; ?>
281
+ </ul>
282
+
283
+ <div class="transparente-payment-method-content row-fluid" id="transparente-cartao" style="display:none">
284
+ <h3>Cartão de Crédito</h3>
285
+
286
+
287
+ <ul class="form-list">
288
+ <li class="wide cc-cvv">
289
+ <div class="cc">
290
+ <label class="required" for="credito_numero">Número<em>*</em></label>
291
+ <div class="input-box">
292
+ <input type="text" name="payment[credito_numero]" id="credito_numero" class="input-text required-entry validate-cc-number validate-cc-type">
293
+ </div>
294
+ </div>
295
+ <div class="cvv tooltip-transparente-handler">
296
+ <label class="required" for="cvv">CVV&nbsp;<i class="icon-question-sign"></i><em>*</em></label>
297
+ <div class="input-box">
298
+ <input type="text" name="payment[credito_codigo_seguranca]" onkeyup="countChar(this)" class="input-text required-entry ccv validate-cc-cvn" minlength="3" maxlength="4" id="credito_codigo_seguranca" >
299
+ <span class="tooltip-transparente">
300
+ <span class="custom help" style=" width:260px;"><em>Código de segurança:</em></br>Veja no verso do seu cartão.<img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem/codigo-seguranca.png'); ?>" id="imageseguratransparente" border="0"></span>
301
+ </span>
302
+ </div>
303
+ </div>
304
+ </li>
305
+ <input type="hidden" name="transparente_cc_type" id="transparente_cc_type" value=""/>
306
+ <ul class="inline banderias-cartao input-brand-bandeira input-switcher-5">
307
+ <li>
308
+ <img src="<?php echo $this->getVisaImage(); ?>" alt="Visa" border="0" onclick="setCcType('VI');">
309
+ <input type="radio" id="bandeiratransparente" name="payment[credito_instituicao]" value="Visa" onclick="setCcType('VI');" class="Visa-moip validate-one-required-by-name" style="display:none;" >
310
+ </li>
311
+ <li>
312
+ <img src="<?php echo $this->getMastercardImage(); ?>" alt="Mastercard" border="0" onclick="setCcType('MC');">
313
+ <input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" value="Mastercard" onclick="setCcType('MC');" class="Mastercard-moip validate-one-required-by-name" style="display:none;" >
314
+ </li>
315
+ <li>
316
+ <img src="<?php echo $this->getAmericanExpressImage(); ?>" alt="AmericanExpress" border="0" onclick="setCcType('AE');">
317
+ <input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" value="AmericanExpress" onclick="setCcType('AE');" class="Amex-moip validate-one-required-by-name" style="display:none;" >
318
+ </li>
319
+ <li>
320
+ <img src="<?php echo $this->getDinersImage(); ?>" alt="Diners" border="0" onclick="setCcType('DI');">
321
+ <input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" value="Diners" onclick="setCcType('DI');" class="Dinners-moip validate-one-required-by-name" style="display:none;" >
322
+ </li>
323
+ <li>
324
+ <img src="<?php echo $this->getHipercardImage(); ?>" alt="Hipercard" border="0" onclick="setCcType('HI');">
325
+ <input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" value="Hipercard" onclick="setCcType('HI');" class="Hipercard-moip validate-one-required-by-name" style="display:none;" >
326
+ </li>
327
+ </ul>
328
+
329
+ <li class="wide cc-validade">
330
+ <label class="required" for="Validade">Validade<em>*</em></label>
331
+ <div class="input-box">
332
+ <select name="payment[credito_expiracao_mes]" id="credito_expiracao_mes" class="input-text required-entry" >
333
+ <option value="">Mês</option>
334
+ <option value="01">01</option>
335
+ <option value="02">02</option>
336
+ <option value="03">03</option>
337
+ <option value="04">04</option>
338
+ <option value="05">05</option>
339
+ <option value="06">06</option>
340
+ <option value="07">07</option>
341
+ <option value="08">08</option>
342
+ <option value="09">09</option>
343
+ <option value="10">10</option>
344
+ <option value="11">11</option>
345
+ <option value="12">12</option>
346
+ </select>
347
+ <select name="payment[credito_expiracao_ano]" id="credito_expiracao_ano" class="input-text required-entry" >
348
+ <option value="">Ano</option>
349
+ <option value="14">14</option>
350
+ <option value="15">15</option>
351
+ <option value="16">16</option>
352
+ <option value="17">17</option>
353
+ <option value="18">18</option>
354
+ <option value="19">19</option>
355
+ <option value="20">20</option>
356
+ <option value="21">21</option>
357
+ <option value="22">22</option>
358
+ <option value="23">23</option>
359
+ <option value="24">24</option>
360
+ <option value="25">25</option>
361
+ <option value="26">26</option>
362
+ </select>
363
+ </div>
364
+ </li>
365
+ <li class="wide">
366
+ <label class="required" for="credito_parcela">Opções de pagamento<em>*</em></label>
367
+ <div class="input-box">
368
+
369
+
370
+ <select name="payment[credito_parcelamento]" id="credito_parcelamento" class="input-text required-entry" >
371
+ <option value="" select>Selecione as parcelas</option>
372
+ <?php $parcelas = $this->getParcelamento('parcelas'); ?>
373
+ <?php foreach ( $parcelas as $key => $value) { ?>
374
+ <?php echo $parcelas[$key]; ?>
375
+ <?php } ?>
376
+ </select>
377
+ <?php echo $this->getTextoParcelas() ?>
378
+ </div>
379
+ </li>
380
+ </ul>
381
+ <div id="formcli" style="display:none;">
382
+ <ul class="form-list dados-titular">
383
+ <h3>Dados do Titular</h3>
384
+ <li class="wide tooltip-transparente-handler">
385
+ <label class="required" for="credito_parcela"><em>*</em>Nome no Cartão</label>
386
+ <div class="input-box">
387
+ <input type="text" name="payment[credito_portador_nome]" value="<?php echo $nome; ?>" class="input-text required-entry" id="credito_portador_nome" >
388
+ <span class="tooltip-transparente">
389
+ <span class="custom help"><em>Nome do titular</em><br>deverá ser exatamente como está no cartão.</span>
390
+ </span>
391
+ </div>
392
+ </li>
393
+ <li class="wide">
394
+ <label class="required" for="credito_parcela"><em>*</em>CPF</label>
395
+ <div class="input-box">
396
+ <input type="text" name="payment[credito_portador_cpf]" class="input-text required-entry validar_cpf" id="credito_portador_cpf" value="<?php echo $cpf; ?>" >
397
+ </div>
398
+ </li>
399
+ <li class="wide tooltip-transparente-handler">
400
+ <label class="required" for="credito_parcela"><em>*</em>Telefone</label>
401
+ <div class="input-box">
402
+ <input type="text" name="payment[credito_portador_telefone]" id="credito_portador_telefone" value="<?php echo $telefone; ?>" class="input-text required-entry">
403
+ <span class="tooltip-transparente">
404
+ <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>
405
+ </span>
406
+ </div>
407
+ </li>
408
+ <li class="wide">
409
+ <label class="required" for="credito_parcela"><em>*</em>Data nascimento</label>
410
+ <div class="input-box">
411
+ <input type="text" name="payment[credito_portador_nascimento]" id="credito_portador_nascimento" value="<?php if ($dn !='') { echo $dn; } ?>" class="input-text required-entry" >
412
+ </div>
413
+ </li>
414
+ </ul>
415
+ </div>
416
+ <div class="clearer"></div>
417
+ </div>
418
+ <div class="transparente-payment-method-content row-fluid" id="transparente-boleto" style="display:none">
419
+ <div class="span3 method-image">
420
+ <img alt="Boleto Bancário" id="imageboleto" src="<?php echo $this->getBoletoImage(); ?>">
421
+ </div>
422
+ <div class="span9">
423
+ <h3>Boleto</h3>
424
+ <p class="desc"><?php echo $this->getTextoBoleto("texto") ?></p>
425
+ <p class="method-price"><?php if(!$this->boletoDisponivel('valid')){echo $this->getBoletoPrice();}else{echo $this->boletoDisponivel('text');} ?></p>
426
+ </div>
427
+ </div>
428
+ <div class="transparente-payment-method-content row-fluid" id="transparente-transferencia" style="display:none">
429
+ <h3>Transferência Online</h3>
430
+ <div id="pagdebito">
431
+ Após finalizar o pedido você será redirecionado ao site do seu banco...</br>
432
+ <?php echo $this->getTextoTranferencia("texto"); ?>
433
+ <p class="method-price"><?php echo $this->getBoletoPrice(); ?></p>
434
+ </div>
435
+ <ul class="inline input-switcher input-switcher-4">
436
+ <li>
437
+ <img src="<?php echo $this->getBBImage(); ?>" alt="Banco do Brasil" id="debbb" >
438
+ <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="BancoDoBrasil" class="validate-one-required-by-name">
439
+ </li>
440
+ <li>
441
+ <img src="<?php echo $this->getBradescoImage(); ?>" id="debbradesco" alt="Bradesco">
442
+ <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="Bradesco" class="validate-one-required-by-name">
443
+ </li>
444
+ <li>
445
+ <img src="<?php echo $this->getItauImage(); ?>" id="debitau" alt="Itaú" >
446
+ <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="Itau" class="validate-one-required-by-name">
447
+ </li>
448
+ <li>
449
+ <img src="<?php echo $this->getBanrisulImage(); ?>" id="Banrisul" alt="Banrisul" >
450
+ <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="Banrisul" class="validate-one-required-by-name">
451
+ </li>
452
+ </ul>
453
+
454
+ </div>
455
+ </div>
456
+
app/design/frontend/base/default/template/{O2TI/moip → MOIP/transparente}/info.phtml RENAMED
@@ -52,16 +52,16 @@ $css_email_img = "position: absolute !important;left: -70px !important;top: -20p
52
 
53
  <?php } if(Mage::app()->getRequest()->getModuleName() == "onestepcheckout" || Mage::app()->getRequest()->getModuleName() == "checkout" ) { ?>
54
 
55
- <?php echo "Pagamento via MoIP" ?>
56
 
57
  <?php } if(Mage::app()->getRequest()->getModuleName() == "sales"): ?>
58
  <?php
59
  $order = Mage::getModel('sales/order')->load($info['realorder_id'], 'increment_id');
60
  $states = $order->getStatus();
61
  if($states == "pending" || $order->isCanceled()){
62
- $api = $this->getMoip();
63
- $resposta_moip = $info['token'];
64
- if (Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste") {
65
  $url = "https://desenvolvedor.moip.com.br/sandbox/Instrucao.do?token=";
66
  $urljs = "https://desenvolvedor.moip.com.br/sandbox/";
67
  }
@@ -70,8 +70,8 @@ $css_email_img = "position: absolute !important;left: -70px !important;top: -20p
70
  $urljs = "https://www.moip.com.br/";
71
  }
72
  ?>
73
- <script type="text/javascript" charset="ISO-8859-1" src="<?php echo $urljs ?>/transparente/MoipWidget-v2.js" onerror="erro_mail('erro caiu o moip widget')" ></script>
74
- <div id="MoipWidget" data-token="<?php echo $info['token'] ?>" callback-method-error="erroValidacao" callback-method-success="sucesso"></div>
75
  <div class="refaz_pg" style="clear:both;width:100%">
76
  <div>
77
  <button type="button" title="Finalizar compra" style="background:none repeat scroll 0 0 #337baa;margin:10px;border-radius:3px;padding:10px 5px;width:250px;float:left;text-align:center;color:#ffffff;font-weight:normal;font-size:13px;display:block;text-decoration:none;font-family:Arial,Helvetica,sans-serif;border: none;margin-top: 10px !important;" onclick="jQuery('#showXml').modal('toggle')">
@@ -86,32 +86,32 @@ $css_email_img = "position: absolute !important;left: -70px !important;top: -20p
86
  <div class="modal-body">
87
  <h4>Você poderá escolher uma nova forma de pagamento, selecionando os meios disponíveis a baixo:</h4>
88
  <div style="display: none;" id="loading-mask">
89
- <p id="loading_mask_loader" class="loader"><img alt="Loading..." src="<?php echo $this->getSkinUrl('O2TI/onestepcheckout/images/ajax-loader-tr.gif')?>"><br>Realizando pagamento, por favor aguarde...</p>
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'] ?>">
97
 
98
 
99
  <div class= "seleciona_meio" style="border-bottom:2px solid #eeeee0;">
100
- <ul class="inline input-switcher moip-payment-methods" style="display: inline-flex;">
101
- <li data-target="CartaoCredito" class='moip-payment-method-line' style="padding: 10px 15px;background: #EEE;border-radius: 5px 5px 0 0;margin-right: 10px;cursor:pointer;">
102
  Cartão de Crédito
103
  </li>
104
- <li data-target="BoletoBancario" class='moip-payment-method-line' style="padding: 10px 15px;background: #EEE;border-radius: 5px 5px 0 0;margin-right: 10px;cursor:pointer;">
105
  Boleto Bancário
106
  </li>
107
- <li data-target="DebitoBancario" class='moip-payment-method-line' style="padding: 10px 15px;background: #EEE;border-radius: 5px 5px 0 0;margin-right: 10px;cursor:pointer;">
108
  Débito Bancário
109
  </li>
110
  </ul>
111
  </div>
112
 
113
 
114
- <div class="moip-payment-method-content row-fluid" id="DebitoBancario" style="display:none">
115
  <h2>Transferência Bancária</h2>
116
  <div style="width:100%">É obrigatório ter token do banco para realizar esse processo.</div>
117
  <div><h4>Selecione o Banco.</h4></div>
@@ -125,17 +125,17 @@ $css_email_img = "position: absolute !important;left: -70px !important;top: -20p
125
 
126
  </div>
127
  <div class="pagar_trans" style="display:none;">
128
- <button id="sendToMoip2" style="margin-top: 10px;" class="btn-moip buttonmoip" onclick="jQuery('#loading-mask').show();jQuery('#refaz_pg_form').hide('slow');">Pagar Agora</button>
129
  </div>
130
  </div>
131
 
132
- <div class="moip-payment-method-content row-fluid" id="BoletoBancario" style="display:none">
133
  <h2>Boleto Bancário</h2>
134
  <div>Pagável até a data do vencimento em qualquer Casa lotérica, via internet-bank ou caixa eletrônico do seu banco.</div>
135
- <button id="sendToMoip2" style="margin-top: 10px;" class="btn-moip buttonmoip" onclick="jQuery('#loading-mask').show();jQuery('#refaz_pg_form').hide('slow');">Pagar Agora</button>
136
  </div>
137
 
138
- <div class="moip-payment-method-content row-fluid" id="CartaoCredito" style="display:none">
139
  <div class="well">
140
  <ul class="repay-form">
141
  <div class="cartao_dados">
@@ -153,7 +153,7 @@ $css_email_img = "position: absolute !important;left: -70px !important;top: -20p
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'];
@@ -197,7 +197,7 @@ $css_email_img = "position: absolute !important;left: -70px !important;top: -20p
197
  <input type="text" id="Expiracao" name="Expiracao_ano" onkeypress="return txtBoxFormat(this, '99', event);" maxlength="2" placeholder="Ex. 10/15" size="2" class="input-text" >
198
  </li>
199
  <li>
200
- <button type="button" id="sendToMoip2" class="btn-moip buttonmoip" style="margin-top: 10px !important;" onclick="jQuery('.cartao_dados').hide();jQuery('.pagador_dados_pessoais').show('slow');">Prosseguir</button>
201
  </li>
202
  </div>
203
  <div class="pagador_dados_pessoais" style="display:none">
@@ -222,7 +222,7 @@ $css_email_img = "position: absolute !important;left: -70px !important;top: -20p
222
  </li>
223
  <li>
224
  <a href="#" style="margin-top: 10px !important; float:left" onclick="jQuery('.cartao_dados').show('slow');jQuery('.pagador_dados_pessoais').hide();">&larr; Voltar</a>
225
- <button id="sendToMoip2" class="btn-moip buttonmoip" style="margin-top: -30px !important; float:left" onclick="jQuery('#loading-mask').show();jQuery('#refaz_pg_form').hide('slow');">Pagar Agora</button>
226
  </li>
227
  </div>
228
  </ul>
@@ -244,9 +244,9 @@ jQuery(document).ready(function() {
244
  jQuery(this).find('input[type="radio"]').attr('checked', true);
245
  }
246
  });
247
- jQuery('.moip-payment-methods > li').bind({
248
  click: function() {
249
- jQuery('.moip-payment-method-content').not('#' + jQuery(this).attr('data-target')).slideUp();
250
  jQuery('#' + jQuery(this).attr('data-target')).slideDown();
251
  jQuery('#forma_de_pagamento').val(jQuery(this).attr('data-target'));
252
  }
@@ -257,57 +257,57 @@ jQuery(document).ready(function() {
257
  var data = JSON.stringify(data);
258
  jQuery("#loading_mask_loader").hide();
259
  if(jQuery("#forma_de_pagamento").val() == "BoletoBancario"){
260
- jQuery(".retorno_moip").html("<a href='<?php echo $info['url'] ?>'>Cique Aqui para visualizar o boleto</a>");
261
  };
262
  if(jQuery("#forma_de_pagamento").val() == "DebitoBancario"){
263
- jQuery(".retorno_moip").html("<a href='<?php echo $info['url'] ?>'>Cique Aqui para ir ao banco</a>");
264
  };
265
  if(jQuery("#forma_de_pagamento").val() == "CartaoCredito"){
266
  if (data.Status == "Cancelado"){
267
- jQuery(".retorno_moip").append("<h3>Pagamento Cancelado</h3>");
268
- jQuery(".retorno_moip").append("Transação não aprovada.");
269
  if(data.hasOwnProperty(data.Classificacao)){
270
  var motivo = JSON.stringify(data.Classificacao.Descricao);
271
  } else{
272
  var motivo = "semretorno";
273
  }
274
  if(motivo == '"Desconhecido"'){
275
- jQuery(".erros_moip").html("Seus dados estão incorretos ou não podemos envia-los a operadora de crédito.");
276
  }
277
  if(motivo == '"Transação não processada"'){
278
- jQuery(".erros_moip").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.");
279
  }
280
- if(motivo == '"Política de segurança do Moip"'){
281
- jQuery(".erros_moip").html("Pagamento não autorizado.</br>Entre em contato com o seu banco antes de uma nova tentativa.");
282
  }
283
  if(motivo == '"Política de segurança do Banco Emissor"'){
284
- jQuery(".erros_moip").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..");
285
  }
286
  if(motivo == '"Cartão vencido"'){
287
- jQuery(".erros_moip").html("A validade do seu Cartão expirou.</br>Escolha outra forma de pagamento para concluir o pagamento.");
288
  }
289
  if(motivo == '"Dados inválidos"'){
290
- jQuery(".erros_moip").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.");
291
  }
292
  if(motivo =='semretorno' ){
293
- jQuery(".erros_moip").html("Verifique os dados e tente pagar novamente.");
294
  }
295
  }
296
  if (data.Status == "EmAnalise"){
297
- jQuery(".retorno_moip").append("<h3>Pagamento Aguardando Aprovação</h3>");
298
- jQuery(".retorno_moip").append("Por favor, aguarde a em análise da transação. Assim que for alterado o status você será informado via e-mail.");
299
 
300
  }
301
  if (data.Status == "Autorizado"){
302
- jQuery(".retorno_moip").append("<h3>Pagamento Aprovado</h3>");
303
- jQuery(".retorno_moip").append("Por favor, aguarde o processo de envio.");
304
 
305
  }
306
 
307
  };
308
  }
309
  var erroValidacao = function(data) {
310
- jQuery(".retorno_moip").html("Pagamento não pode ser refeito, confira os dados e tente novamente.");
311
  jQuery("#refaz_pg_forma").show();
312
  }
313
  jQuery("#refaz_pg_forma").submit(function(e){
@@ -354,7 +354,7 @@ jQuery(document).ready(function() {
354
  }
355
  }
356
  };
357
- MoipWidget(settings);
358
  },
359
 
360
  });
52
 
53
  <?php } if(Mage::app()->getRequest()->getModuleName() == "onestepcheckout" || Mage::app()->getRequest()->getModuleName() == "checkout" ) { ?>
54
 
55
+ <?php echo "Pagamento via Transparente" ?>
56
 
57
  <?php } if(Mage::app()->getRequest()->getModuleName() == "sales"): ?>
58
  <?php
59
  $order = Mage::getModel('sales/order')->load($info['realorder_id'], 'increment_id');
60
  $states = $order->getStatus();
61
  if($states == "pending" || $order->isCanceled()){
62
+ $api = $this->getTransparente();
63
+ $resposta_transparente = $info['token'];
64
+ if (Mage::getSingleton('transparente/standard')->getConfigData('ambiente') == "teste") {
65
  $url = "https://desenvolvedor.moip.com.br/sandbox/Instrucao.do?token=";
66
  $urljs = "https://desenvolvedor.moip.com.br/sandbox/";
67
  }
70
  $urljs = "https://www.moip.com.br/";
71
  }
72
  ?>
73
+ <script type="text/javascript" charset="ISO-8859-1" src="<?php echo $urljs ?>/transparente/TransparenteWidget-v2.js" onerror="erro_mail('erro caiu o transparente widget')" ></script>
74
+ <div id="TransparenteWidget" data-token="<?php echo $info['token'] ?>" callback-method-error="erroValidacao" callback-method-success="sucesso"></div>
75
  <div class="refaz_pg" style="clear:both;width:100%">
76
  <div>
77
  <button type="button" title="Finalizar compra" style="background:none repeat scroll 0 0 #337baa;margin:10px;border-radius:3px;padding:10px 5px;width:250px;float:left;text-align:center;color:#ffffff;font-weight:normal;font-size:13px;display:block;text-decoration:none;font-family:Arial,Helvetica,sans-serif;border: none;margin-top: 10px !important;" onclick="jQuery('#showXml').modal('toggle')">
86
  <div class="modal-body">
87
  <h4>Você poderá escolher uma nova forma de pagamento, selecionando os meios disponíveis a baixo:</h4>
88
  <div style="display: none;" id="loading-mask">
89
+ <p id="loading_mask_loader" class="loader"><img alt="Loading..." src="<?php echo $this->getSkinUrl('MOIP/onestepcheckout/images/ajax-loader-tr.gif')?>"><br>Realizando pagamento, por favor aguarde...</p>
90
  </div>
91
+ <div class="retorno_transparente">
92
  </div>
93
+ <form method="POST" action='<?php echo Mage::getBaseUrl('web', true); ?>transparente/index/Novaforma/' id="refaz_pg_forma">
94
  <input type="hidden" name="forma_de_pagamento" id="forma_de_pagamento" value="" >
95
+ <input type="hidden" name="transparente_id" value="<?php echo $info['token'] ?>">
96
  <input type="hidden" name="order_id" value="<?php echo $info['realorder_id'] ?>">
97
 
98
 
99
  <div class= "seleciona_meio" style="border-bottom:2px solid #eeeee0;">
100
+ <ul class="inline input-switcher transparente-payment-methods" style="display: inline-flex;">
101
+ <li data-target="CartaoCredito" class='transparente-payment-method-line' style="padding: 10px 15px;background: #EEE;border-radius: 5px 5px 0 0;margin-right: 10px;cursor:pointer;">
102
  Cartão de Crédito
103
  </li>
104
+ <li data-target="BoletoBancario" class='transparente-payment-method-line' style="padding: 10px 15px;background: #EEE;border-radius: 5px 5px 0 0;margin-right: 10px;cursor:pointer;">
105
  Boleto Bancário
106
  </li>
107
+ <li data-target="DebitoBancario" class='transparente-payment-method-line' style="padding: 10px 15px;background: #EEE;border-radius: 5px 5px 0 0;margin-right: 10px;cursor:pointer;">
108
  Débito Bancário
109
  </li>
110
  </ul>
111
  </div>
112
 
113
 
114
+ <div class="transparente-payment-method-content row-fluid" id="DebitoBancario" style="display:none">
115
  <h2>Transferência Bancária</h2>
116
  <div style="width:100%">É obrigatório ter token do banco para realizar esse processo.</div>
117
  <div><h4>Selecione o Banco.</h4></div>
125
 
126
  </div>
127
  <div class="pagar_trans" style="display:none;">
128
+ <button id="sendToTransparente2" style="margin-top: 10px;" class="btn-transparente buttontransparente" onclick="jQuery('#loading-mask').show();jQuery('#refaz_pg_form').hide('slow');">Pagar Agora</button>
129
  </div>
130
  </div>
131
 
132
+ <div class="transparente-payment-method-content row-fluid" id="BoletoBancario" style="display:none">
133
  <h2>Boleto Bancário</h2>
134
  <div>Pagável até a data do vencimento em qualquer Casa lotérica, via internet-bank ou caixa eletrônico do seu banco.</div>
135
+ <button id="sendToTransparente2" style="margin-top: 10px;" class="btn-transparente buttontransparente" onclick="jQuery('#loading-mask').show();jQuery('#refaz_pg_form').hide('slow');">Pagar Agora</button>
136
  </div>
137
 
138
+ <div class="transparente-payment-method-content row-fluid" id="CartaoCredito" style="display:none">
139
  <div class="well">
140
  <ul class="repay-form">
141
  <div class="cartao_dados">
153
  <?php $parcela_decode = json_decode($parcelamento,true);
154
  foreach ($parcela_decode as $key => $value) {
155
 
156
+ if ($key <= Mage::getSingleton('transparente/standard')->getConfigData('nummaxparcelamax')) {
157
 
158
  $juros = $parcela_decode[$key]['juros'];
159
  $parcelas_result = $parcela_decode[$key]['parcela'];
197
  <input type="text" id="Expiracao" name="Expiracao_ano" onkeypress="return txtBoxFormat(this, '99', event);" maxlength="2" placeholder="Ex. 10/15" size="2" class="input-text" >
198
  </li>
199
  <li>
200
+ <button type="button" id="sendToTransparente2" class="btn-transparente buttontransparente" style="margin-top: 10px !important;" onclick="jQuery('.cartao_dados').hide();jQuery('.pagador_dados_pessoais').show('slow');">Prosseguir</button>
201
  </li>
202
  </div>
203
  <div class="pagador_dados_pessoais" style="display:none">
222
  </li>
223
  <li>
224
  <a href="#" style="margin-top: 10px !important; float:left" onclick="jQuery('.cartao_dados').show('slow');jQuery('.pagador_dados_pessoais').hide();">&larr; Voltar</a>
225
+ <button id="sendToTransparente2" class="btn-transparente buttontransparente" style="margin-top: -30px !important; float:left" onclick="jQuery('#loading-mask').show();jQuery('#refaz_pg_form').hide('slow');">Pagar Agora</button>
226
  </li>
227
  </div>
228
  </ul>
244
  jQuery(this).find('input[type="radio"]').attr('checked', true);
245
  }
246
  });
247
+ jQuery('.transparente-payment-methods > li').bind({
248
  click: function() {
249
+ jQuery('.transparente-payment-method-content').not('#' + jQuery(this).attr('data-target')).slideUp();
250
  jQuery('#' + jQuery(this).attr('data-target')).slideDown();
251
  jQuery('#forma_de_pagamento').val(jQuery(this).attr('data-target'));
252
  }
257
  var data = JSON.stringify(data);
258
  jQuery("#loading_mask_loader").hide();
259
  if(jQuery("#forma_de_pagamento").val() == "BoletoBancario"){
260
+ jQuery(".retorno_transparente").html("<a href='<?php echo $info['url'] ?>'>Cique Aqui para visualizar o boleto</a>");
261
  };
262
  if(jQuery("#forma_de_pagamento").val() == "DebitoBancario"){
263
+ jQuery(".retorno_transparente").html("<a href='<?php echo $info['url'] ?>'>Cique Aqui para ir ao banco</a>");
264
  };
265
  if(jQuery("#forma_de_pagamento").val() == "CartaoCredito"){
266
  if (data.Status == "Cancelado"){
267
+ jQuery(".retorno_transparente").append("<h3>Pagamento Cancelado</h3>");
268
+ jQuery(".retorno_transparente").append("Transação não aprovada.");
269
  if(data.hasOwnProperty(data.Classificacao)){
270
  var motivo = JSON.stringify(data.Classificacao.Descricao);
271
  } else{
272
  var motivo = "semretorno";
273
  }
274
  if(motivo == '"Desconhecido"'){
275
+ jQuery(".erros_transparente").html("Seus dados estão incorretos ou não podemos envia-los a operadora de crédito.");
276
  }
277
  if(motivo == '"Transação não processada"'){
278
+ jQuery(".erros_transparente").html("O pagamento não pode ser processado.</br>Por favor, tente novamente.</br>Caso o erro persista, entre em contato com o nosso atendimento.");
279
  }
280
+ if(motivo == '"Política de segurança do Transparente"'){
281
+ jQuery(".erros_transparente").html("Pagamento não autorizado.</br>Entre em contato com o seu banco antes de uma nova tentativa.");
282
  }
283
  if(motivo == '"Política de segurança do Banco Emissor"'){
284
+ jQuery(".erros_transparente").html("O pagamento não foi autorizado pelo Banco Emissor do seu Cartão.</br>Entre em contato com o Banco para entender o motivo e refazer o pagamento..");
285
  }
286
  if(motivo == '"Cartão vencido"'){
287
+ jQuery(".erros_transparente").html("A validade do seu Cartão expirou.</br>Escolha outra forma de pagamento para concluir o pagamento.");
288
  }
289
  if(motivo == '"Dados inválidos"'){
290
+ jQuery(".erros_transparente").html("Dados informados inválidos.</br>Você digitou algo errado durante o preenchimento dos dados do seu Cartão.</br>Certifique-se de que está usando o Cartão correto e faça uma nova tentativa.");
291
  }
292
  if(motivo =='semretorno' ){
293
+ jQuery(".erros_transparente").html("Verifique os dados e tente pagar novamente.");
294
  }
295
  }
296
  if (data.Status == "EmAnalise"){
297
+ jQuery(".retorno_transparente").append("<h3>Pagamento Aguardando Aprovação</h3>");
298
+ jQuery(".retorno_transparente").append("Por favor, aguarde a em análise da transação. Assim que for alterado o status você será informado via e-mail.");
299
 
300
  }
301
  if (data.Status == "Autorizado"){
302
+ jQuery(".retorno_transparente").append("<h3>Pagamento Aprovado</h3>");
303
+ jQuery(".retorno_transparente").append("Por favor, aguarde o processo de envio.");
304
 
305
  }
306
 
307
  };
308
  }
309
  var erroValidacao = function(data) {
310
+ jQuery(".retorno_transparente").html("Pagamento não pode ser refeito, confira os dados e tente novamente.");
311
  jQuery("#refaz_pg_forma").show();
312
  }
313
  jQuery("#refaz_pg_forma").submit(function(e){
354
  }
355
  }
356
  };
357
+ TransparenteWidget(settings);
358
  },
359
 
360
  });
app/design/frontend/base/default/template/{O2TI/moip → MOIP/transparente}/layout_boleto.phtml RENAMED
@@ -1,4 +1,4 @@
1
- <?php $boleto = $this->getBoleto_Moip(Mage::registry('result_decode')); ?>
2
  <?php $cliente = $this->getCliente(Mage::registry('client_array')); ?>
3
  <?php $pgtoArray = $this->getOrder_dados(Mage::registry('client_array')); ?>
4
  <?php $order = Mage::getModel('sales/order')->loadByIncrementId($pgtoArray['id_transacao']); ?>
@@ -86,7 +86,7 @@
86
  N&atilde;o imprima em modo rascunho.
87
  </div>
88
  <div id="btn_print" class="btn_print right" style="margin-top:23px;" onClick="window.print();return false">
89
- <img src="<?php echo $this->getSkinUrl('O2TI/moip/imagem/icon_print_14x14.png') ?>" width="14" height="14"> &nbsp;imprimir
90
  </div>
91
  </div>
92
  <div style="clear:left">
@@ -113,7 +113,7 @@
113
  </tr>
114
  <tr valign="top">
115
  <td>
116
- <img src="<?php echo $this->getSkinUrl('O2TI/moip/imagem//tesoura.gif') ?>" style="margin-bottom: 3px;" width="100%" height="5">
117
  </td>
118
  </tr>
119
  </tbody>
@@ -123,7 +123,7 @@
123
  <tr>
124
  <td width="320">
125
  <font size="3" face="Arial, Helvetica, sans-serif">
126
- <img src="<?php echo $this->getSkinUrl('O2TI/moip/imagem//ico.gif') ?>" vspace="0" width="25" align="absbottom" height="23" hspace="1">
127
  <b>&nbsp;Bradesco</b>
128
  </font>
129
  </td>
@@ -141,7 +141,7 @@
141
  <td width="43%">
142
  <font size="1" face="Arial, Helvetica, sans-serif">&nbsp;Cedente<br></font>
143
  <font size="2" face="Arial, Helvetica, sans-serif">
144
- <b>&nbsp;<?php echo Mage::app()->getWebsite()->getName(); ?> | MoIP S.A.</b>
145
  </font>
146
  <font size="1" face="Arial, Helvetica, sans-serif">&nbsp;</font>
147
  </td>
@@ -257,13 +257,13 @@
257
  <tbody>
258
  <tr valign="top">
259
  <td>
260
- <img src="<?php echo $this->getSkinUrl('O2TI/moip/imagem//tesoura.gif') ?>" style="margin-bottom: 3px;" width="100%" height="5">
261
  </td>
262
  </tr>
263
  </tbody></table>
264
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
265
  <tbody><tr>
266
- <td valign="bottom" width="112"><font size="3" face="Arial, Helvetica, sans-serif"><img src="<?php echo $this->getSkinUrl('O2TI/moip/imagem//ico.gif') ?>" vspace="0" width="25" align="absbottom" height="23" hspace="1"><b>&nbsp;Bradesco</b></font></td>
267
  <td valign="bottom" width="66" align="center">
268
  <font size="4" face="Arial, Helvetica, sans-serif"><b>|&nbsp;<font color="#999999">237-2</font>&nbsp;|</b></font>
269
  </td>
@@ -300,7 +300,7 @@
300
  <td valign="top"><font size="1" face="Arial">&nbsp;Cedente </font><br> </td>
301
  </tr>
302
  <tr>
303
- <td valign="top"><font size="2" face="Arial"><b>&nbsp;<?php echo Mage::app()->getWebsite()->getName(); ?> | MoIP S.A.</b></font><br> </td>
304
  </tr>
305
  </tbody></table></td>
306
  <td valign="top" width="140"> <table width="100%" border="0" cellpadding="1" cellspacing="1">
1
+ <?php $boleto = $this->getBoleto_Transparente(Mage::registry('result_decode')); ?>
2
  <?php $cliente = $this->getCliente(Mage::registry('client_array')); ?>
3
  <?php $pgtoArray = $this->getOrder_dados(Mage::registry('client_array')); ?>
4
  <?php $order = Mage::getModel('sales/order')->loadByIncrementId($pgtoArray['id_transacao']); ?>
86
  N&atilde;o imprima em modo rascunho.
87
  </div>
88
  <div id="btn_print" class="btn_print right" style="margin-top:23px;" onClick="window.print();return false">
89
+ <img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem/icon_print_14x14.png') ?>" width="14" height="14"> &nbsp;imprimir
90
  </div>
91
  </div>
92
  <div style="clear:left">
113
  </tr>
114
  <tr valign="top">
115
  <td>
116
+ <img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem//tesoura.gif') ?>" style="margin-bottom: 3px;" width="100%" height="5">
117
  </td>
118
  </tr>
119
  </tbody>
123
  <tr>
124
  <td width="320">
125
  <font size="3" face="Arial, Helvetica, sans-serif">
126
+ <img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem//ico.gif') ?>" vspace="0" width="25" align="absbottom" height="23" hspace="1">
127
  <b>&nbsp;Bradesco</b>
128
  </font>
129
  </td>
141
  <td width="43%">
142
  <font size="1" face="Arial, Helvetica, sans-serif">&nbsp;Cedente<br></font>
143
  <font size="2" face="Arial, Helvetica, sans-serif">
144
+ <b>&nbsp;<?php echo Mage::app()->getWebsite()->getName(); ?> | Transparente S.A.</b>
145
  </font>
146
  <font size="1" face="Arial, Helvetica, sans-serif">&nbsp;</font>
147
  </td>
257
  <tbody>
258
  <tr valign="top">
259
  <td>
260
+ <img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem//tesoura.gif') ?>" style="margin-bottom: 3px;" width="100%" height="5">
261
  </td>
262
  </tr>
263
  </tbody></table>
264
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
265
  <tbody><tr>
266
+ <td valign="bottom" width="112"><font size="3" face="Arial, Helvetica, sans-serif"><img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem//ico.gif') ?>" vspace="0" width="25" align="absbottom" height="23" hspace="1"><b>&nbsp;Bradesco</b></font></td>
267
  <td valign="bottom" width="66" align="center">
268
  <font size="4" face="Arial, Helvetica, sans-serif"><b>|&nbsp;<font color="#999999">237-2</font>&nbsp;|</b></font>
269
  </td>
300
  <td valign="top"><font size="1" face="Arial">&nbsp;Cedente </font><br> </td>
301
  </tr>
302
  <tr>
303
+ <td valign="top"><font size="2" face="Arial"><b>&nbsp;<?php echo Mage::app()->getWebsite()->getName(); ?> | Transparente S.A.</b></font><br> </td>
304
  </tr>
305
  </tbody></table></td>
306
  <td valign="top" width="140"> <table width="100%" border="0" cellpadding="1" cellspacing="1">
app/design/frontend/base/default/template/{O2TI/moip → MOIP/transparente}/redirect.phtml RENAMED
File without changes
app/design/frontend/base/default/template/{O2TI/moip → MOIP/transparente}/refaz.phtml RENAMED
@@ -1,12 +1,12 @@
1
  <?php $session = Mage::getSingleton('checkout/session'); ?>
2
  <?php
3
  $z=0;
4
- $api = Mage::getModel('moip/api');
5
  $dados = $session->getPgtoarry();
6
  ?>
7
  <?php $client_array = $session->getClient_array(); ?>
8
  <?php $pgtoArray = $this->getOrder_dados($client_array); ?>
9
- <form id="refazercartao" method="POST" action='<?php echo Mage::getBaseUrl('web', true); ?>moip/index/Repag/'>
10
  <input type="hidden" name="forma_de_pagamento" value="CartaoDeCredito" >
11
  <div class="well">
12
  <ul class="repay-form">
@@ -23,7 +23,7 @@
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'];
@@ -86,7 +86,7 @@
86
  <input type="text" id="Telefone" name="Telefone" onkeypress="return txtBoxFormat(this, '(99)9999-9999', event);" placeholder="Ex. (11)9999-9999" maxlength="14" class="input-text" value="<?php echo $dados['credito_portador_DDD'] ?><?php echo $dados['credito_portador_telefone'] ?>" ><br>
87
  </li>
88
  <li>
89
- <button id="sendToMoip2" class="btn-moip buttonmoip" onclick="jQuery('#loading-mask').show();jQuery('.repeat_cartao').hide('slow');">Pagar Agora</button>
90
  </li>
91
  </ul>
92
  </div>
1
  <?php $session = Mage::getSingleton('checkout/session'); ?>
2
  <?php
3
  $z=0;
4
+ $api = Mage::getModel('transparente/api');
5
  $dados = $session->getPgtoarry();
6
  ?>
7
  <?php $client_array = $session->getClient_array(); ?>
8
  <?php $pgtoArray = $this->getOrder_dados($client_array); ?>
9
+ <form id="refazercartao" method="POST" action='<?php echo Mage::getBaseUrl('web', true); ?>transparente/index/Repag/'>
10
  <input type="hidden" name="forma_de_pagamento" value="CartaoDeCredito" >
11
  <div class="well">
12
  <ul class="repay-form">
23
  <?php $parcela_decode = json_decode($parcelamento,true);
24
  foreach ($parcela_decode as $key => $value) {
25
 
26
+ if ($key <= Mage::getSingleton('transparente/standard')->getConfigData('nummaxparcelamax')) {
27
 
28
  $juros = $parcela_decode[$key]['juros'];
29
  $parcelas_result = $parcela_decode[$key]['parcela'];
86
  <input type="text" id="Telefone" name="Telefone" onkeypress="return txtBoxFormat(this, '(99)9999-9999', event);" placeholder="Ex. (11)9999-9999" maxlength="14" class="input-text" value="<?php echo $dados['credito_portador_DDD'] ?><?php echo $dados['credito_portador_telefone'] ?>" ><br>
87
  </li>
88
  <li>
89
+ <button id="sendToTransparente2" class="btn-transparente buttontransparente" onclick="jQuery('#loading-mask').show();jQuery('.repeat_cartao').hide('slow');">Pagar Agora</button>
90
  </li>
91
  </ul>
92
  </div>
app/design/frontend/base/default/template/{O2TI/moip → MOIP/transparente}/transferencia.phtml RENAMED
@@ -7,24 +7,24 @@ $customerData = "";
7
  if(Mage::getSingleton('customer/session')->isLoggedIn()) {
8
  $customerData = Mage::getSingleton('customer/session')->getCustomer();
9
  }
10
- if (Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste") {
11
  $url = "https://desenvolvedor.moip.com.br/sandbox/Instrucao.do?token=";
12
  $urljs = "https://desenvolvedor.moip.com.br/sandbox/";
13
  }
14
  else {
15
- $url = "https://www.moip.com.br/Instrucao.do?token=";
16
  $urljs = "https://www.moip.com.br/";
17
  }
18
  ?>
19
- <?php $order = Mage::getModel('sales/order')->loadByIncrementId($pgtoArray['id_transacao']); ?>
20
  <?php $this->getSaveDate($pgtoArray['id_transacao'], $result_decode, $customerData, $pgtoArraya, $client_array); ?>
21
  <?php if (!Mage::helper('core/cookie')->isUserNotAllowSaveCookie()): ?>
22
  <?php $accountId = 'UA-33860171-1' ?>
23
  <script type="text/javascript">
24
  //<![CDATA[
25
  var _gaq = _gaq || [];
26
- _gaq.push(['_setAccount', '<?php echo Mage::getStoreConfig("o2tiall/google/idgoogle") ?>']);
27
- <?php echo $this->getTrackingMoip($client_array); ?>
28
  (function() {
29
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
30
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
@@ -33,27 +33,27 @@ 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. $result_decode['token'] ?>'>
39
  <div class="row grid-full">
40
  <div class="section clearer grid12-12 ">
41
  <h3>Seu pedido foi enviado com sucesso, <strong><?php echo $client_array['pagador_nome'] ?></strong>!</h3>
42
 
43
- <div class="corpo_moip grid12-5 alpha">
44
 
45
  <div class="method-type bank-title">
46
  <h3>Transferência Bancária</h3>
47
  <h4>Você será redirecionado para o seu banco em 10 segundos, caso isto não ocorra, por favor clique no link abaixo para ser redirecionado ao seu banco.</h4>
48
  </div>
49
  </br>
50
- <button type="button" title="Finalizar compra" class="btn-moip btn-bank" onclick="window.location='<?php echo $url. $result_decode['token'] ?>'"><img src="<?php echo $this->getSkinUrl('O2TI/moip/imagem/bank-icon.png') ?>" alt="" />Ir ao Banco</button>
51
  </div>
52
 
53
  <div class="col-md-6 grid12-6 omega">
54
  <div class="order-id-wrapper">
55
  <p>O número do seu pedido é:</p>
56
- <span class="order-id">#<?php echo $pgtoArray['id_transacao'] ?></span>
57
  <h4>Seu pedido será enviado por <?php echo $order->getShippingDescription(); ?></h4>
58
  </div>
59
  <div class="warning-block">
@@ -65,7 +65,7 @@ if (Mage::getSingleton('moip/standard')->getConfigData('ambiente') == "teste") {
65
  </div>
66
  </div>
67
  </div>
68
- <?php echo Mage::getStoreConfig("o2tiall/google/outros_funil"); ?>
69
  <script type="text/javascript">
70
  //<![CDATA[
71
  jQuery(document).ready(function(){
7
  if(Mage::getSingleton('customer/session')->isLoggedIn()) {
8
  $customerData = Mage::getSingleton('customer/session')->getCustomer();
9
  }
10
+ if (Mage::getSingleton('transparente/standard')->getConfigData('ambiente') == "teste") {
11
  $url = "https://desenvolvedor.moip.com.br/sandbox/Instrucao.do?token=";
12
  $urljs = "https://desenvolvedor.moip.com.br/sandbox/";
13
  }
14
  else {
15
+ $url = "https://www.moip.com.br/Instrucao.do?token=";
16
  $urljs = "https://www.moip.com.br/";
17
  }
18
  ?>
19
+ <?php $order = Mage::getModel('sales/order')->load($pgtoArray['id_transacao']); ?>
20
  <?php $this->getSaveDate($pgtoArray['id_transacao'], $result_decode, $customerData, $pgtoArraya, $client_array); ?>
21
  <?php if (!Mage::helper('core/cookie')->isUserNotAllowSaveCookie()): ?>
22
  <?php $accountId = 'UA-33860171-1' ?>
23
  <script type="text/javascript">
24
  //<![CDATA[
25
  var _gaq = _gaq || [];
26
+ _gaq.push(['_setAccount', '<?php echo Mage::getStoreConfig("moipall/google/idgoogle") ?>']);
27
+ <?php echo $this->getTrackingTransparente($client_array); ?>
28
  (function() {
29
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
30
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
33
  //]]>
34
  </script>
35
  <?php endif; ?>
36
+ <script type="text/javascript" charset="ISO-8859-1" src="<?php echo $urljs ?>transparente/MoipWidget-v2.js" onerror="erro_mail('erro caiu o transparente widget')" ></script>
37
  <div id="MoipWidget" data-token="<?php echo $result_decode['token'] ?>" callback-method-error="erroValidacao" callback-method-success="sucesso"></div>
38
  <meta http-equiv='Refresh' content='10;URL=<?php echo $url. $result_decode['token'] ?>'>
39
  <div class="row grid-full">
40
  <div class="section clearer grid12-12 ">
41
  <h3>Seu pedido foi enviado com sucesso, <strong><?php echo $client_array['pagador_nome'] ?></strong>!</h3>
42
 
43
+ <div class="corpo_transparente grid12-5 alpha">
44
 
45
  <div class="method-type bank-title">
46
  <h3>Transferência Bancária</h3>
47
  <h4>Você será redirecionado para o seu banco em 10 segundos, caso isto não ocorra, por favor clique no link abaixo para ser redirecionado ao seu banco.</h4>
48
  </div>
49
  </br>
50
+ <button type="button" title="Finalizar compra" class="btn-transparente btn-bank" onclick="window.location='<?php echo $url. $result_decode['token'] ?>'"><img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem/bank-icon.png') ?>" alt="" />Ir ao Banco</button>
51
  </div>
52
 
53
  <div class="col-md-6 grid12-6 omega">
54
  <div class="order-id-wrapper">
55
  <p>O número do seu pedido é:</p>
56
+ <span class="order-id">#<?php echo Mage::getSingleton('checkout/session')->getLastRealOrderId() ?></span>
57
  <h4>Seu pedido será enviado por <?php echo $order->getShippingDescription(); ?></h4>
58
  </div>
59
  <div class="warning-block">
65
  </div>
66
  </div>
67
  </div>
68
+ <?php echo Mage::getStoreConfig("moipall/google/outros_funil"); ?>
69
  <script type="text/javascript">
70
  //<![CDATA[
71
  jQuery(document).ready(function(){
app/design/frontend/base/default/template/{O2TI/moip/horizontal_form.phtml → MOIP/transparente/vertical_form.phtml} RENAMED
@@ -10,35 +10,35 @@
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
  }
19
  });
20
- jQuery('.moip-payment-methods > li').not('.moip-payment-method-content').bind({
21
  click: function() {
22
- jQuery('.moip-payment-method-content').not('#' + jQuery(this).attr('data-target')).slideUp();
23
  jQuery('#' + jQuery(this).attr('data-target')).slideDown();
24
  }
25
  });
26
- if(jQuery("input[name=payment\\[method\\]]:checked").val() == "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
 
36
- <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('O2TI/moip/css/formulario_horizontal.css'); ?>"media="all">
37
- <div id="checkouto2ti">
38
  <div id="payment_form_<?php echo $this->getMethodCode() ?>" style="display:none">
39
- <ul class="inline input-switcher moip-payment-methods">
40
  <?php if($this->mostraCartao()): ?>
41
- <li data-target="moip-cartao" class='moip-payment-method-line'>
42
  <input id="cartao_radio" type="radio" name="payment[forma_pagamento]" title="Cartão de Crédito" value="CartaoCredito" class="forma_pg">
43
  <img alt="Cartão de Crédito" src="<?php echo $this->getCartaoIcon(); ?>">
44
  <div class="middle-method">
@@ -50,10 +50,10 @@ jQuery(document).ready(function() {
50
  <p class="method-price-title"><span class="price"><?php echo $this->getParcelamento('preview'); ?></span></p>
51
  </div>
52
  </li>
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>
@@ -62,19 +62,19 @@ jQuery(document).ready(function() {
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
 
@@ -87,12 +87,12 @@ jQuery(document).ready(function() {
87
  <input type="text" name="payment[credito_numero]" id="credito_numero" class="input-text required-entry validate-cc-number validate-cc-type">
88
  </div>
89
  </div>
90
- <div class="cvv tooltip-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">
95
- <span class="custom help" style=" width:260px;"><em>Código de segurança:</em></br>Veja no verso do seu cartão.<img src="<?php echo $this->getSkinUrl('O2TI/moip/imagem/codigo-seguranca.png'); ?>" id="imageseguramoip" border="0"></span>
96
  </span>
97
  </div>
98
  </div>
@@ -153,11 +153,11 @@ jQuery(document).ready(function() {
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>
@@ -165,14 +165,14 @@ jQuery(document).ready(function() {
165
  <li class="wide">
166
  <label class="required" for="credito_parcela"><em>*</em>CPF</label>
167
  <div class="input-box">
168
- <input type="text" name="payment[credito_portador_cpf]" class="input-text required-entry validar_cpf" 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>
@@ -180,7 +180,7 @@ jQuery(document).ready(function() {
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>
@@ -190,7 +190,7 @@ jQuery(document).ready(function() {
190
  </li>
191
  <?php endif; ?>
192
  <?php if($this->mostraBoleto()): ?>
193
- <li data-target="moip-boleto" class='moip-payment-method-line'>
194
  <input type="radio" name="payment[forma_pagamento]" title="Boleto" <?php if(!$this->boletoDisponivel('valid')): ?>value="BoletoBancario" <?php endif; ?>class="forma_pg<?php if(!$this->boletoDisponivel('valid')): ?> invalid-boleto<?php endif; ?>">
195
  <img alt="Boleto Bancário" src="<?php echo $this->getBoletoIcon(); ?>">
196
  <div class="middle-method">
@@ -205,7 +205,7 @@ jQuery(document).ready(function() {
205
  </div>
206
  </li>
207
 
208
- <li class="moip-payment-method-content row-fluid" id="moip-boleto" style="display:none">
209
  <div class="span3 method-image">
210
  <img alt="Boleto Bancário" id="imageboleto" src="<?php echo $this->getBoletoImage(); ?>">
211
  </div>
@@ -221,7 +221,7 @@ jQuery(document).ready(function() {
221
  </li>
222
  <?php endif; ?>
223
  <?php if($this->mostraTransferencia()): ?>
224
- <li data-target="moip-transferencia" class='moip-payment-method-line'>
225
  <input type="radio" class="forma_pg" name="payment[forma_pagamento]" value="DebitoBancario" >
226
  <img alt="Transferência Bancária" id="imageboleto" src="<?php echo $this->getTransferenciaIcon(); ?>">
227
  <div class="middle-method">
@@ -233,7 +233,7 @@ jQuery(document).ready(function() {
233
  <p class="method-price-title"><?php echo $this->getTransferenciaPrice(); ?></p>
234
  </div>
235
  </li>
236
- <li class="moip-payment-method-content row-fluid" id="moip-transferencia" style="display:none">
237
  <h3>Transferência Online</h3>
238
  <div id="pagdebito">
239
  Após finalizar o pedido você será redirecionado ao site do seu banco...</br>
10
 
11
 
12
  jQuery(document).ready(function() {
13
+ jQuery('.input-switcher > li').not('.transparente-payment-method-content').bind({
14
  click: function() {
15
+ jQuery(this).parent().children('li').not('.transparente-payment-method-content').fadeTo(300, 1);
16
  jQuery(this).fadeTo(0, 1);
17
  jQuery(this).find('input[type="radio"]').attr('checked', true);
18
  }
19
  });
20
+ jQuery('.transparente-payment-methods > li').not('.transparente-payment-method-content').bind({
21
  click: function() {
22
+ jQuery('.transparente-payment-method-content').not('#' + jQuery(this).attr('data-target')).slideUp();
23
  jQuery('#' + jQuery(this).attr('data-target')).slideDown();
24
  }
25
  });
26
+ if(jQuery("input[name=payment\\[method\\]]:checked").val() == "moip_transparente_standard" && jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val() != ""){
27
  jQuery("#cartao_radio").trigger("click");
28
+ jQuery("#transparente-cartao").css({'display':'block'})
29
  } else {
30
  jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val();
31
+ jQuery("#transparente-cartao").css({'display':'none'});
32
  }
33
  });
34
  </script>
35
 
36
+ <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('MOIP/transparente/css/formulario_horizontal.css'); ?>"media="all">
37
+ <div id="checkoutmoip">
38
  <div id="payment_form_<?php echo $this->getMethodCode() ?>" style="display:none">
39
+ <ul class="inline input-switcher transparente-payment-methods">
40
  <?php if($this->mostraCartao()): ?>
41
+ <li data-target="transparente-cartao" class='transparente-payment-method-line'>
42
  <input id="cartao_radio" type="radio" name="payment[forma_pagamento]" title="Cartão de Crédito" value="CartaoCredito" class="forma_pg">
43
  <img alt="Cartão de Crédito" src="<?php echo $this->getCartaoIcon(); ?>">
44
  <div class="middle-method">
50
  <p class="method-price-title"><span class="price"><?php echo $this->getParcelamento('preview'); ?></span></p>
51
  </div>
52
  </li>
53
+ <li class="transparente-payment-method-content row-fluid" id="transparente-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="transparente_cc_type" id="transparente_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>
62
  </li>
63
  <li>
64
  <img src="<?php echo $this->getMastercardImage(); ?>" alt="Mastercard" border="0" onclick="setCcType('MC');">
65
+ <input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" value="Mastercard" onclick="setCcType('MC');" class="validate-one-required-by-name" >
66
  </li>
67
  <li>
68
  <img src="<?php echo $this->getAmericanExpressImage(); ?>" alt="AmericanExpress" border="0" onclick="setCcType('AE');">
69
+ <input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" value="AmericanExpress" onclick="setCcType('AE');" class="validate-one-required-by-name" >
70
  </li>
71
  <li>
72
  <img onclick="" src="<?php echo $this->getDinersImage(); ?>" alt="Diners" border="0" onclick="setCcType('DI');">
73
+ <input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" value="Diners" onclick="setCcType('DI');" class="validate-one-required-by-name" >
74
  </li>
75
  <li>
76
  <img onclick="" src="<?php echo $this->getHipercardImage(); ?>" alt="Hipercard" border="0" onclick="setCcType('HI');">
77
+ <input id="bandeiratransparente" type="radio" name="payment[credito_instituicao]" value="Hipercard" onclick="setCcType('HI');" class="validate-one-required-by-name" >
78
  </li>
79
  </ul>
80
 
87
  <input type="text" name="payment[credito_numero]" id="credito_numero" class="input-text required-entry validate-cc-number validate-cc-type">
88
  </div>
89
  </div>
90
+ <div class="cvv tooltip-transparente-handler">
91
  <label class="required" for="cvv">CVV:&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-transparente">
95
+ <span class="custom help" style=" width:260px;"><em>Código de segurança:</em></br>Veja no verso do seu cartão.<img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem/codigo-seguranca.png'); ?>" id="imageseguratransparente" border="0"></span>
96
  </span>
97
  </div>
98
  </div>
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-transparente-handler">
157
  <label class="required" for="credito_parcela"><em>*</em>Nome no Cartão</label>
158
  <div class="input-box">
159
  <input type="text" name="payment[credito_portador_nome]" value="<?php echo $nome; ?>" class="input-text required-entry" id="credito_portador_nome" >
160
+ <span class="tooltip-transparente">
161
  <span class="custom help"><em>Nome do titular</em><br>deverá ser exatamente como está no cartão.</span>
162
  </span>
163
  </div>
165
  <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" id="credito_portador_cpf" value="<?php echo $cpf; ?>" >
169
  </div>
170
  </li>
171
+ <li class="wide tooltip-transparente-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" value="<?php echo $telefone; ?>" class="input-text required-entry">
175
+ <span class="tooltip-transparente">
176
  <span class="custom help"><em>Telefone de contato</em><br>Muitas vezes é necessária a confirmação manual de seus dados por nossa equipe de crédito, por favor informe um telefone em que seja fácil te localizar.</span>
177
  </span>
178
  </div>
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" value="<?php if ($dn !='') { echo $dn; } ?>" class="input-text required-entry" >
184
  </div>
185
  </li>
186
  </ul>
190
  </li>
191
  <?php endif; ?>
192
  <?php if($this->mostraBoleto()): ?>
193
+ <li data-target="transparente-boleto" class='transparente-payment-method-line'>
194
  <input type="radio" name="payment[forma_pagamento]" title="Boleto" <?php if(!$this->boletoDisponivel('valid')): ?>value="BoletoBancario" <?php endif; ?>class="forma_pg<?php if(!$this->boletoDisponivel('valid')): ?> invalid-boleto<?php endif; ?>">
195
  <img alt="Boleto Bancário" src="<?php echo $this->getBoletoIcon(); ?>">
196
  <div class="middle-method">
205
  </div>
206
  </li>
207
 
208
+ <li class="transparente-payment-method-content row-fluid" id="transparente-boleto" style="display:none">
209
  <div class="span3 method-image">
210
  <img alt="Boleto Bancário" id="imageboleto" src="<?php echo $this->getBoletoImage(); ?>">
211
  </div>
221
  </li>
222
  <?php endif; ?>
223
  <?php if($this->mostraTransferencia()): ?>
224
+ <li data-target="transparente-transferencia" class='transparente-payment-method-line'>
225
  <input type="radio" class="forma_pg" name="payment[forma_pagamento]" value="DebitoBancario" >
226
  <img alt="Transferência Bancária" id="imageboleto" src="<?php echo $this->getTransferenciaIcon(); ?>">
227
  <div class="middle-method">
233
  <p class="method-price-title"><?php echo $this->getTransferenciaPrice(); ?></p>
234
  </div>
235
  </li>
236
+ <li class="transparente-payment-method-content row-fluid" id="transparente-transferencia" style="display:none">
237
  <h3>Transferência Online</h3>
238
  <div id="pagdebito">
239
  Após finalizar o pedido você será redirecionado ao site do seu banco...</br>
app/design/frontend/base/default/template/O2TI/customer/widget/dob.phtml DELETED
@@ -1,103 +0,0 @@
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/moip/vertical_form.phtml DELETED
@@ -1,235 +0,0 @@
1
-
2
- <?php
3
- $nome = "";
4
- $cpf = "";
5
- $telefone = "";
6
- $selector = "";
7
- $dn = "";
8
- ?>
9
- <script type="text/javascript">
10
- //<![CDATA[
11
- jQuery(document).ready(function() {
12
- jQuery('.input-switcher > li').bind({
13
- click: function() {
14
- jQuery(this).parent().children('li').fadeTo(300, 0.4);
15
- jQuery('#checkout-payment-bandeira').hide();
16
- jQuery('#checkout-payment-banco').hide();
17
- jQuery(this).fadeTo(0, 1);
18
- jQuery(this).find('input[type="radio"]').attr('checked', true);
19
- }
20
- });
21
- jQuery('.moip-payment-methods > li').bind({
22
- click: function() {
23
- jQuery('.moip-payment-method-content').not('#' + jQuery(this).attr('data-target')).slideUp();
24
- jQuery('#' + jQuery(this).attr('data-target')).slideDown();
25
- }
26
- });
27
- if(jQuery("input[name=payment\\[method\\]]:checked").val() == "o2ti_moip_standard" && jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val() != ""){
28
- jQuery("#cartao_radio").trigger("click");
29
- jQuery("#moip-cartao").css({'display':'block'})
30
- } else {
31
- jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val();
32
- jQuery("#moip-cartao").css({'display':'none'});
33
- }
34
- });
35
- //]]>
36
- </script>
37
-
38
- <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('O2TI/moip/css/formulario.css'); ?>"media="all">
39
- <div id="checkouto2ti">
40
- <div id="payment_form_<?php echo $this->getMethodCode() ?>" style="display:none">
41
- <ul class="inline moip-payment-methods input-switcher">
42
- <?php if($this->mostraCartao()): ?>
43
- <li data-target="moip-cartao">
44
- <img alt="Cartão de Crédito" src="<?php echo $this->getCartaoIcon(); ?>">
45
- <input id="cartao_radio" type="radio" name="payment[forma_pagamento]" title="Cartão de Crédito" value="CartaoCredito" class="forma_pg validate-one-required-by-name">
46
- </li>
47
- <?php endif; ?>
48
- <?php if($this->mostraBoleto()): ?>
49
- <li data-target="moip-boleto">
50
- <img alt="Boleto Bancário" src="<?php echo $this->getBoletoIcon(); ?>">
51
- <input type="radio" name="payment[forma_pagamento]" title="Boleto" <?php if(!$this->boletoDisponivel('valid')): ?>value="BoletoBancario" <?php endif; ?>class="forma_pg<?php if(!$this->boletoDisponivel('valid')): ?> invalid-boleto<?php endif; ?> validate-one-required-by-name">
52
- </li>
53
- <?php endif; ?>
54
- <?php if($this->mostraTransferencia()): ?>
55
- <li data-target="moip-transferencia">
56
- <img alt="Transferência Bancária" id="imageboleto" src="<?php echo $this->getTransferenciaIcon(); ?>">
57
- <input type="radio" class="forma_pg validate-one-required-by-name" name="payment[forma_pagamento]" value="DebitoBancario" >
58
- </li>
59
- <?php endif; ?>
60
- </ul>
61
-
62
- <div class="moip-payment-method-content row-fluid" id="moip-cartao" style="display:none">
63
- <h3>Cartão de Crédito</h3>
64
- <input type="hidden" name="moip_cc_type" id="moip_cc_type" value=""/>
65
- <label class="required" for="credito_bandeira" >Selecione a Bandeira<em>*</em></label>
66
- <ul class="inline banderias-cartao input-switcher input-switcher-5">
67
- <li>
68
- <img src="<?php echo $this->getVisaImage(); ?>" alt="Visa" border="0" onclick="setCcType('VI');">
69
- <input type="radio" name="payment[credito_instituicao]" value="Visa" onclick="setCcType('VI');" class="validate-one-required-by-name" >
70
- </li>
71
- <li>
72
- <img src="<?php echo $this->getMastercardImage(); ?>" alt="Mastercard" border="0" onclick="setCcType('MC');">
73
- <input id="bandeiramoip" type="radio" name="payment[credito_instituicao]" value="Mastercard" onclick="setCcType('MC');" class="validate-one-required-by-name" >
74
- </li>
75
- <li>
76
- <img src="<?php echo $this->getAmericanExpressImage(); ?>" alt="AmericanExpress" border="0" onclick="setCcType('AE');">
77
- <input id="bandeiramoip" type="radio" name="payment[credito_instituicao]" value="AmericanExpress" onclick="setCcType('AE');" class="validate-one-required-by-name" >
78
- </li>
79
- <li>
80
- <img onclick="" src="<?php echo $this->getDinersImage(); ?>" alt="Diners" border="0" onclick="setCcType('DI');">
81
- <input id="bandeiramoip" type="radio" name="payment[credito_instituicao]" value="Diners" onclick="setCcType('DI');" class="validate-one-required-by-name" >
82
- </li>
83
- <li>
84
- <img onclick="" src="<?php echo $this->getHipercardImage(); ?>" alt="Hipercard" border="0" onclick="setCcType('HI');">
85
- <input id="bandeiramoip" type="radio" name="payment[credito_instituicao]" value="Hipercard" onclick="setCcType('HI');" class="validate-one-required-by-name" >
86
- </li>
87
- </ul>
88
-
89
- <ul class="form-list">
90
- <li class="wide cc-cvv">
91
- <div class="cc">
92
- <label class="required" for="credito_numero">Número<em>*</em></label>
93
- <div class="input-box">
94
- <input type="text" name="payment[credito_numero]" id="credito_numero" onkeypress="return txtBoxFormat(this, '9', event);" class="input-text required-entry validate-cc-number validate-cc-type">
95
- </div>
96
- </div>
97
- <div class="cvv tooltip-moip-handler">
98
- <label class="required" for="cvv">CVV&nbsp;<i class="icon-question-sign"></i><em>*</em></label>
99
- <div class="input-box">
100
- <input type="text" name="payment[credito_codigo_seguranca]" onkeyup="countChar(this)" onkeypress="return txtBoxFormat(this, '9', event);" class="input-text required-entry ccv validate-cc-cvn" minlength="3" maxlength="4" id="credito_codigo_seguranca" >
101
- <span class="tooltip-moip">
102
- <span class="custom help" style=" width:260px;"><em>Código de segurança:</em></br>Veja no verso do seu cartão.<img src="<?php echo $this->getSkinUrl('O2TI/moip/imagem/codigo-seguranca.png'); ?>" id="imageseguramoip" border="0"></span>
103
- </span>
104
- </div>
105
- </div>
106
- </li>
107
- <li class="wide cc-validade">
108
- <label class="required" for="Validade">Validade<em>*</em></label>
109
- <div class="input-box">
110
- <select name="payment[credito_expiracao_mes]" id="credito_expiracao_mes" class="input-text required-entry" >
111
- <option value="">Mês</option>
112
- <option value="01">01</option>
113
- <option value="02">02</option>
114
- <option value="03">03</option>
115
- <option value="04">04</option>
116
- <option value="05">05</option>
117
- <option value="06">06</option>
118
- <option value="07">07</option>
119
- <option value="08">08</option>
120
- <option value="09">09</option>
121
- <option value="10">10</option>
122
- <option value="11">11</option>
123
- <option value="12">12</option>
124
- </select>
125
- <select name="payment[credito_expiracao_ano]" id="credito_expiracao_ano" class="input-text required-entry" >
126
- <option value="">Ano</option>
127
- <option value="13">13</option>
128
- <option value="14">14</option>
129
- <option value="15">15</option>
130
- <option value="16">16</option>
131
- <option value="17">17</option>
132
- <option value="18">18</option>
133
- <option value="19">19</option>
134
- <option value="20">20</option>
135
- <option value="21">21</option>
136
- <option value="22">22</option>
137
- <option value="23">23</option>
138
- <option value="24">24</option>
139
- <option value="25">25</option>
140
- </select>
141
- </div>
142
- </li>
143
- <li class="wide">
144
- <label class="required" for="credito_parcela">Opções de pagamento<em>*</em></label>
145
- <div class="input-box">
146
-
147
-
148
- <select name="payment[credito_parcelamento]" id="credito_parcelamento" class="input-text required-entry" >
149
- <option value="" select>Selecione as parcelas</option>
150
- <?php $parcelas = $this->getParcelamento('parcelas'); ?>
151
- <?php foreach ( $parcelas as $key => $value) { ?>
152
- <?php echo $parcelas[$key]; ?>
153
- <?php } ?>
154
- </select>
155
- <?php echo $this->getTextoParcelas() ?>
156
- </div>
157
- </li>
158
- </ul>
159
- <div id="formcli" style="display:none;">
160
- <ul class="form-list dados-titular">
161
- <h3>Dados do Titular</h3>
162
- <li class="wide tooltip-moip-handler">
163
- <label class="required" for="credito_parcela"><em>*</em>Nome no Cartão</label>
164
- <div class="input-box">
165
- <input type="text" name="payment[credito_portador_nome]" value="<?php echo $nome; ?>" class="input-text required-entry" id="credito_portador_nome" >
166
- <span class="tooltip-moip">
167
- <span class="custom help"><em>Nome do titular</em><br>deverá ser exatamente como está no cartão.</span>
168
- </span>
169
- </div>
170
- </li>
171
- <li class="wide">
172
- <label class="required" for="credito_parcela"><em>*</em>CPF</label>
173
- <div class="input-box">
174
- <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; ?>" >
175
- </div>
176
- </li>
177
- <li class="wide tooltip-moip-handler">
178
- <label class="required" for="credito_parcela"><em>*</em>Telefone</label>
179
- <div class="input-box">
180
- <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">
181
- <span class="tooltip-moip">
182
- <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>
183
- </span>
184
- </div>
185
- </li>
186
- <li class="wide">
187
- <label class="required" for="credito_parcela"><em>*</em>Data nascimento</label>
188
- <div class="input-box">
189
- <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" >
190
- </div>
191
- </li>
192
- </ul>
193
- </div>
194
- <div class="clearer"></div>
195
- </div>
196
- <div class="moip-payment-method-content row-fluid" id="moip-boleto" style="display:none">
197
- <div class="span3 method-image">
198
- <img alt="Boleto Bancário" id="imageboleto" src="<?php echo $this->getBoletoImage(); ?>">
199
- </div>
200
- <div class="span9">
201
- <h3>Boleto</h3>
202
- <p class="desc"><?php echo $this->getTextoBoleto("texto") ?></p>
203
- <p class="method-price"><?php if(!$this->boletoDisponivel('valid')){echo $this->getBoletoPrice();}else{echo $this->boletoDisponivel('text');} ?></p>
204
- </div>
205
- </div>
206
- <div class="moip-payment-method-content row-fluid" id="moip-transferencia" style="display:none">
207
- <h3>Transferência Online</h3>
208
- <div id="pagdebito">
209
- Após finalizar o pedido você será redirecionado ao site do seu banco...</br>
210
- <?php echo $this->getTextoTranferencia("texto"); ?>
211
- <p class="method-price"><?php echo $this->getBoletoPrice(); ?></p>
212
- </div>
213
- <ul class="inline input-switcher input-switcher-4">
214
- <li>
215
- <img src="<?php echo $this->getBBImage(); ?>" alt="Banco do Brasil" id="debbb" >
216
- <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="BancoDoBrasil" class="validate-one-required-by-name">
217
- </li>
218
- <li>
219
- <img src="<?php echo $this->getBradescoImage(); ?>" id="debbradesco" alt="Bradesco">
220
- <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="Bradesco" class="validate-one-required-by-name">
221
- </li>
222
- <li>
223
- <img src="<?php echo $this->getItauImage(); ?>" id="debitau" alt="Itaú" >
224
- <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="Itau" class="validate-one-required-by-name">
225
- </li>
226
- <li>
227
- <img src="<?php echo $this->getBanrisulImage(); ?>" id="Banrisul" alt="Banrisul" >
228
- <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" value="Banrisul" class="validate-one-required-by-name">
229
- </li>
230
- </ul>
231
-
232
- </div>
233
-
234
- </div>
235
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/base/default/template/O2TI/onestepcheckout/daskboard/onepage/review/options.phtml DELETED
@@ -1,23 +0,0 @@
1
- <?php if(Mage::helper('onestepcheckout')->showCouponCode()):?>
2
- <div class="tab-coupon">
3
- <div id="tab-coupon">
4
- <?php echo $this->getChildHtml('coupon');?>
5
- </div>
6
- </div>
7
- <?php endif;?>
8
- <?php if(Mage::helper('onestepcheckout')->enableGiftMessage()):?>
9
- <div class="o2ti-osc-giftmessagecontainer o2ti-osc-giftmessage">
10
- <div class="onestepcheckout-giftmessages">
11
- <div id="onepage-checkout-shipping-method-additional-load">
12
- <?php echo $this->getChildHtml('additional') ?>
13
- </div>
14
- </div>
15
- </div>
16
- <?php endif?>
17
- <?php if(Mage::helper('onestepcheckout')->showComment()):?>
18
- <div class="onestepcheckout-comments">
19
- <label for="id_comments"><?php echo $this->__('Comments');?></label><br/>
20
- <textarea id="id_comments" name="onestepcheckout_comments" cols="40" rows="4"></textarea>
21
- </div>
22
- <?php endif;?>
23
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/base/default/template/O2TI/onestepcheckout/daskboard/onepage/shipping_method/available.phtml DELETED
@@ -1,88 +0,0 @@
1
- <?php if (!($_shippingRateGroups = $this->getShippingRates())): ?>
2
-
3
- <?php else: ?>
4
- <dl id="checkout-shipping-method-loadding" class="sp-methods">
5
- <?php $_sole = count($this->getShippingRates()) == 1; foreach ($this->getShippingRates() as $code => $_rates): ?>
6
- <dt><?php echo $this->getCarrierName($code); ?></dt>
7
- <dd>
8
- <ul>
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')): ?>
24
- <?php if(Mage::getStoreConfig('o2tiall/config/trocar_icones_na_entrega')):
25
- if ($code == "pedroteixeira_correios" || $code == "flatrate" || $code == "freeshipping"):
26
- $parametro = $_rate->getCode();
27
-
28
- switch ($parametro){
29
- case "pedroteixeira_correios_40045":
30
- $imagem = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/icone_sedex_a');
31
- break;
32
- case "freeshipping_freeshipping":
33
- $imagem = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/icone_gratis');
34
- break;
35
- case "pedroteixeira_correios_41106":
36
- $imagem = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/icone_pac');
37
- break;
38
- case "pedroteixeira_correios_40010":
39
- $imagem = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/icone_sedex');
40
- break;
41
- case "pedroteixeira_correios_40215":
42
- $imagem = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/icone_sedex_10');
43
- break;
44
- case "pedroteixeira_correios_40290":
45
- $imagem = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/icone_sedex_hoje');
46
- break;
47
- case "flatrate_flatrate":
48
- $imagem = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/icone_fixo');//pac
49
- break;
50
- }
51
- ?>
52
- <img src="<?php echo $imagem?>"> <br />
53
- <?php endif; ?>
54
- <?php else: ?>
55
- <?php if ($code == "pedroteixeira_correios" || $code == "flatrate" || $code == "freeshipping"):
56
- $pedroteixeira_correios_40045 = $this->getSkinUrl('O2TI/moip/imagem/pedroteixeira_correios_40045.png'); //sedex_acobrar
57
- $pedroteixeira_correios_41106 = $this->getSkinUrl('O2TI/moip/imagem/pedroteixeira_correios_41106.png'); //pac
58
- $pedroteixeira_correios_40010 = $this->getSkinUrl('O2TI/moip/imagem/pedroteixeira_correios_40010.png'); //sedex
59
- $pedroteixeira_correios_40215 = $this->getSkinUrl('O2TI/moip/imagem/pedroteixeira_correios_40215.png'); //sedex10
60
- $pedroteixeira_correios_40290 = $this->getSkinUrl('O2TI/moip/imagem/pedroteixeira_correios_40290.png'); //sedexhoje
61
- $freeshipping_freeshipping = $this->getSkinUrl('O2TI/moip/imagem/freeshipping_freeshipping.png'); //frete gratis
62
- $flatrate_flatrate = $this->getSkinUrl('O2TI/moip/imagem/flatrate_flatrate.png'); //frete fixo
63
- ?>
64
-
65
- <img src="<?php echo $this->getSkinUrl('O2TI/moip/imagem/'); echo $_rate->getCode()?>.gif" id="o2ti<?php echo $_rate->getCode() ?>.png" alt="<?php echo $_rate->getMethodTitle() ?>"> <br />
66
- <?php endif; ?>
67
- <?php endif; ?>
68
- <?php endif; ?>
69
-
70
-
71
- <?php echo $_rate->getMethodTitle() ?>
72
- <?php $_excl = $this->getShippingPrice($_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
73
- <?php $_incl = $this->getShippingPrice($_rate->getPrice(), true); ?>
74
- <?php echo $_excl; ?>
75
- <?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
76
- (<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
77
- <?php endif; ?>
78
- </label>
79
- <?php endif ?>
80
- </li>
81
- <?php endforeach; ?>
82
- </ul>
83
- </dd>
84
- <?php endforeach; ?>
85
- </dl>
86
-
87
- <?php endif; ?>
88
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/default/template/customer/widget/dob.phtml DELETED
@@ -1,103 +0,0 @@
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/default/default/template/customer/widget/taxvat.phtml DELETED
@@ -1,17 +0,0 @@
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/etc/modules/{O2TI_All.xml → MOIP_All.xml} RENAMED
@@ -2,9 +2,9 @@
2
 
3
  <config>
4
  <modules>
5
- <O2TI_All>
6
  <active>true</active>
7
  <codePool>local</codePool>
8
- </O2TI_All>
9
  </modules>
10
  </config>
2
 
3
  <config>
4
  <modules>
5
+ <MOIP_All>
6
  <active>true</active>
7
  <codePool>local</codePool>
8
+ </MOIP_All>
9
  </modules>
10
  </config>
app/etc/modules/{O2TI_Onestepcheckout.xml → MOIP_Onestepcheckout.xml} RENAMED
@@ -1,9 +1,9 @@
1
  <?xml version="1.0"?>
2
  <config>
3
  <modules>
4
- <O2TI_Onestepcheckout>
5
  <active>true</active>
6
  <codePool>local</codePool>
7
- </O2TI_Onestepcheckout>
8
  </modules>
9
  </config>
1
  <?xml version="1.0"?>
2
  <config>
3
  <modules>
4
+ <MOIP_Onestepcheckout>
5
  <active>true</active>
6
  <codePool>local</codePool>
7
+ </MOIP_Onestepcheckout>
8
  </modules>
9
  </config>
app/etc/modules/{O2TI_Moip.xml → MOIP_Transparente.xml} RENAMED
@@ -2,12 +2,12 @@
2
 
3
  <config>
4
  <modules>
5
- <O2TI_Moip>
6
  <active>true</active><!-- this is an active module -->
7
  <codePool>local</codePool><!-- this module will be located in app/code/local code pool -->
8
  <depends><!-- specify dependencies for correct module loading order -->
9
  <Mage_Payment />
10
  </depends>
11
- </O2TI_Moip>
12
  </modules>
13
  </config>
2
 
3
  <config>
4
  <modules>
5
+ <MOIP_Transparente>
6
  <active>true</active><!-- this is an active module -->
7
  <codePool>local</codePool><!-- this module will be located in app/code/local code pool -->
8
  <depends><!-- specify dependencies for correct module loading order -->
9
  <Mage_Payment />
10
  </depends>
11
+ </MOIP_Transparente>
12
  </modules>
13
  </config>
app/locale/en_US/{O2TI_Onestepcheckout.csv → MOIP_Onestepcheckout.csv} RENAMED
@@ -65,7 +65,7 @@
65
  "Update City","Atualiza Cidade"
66
  "Qty","Qtde"
67
  "Update country","Atualiza Pa&iacute;s"
68
- "The onestepcheckout Extension is developed and supported by www.Mage-World.com. If you need any support or have any question please contact us at support@mage-world.com.","M&oacute;dulo original Mage-World, modificado sob licen&ccedil;a exclusiva por O2ti.com"
69
  "Disable feature sort and edit option field","Desativar a fun&ccedil;&atilde;o de organizar e editar o campo de op&ccedil;&atilde;o"
70
  "disable feature Sort Address Fields and feature Edit Options Of Address Field and after restore first status of form input info","desativar recurso de classifica&ccedil;&atilde;o de endere&ccedil;os e op&ccedil;&otilde;es de edi&ccedil;&atilde;o de campo de endere&ccedil;o e depois restaurar o status da primeiro dado preenchido"
71
  "Delivery Date","Agendamento da entrega"
65
  "Update City","Atualiza Cidade"
66
  "Qty","Qtde"
67
  "Update country","Atualiza Pa&iacute;s"
68
+ "The onestepcheckout Extension is developed and supported by www.Mage-World.com. If you need any support or have any question please contact us at support@mage-world.com.","M&oacute;dulo original Mage-World, modificado sob licen&ccedil;a exclusiva por Moip.com"
69
  "Disable feature sort and edit option field","Desativar a fun&ccedil;&atilde;o de organizar e editar o campo de op&ccedil;&atilde;o"
70
  "disable feature Sort Address Fields and feature Edit Options Of Address Field and after restore first status of form input info","desativar recurso de classifica&ccedil;&atilde;o de endere&ccedil;os e op&ccedil;&otilde;es de edi&ccedil;&atilde;o de campo de endere&ccedil;o e depois restaurar o status da primeiro dado preenchido"
71
  "Delivery Date","Agendamento da entrega"
app/locale/en_US/template/email/statusmail_cancelado_o2ti.html DELETED
@@ -1,44 +0,0 @@
1
- <!--@subject Welcome, {{var customer.name}}! @-->
2
- <!--@vars
3
- {"store url=\"\"":"Store Url",
4
- "var logo_url":"Email Logo Image Url",
5
- "htmlescape var=$customer.name":"Customer Name",
6
- "store url=\"customer/account/\"":"Customer Account Url",
7
- "var customer.email":"Customer Email",
8
- "htmlescape var=$customer.password":"Customer Password"}
9
- @-->
10
-
11
- <!--@styles
12
- body,td { color:#2f2f2f; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; }
13
- @-->
14
-
15
- <body style="background:#F6F6F6; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:0; padding:0;">
16
- <div style="background:#F6F6F6; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:0; padding:0;">
17
- <table cellspacing="0" cellpadding="0" border="0" height="100%" width="100%">
18
- <tr>
19
- <td align="center" valign="top" style="padding:20px 0 20px 0">
20
- <!-- [ header starts here] -->
21
- <table bgcolor="FFFFFF" cellspacing="0" cellpadding="10" border="0" width="650" style="border:1px solid #E0E0E0;">
22
- <tr>
23
- <td valign="top">
24
- <a href="{{store url=""}}"><img src="{{var logo_url}}" alt="{{var logo_alt}}" style="margin-bottom:10px;" border="0"/></a></td>
25
- </tr>
26
- <!-- [ middle starts here] -->
27
- <tr>
28
- <td valign="top">
29
- <h1 style="font-size:22px; font-weight:normal; line-height:22px; margin:0 0 11px 0;"">Prezado {{var username}},</h1>
30
- <h1></h1>
31
- <p>Seu pedido #{{var order_id}} está cancelado. </p>
32
- <div>Para refazer o seu pagamento basta clicar no link https://www.moip.com.br/Instrucao.do?token={{var token}}</div>
33
- </td>
34
- </tr>
35
- <tr>
36
- <td bgcolor="#EAEAEA" align="center" style="background:#EAEAEA; text-align:center;"><center><p style="font-size:12px; margin:0;">Thank you again, <strong>{{var store.getFrontendName()}}</strong></p></center></td>
37
- </tr>
38
- </table>
39
- </td>
40
- </tr>
41
- </table>
42
- </div>
43
- </body><!--@subject Out of Stock Subscription Mail @-->
44
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/locale/en_US/template/email/statusmail_cancelado_o2ti.html~ DELETED
@@ -1,90 +0,0 @@
1
- <?php
2
- /**
3
- * Default view
4
- *
5
- * @version 1.0.0
6
- * @package Gavern Framework
7
- * @copyright Copyright (C) 2010 - 2011 GavickPro. All rights reserved.
8
- *
9
- */
10
- // No direct access.
11
- defined('_JEXEC') or die;
12
- if($this->getParam("cwidth_position", 'head') == 'head') {
13
- $this->generateColumnsWidth();
14
- }
15
- $this->addCSSRule('#gkWrap1, #gkWrap2, #gkWrap3 { width: ' . $this->getParam('template_width','980px') . '; }');
16
- ?><?php $menus = &JSite::getMenu(); $wmenu = $menus->getActive(); $pageclass = ""; if (is_object( $wmenu )) : $params = new JParameter( $wmenu->params ); $pageclass = $params->get( 'pageclass_sfx' ); endif; ?>
17
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
18
- <html xmlns="http://www.w3.org/1999/xhtml"
19
- xmlns:og="http://ogp.me/ns#"
20
- xmlns:fb="http://www.facebook.com/2008/fbml"
21
- xml:lang="<?php echo $this->API->language; ?>" lang="<?php echo $this->API->language; ?>">
22
- <head>
23
- <?php
24
- If($_GET['utm_source'] !== null || $_GET['utm_source'] !== ""){
25
- setcookie('register_source', $_GET["utm_source "], 3600*24*30);
26
- }
27
- ?>
28
- <?php if($this->getParam("chrome_frame_support", '0') == '1') : ?>
29
- <meta http-equiv="X-UA-Compatible" content="chrome=1"/>
30
- <?php endif; ?>
31
- <meta http-equiv="X-UA-Compatible" content="IE=9" />
32
- <jdoc:include type="head" />
33
- <?php $this->loadBlock('head'); ?>
34
- <script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>
35
- <script type="text/javascript">
36
-
37
- var _gaq = _gaq || [];
38
- _gaq.push(['_setAccount', 'UA-30942563-1']);
39
- _gaq.push(['_setDomainName', 'sonoma.com.br']);
40
- _gaq.push(['_addIgnoreRef', 'sonoma.com.br']);
41
- _gaq.push(['_trackPageview']);
42
-
43
- (function() {
44
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
45
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
46
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
47
- })();
48
-
49
- </script>
50
- </head>
51
- <body class="<?php echo $pageclass ? htmlspecialchars($pageclass) : 'default'; ?>">
52
- <?php if($this->browser->get('browser') == 'ie6' && $this->getParam('ie6bar', '1') == 1) : ?>
53
- <div id="gkInfobar"><a href="http://browsehappy.com"><?php echo JText::_('TPL_GK_GAVERN_IE6_BAR'); ?></a></div>
54
- <?php endif; ?>
55
-
56
- <?php $this->messages('message-position-1'); ?>
57
-
58
- <div id="gkBg">
59
- <div id="gkWrap1"> <?php $this->loadBlock('userarea'); ?>
60
- <?php $this->loadBlock('nav'); ?> <?php $this->loadBlock('menutopo'); ?>
61
- <?php $this->loadBlock('header'); ?>
62
- </div>
63
- </div>
64
- <?php $this->messages('message-position-2'); ?>
65
- <div id="gkWrap2">
66
- <?php $this->loadBlock('top'); ?>
67
- <h1>Prezado {{var username}}</h1>
68
- <p>Seu pedido #{{var order_id}} está cancelado. </p>
69
- <div>Para refazer o seu pagamento basta clicar no link https://www.moip.com.br/Instrucao.do?token={{var token}}</div>
70
- <?php $this->loadBlock('user'); ?>
71
- </div>
72
- <div class="wTbottom">
73
- <div id="gkWrap3">
74
- <?php $this->loadBlock('bottom'); ?>
75
- <?php $this->loadBlock('footer'); ?>
76
- </div>
77
- </div>
78
- <?php $this->loadBlock('popup'); ?>
79
- <?php $this->loadBlock('social'); ?>
80
- <jdoc:include type="modules" name="debug" />
81
- </body>
82
- </html>
83
-
84
-
85
-
86
-
87
- <div>
88
-
89
-
90
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/locale/pt_BR/{O2TI_Onestepcheckout.csv → MOIP_Onestepcheckout.csv} RENAMED
@@ -65,7 +65,7 @@
65
  "Update City","Atualiza Cidade"
66
  "Qty","Qtde"
67
  "Update country","Atualiza Pa&iacute;s"
68
- "The onestepcheckout Extension is developed and supported by www.Mage-World.com. If you need any support or have any question please contact us at support@mage-world.com.","M&oacute;dulo original Mage-World, modificado sob licen&ccedil;a exclusiva por O2ti.com"
69
  "Disable feature sort and edit option field","Desativar a fun&ccedil;&atilde;o de organizar e editar o campo de op&ccedil;&atilde;o"
70
  "disable feature Sort Address Fields and feature Edit Options Of Address Field and after restore first status of form input info","desativar recurso de classifica&ccedil;&atilde;o de endere&ccedil;os e op&ccedil;&otilde;es de edi&ccedil;&atilde;o de campo de endere&ccedil;o e depois restaurar o status da primeiro dado preenchido"
71
  "Delivery Date","Agendamento da entrega"
65
  "Update City","Atualiza Cidade"
66
  "Qty","Qtde"
67
  "Update country","Atualiza Pa&iacute;s"
68
+ "The onestepcheckout Extension is developed and supported by www.Mage-World.com. If you need any support or have any question please contact us at support@mage-world.com.","M&oacute;dulo original Mage-World, modificado sob licen&ccedil;a exclusiva por Moip.com"
69
  "Disable feature sort and edit option field","Desativar a fun&ccedil;&atilde;o de organizar e editar o campo de op&ccedil;&atilde;o"
70
  "disable feature Sort Address Fields and feature Edit Options Of Address Field and after restore first status of form input info","desativar recurso de classifica&ccedil;&atilde;o de endere&ccedil;os e op&ccedil;&otilde;es de edi&ccedil;&atilde;o de campo de endere&ccedil;o e depois restaurar o status da primeiro dado preenchido"
71
  "Delivery Date","Agendamento da entrega"
app/locale/pt_BR/template/email/statusmail_cancelado_o2ti.html DELETED
@@ -1,44 +0,0 @@
1
- <!--@subject Welcome, {{var customer.name}}! @-->
2
- <!--@vars
3
- {"store url=\"\"":"Store Url",
4
- "var logo_url":"Email Logo Image Url",
5
- "htmlescape var=$customer.name":"Customer Name",
6
- "store url=\"customer/account/\"":"Customer Account Url",
7
- "var customer.email":"Customer Email",
8
- "htmlescape var=$customer.password":"Customer Password"}
9
- @-->
10
-
11
- <!--@styles
12
- body,td { color:#2f2f2f; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; }
13
- @-->
14
-
15
- <body style="background:#F6F6F6; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:0; padding:0;">
16
- <div style="background:#F6F6F6; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:0; padding:0;">
17
- <table cellspacing="0" cellpadding="0" border="0" height="100%" width="100%">
18
- <tr>
19
- <td align="center" valign="top" style="padding:20px 0 20px 0">
20
- <!-- [ header starts here] -->
21
- <table bgcolor="FFFFFF" cellspacing="0" cellpadding="10" border="0" width="650" style="border:1px solid #E0E0E0;">
22
- <tr>
23
- <td valign="top">
24
- <a href="{{store url=""}}"><img src="{{var logo_url}}" alt="{{var logo_alt}}" style="margin-bottom:10px;" border="0"/></a></td>
25
- </tr>
26
- <!-- [ middle starts here] -->
27
- <tr>
28
- <td valign="top">
29
- <h1 style="font-size:22px; font-weight:normal; line-height:22px; margin:0 0 11px 0;"">Prezado {{var username}},</h1>
30
- <h1></h1>
31
- <p>Seu pedido #{{var order_id}} está cancelado. </p>
32
- <div>Para refazer o seu pagamento basta clicar no link https://www.moip.com.br/Instrucao.do?token={{var token}}</div>
33
- </td>
34
- </tr>
35
- <tr>
36
- <td bgcolor="#EAEAEA" align="center" style="background:#EAEAEA; text-align:center;"><center><p style="font-size:12px; margin:0;">Thank you again, <strong>{{var store.getFrontendName()}}</strong></p></center></td>
37
- </tr>
38
- </table>
39
- </td>
40
- </tr>
41
- </table>
42
- </div>
43
- </body><!--@subject Out of Stock Subscription Mail @-->
44
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/locale/pt_BR/template/email/statusmail_cancelado_o2ti.html~ DELETED
@@ -1,90 +0,0 @@
1
- <?php
2
- /**
3
- * Default view
4
- *
5
- * @version 1.0.0
6
- * @package Gavern Framework
7
- * @copyright Copyright (C) 2010 - 2011 GavickPro. All rights reserved.
8
- *
9
- */
10
- // No direct access.
11
- defined('_JEXEC') or die;
12
- if($this->getParam("cwidth_position", 'head') == 'head') {
13
- $this->generateColumnsWidth();
14
- }
15
- $this->addCSSRule('#gkWrap1, #gkWrap2, #gkWrap3 { width: ' . $this->getParam('template_width','980px') . '; }');
16
- ?><?php $menus = &JSite::getMenu(); $wmenu = $menus->getActive(); $pageclass = ""; if (is_object( $wmenu )) : $params = new JParameter( $wmenu->params ); $pageclass = $params->get( 'pageclass_sfx' ); endif; ?>
17
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
18
- <html xmlns="http://www.w3.org/1999/xhtml"
19
- xmlns:og="http://ogp.me/ns#"
20
- xmlns:fb="http://www.facebook.com/2008/fbml"
21
- xml:lang="<?php echo $this->API->language; ?>" lang="<?php echo $this->API->language; ?>">
22
- <head>
23
- <?php
24
- If($_GET['utm_source'] !== null || $_GET['utm_source'] !== ""){
25
- setcookie('register_source', $_GET["utm_source "], 3600*24*30);
26
- }
27
- ?>
28
- <?php if($this->getParam("chrome_frame_support", '0') == '1') : ?>
29
- <meta http-equiv="X-UA-Compatible" content="chrome=1"/>
30
- <?php endif; ?>
31
- <meta http-equiv="X-UA-Compatible" content="IE=9" />
32
- <jdoc:include type="head" />
33
- <?php $this->loadBlock('head'); ?>
34
- <script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>
35
- <script type="text/javascript">
36
-
37
- var _gaq = _gaq || [];
38
- _gaq.push(['_setAccount', 'UA-30942563-1']);
39
- _gaq.push(['_setDomainName', 'sonoma.com.br']);
40
- _gaq.push(['_addIgnoreRef', 'sonoma.com.br']);
41
- _gaq.push(['_trackPageview']);
42
-
43
- (function() {
44
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
45
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
46
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
47
- })();
48
-
49
- </script>
50
- </head>
51
- <body class="<?php echo $pageclass ? htmlspecialchars($pageclass) : 'default'; ?>">
52
- <?php if($this->browser->get('browser') == 'ie6' && $this->getParam('ie6bar', '1') == 1) : ?>
53
- <div id="gkInfobar"><a href="http://browsehappy.com"><?php echo JText::_('TPL_GK_GAVERN_IE6_BAR'); ?></a></div>
54
- <?php endif; ?>
55
-
56
- <?php $this->messages('message-position-1'); ?>
57
-
58
- <div id="gkBg">
59
- <div id="gkWrap1"> <?php $this->loadBlock('userarea'); ?>
60
- <?php $this->loadBlock('nav'); ?> <?php $this->loadBlock('menutopo'); ?>
61
- <?php $this->loadBlock('header'); ?>
62
- </div>
63
- </div>
64
- <?php $this->messages('message-position-2'); ?>
65
- <div id="gkWrap2">
66
- <?php $this->loadBlock('top'); ?>
67
- <h1>Prezado {{var username}}</h1>
68
- <p>Seu pedido #{{var order_id}} está cancelado. </p>
69
- <div>Para refazer o seu pagamento basta clicar no link https://www.moip.com.br/Instrucao.do?token={{var token}}</div>
70
- <?php $this->loadBlock('user'); ?>
71
- </div>
72
- <div class="wTbottom">
73
- <div id="gkWrap3">
74
- <?php $this->loadBlock('bottom'); ?>
75
- <?php $this->loadBlock('footer'); ?>
76
- </div>
77
- </div>
78
- <?php $this->loadBlock('popup'); ?>
79
- <?php $this->loadBlock('social'); ?>
80
- <jdoc:include type="modules" name="debug" />
81
- </body>
82
- </html>
83
-
84
-
85
-
86
-
87
- <div>
88
-
89
-
90
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/{O2TI → MOIP}/jquery.js RENAMED
File without changes
js/MOIP/jquery.mask.min.js ADDED
@@ -0,0 +1,395 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * jquery.mask.js
3
+ * @version: v1.6.5
4
+ * @author: Igor Escobar
5
+ *
6
+ * Created by Igor Escobar on 2012-03-10. Please report any bug at http://blog.igorescobar.com
7
+ *
8
+ * Copyright (c) 2012 Igor Escobar http://blog.igorescobar.com
9
+ *
10
+ * The MIT License (http://www.opensource.org/licenses/mit-license.php)
11
+ *
12
+ * Permission is hereby granted, free of charge, to any person
13
+ * obtaining a copy of this software and associated documentation
14
+ * files (the "Software"), to deal in the Software without
15
+ * restriction, including without limitation the rights to use,
16
+ * copy, modify, merge, publish, distribute, sublicense, and/or sell
17
+ * copies of the Software, and to permit persons to whom the
18
+ * Software is furnished to do so, subject to the following
19
+ * conditions:
20
+ *
21
+ * The above copyright notice and this permission notice shall be
22
+ * included in all copies or substantial portions of the Software.
23
+ *
24
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
26
+ * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
28
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
29
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
30
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
31
+ * OTHER DEALINGS IN THE SOFTWARE.
32
+ */
33
+ /*jshint laxbreak: true */
34
+ /* global define */
35
+
36
+ // UMD (Universal Module Definition) patterns for JavaScript modules that work everywhere.
37
+ // https://github.com/umdjs/umd/blob/master/jqueryPlugin.js
38
+ (function (factory) {
39
+ if (typeof define === "function" && define.amd) {
40
+ // AMD. Register as an anonymous module.
41
+ define(["jquery"], factory);
42
+ } else {
43
+ // Browser globals
44
+ factory(window.jQuery || window.Zepto);
45
+ }
46
+ }(function ($) {
47
+ "use strict";
48
+ var Mask = function (el, mask, options) {
49
+ var jMask = this, old_value, regexMask;
50
+ el = $(el);
51
+
52
+ mask = typeof mask === "function" ? mask(el.val(), undefined, el, options) : mask;
53
+
54
+ jMask.init = function() {
55
+ options = options || {};
56
+
57
+ jMask.byPassKeys = [9, 16, 17, 18, 36, 37, 38, 39, 40, 91];
58
+ jMask.translation = {
59
+ '0': {pattern: /\d/},
60
+ '9': {pattern: /\d/, optional: true},
61
+ '#': {pattern: /\d/, recursive: true},
62
+ 'A': {pattern: /[a-zA-Z0-9]/},
63
+ 'S': {pattern: /[a-zA-Z]/}
64
+ };
65
+
66
+ jMask.translation = $.extend({}, jMask.translation, options.translation);
67
+ jMask = $.extend(true, {}, jMask, options);
68
+
69
+ regexMask = p.getRegexMask();
70
+
71
+ el.each(function() {
72
+ if (options.maxlength !== false) {
73
+ el.attr('maxlength', mask.length);
74
+ }
75
+
76
+ if (options.placeholder) {
77
+ el.attr('placeholder' , options.placeholder);
78
+ }
79
+
80
+ el.attr('autocomplete', 'off');
81
+ p.destroyEvents();
82
+ p.events();
83
+
84
+ var caret = p.getCaret();
85
+
86
+ p.val(p.getMasked());
87
+ p.setCaret(caret + p.getMaskCharactersBeforeCount(caret, true));
88
+ });
89
+
90
+
91
+ };
92
+
93
+ var p = {
94
+ getCaret: function () {
95
+ var sel,
96
+ pos = 0,
97
+ ctrl = el.get(0),
98
+ dSel = document.selection,
99
+ cSelStart = ctrl.selectionStart;
100
+
101
+ // IE Support
102
+ if (dSel && !~navigator.appVersion.indexOf("MSIE 10")) {
103
+ sel = dSel.createRange();
104
+ sel.moveStart('character', el.is("input") ? -el.val().length : -el.text().length);
105
+ pos = sel.text.length;
106
+ }
107
+ // Firefox support
108
+ else if (cSelStart || cSelStart === '0') {
109
+ pos = cSelStart;
110
+ }
111
+
112
+ return pos;
113
+ },
114
+ setCaret: function(pos) {
115
+ if (el.is(":focus")) {
116
+ var range, ctrl = el.get(0);
117
+
118
+ if (ctrl.setSelectionRange) {
119
+ ctrl.setSelectionRange(pos,pos);
120
+ } else if (ctrl.createTextRange) {
121
+ range = ctrl.createTextRange();
122
+ range.collapse(true);
123
+ range.moveEnd('character', pos);
124
+ range.moveStart('character', pos);
125
+ range.select();
126
+ }
127
+ }
128
+ },
129
+ events: function() {
130
+ el.on('keydown.mask', function() {
131
+ old_value = p.val();
132
+ });
133
+ el.on('keyup.mask', p.behaviour);
134
+ el.on("paste.mask drop.mask", function() {
135
+ setTimeout(function() {
136
+ el.keydown().keyup();
137
+ }, 100);
138
+ });
139
+ el.on("change.mask", function() {
140
+ el.data("changeCalled", true);
141
+ });
142
+ el.on("blur.mask", function(e){
143
+ var el = $(e.target);
144
+ if (el.prop("defaultValue") !== el.val()) {
145
+ el.prop("defaultValue", el.val());
146
+ if (!el.data("changeCalled")) {
147
+ el.trigger("change");
148
+ }
149
+ }
150
+ el.data("changeCalled", false);
151
+ });
152
+
153
+ // clear the value if it not complete the mask
154
+ el.on("focusout.mask", function() {
155
+ if (options.clearIfNotMatch && !regexMask.test(p.val())) {
156
+ p.val('');
157
+ }
158
+ });
159
+ },
160
+ getRegexMask: function() {
161
+ var maskChunks = [], translation, pattern, optional, recursive, oRecursive, r;
162
+
163
+ for (var i = 0; i < mask.length; i++) {
164
+ translation = jMask.translation[mask[i]];
165
+
166
+ if (translation) {
167
+
168
+ pattern = translation.pattern.toString().replace(/.{1}$|^.{1}/g, "");
169
+ optional = translation.optional;
170
+ recursive = translation.recursive;
171
+
172
+ if (recursive) {
173
+ maskChunks.push(mask[i]);
174
+ oRecursive = {digit: mask[i], pattern: pattern};
175
+ } else {
176
+ maskChunks.push((!optional && !recursive) ? pattern : (pattern + "?"));
177
+ }
178
+
179
+ } else {
180
+ maskChunks.push("\\" + mask[i]);
181
+ }
182
+ }
183
+
184
+ r = maskChunks.join("");
185
+
186
+ if (oRecursive) {
187
+ r = r.replace(new RegExp("(" + oRecursive.digit + "(.*" + oRecursive.digit + ")?)"), "($1)?")
188
+ .replace(new RegExp(oRecursive.digit, "g"), oRecursive.pattern);
189
+ }
190
+
191
+ return new RegExp(r);
192
+ },
193
+ destroyEvents: function() {
194
+ el.off('keydown.mask keyup.mask paste.mask drop.mask change.mask blur.mask focusout.mask').removeData("changeCalled");
195
+ },
196
+ val: function(v) {
197
+ var isInput = el.is('input');
198
+ return arguments.length > 0
199
+ ? (isInput ? el.val(v) : el.text(v))
200
+ : (isInput ? el.val() : el.text());
201
+ },
202
+ getMaskCharactersBeforeCount: function(index, onCleanVal) {
203
+ for (var count = 0, i = 0, maskL = mask.length; i < maskL && i < index; i++) {
204
+ if (!jMask.translation[mask.charAt(i)]) {
205
+ index = onCleanVal ? index + 1 : index;
206
+ count++;
207
+ }
208
+ }
209
+ return count;
210
+ },
211
+ determineCaretPos: function (originalCaretPos, oldLength, newLength, maskDif) {
212
+ var translation = jMask.translation[mask.charAt(Math.min(originalCaretPos - 1, mask.length - 1))];
213
+
214
+ return !translation ? p.determineCaretPos(originalCaretPos + 1, oldLength, newLength, maskDif)
215
+ : Math.min(originalCaretPos + newLength - oldLength - maskDif, newLength);
216
+ },
217
+ behaviour: function(e) {
218
+ e = e || window.event;
219
+ var keyCode = e.keyCode || e.which;
220
+
221
+ if ($.inArray(keyCode, jMask.byPassKeys) === -1) {
222
+
223
+ var caretPos = p.getCaret(),
224
+ currVal = p.val(),
225
+ currValL = currVal.length,
226
+ changeCaret = caretPos < currValL,
227
+ newVal = p.getMasked(),
228
+ newValL = newVal.length,
229
+ maskDif = p.getMaskCharactersBeforeCount(newValL - 1) - p.getMaskCharactersBeforeCount(currValL - 1);
230
+
231
+ if (newVal !== currVal) {
232
+ p.val(newVal);
233
+ }
234
+
235
+ // change caret but avoid CTRL+A
236
+ if (changeCaret && !(keyCode === 65 && e.ctrlKey)) {
237
+ // Avoid adjusting caret on backspace or delete
238
+ if (!(keyCode === 8 || keyCode === 46)) {
239
+ caretPos = p.determineCaretPos(caretPos, currValL, newValL, maskDif);
240
+ }
241
+ p.setCaret(caretPos);
242
+ }
243
+
244
+ return p.callbacks(e);
245
+ }
246
+ },
247
+ getMasked: function (skipMaskChars) {
248
+ var buf = [],
249
+ value = p.val(),
250
+ m = 0, maskLen = mask.length,
251
+ v = 0, valLen = value.length,
252
+ offset = 1, addMethod = "push",
253
+ resetPos = -1,
254
+ lastMaskChar,
255
+ check;
256
+
257
+ if (options.reverse) {
258
+ addMethod = "unshift";
259
+ offset = -1;
260
+ lastMaskChar = 0;
261
+ m = maskLen - 1;
262
+ v = valLen - 1;
263
+ check = function () {
264
+ return m > -1 && v > -1;
265
+ };
266
+ } else {
267
+ lastMaskChar = maskLen - 1;
268
+ check = function () {
269
+ return m < maskLen && v < valLen;
270
+ };
271
+ }
272
+
273
+ while (check()) {
274
+ var maskDigit = mask.charAt(m),
275
+ valDigit = value.charAt(v),
276
+ translation = jMask.translation[maskDigit];
277
+
278
+ if (translation) {
279
+ if (valDigit.match(translation.pattern)) {
280
+ buf[addMethod](valDigit);
281
+ if (translation.recursive) {
282
+ if (resetPos === -1) {
283
+ resetPos = m;
284
+ } else if (m === lastMaskChar) {
285
+ m = resetPos - offset;
286
+ }
287
+
288
+ if (lastMaskChar === resetPos) {
289
+ m -= offset;
290
+ }
291
+ }
292
+ m += offset;
293
+ } else if (translation.optional) {
294
+ m += offset;
295
+ v -= offset;
296
+ }
297
+ v += offset;
298
+ } else {
299
+ if (!skipMaskChars) {
300
+ buf[addMethod](maskDigit);
301
+ }
302
+
303
+ if (valDigit === maskDigit) {
304
+ v += offset;
305
+ }
306
+
307
+ m += offset;
308
+ }
309
+ }
310
+
311
+ var lastMaskCharDigit = mask.charAt(lastMaskChar);
312
+ if (maskLen === valLen + 1 && !jMask.translation[lastMaskCharDigit]) {
313
+ buf.push(lastMaskCharDigit);
314
+ }
315
+
316
+ return buf.join("");
317
+ },
318
+ callbacks: function (e) {
319
+ var val = p.val(),
320
+ changed = p.val() !== old_value;
321
+ if (changed === true) {
322
+ if (typeof options.onChange === "function") {
323
+ options.onChange(val, e, el, options);
324
+ }
325
+ }
326
+
327
+ if (changed === true && typeof options.onKeyPress === "function") {
328
+ options.onKeyPress(val, e, el, options);
329
+ }
330
+
331
+ if (typeof options.onComplete === "function" && val.length === mask.length) {
332
+ options.onComplete(val, e, el, options);
333
+ }
334
+ }
335
+ };
336
+
337
+ // public methods
338
+ jMask.remove = function() {
339
+ var caret = p.getCaret(),
340
+ maskedCharacterCountBefore = p.getMaskCharactersBeforeCount(caret);
341
+
342
+ p.destroyEvents();
343
+ p.val(jMask.getCleanVal()).removeAttr('maxlength');
344
+ p.setCaret(caret - maskedCharacterCountBefore);
345
+ };
346
+
347
+ // get value without mask
348
+ jMask.getCleanVal = function() {
349
+ return p.getMasked(true);
350
+ };
351
+
352
+ jMask.init();
353
+ };
354
+
355
+ $.fn.mask = function(mask, options) {
356
+ this.unmask();
357
+ return this.each(function() {
358
+ $(this).data('mask', new Mask(this, mask, options));
359
+ });
360
+ };
361
+
362
+ $.fn.unmask = function() {
363
+ return this.each(function() {
364
+ try {
365
+ $(this).data('mask').remove();
366
+ } catch (e) {}
367
+ });
368
+ };
369
+
370
+ $.fn.cleanVal = function() {
371
+ return $(this).data('mask').getCleanVal();
372
+ };
373
+
374
+ // looking for inputs with data-mask attribute
375
+ $('*[data-mask]').each(function() {
376
+ var input = $(this),
377
+ options = {},
378
+ prefix = "data-mask-";
379
+
380
+ if (input.attr(prefix + 'reverse') === 'true') {
381
+ options.reverse = true;
382
+ }
383
+
384
+ if (input.attr(prefix + 'maxlength') === 'false') {
385
+ options.maxlength = false;
386
+ }
387
+
388
+ if (input.attr(prefix + 'clearifnotmatch') === 'true') {
389
+ options.clearIfNotMatch = true;
390
+ }
391
+
392
+ input.mask(input.attr('data-mask'), options);
393
+ });
394
+
395
+ }));
js/{O2TI → MOIP}/jquery_noconflict.js RENAMED
File without changes
js/{O2TI → MOIP}/onestepcheckout/billing.js RENAMED
@@ -7,7 +7,7 @@ jQuery(function() {
7
  if(val_pass != val_pass2){
8
  jQuery("#senha_invalida").html('');
9
  jQuery(".senha_invalida").removeClass('validation-advice');
10
- jQuery('#billing\\:confirm_password').after('<div class="validation-advice senha_invalida" id="senha_invalida">As Senhas n&atilde;o s&atilde;o iguais</div>');}
11
  else{
12
  jQuery("#senha_invalida").html('');
13
  jQuery(".senha_invalida").removeClass('validation-advice');
@@ -33,22 +33,11 @@ jQuery(function() {
33
  }
34
  else{
35
  jQuery('#advice-validate-email-billing\\:email').html("");
36
- jQuery('#billing\\:email').after('<div class="validation-advice email_invalido" id="advice-validate-email-billing:email">Informe um endere&ccedil;o de email v&aacute;lido. Por exemplo seunome@gmail.com.</div>');
37
  }
38
  }
39
  });
40
- if (region_load()) {
41
- var regionship_before = jQuery('[id="billing:region"]').val();
42
- jQuery('[id="billing:region"]').bind({
43
- blur: function() {
44
- val = jQuery(this).val();
45
- if (val != "" && regionship_before != val) {
46
- updateShippingType();
47
- }
48
- regionship_before = val;
49
- }
50
- });
51
- }
52
  var counter = 0;
53
  jQuery('.form-list').find('.field').each(function(){
54
  if(counter%2==0){
@@ -86,7 +75,7 @@ function TestaCPF(strCPF) {
86
  if (strCPF == "00000000000" || strCPF == "11111111111" || strCPF == "22222222222" || strCPF == "33333333333" || strCPF == "44444444444" || strCPF == "55555555555" || strCPF == "66666666666" || strCPF == "77777777777" || strCPF == "88888888888" || strCPF == "99999999999"){
87
  jQuery("#advice-validar_cpf").html('');
88
  jQuery(".advice-validar_cpf").removeClass('validation-advice');
89
- jQuery('#billing\\:taxvat').after('<div class="validation-advice advice-validar_cpf" id="advice-validar_cpf" style="display: block;">CPF inv&aacute;lido, o seu cpf ser&aacute; mantido em sig&iacute;lo, por&eacute;m &eacute; necess&aacute;rio para a emiss&atilde;o da Nota Fiscal</div>');
90
  }
91
  for (i=1; i<=9; i++){
92
  Soma = Soma + parseInt(strCPF.substring(i-1, i)) * (11 - i);
@@ -98,7 +87,7 @@ function TestaCPF(strCPF) {
98
  if (Resto != parseInt(strCPF.substring(9, 10)) ){
99
  jQuery("#advice-validar_cpf").html('');
100
  jQuery(".advice-validar_cpf").removeClass('validation-advice');
101
- jQuery('#billing\\:taxvat').after('<div class="validation-advice advice-validar_cpf" id="advice-validar_cpf" style="display: block;">CPF inv&aacute;lido, o seu cpf ser&aacute; mantido em sig&iacute;lo, por&eacute;m &eacute; necess&aacute;rio para a emiss&atilde;o da Nota Fiscal</div>');
102
  }
103
  Soma = 0;
104
  for (i = 1; i <= 10; i++){
@@ -111,7 +100,7 @@ function TestaCPF(strCPF) {
111
  if (Resto != parseInt(strCPF.substring(10, 11) ) ){
112
  jQuery("#advice-validar_cpf").html('');
113
  jQuery(".advice-validar_cpf").removeClass('validation-advice');
114
- jQuery('#billing\\:taxvat').after('<div class="validation-advice advice-validar_cpf" id="advice-validar_cpf" style="display: block;">CPF inv&aacute;lido, o seu cpf ser&aacute; mantido em sig&iacute;lo, por&eacute;m &eacute; necess&aacute;rio para a emiss&atilde;o da Nota Fiscal</div>');
115
  }
116
  return true;
117
  }
7
  if(val_pass != val_pass2){
8
  jQuery("#senha_invalida").html('');
9
  jQuery(".senha_invalida").removeClass('validation-advice');
10
+ jQuery('#billing\\:confirm_password').after('<div class="validation-advice senha_invalida" id="senha_invalida">As Senhas não são iguais</div>');}
11
  else{
12
  jQuery("#senha_invalida").html('');
13
  jQuery(".senha_invalida").removeClass('validation-advice');
33
  }
34
  else{
35
  jQuery('#advice-validate-email-billing\\:email').html("");
36
+ jQuery('#billing\\:email').after('<div class="validation-advice email_invalido" id="advice-validate-email-billing:email">Informe um endereço de email válido. Por exemplo seunome@gmail.com.</div>');
37
  }
38
  }
39
  });
40
+
 
 
 
 
 
 
 
 
 
 
 
41
  var counter = 0;
42
  jQuery('.form-list').find('.field').each(function(){
43
  if(counter%2==0){
75
  if (strCPF == "00000000000" || strCPF == "11111111111" || strCPF == "22222222222" || strCPF == "33333333333" || strCPF == "44444444444" || strCPF == "55555555555" || strCPF == "66666666666" || strCPF == "77777777777" || strCPF == "88888888888" || strCPF == "99999999999"){
76
  jQuery("#advice-validar_cpf").html('');
77
  jQuery(".advice-validar_cpf").removeClass('validation-advice');
78
+ jQuery('#billing\\:taxvat').after('<div class="validation-advice advice-validar_cpf" id="advice-validar_cpf" style="display: block;">CPF inválido, o seu cpf será mantido em sigílo, porém é necessário para a emissão da Nota Fiscal.</div>');
79
  }
80
  for (i=1; i<=9; i++){
81
  Soma = Soma + parseInt(strCPF.substring(i-1, i)) * (11 - i);
87
  if (Resto != parseInt(strCPF.substring(9, 10)) ){
88
  jQuery("#advice-validar_cpf").html('');
89
  jQuery(".advice-validar_cpf").removeClass('validation-advice');
90
+ jQuery('#billing\\:taxvat').after('<div class="validation-advice advice-validar_cpf" id="advice-validar_cpf" style="display: block;">CPF inválido, o seu cpf será mantido em sigílo, porém é necessário para a emissão da Nota Fiscal.</div>');
91
  }
92
  Soma = 0;
93
  for (i = 1; i <= 10; i++){
100
  if (Resto != parseInt(strCPF.substring(10, 11) ) ){
101
  jQuery("#advice-validar_cpf").html('');
102
  jQuery(".advice-validar_cpf").removeClass('validation-advice');
103
+ jQuery('#billing\\:taxvat').after('<div class="validation-advice advice-validar_cpf" id="advice-validar_cpf" style="display: block;position:absolute;">CPF inválido, o seu cpf será mantido em sigílo, porém é necessário para a emissão da Nota Fiscal.</div>');
104
  }
105
  return true;
106
  }
js/MOIP/onestepcheckout/change-events.js ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(function() {
2
+
3
+ jQuery('[id="shipping:same_as_billing"]').click(function() {
4
+ jQuery('#shipping_show').hide();
5
+ jQuery("#moip-osc-p2").removeClass('onestepcheckout-numbers onestepcheckout-numbers-3').addClass('onestepcheckout-numbers onestepcheckout-numbers-2');
6
+ jQuery("#moip-osc-p3").removeClass('onestepcheckout-numbers onestepcheckout-numbers-4').addClass('onestepcheckout-numbers onestepcheckout-numbers-3');
7
+ jQuery("#moip-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
+ });
14
+ jQuery("#ship_to_same_address").bind({
15
+ click: function() {
16
+ val_address = jQuery("#ship_to_same_address").val();
17
+ shipaddselect = jQuery("#shipping-address-select");
18
+ billaddselect = jQuery("#billing-address-select");
19
+ if (val_address == 1) {
20
+ jQuery("#moip-osc-p2").removeClass('onestepcheckout-numbers onestepcheckout-numbers-2').addClass('onestepcheckout-numbers onestepcheckout-numbers-3');
21
+ jQuery("#moip-osc-p3").removeClass('onestepcheckout-numbers onestepcheckout-numbers-3').addClass('onestepcheckout-numbers onestepcheckout-numbers-4');
22
+ jQuery("#moip-osc-p4").removeClass('onestepcheckout-numbers onestepcheckout-numbers-4').addClass('onestepcheckout-numbers onestepcheckout-numbers-5');
23
+ flag = 0;
24
+ jQuery("#shipping_show").show();
25
+ jQuery("#ship_to_same_address").val(0);
26
+ } else {
27
+ jQuery('#shipping_show').hide();
28
+ jQuery("#moip-osc-p2").removeClass('onestepcheckout-numbers onestepcheckout-numbers-3').addClass('onestepcheckout-numbers onestepcheckout-numbers-2');
29
+ jQuery("#moip-osc-p3").removeClass('onestepcheckout-numbers onestepcheckout-numbers-4').addClass('onestepcheckout-numbers onestepcheckout-numbers-3');
30
+ jQuery("#moip-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
+
37
+ }
38
+ }
39
+ });
40
+ jQuery('#register_new_account').val(1);
41
+ jQuery('#subscribe_newsletter').bind({
42
+ click: function() {
43
+ var val = 0;
44
+ if (jQuery(this).is(':checked')) {
45
+ val = 1;
46
+ }
47
+ jQuery(this).val(val);
48
+ }
49
+ });
50
+ jQuery.fn.clearForm = function() {
51
+ jQuery(this).find(':input').each(function() {
52
+ switch (this.type) {
53
+ case 'password':
54
+ case 'text':
55
+ case 'textarea':
56
+ jQuery(this).val('');
57
+ break;
58
+ case 'checkbox':
59
+ case 'radio':
60
+ }
61
+ });
62
+ };
63
+ jQuery('#allow_gift_messages').bind({
64
+ click: function() {
65
+ if (jQuery(this).is(':checked')) {
66
+ jQuery('#allow-gift-message-container').show();
67
+ } else {
68
+ jQuery('#allow-gift-message-container').hide();
69
+ }
70
+ }
71
+ });
72
+ });
js/{O2TI → MOIP}/onestepcheckout/jquery.fancybox-1.3.1.js RENAMED
@@ -10,12 +10,12 @@
10
  *
11
  */
12
 
13
- (function (window, document, $, undefined) {
14
  "use strict";
15
 
16
- var W = $(window),
17
- D = $(document),
18
- F = $.fancybox = function () {
19
  F.open.apply( this, arguments );
20
  },
21
  IE = navigator.userAgent.match(/msie/i),
@@ -23,10 +23,10 @@
23
  isTouch = document.createTouch !== undefined,
24
 
25
  isQuery = function(obj) {
26
- return obj && obj.hasOwnProperty && obj instanceof $;
27
  },
28
  isString = function(str) {
29
- return str && $.type(str) === "string";
30
  },
31
  isPercentage = function(str) {
32
  return isString(str) && str.indexOf('%') > 0;
@@ -47,7 +47,7 @@
47
  return getScalar(value, dim) + 'px';
48
  };
49
 
50
- $.extend(F, {
51
  // The current version of fancyBox
52
  version: '2.1.4',
53
 
@@ -178,14 +178,14 @@
178
  },
179
 
180
  // Callbacks
181
- onCancel : $.noop, // If canceling
182
- beforeLoad : $.noop, // Before loading
183
- afterLoad : $.noop, // After loading
184
- beforeShow : $.noop, // Before changing in current item
185
- afterShow : $.noop, // After opening
186
- beforeChange : $.noop, // Before changing gallery item
187
- beforeClose : $.noop, // Before closing
188
- afterClose : $.noop // After closing
189
  },
190
 
191
  //Current state
@@ -225,7 +225,7 @@
225
  return;
226
  }
227
 
228
- if (!$.isPlainObject(opts)) {
229
  opts = {};
230
  }
231
 
@@ -235,12 +235,12 @@
235
  }
236
 
237
  // Normalize group
238
- if (!$.isArray(group)) {
239
- group = isQuery(group) ? $(group).get() : [group];
240
  }
241
 
242
  // Recheck if the type of each element is `object` and set content type (image, ajax, etc)
243
- $.each(group, function(i, element) {
244
  var obj = {},
245
  href,
246
  title,
@@ -250,10 +250,10 @@
250
  hrefParts,
251
  selector;
252
 
253
- if ($.type(element) === "object") {
254
  // Check if is DOM element
255
  if (element.nodeType) {
256
- element = $(element);
257
  }
258
 
259
  if (isQuery(element)) {
@@ -264,8 +264,8 @@
264
  element : element
265
  };
266
 
267
- if ($.metadata) {
268
- $.extend(true, obj, element.metadata());
269
  }
270
 
271
  } else {
@@ -318,7 +318,7 @@
318
  if (!content) {
319
  if (type === 'inline') {
320
  if (href) {
321
- content = $( isString(href) ? href.replace(/.*(?=#[^\s]+$)/, '') : href ); //strip for ie7
322
 
323
  } else if (obj.isDom) {
324
  content = element;
@@ -333,7 +333,7 @@
333
  }
334
  }
335
 
336
- $.extend(obj, {
337
  href : href,
338
  type : type,
339
  content : content,
@@ -345,11 +345,11 @@
345
  });
346
 
347
  // Extend the defaults
348
- F.opts = $.extend(true, {}, F.defaults, opts);
349
 
350
  // All options are merged recursive except keys
351
  if (opts.keys !== undefined) {
352
- F.opts.keys = opts.keys ? $.extend({}, F.defaults.keys, opts.keys) : false;
353
  }
354
 
355
  F.group = group;
@@ -404,7 +404,7 @@
404
  }
405
 
406
  if (!F.isOpen || event === true) {
407
- $('.fancybox-wrap').stop(true).trigger('onReset').remove();
408
 
409
  F._afterZoomOut();
410
 
@@ -412,7 +412,7 @@
412
  F.isOpen = F.isOpened = false;
413
  F.isClosing = true;
414
 
415
- $('.fancybox-item, .fancybox-nav').remove();
416
 
417
  F.wrap.stop(true, true).removeClass('fancybox-opened');
418
 
@@ -421,9 +421,9 @@
421
  },
422
 
423
  // Manage slideshow:
424
- // $.fancybox.play(); - toggle slideshow
425
- // $.fancybox.play( true ); - start
426
- // $.fancybox.play( false ); - stop
427
  play: function ( action ) {
428
  var clear = function () {
429
  clearTimeout(F.player.timer);
@@ -538,7 +538,7 @@
538
  } else {
539
  wrap.css(pos);
540
 
541
- current.pos = $.extend({}, current.dim, pos);
542
  }
543
  }
544
  },
@@ -584,7 +584,7 @@
584
  // Shrink content to fit inside viewport or restore if resized
585
  toggle: function ( action ) {
586
  if (F.isOpen) {
587
- F.current.fitToView = $.type(action) === "boolean" ? action : !F.current.fitToView;
588
 
589
  // Help browser to restore document dimensions
590
  if (isTouch) {
@@ -600,7 +600,7 @@
600
  hideLoading: function () {
601
  D.unbind('.loading');
602
 
603
- $('#fancybox-loading').remove();
604
  },
605
 
606
  showLoading: function () {
@@ -608,7 +608,7 @@
608
 
609
  F.hideLoading();
610
 
611
- el = $('<div id="fancybox-loading"><div></div></div>').click(F.cancel).appendTo('body');
612
 
613
  // If user will press the escape-button, the request will be canceled
614
  D.bind('keydown.loading', function(e) {
@@ -685,8 +685,8 @@
685
  }
686
 
687
  // Ignore key combinations and key events within form elements
688
- if (!e.ctrlKey && !e.altKey && !e.shiftKey && !e.metaKey && !(target && (target.type || $(target).is('[contenteditable]')))) {
689
- $.each(keys, function(i, val) {
690
  if (current.group.length > 1 && val[ code ] !== undefined) {
691
  F[ i ]( val[ code ] );
692
 
@@ -694,7 +694,7 @@
694
  return false;
695
  }
696
 
697
- if ($.inArray(code, val) > -1) {
698
  F[ i ] ();
699
 
700
  e.preventDefault();
@@ -705,10 +705,10 @@
705
  });
706
  }
707
 
708
- if ($.fn.mousewheel && current.mouseWheel) {
709
  F.wrap.bind('mousewheel.fb', function (e, delta, deltaX, deltaY) {
710
  var target = e.target || null,
711
- parent = $(target),
712
  canScroll = false;
713
 
714
  while (parent.length) {
@@ -717,7 +717,7 @@
717
  }
718
 
719
  canScroll = isScrollable( parent[0] );
720
- parent = $(parent).parent();
721
  }
722
 
723
  if (delta !== 0 && !canScroll) {
@@ -743,7 +743,7 @@
743
  return;
744
  }
745
 
746
- if ($.isFunction( obj[event] )) {
747
  ret = obj[event].apply(obj, Array.prototype.slice.call(arguments, 1));
748
  }
749
 
@@ -752,9 +752,9 @@
752
  }
753
 
754
  if (obj.helpers) {
755
- $.each(obj.helpers, function (helper, opts) {
756
- if (opts && F.helpers[helper] && $.isFunction(F.helpers[helper][event])) {
757
- opts = $.extend(true, {}, F.helpers[helper].defaults, opts);
758
 
759
  F.helpers[helper][event](opts, obj);
760
  }
@@ -765,11 +765,11 @@
765
  },
766
 
767
  isImage: function (str) {
768
- return isString(str) && str.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp)((\?|#).*)?$)/i);
769
  },
770
 
771
  isSWF: function (str) {
772
- return isString(str) && str.match(/\.(swf)((\?|#).*)?$/i);
773
  },
774
 
775
  _start: function (index) {
@@ -787,23 +787,23 @@
787
  return false;
788
  }
789
 
790
- coming = $.extend(true, {}, F.opts, obj);
791
 
792
  // Convert margin and padding properties to array - top, right, bottom, left
793
  margin = coming.margin;
794
  padding = coming.padding;
795
 
796
- if ($.type(margin) === 'number') {
797
  coming.margin = [margin, margin, margin, margin];
798
  }
799
 
800
- if ($.type(padding) === 'number') {
801
  coming.padding = [padding, padding, padding, padding];
802
  }
803
 
804
  // 'modal' propery is just a shortcut
805
  if (coming.modal) {
806
- $.extend(true, coming, {
807
  closeBtn : false,
808
  closeClick : false,
809
  nextClick : false,
@@ -882,15 +882,15 @@
882
  }
883
 
884
  // Build the neccessary markup
885
- coming.wrap = $(coming.tpl.wrap).addClass('fancybox-' + (isTouch ? 'mobile' : 'desktop') + ' fancybox-type-' + type + ' fancybox-tmp ' + coming.wrapCSS).appendTo( coming.parent || 'body' );
886
 
887
- $.extend(coming, {
888
- skin : $('.fancybox-skin', coming.wrap),
889
- outer : $('.fancybox-outer', coming.wrap),
890
- inner : $('.fancybox-inner', coming.wrap)
891
  });
892
 
893
- $.each(["Top", "Right", "Bottom", "Left"], function(i, v) {
894
  coming.skin.css('padding' + v, getValue(coming.padding[ i ]));
895
  });
896
 
@@ -921,7 +921,7 @@
921
  },
922
 
923
  _error: function ( type ) {
924
- $.extend(F.coming, {
925
  type : 'html',
926
  autoWidth : true,
927
  autoHeight : true,
@@ -966,7 +966,7 @@
966
 
967
  F.showLoading();
968
 
969
- F.ajaxLoad = $.ajax($.extend({}, coming.ajax, {
970
  url: coming.href,
971
  error: function (jqXHR, textStatus) {
972
  if (F.coming && textStatus !== 'abort') {
@@ -988,14 +988,14 @@
988
 
989
  _loadIframe: function() {
990
  var coming = F.coming,
991
- iframe = $(coming.tpl.iframe.replace(/\{rnd\}/g, new Date().getTime()))
992
  .attr('scrolling', isTouch ? 'auto' : coming.iframe.scrolling)
993
  .attr('src', coming.href);
994
 
995
  // This helps IE
996
- $(coming.wrap).bind('onReset', function () {
997
  try {
998
- $(this).find('iframe').hide().attr('src', '//about:blank').end().empty();
999
  } catch (e) {}
1000
  });
1001
 
@@ -1003,17 +1003,17 @@
1003
  F.showLoading();
1004
 
1005
  iframe.one('load', function() {
1006
- $(this).data('ready', 1);
1007
 
1008
  // iOS will lose scrolling if we resize
1009
  if (!isTouch) {
1010
- $(this).bind('load.fb', F.update);
1011
  }
1012
 
1013
  // Without this trick:
1014
  // - iframe won't scroll on iOS devices
1015
  // - IE7 sometimes displays empty iframe
1016
- $(this).parents('.fancybox-wrap').width('100%').removeClass('fancybox-tmp').show();
1017
 
1018
  F._afterLoad();
1019
  });
@@ -1083,7 +1083,7 @@
1083
  type = coming.type;
1084
  scrolling = coming.scrolling;
1085
 
1086
- $.extend(F, {
1087
  wrap : current.wrap,
1088
  skin : current.skin,
1089
  outer : current.outer,
@@ -1099,17 +1099,17 @@
1099
  case 'ajax':
1100
  case 'html':
1101
  if (current.selector) {
1102
- content = $('<div>').html(content).find(current.selector);
1103
 
1104
  } else if (isQuery(content)) {
1105
  if (!content.data(placeholder)) {
1106
- content.data(placeholder, $('<div class="' + placeholder + '"></div>').insertAfter( content ).hide() );
1107
  }
1108
 
1109
  content = content.show().detach();
1110
 
1111
  current.wrap.bind('onReset', function () {
1112
- if ($(this).find(content).length) {
1113
  content.hide().replaceAll( content.data(placeholder) ).data(placeholder, false);
1114
  }
1115
  });
@@ -1124,7 +1124,7 @@
1124
  content = '<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="' + href + '"></param>';
1125
  embed = '';
1126
 
1127
- $.each(current.swf, function(name, val) {
1128
  content += '<param name="' + name + '" value="' + val + '"></param>';
1129
  embed += ' ' + name + '="' + val + '"';
1130
  });
@@ -1154,7 +1154,7 @@
1154
  F.bindEvents();
1155
 
1156
  if (!F.isOpened) {
1157
- $('.fancybox-wrap').not( current.wrap ).stop(true).trigger('onReset').remove();
1158
 
1159
  } else if (previous.prevMethod) {
1160
  F.transitions[ previous.prevMethod ]();
@@ -1371,7 +1371,7 @@
1371
  canShrink = (width_ > maxWidth_ || height_ > maxHeight_) && width > minWidth && height > minHeight;
1372
  canExpand = current.aspectRatio ? (width < origMaxWidth && height < origMaxHeight && width < origWidth && height < origHeight) : ((width < origMaxWidth || height < origMaxHeight) && (width < origWidth || height < origHeight));
1373
 
1374
- $.extend(current, {
1375
  dim : {
1376
  width : getValue( width_ ),
1377
  height : getValue( height_ )
@@ -1433,7 +1433,7 @@
1433
  // Assign a click event
1434
  if ( current.closeClick || (current.nextClick && F.group.length > 1) ) {
1435
  F.inner.css('cursor', 'pointer').bind('click.fb', function(e) {
1436
- if (!$(e.target).is('a') && !$(e.target).parent().is('a')) {
1437
  e.preventDefault();
1438
 
1439
  F[ current.closeClick ? 'close' : 'next' ]();
@@ -1443,7 +1443,7 @@
1443
 
1444
  // Create a close button
1445
  if (current.closeBtn) {
1446
- $(current.tpl.closeBtn).appendTo(F.skin).bind('click.fb', function(e) {
1447
  e.preventDefault();
1448
 
1449
  F.close();
@@ -1453,11 +1453,11 @@
1453
  // Create navigation arrows
1454
  if (current.arrows && F.group.length > 1) {
1455
  if (current.loop || current.index > 0) {
1456
- $(current.tpl.prev).appendTo(F.outer).bind('click.fb', F.prev);
1457
  }
1458
 
1459
  if (current.loop || current.index < F.group.length - 1) {
1460
- $(current.tpl.next).appendTo(F.outer).bind('click.fb', F.next);
1461
  }
1462
  }
1463
 
@@ -1477,9 +1477,9 @@
1477
  _afterZoomOut: function ( obj ) {
1478
  obj = obj || F.current;
1479
 
1480
- $('.fancybox-wrap').trigger('onReset').remove();
1481
 
1482
- $.extend(F, {
1483
  group : {},
1484
  opts : {},
1485
  router : false,
@@ -1579,7 +1579,7 @@
1579
  startPos = current.pos,
1580
  effect = current.openEffect,
1581
  elastic = effect === 'elastic',
1582
- endPos = $.extend({opacity : 1}, startPos);
1583
 
1584
  // Remove "position" property that breaks older IE
1585
  delete endPos.position;
@@ -1677,7 +1677,7 @@
1677
  duration : effect === 'none' ? 0 : previous.prevSpeed,
1678
  easing : previous.prevEasing,
1679
  complete : function () {
1680
- $(this).trigger('onReset').remove();
1681
  }
1682
  });
1683
  }
@@ -1702,13 +1702,13 @@
1702
 
1703
  // Public methods
1704
  create : function(opts) {
1705
- opts = $.extend({}, this.defaults, opts);
1706
 
1707
  if (this.overlay) {
1708
  this.close();
1709
  }
1710
 
1711
- this.overlay = $('<div class="fancybox-overlay"></div>').appendTo( 'body' );
1712
  this.fixed = false;
1713
 
1714
  if (opts.fixed && F.defaults.fixed) {
@@ -1721,7 +1721,7 @@
1721
  open : function(opts) {
1722
  var that = this;
1723
 
1724
- opts = $.extend({}, this.defaults, opts);
1725
 
1726
  if (this.overlay) {
1727
  this.overlay.unbind('.overlay').width('auto').height('auto');
@@ -1731,14 +1731,14 @@
1731
  }
1732
 
1733
  if (!this.fixed) {
1734
- W.bind('resize.overlay', $.proxy( this.update, this) );
1735
 
1736
  this.update();
1737
  }
1738
 
1739
  if (opts.closeClick) {
1740
  this.overlay.bind('click.overlay', function(e) {
1741
- if ($(e.target).hasClass('fancybox-overlay')) {
1742
  if (F.isActive) {
1743
  F.close();
1744
  } else {
@@ -1752,14 +1752,14 @@
1752
  },
1753
 
1754
  close : function() {
1755
- $('.fancybox-overlay').remove();
1756
 
1757
  W.unbind('resize.overlay');
1758
 
1759
  this.overlay = null;
1760
 
1761
  if (this.margin !== false) {
1762
- $('body').css('margin-right', this.margin);
1763
 
1764
  this.margin = false;
1765
  }
@@ -1794,11 +1794,11 @@
1794
 
1795
  // This is where we can manipulate DOM, because later it would cause iframes to reload
1796
  onReady : function (opts, obj) {
1797
- $('.fancybox-overlay').stop(true, true);
1798
 
1799
  if (!this.overlay) {
1800
- this.margin = D.height() > W.height() || $('body').css('overflow-y') === 'scroll' ? $('body').css('margin-right') : false;
1801
- this.el = document.all && !document.querySelector ? $('html') : $('body');
1802
 
1803
  this.create(opts);
1804
  }
@@ -1818,7 +1818,7 @@
1818
  this.el.addClass('fancybox-lock');
1819
 
1820
  if (this.margin !== false) {
1821
- $('body').css('margin-right', getScalar( this.margin ) + obj.scrollbarWidth);
1822
  }
1823
  }
1824
 
@@ -1835,7 +1835,7 @@
1835
  // Remove overlay if exists and fancyBox is not opening
1836
  // (e.g., it is not being open using afterClose callback)
1837
  if (this.overlay && !F.isActive) {
1838
- this.overlay.fadeOut(opts.speedOut, $.proxy( this.close, this ));
1839
  }
1840
  }
1841
  };
@@ -1857,15 +1857,15 @@
1857
  title,
1858
  target;
1859
 
1860
- if ($.isFunction(text)) {
1861
  text = text.call(current.element, current);
1862
  }
1863
 
1864
- if (!isString(text) || $.trim(text) === '') {
1865
  return;
1866
  }
1867
 
1868
- title = $('<div class="fancybox-title fancybox-title-' + type + '-wrap">' + text + '</div>');
1869
 
1870
  switch (type) {
1871
  case 'inside':
@@ -1901,12 +1901,12 @@
1901
  };
1902
 
1903
  // jQuery plugin initialization
1904
- $.fn.fancybox = function (options) {
1905
  var index,
1906
- that = $(this),
1907
  selector = this.selector || '',
1908
  run = function(e) {
1909
- var what = $(this).blur(), idx = index, relType, relVal;
1910
 
1911
  if (!(e.ctrlKey || e.altKey || e.shiftKey || e.metaKey) && !what.is('.fancybox-wrap')) {
1912
  relType = options.groupAttr || 'data-fancybox-group';
@@ -1918,7 +1918,7 @@
1918
  }
1919
 
1920
  if (relVal && relVal !== '' && relVal !== 'nofollow') {
1921
- what = selector.length ? $(selector) : that;
1922
  what = what.filter('[' + relType + '="' + relVal + '"]');
1923
  idx = what.index(this);
1924
  }
@@ -1949,10 +1949,10 @@
1949
 
1950
  // Tests that need a body at doc ready
1951
  D.ready(function() {
1952
- if ( $.scrollbarWidth === undefined ) {
1953
  // http://benalman.com/projects/jquery-misc-plugins/#scrollbarwidth
1954
- $.scrollbarWidth = function() {
1955
- var parent = $('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo('body'),
1956
  child = parent.children(),
1957
  width = child.innerWidth() - child.height( 99 ).innerWidth();
1958
 
@@ -1962,9 +1962,9 @@
1962
  };
1963
  }
1964
 
1965
- if ( $.support.fixedPosition === undefined ) {
1966
- $.support.fixedPosition = (function() {
1967
- var elem = $('<div style="position:fixed;top:20px;"></div>').appendTo('body'),
1968
  fixed = ( elem[0].offsetTop === 20 || elem[0].offsetTop === 15 );
1969
 
1970
  elem.remove();
@@ -1973,10 +1973,10 @@
1973
  }());
1974
  }
1975
 
1976
- $.extend(F.defaults, {
1977
- scrollbarWidth : $.scrollbarWidth(),
1978
- fixed : $.support.fixedPosition,
1979
- parent : $('body')
1980
  });
1981
  });
1982
 
10
  *
11
  */
12
 
13
+ (function (window, document, jQuery, undefined) {
14
  "use strict";
15
 
16
+ var W = jQuery(window),
17
+ D = jQuery(document),
18
+ F = jQuery.fancybox = function () {
19
  F.open.apply( this, arguments );
20
  },
21
  IE = navigator.userAgent.match(/msie/i),
23
  isTouch = document.createTouch !== undefined,
24
 
25
  isQuery = function(obj) {
26
+ return obj && obj.hasOwnProperty && obj instanceof jQuery;
27
  },
28
  isString = function(str) {
29
+ return str && jQuery.type(str) === "string";
30
  },
31
  isPercentage = function(str) {
32
  return isString(str) && str.indexOf('%') > 0;
47
  return getScalar(value, dim) + 'px';
48
  };
49
 
50
+ jQuery.extend(F, {
51
  // The current version of fancyBox
52
  version: '2.1.4',
53
 
178
  },
179
 
180
  // Callbacks
181
+ onCancel : jQuery.noop, // If canceling
182
+ beforeLoad : jQuery.noop, // Before loading
183
+ afterLoad : jQuery.noop, // After loading
184
+ beforeShow : jQuery.noop, // Before changing in current item
185
+ afterShow : jQuery.noop, // After opening
186
+ beforeChange : jQuery.noop, // Before changing gallery item
187
+ beforeClose : jQuery.noop, // Before closing
188
+ afterClose : jQuery.noop // After closing
189
  },
190
 
191
  //Current state
225
  return;
226
  }
227
 
228
+ if (!jQuery.isPlainObject(opts)) {
229
  opts = {};
230
  }
231
 
235
  }
236
 
237
  // Normalize group
238
+ if (!jQuery.isArray(group)) {
239
+ group = isQuery(group) ? jQuery(group).get() : [group];
240
  }
241
 
242
  // Recheck if the type of each element is `object` and set content type (image, ajax, etc)
243
+ jQuery.each(group, function(i, element) {
244
  var obj = {},
245
  href,
246
  title,
250
  hrefParts,
251
  selector;
252
 
253
+ if (jQuery.type(element) === "object") {
254
  // Check if is DOM element
255
  if (element.nodeType) {
256
+ element = jQuery(element);
257
  }
258
 
259
  if (isQuery(element)) {
264
  element : element
265
  };
266
 
267
+ if (jQuery.metadata) {
268
+ jQuery.extend(true, obj, element.metadata());
269
  }
270
 
271
  } else {
318
  if (!content) {
319
  if (type === 'inline') {
320
  if (href) {
321
+ content = jQuery( isString(href) ? href.replace(/.*(?=#[^\s]+jQuery)/, '') : href ); //strip for ie7
322
 
323
  } else if (obj.isDom) {
324
  content = element;
333
  }
334
  }
335
 
336
+ jQuery.extend(obj, {
337
  href : href,
338
  type : type,
339
  content : content,
345
  });
346
 
347
  // Extend the defaults
348
+ F.opts = jQuery.extend(true, {}, F.defaults, opts);
349
 
350
  // All options are merged recursive except keys
351
  if (opts.keys !== undefined) {
352
+ F.opts.keys = opts.keys ? jQuery.extend({}, F.defaults.keys, opts.keys) : false;
353
  }
354
 
355
  F.group = group;
404
  }
405
 
406
  if (!F.isOpen || event === true) {
407
+ jQuery('.fancybox-wrap').stop(true).trigger('onReset').remove();
408
 
409
  F._afterZoomOut();
410
 
412
  F.isOpen = F.isOpened = false;
413
  F.isClosing = true;
414
 
415
+ jQuery('.fancybox-item, .fancybox-nav').remove();
416
 
417
  F.wrap.stop(true, true).removeClass('fancybox-opened');
418
 
421
  },
422
 
423
  // Manage slideshow:
424
+ // jQuery.fancybox.play(); - toggle slideshow
425
+ // jQuery.fancybox.play( true ); - start
426
+ // jQuery.fancybox.play( false ); - stop
427
  play: function ( action ) {
428
  var clear = function () {
429
  clearTimeout(F.player.timer);
538
  } else {
539
  wrap.css(pos);
540
 
541
+ current.pos = jQuery.extend({}, current.dim, pos);
542
  }
543
  }
544
  },
584
  // Shrink content to fit inside viewport or restore if resized
585
  toggle: function ( action ) {
586
  if (F.isOpen) {
587
+ F.current.fitToView = jQuery.type(action) === "boolean" ? action : !F.current.fitToView;
588
 
589
  // Help browser to restore document dimensions
590
  if (isTouch) {
600
  hideLoading: function () {
601
  D.unbind('.loading');
602
 
603
+ jQuery('#fancybox-loading').remove();
604
  },
605
 
606
  showLoading: function () {
608
 
609
  F.hideLoading();
610
 
611
+ el = jQuery('<div id="fancybox-loading"><div></div></div>').click(F.cancel).appendTo('body');
612
 
613
  // If user will press the escape-button, the request will be canceled
614
  D.bind('keydown.loading', function(e) {
685
  }
686
 
687
  // Ignore key combinations and key events within form elements
688
+ if (!e.ctrlKey && !e.altKey && !e.shiftKey && !e.metaKey && !(target && (target.type || jQuery(target).is('[contenteditable]')))) {
689
+ jQuery.each(keys, function(i, val) {
690
  if (current.group.length > 1 && val[ code ] !== undefined) {
691
  F[ i ]( val[ code ] );
692
 
694
  return false;
695
  }
696
 
697
+ if (jQuery.inArray(code, val) > -1) {
698
  F[ i ] ();
699
 
700
  e.preventDefault();
705
  });
706
  }
707
 
708
+ if (jQuery.fn.mousewheel && current.mouseWheel) {
709
  F.wrap.bind('mousewheel.fb', function (e, delta, deltaX, deltaY) {
710
  var target = e.target || null,
711
+ parent = jQuery(target),
712
  canScroll = false;
713
 
714
  while (parent.length) {
717
  }
718
 
719
  canScroll = isScrollable( parent[0] );
720
+ parent = jQuery(parent).parent();
721
  }
722
 
723
  if (delta !== 0 && !canScroll) {
743
  return;
744
  }
745
 
746
+ if (jQuery.isFunction( obj[event] )) {
747
  ret = obj[event].apply(obj, Array.prototype.slice.call(arguments, 1));
748
  }
749
 
752
  }
753
 
754
  if (obj.helpers) {
755
+ jQuery.each(obj.helpers, function (helper, opts) {
756
+ if (opts && F.helpers[helper] && jQuery.isFunction(F.helpers[helper][event])) {
757
+ opts = jQuery.extend(true, {}, F.helpers[helper].defaults, opts);
758
 
759
  F.helpers[helper][event](opts, obj);
760
  }
765
  },
766
 
767
  isImage: function (str) {
768
+ return isString(str) && str.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp)((\?|#).*)?jQuery)/i);
769
  },
770
 
771
  isSWF: function (str) {
772
+ return isString(str) && str.match(/\.(swf)((\?|#).*)?jQuery/i);
773
  },
774
 
775
  _start: function (index) {
787
  return false;
788
  }
789
 
790
+ coming = jQuery.extend(true, {}, F.opts, obj);
791
 
792
  // Convert margin and padding properties to array - top, right, bottom, left
793
  margin = coming.margin;
794
  padding = coming.padding;
795
 
796
+ if (jQuery.type(margin) === 'number') {
797
  coming.margin = [margin, margin, margin, margin];
798
  }
799
 
800
+ if (jQuery.type(padding) === 'number') {
801
  coming.padding = [padding, padding, padding, padding];
802
  }
803
 
804
  // 'modal' propery is just a shortcut
805
  if (coming.modal) {
806
+ jQuery.extend(true, coming, {
807
  closeBtn : false,
808
  closeClick : false,
809
  nextClick : false,
882
  }
883
 
884
  // Build the neccessary markup
885
+ coming.wrap = jQuery(coming.tpl.wrap).addClass('fancybox-' + (isTouch ? 'mobile' : 'desktop') + ' fancybox-type-' + type + ' fancybox-tmp ' + coming.wrapCSS).appendTo( coming.parent || 'body' );
886
 
887
+ jQuery.extend(coming, {
888
+ skin : jQuery('.fancybox-skin', coming.wrap),
889
+ outer : jQuery('.fancybox-outer', coming.wrap),
890
+ inner : jQuery('.fancybox-inner', coming.wrap)
891
  });
892
 
893
+ jQuery.each(["Top", "Right", "Bottom", "Left"], function(i, v) {
894
  coming.skin.css('padding' + v, getValue(coming.padding[ i ]));
895
  });
896
 
921
  },
922
 
923
  _error: function ( type ) {
924
+ jQuery.extend(F.coming, {
925
  type : 'html',
926
  autoWidth : true,
927
  autoHeight : true,
966
 
967
  F.showLoading();
968
 
969
+ F.ajaxLoad = jQuery.ajax(jQuery.extend({}, coming.ajax, {
970
  url: coming.href,
971
  error: function (jqXHR, textStatus) {
972
  if (F.coming && textStatus !== 'abort') {
988
 
989
  _loadIframe: function() {
990
  var coming = F.coming,
991
+ iframe = jQuery(coming.tpl.iframe.replace(/\{rnd\}/g, new Date().getTime()))
992
  .attr('scrolling', isTouch ? 'auto' : coming.iframe.scrolling)
993
  .attr('src', coming.href);
994
 
995
  // This helps IE
996
+ jQuery(coming.wrap).bind('onReset', function () {
997
  try {
998
+ jQuery(this).find('iframe').hide().attr('src', '//about:blank').end().empty();
999
  } catch (e) {}
1000
  });
1001
 
1003
  F.showLoading();
1004
 
1005
  iframe.one('load', function() {
1006
+ jQuery(this).data('ready', 1);
1007
 
1008
  // iOS will lose scrolling if we resize
1009
  if (!isTouch) {
1010
+ jQuery(this).bind('load.fb', F.update);
1011
  }
1012
 
1013
  // Without this trick:
1014
  // - iframe won't scroll on iOS devices
1015
  // - IE7 sometimes displays empty iframe
1016
+ jQuery(this).parents('.fancybox-wrap').width('100%').removeClass('fancybox-tmp').show();
1017
 
1018
  F._afterLoad();
1019
  });
1083
  type = coming.type;
1084
  scrolling = coming.scrolling;
1085
 
1086
+ jQuery.extend(F, {
1087
  wrap : current.wrap,
1088
  skin : current.skin,
1089
  outer : current.outer,
1099
  case 'ajax':
1100
  case 'html':
1101
  if (current.selector) {
1102
+ content = jQuery('<div>').html(content).find(current.selector);
1103
 
1104
  } else if (isQuery(content)) {
1105
  if (!content.data(placeholder)) {
1106
+ content.data(placeholder, jQuery('<div class="' + placeholder + '"></div>').insertAfter( content ).hide() );
1107
  }
1108
 
1109
  content = content.show().detach();
1110
 
1111
  current.wrap.bind('onReset', function () {
1112
+ if (jQuery(this).find(content).length) {
1113
  content.hide().replaceAll( content.data(placeholder) ).data(placeholder, false);
1114
  }
1115
  });
1124
  content = '<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="' + href + '"></param>';
1125
  embed = '';
1126
 
1127
+ jQuery.each(current.swf, function(name, val) {
1128
  content += '<param name="' + name + '" value="' + val + '"></param>';
1129
  embed += ' ' + name + '="' + val + '"';
1130
  });
1154
  F.bindEvents();
1155
 
1156
  if (!F.isOpened) {
1157
+ jQuery('.fancybox-wrap').not( current.wrap ).stop(true).trigger('onReset').remove();
1158
 
1159
  } else if (previous.prevMethod) {
1160
  F.transitions[ previous.prevMethod ]();
1371
  canShrink = (width_ > maxWidth_ || height_ > maxHeight_) && width > minWidth && height > minHeight;
1372
  canExpand = current.aspectRatio ? (width < origMaxWidth && height < origMaxHeight && width < origWidth && height < origHeight) : ((width < origMaxWidth || height < origMaxHeight) && (width < origWidth || height < origHeight));
1373
 
1374
+ jQuery.extend(current, {
1375
  dim : {
1376
  width : getValue( width_ ),
1377
  height : getValue( height_ )
1433
  // Assign a click event
1434
  if ( current.closeClick || (current.nextClick && F.group.length > 1) ) {
1435
  F.inner.css('cursor', 'pointer').bind('click.fb', function(e) {
1436
+ if (!jQuery(e.target).is('a') && !jQuery(e.target).parent().is('a')) {
1437
  e.preventDefault();
1438
 
1439
  F[ current.closeClick ? 'close' : 'next' ]();
1443
 
1444
  // Create a close button
1445
  if (current.closeBtn) {
1446
+ jQuery(current.tpl.closeBtn).appendTo(F.skin).bind('click.fb', function(e) {
1447
  e.preventDefault();
1448
 
1449
  F.close();
1453
  // Create navigation arrows
1454
  if (current.arrows && F.group.length > 1) {
1455
  if (current.loop || current.index > 0) {
1456
+ jQuery(current.tpl.prev).appendTo(F.outer).bind('click.fb', F.prev);
1457
  }
1458
 
1459
  if (current.loop || current.index < F.group.length - 1) {
1460
+ jQuery(current.tpl.next).appendTo(F.outer).bind('click.fb', F.next);
1461
  }
1462
  }
1463
 
1477
  _afterZoomOut: function ( obj ) {
1478
  obj = obj || F.current;
1479
 
1480
+ jQuery('.fancybox-wrap').trigger('onReset').remove();
1481
 
1482
+ jQuery.extend(F, {
1483
  group : {},
1484
  opts : {},
1485
  router : false,
1579
  startPos = current.pos,
1580
  effect = current.openEffect,
1581
  elastic = effect === 'elastic',
1582
+ endPos = jQuery.extend({opacity : 1}, startPos);
1583
 
1584
  // Remove "position" property that breaks older IE
1585
  delete endPos.position;
1677
  duration : effect === 'none' ? 0 : previous.prevSpeed,
1678
  easing : previous.prevEasing,
1679
  complete : function () {
1680
+ jQuery(this).trigger('onReset').remove();
1681
  }
1682
  });
1683
  }
1702
 
1703
  // Public methods
1704
  create : function(opts) {
1705
+ opts = jQuery.extend({}, this.defaults, opts);
1706
 
1707
  if (this.overlay) {
1708
  this.close();
1709
  }
1710
 
1711
+ this.overlay = jQuery('<div class="fancybox-overlay"></div>').appendTo( 'body' );
1712
  this.fixed = false;
1713
 
1714
  if (opts.fixed && F.defaults.fixed) {
1721
  open : function(opts) {
1722
  var that = this;
1723
 
1724
+ opts = jQuery.extend({}, this.defaults, opts);
1725
 
1726
  if (this.overlay) {
1727
  this.overlay.unbind('.overlay').width('auto').height('auto');
1731
  }
1732
 
1733
  if (!this.fixed) {
1734
+ W.bind('resize.overlay', jQuery.proxy( this.update, this) );
1735
 
1736
  this.update();
1737
  }
1738
 
1739
  if (opts.closeClick) {
1740
  this.overlay.bind('click.overlay', function(e) {
1741
+ if (jQuery(e.target).hasClass('fancybox-overlay')) {
1742
  if (F.isActive) {
1743
  F.close();
1744
  } else {
1752
  },
1753
 
1754
  close : function() {
1755
+ jQuery('.fancybox-overlay').remove();
1756
 
1757
  W.unbind('resize.overlay');
1758
 
1759
  this.overlay = null;
1760
 
1761
  if (this.margin !== false) {
1762
+ jQuery('body').css('margin-right', this.margin);
1763
 
1764
  this.margin = false;
1765
  }
1794
 
1795
  // This is where we can manipulate DOM, because later it would cause iframes to reload
1796
  onReady : function (opts, obj) {
1797
+ jQuery('.fancybox-overlay').stop(true, true);
1798
 
1799
  if (!this.overlay) {
1800
+ this.margin = D.height() > W.height() || jQuery('body').css('overflow-y') === 'scroll' ? jQuery('body').css('margin-right') : false;
1801
+ this.el = document.all && !document.querySelector ? jQuery('html') : jQuery('body');
1802
 
1803
  this.create(opts);
1804
  }
1818
  this.el.addClass('fancybox-lock');
1819
 
1820
  if (this.margin !== false) {
1821
+ jQuery('body').css('margin-right', getScalar( this.margin ) + obj.scrollbarWidth);
1822
  }
1823
  }
1824
 
1835
  // Remove overlay if exists and fancyBox is not opening
1836
  // (e.g., it is not being open using afterClose callback)
1837
  if (this.overlay && !F.isActive) {
1838
+ this.overlay.fadeOut(opts.speedOut, jQuery.proxy( this.close, this ));
1839
  }
1840
  }
1841
  };
1857
  title,
1858
  target;
1859
 
1860
+ if (jQuery.isFunction(text)) {
1861
  text = text.call(current.element, current);
1862
  }
1863
 
1864
+ if (!isString(text) || jQuery.trim(text) === '') {
1865
  return;
1866
  }
1867
 
1868
+ title = jQuery('<div class="fancybox-title fancybox-title-' + type + '-wrap">' + text + '</div>');
1869
 
1870
  switch (type) {
1871
  case 'inside':
1901
  };
1902
 
1903
  // jQuery plugin initialization
1904
+ jQuery.fn.fancybox = function (options) {
1905
  var index,
1906
+ that = jQuery(this),
1907
  selector = this.selector || '',
1908
  run = function(e) {
1909
+ var what = jQuery(this).blur(), idx = index, relType, relVal;
1910
 
1911
  if (!(e.ctrlKey || e.altKey || e.shiftKey || e.metaKey) && !what.is('.fancybox-wrap')) {
1912
  relType = options.groupAttr || 'data-fancybox-group';
1918
  }
1919
 
1920
  if (relVal && relVal !== '' && relVal !== 'nofollow') {
1921
+ what = selector.length ? jQuery(selector) : that;
1922
  what = what.filter('[' + relType + '="' + relVal + '"]');
1923
  idx = what.index(this);
1924
  }
1949
 
1950
  // Tests that need a body at doc ready
1951
  D.ready(function() {
1952
+ if ( jQuery.scrollbarWidth === undefined ) {
1953
  // http://benalman.com/projects/jquery-misc-plugins/#scrollbarwidth
1954
+ jQuery.scrollbarWidth = function() {
1955
+ var parent = jQuery('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo('body'),
1956
  child = parent.children(),
1957
  width = child.innerWidth() - child.height( 99 ).innerWidth();
1958
 
1962
  };
1963
  }
1964
 
1965
+ if ( jQuery.support.fixedPosition === undefined ) {
1966
+ jQuery.support.fixedPosition = (function() {
1967
+ var elem = jQuery('<div style="position:fixed;top:20px;"></div>').appendTo('body'),
1968
  fixed = ( elem[0].offsetTop === 20 || elem[0].offsetTop === 15 );
1969
 
1970
  elem.remove();
1973
  }());
1974
  }
1975
 
1976
+ jQuery.extend(F.defaults, {
1977
+ scrollbarWidth : jQuery.scrollbarWidth(),
1978
+ fixed : jQuery.support.fixedPosition,
1979
+ parent : jQuery('body')
1980
  });
1981
  });
1982
 
js/MOIP/onestepcheckout/shipping.js ADDED
File without changes
js/MOIP/script_mask.js ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function(){
2
+ jQuery('#billing\\:taxvat').mask("000.000.000-00", {placeholder: "___.___.___-__"});
3
+ jQuery('#shipping\\:taxvat').mask("000.000.000-00", {placeholder: "___.___.___-__"});
4
+ jQuery('#taxvat').mask("000.000.000-00", {placeholder: "___.___.___-__"});
5
+ jQuery('#credito_portador_cpf').mask("000.000.000-00", {placeholder: "___.___.___-__"});
6
+ jQuery('#credito_portador_nascimento').mask("99/99/9999", {placeholder: "__/__/____"});
7
+ jQuery('#cnpj').mask("00.000.000-0000-00", {placeholder: "__.___.___-____-__"});
8
+ jQuery('#billing\\:postcode').mask("00000-000", {placeholder: "_____-___"});
9
+ jQuery('#shipping\\:postcode').mask("00000-000", {placeholder: "_____-___"});
10
+ jQuery('#postcode').mask("00000-000", {placeholder: "_____-___"});
11
+ jQuery('#zip').mask("00000-000", {placeholder: "_____-___"});
12
+ jQuery('#billing\\:fax').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
13
+ jQuery('#billing\\:telephone').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
14
+ jQuery('#shipping\\:telephone').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
15
+ jQuery('#shipping\\:fax').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
16
+ jQuery('#credito_portador_telefone').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
17
+ jQuery('#telephone').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
18
+ jQuery('#fax').mask("(00)0000-0000Z", {placeholder: "(__)____-_____",translation: {'Z': {pattern: /[0-9]/, optional: true}}});
19
+ });
js/{O2TI/moip → MOIP/transparente}/bootstrap-modal.js RENAMED
File without changes
js/{O2TI/moip → MOIP/transparente}/bootstrap.min.js RENAMED
File without changes
js/MOIP/transparente/checkout.js ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fechar = function(){
2
+ jQuery('.transparente-payment-method-content').slideUp();
3
+ }
4
+ function setCcType(ccType)
5
+ {
6
+ if(ccType != 'HI'){
7
+ jQuery('#transparente_cc_type').val(ccType);
8
+ jQuery('#credito_numero').addClass('validate-cc-number');
9
+ jQuery('#credito_numero').addClass('validate-cc-type');
10
+ } else {
11
+ jQuery('#credito_numero').removeClass('validate-cc-number');
12
+ jQuery('#credito_numero').removeClass('validate-cc-type');
13
+
14
+ }
15
+
16
+ }
17
+ if(Validation) {
18
+ if($H != 'HI'){
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
+ 'HI': [new RegExp('/^(606282\d{10}(\d{3})?)|(3841\d{15})$/'), new RegExp('^[0-9]{3}$'), true],
24
+ 'DI': [false, new RegExp('^[0-9]+'), true]
25
+ });
26
+ }
27
+ }
28
+ function countChar(val) {
29
+ var cvv = val.value.length;
30
+ if (cvv > 2) {
31
+ jQuery(".dados-titular").slideDown("slow");
32
+ jQuery("#formcli").slideDown("slow");
33
+
34
+ jQuery('.dados-titular').css({
35
+ display: "block"
36
+ });
37
+ jQuery("#formcli").css({
38
+ display: "block"
39
+ });
40
+ document.getElementById('credito_portador_nome').value = document.getElementById('billing:firstname').value + ' ' + document.getElementById('billing:lastname').value;
41
+ document.getElementById('credito_portador_telefone').value = document.getElementById('billing:telephone').value;
42
+ document.getElementById('credito_portador_cpf').value = document.getElementById('billing:taxvat').value;
43
+ if (document.getElementById('billing:year').value) {
44
+ document.getElementById('credito_portador_nascimento').value = document.getElementById('billing:day').value + '/' + document.getElementById('billing:month').value + '/' + document.getElementById('billing:year').value
45
+ }
46
+ }
47
+ };
48
+ jQuery(document).ready(function() {
49
+ var creditcards = {
50
+ list:[
51
+ {
52
+ brand: 'American Express',
53
+ value_brand: 'Amex-moip',
54
+ verification: '^3[47][0-9]',
55
+ separation: '^([0-9]{4})([0-9]{6})?(?:([0-9]{6})([0-9]{5}))?$',
56
+ hidden: '**** ****** *[0-9][0-9][0-9][0-9]',
57
+ accepted: true,
58
+ length: 15
59
+ },
60
+ {
61
+ brand: 'MasterCard',
62
+ value_brand: 'Mastercard-moip',
63
+ verification: '^5[1-5][0-9]',
64
+ separation: '^([0-9]{4})([0-9]{4})?([0-9]{4})?([0-9]{4})?$',
65
+ hidden: '**** **** **** [0-9][0-9][0-9][0-9]',
66
+ accepted: true,
67
+ length: 16
68
+ },
69
+ {
70
+ brand: 'Visa',
71
+ value_brand: 'Visa-moip',
72
+ verification: '^4[0-9]',
73
+ separation: '^([0-9]{4})([0-9]{4})?([0-9]{4})?([0-9]{4})?$',
74
+ hidden: '**** **** **** [0-9][0-9][0-9][0-9]',
75
+ accepted: true,
76
+ length: 16
77
+ },
78
+ {
79
+ brand: 'Hipercard',
80
+ value_brand: 'Hipercard-moip',
81
+ verification: '^606282|3841(?:0[0-9])[0-9]',
82
+ separation: '^([0-9]{19})?$',
83
+ hidden: '*****************',
84
+ accepted: true,
85
+ length: 19
86
+ },
87
+ {
88
+ brand: 'Diners Club',
89
+ value_brand: 'Dinners-moip',
90
+ verification: '^3(?:0[0-5]|[68][0-9])[0-9]',
91
+ separation: '^([0-9]{4})([0-9]{4})?([0-9]{4})?(?:([0-9]{4})([0-9]{4})([0-9]{2}))?$',
92
+ hidden: '**** **** **[0-9][0-9] [0-9][0-9]',
93
+ accepted: true,
94
+ length: 14
95
+ }
96
+
97
+ ],
98
+ active:null
99
+ };
100
+ jQuery('#credito_numero').keydown(function(e){
101
+ var card = jQuery(this).val().replace(/[^0-9]/g,''),
102
+ trim = jQuery.trim( jQuery(this).val().slice(0,-1) );
103
+ for( var i=0; i<creditcards.list.length; i++ ){
104
+ if(card.match( new RegExp(creditcards.list[i].verification) )){
105
+ creditcards.active = i;
106
+ if( jQuery(this).next('img').length == 0 ){
107
+ jQuery(this).next('small').remove();
108
+ jQuery("."+creditcards.list[i].value_brand).trigger('click');
109
+ }
110
+ if( !creditcards.list[i].accepted && jQuery(this).nextAll('small').length == 0 ){
111
+
112
+ }
113
+ break;
114
+ }
115
+ }
116
+ if( creditcards.active == null && card.length > 4 && jQuery(this).nextAll('small').length == 0 ){
117
+ jQuery(this).after('<small style="margin-left:5px; color:#F00;">'+'Cartão Inválido'+'</small>');
118
+ jQuery('.input-brand-bandeira > li').find('img').show();
119
+ }
120
+ key = creditcards.active !== null? creditcards.active : 1 ;
121
+ if( e.keyCode == 8 && trim != jQuery(this).val().slice(0,-1) ){
122
+ jQuery(this).val( trim );
123
+ e.preventDefault();
124
+ return;
125
+ }
126
+ if( card.length >= creditcards.list[ key ].length && jQuery.inArray(e.keyCode, [37, 38, 39, 40, 46, 8, 9, 27, 13, 110, 190]) === -1 && !e.metaKey && !e.ctrlKey ){
127
+ e.preventDefault();
128
+ return;
129
+ }
130
+ if( new RegExp(creditcards.list[ key ].separation).exec( card ) && e.keyCode >= 48 && e.keyCode <= 57 ){
131
+ jQuery(this).val( jQuery(this).val() + ' ' );
132
+ }
133
+ return;
134
+ });
135
+ jQuery('#credito_numero').keyup(function(e){
136
+ var card = jQuery(this).val().replace(/[^0-9]/,'');
137
+ if( creditcards.active !== null && !card.match( new RegExp(creditcards.list[ creditcards.active ].verification) ) ){
138
+ jQuery(this).nextAll('small').remove();
139
+ jQuery(this).next('img').remove();
140
+ creditcards.active = null;
141
+ }else
142
+ if( card.length < 4 ){
143
+ jQuery(this).next('small').remove();
144
+ }
145
+ });
146
+ jQuery('#credito_numero').on('paste',function(e){
147
+ var el = this;
148
+ setTimeout(function(){
149
+ var card = jQuery(el).val().replace(/[^0-9]/g,'');
150
+ jQuery(el).val( card );
151
+ var e = jQuery.Event('keydown',{
152
+ which: 37,
153
+ keyCode: 37
154
+ });
155
+ jQuery(el).trigger(e).promise().done(function(e){
156
+ key = creditcards.active !== null? creditcards.active : 1 ;
157
+ card.substr( 0 , creditcards.list[ key ].length );
158
+ var separation = new RegExp(creditcards.list[ key ].separation).exec( card ),
159
+ storage = '';
160
+ while( !separation && card.length > 1 ){
161
+ storage = card.charAt( card.length - 1 );
162
+ card = card.slice(0,-1);
163
+ separation = new RegExp(creditcards.list[ key ].separation).exec( card );
164
+ }
165
+ if( separation ){
166
+ var separated = [];
167
+ for( var i=0; i<separation.length; i++){
168
+ if( typeof separation[i] != 'undefined' ) separated.push( separation[i] );
169
+ }
170
+ var string = separated.slice(1).join(' ') + (storage!=''? ' '+storage : '' )
171
+ jQuery(el).val( string )
172
+ }
173
+ });
174
+ },0);
175
+ });
176
+ });
js/{O2TI → MOIP}/validacao.js RENAMED
File without changes
js/O2TI/moip/checkout.js DELETED
@@ -1,38 +0,0 @@
1
- fechar = function(){
2
- jQuery('.moip-payment-method-content').slideUp();
3
- }
4
- function setCcType(ccType)
5
- {
6
- jQuery('#moip_cc_type').val(ccType);
7
- }
8
-
9
- if(Validation) {
10
- Validation.creditCartTypes = $H({
11
- 'VI': [new RegExp('^4[0-9]{12}([0-9]{3})?$'), new RegExp('^[0-9]{3}$'), true],
12
- 'MC': [new RegExp('^5[1-5][0-9]{14}$'), new RegExp('^[0-9]{3}$'), true],
13
- 'AE': [new RegExp('^3[47][0-9]{13}$'), new RegExp('^[0-9]{4}$'), true],
14
- 'DI': [false, new RegExp('^[0-9]{3}$'), true],
15
- 'OT': [false, new RegExp('^([0-9]{3}|[0-9]{4})?$'), false],
16
- 'EL': [false, new RegExp('^([0-9]{3})?$'), true],
17
- 'HI': [new RegExp('^(606282|3841)[0-9]'), new RegExp('^([0-9]{3})?$'), true]
18
- });
19
-
20
- }
21
- function countChar(val) {
22
- var cvv = val.value.length;
23
- if (cvv > 2) {
24
- jQuery('#formcli').hide();
25
- jQuery("#formcli").slideDown("slow");
26
- jQuery('#formcli').css({
27
- display: "block"
28
- });
29
- document.getElementById('credito_portador_nome').value = document.getElementById('billing:firstname').value + ' ' + document.getElementById('billing:lastname').value;
30
- document.getElementById('credito_portador_telefone').value = document.getElementById('billing:telephone').value;
31
- document.getElementById('credito_portador_cpf').value = document.getElementById('billing:taxvat').value;
32
- if (document.getElementById('billing:year').value) {
33
- document.getElementById('credito_portador_nascimento').value = document.getElementById('billing:day').value + '/' + document.getElementById('billing:month').value + '/' + document.getElementById('billing:year').value
34
- }
35
- }
36
- };
37
-
38
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/O2TI/novamascara.js DELETED
@@ -1,9 +0,0 @@
1
- function txtBoxFormat(objeto,sMask,evtKeyPress){var i,nCount,sValue,fldLen,mskLen,bolMask,sCod,nTecla;if(document.all){nTecla=evtKeyPress.keyCode;}else if(document.layers){nTecla=evtKeyPress.which;}else{nTecla=evtKeyPress.which;if(nTecla==8){return true;}}
2
- sValue=objeto.value;sValue=sValue.toString().replace("-","");sValue=sValue.toString().replace("-","");sValue=sValue.toString().replace(".","");sValue=sValue.toString().replace(".","");sValue=sValue.toString().replace("/","");sValue=sValue.toString().replace("/","");sValue=sValue.toString().replace(":","");sValue=sValue.toString().replace(":","");sValue=sValue.toString().replace("(","");sValue=sValue.toString().replace("(","");sValue=sValue.toString().replace(")","");sValue=sValue.toString().replace(")","");sValue=sValue.toString().replace(" ","");sValue=sValue.toString().replace(" ","");fldLen=sValue.length;mskLen=sMask.length;i=0;nCount=0;sCod="";mskLen=fldLen;while(i<=mskLen){bolMask=((sMask.charAt(i)=="-")||(sMask.charAt(i)==".")||(sMask.charAt(i)=="/")||(sMask.charAt(i)==":"))
3
- bolMask=bolMask||((sMask.charAt(i)=="(")||(sMask.charAt(i)==")")||(sMask.charAt(i)==" "))
4
- if(bolMask){sCod+=sMask.charAt(i);mskLen++;}
5
- else{sCod+=sValue.charAt(nCount);nCount++;}
6
- i++;}
7
- objeto.value=sCod;if(nTecla!=8){if(sMask.charAt(i-1)=="9"){return((nTecla>47)&&(nTecla<58));}
8
- else{return true;}}
9
- else{return true;}}
 
 
 
 
 
 
 
 
 
js/O2TI/onestepcheckout/change-events.js DELETED
@@ -1,167 +0,0 @@
1
- jQuery(function() {
2
- jQuery("#billing-address-select").change(function(){
3
- flag=1 ;
4
- if(flag==1){
5
- change_select=0;
6
- if(this.value==""){
7
- countryid=jQuery("#billing\\:country_id option:selected").val();
8
- updateBillingForm(this.value,flag);
9
- }
10
- else{
11
- countryid=jQuery("#billing\\:country_id option:selected").val();
12
- updateBillingForm(this.value) ;
13
- }
14
- }
15
- else{
16
- countryid=jQuery("#billing\\:country_id option:selected").val();
17
- updateBillingForm(this.value);
18
- change_select=1;
19
- }
20
- });
21
- jQuery("#shipping-address-select").change(function(){
22
- flag=1 ;
23
- if(flag==1){
24
- change_select=0;
25
- if(this.value==""){
26
- countryid=jQuery("#shipping\\:country_id option:selected").val();
27
- updateShippingForm(this.value,flag);
28
- }
29
- else{
30
- countryid=jQuery("#shipping\\:country_id option:selected").val();
31
- updateShippingForm(this.value) ;
32
- }
33
- }
34
- else{
35
- countryid=jQuery("#shipping\\:country_id option:selected").val();
36
- updateShippingForm(this.value);
37
- change_select=1;
38
- }
39
- });
40
-
41
-
42
- jQuery('[id="shipping:same_as_billing"]').click(function() {
43
- jQuery('#shipping_show').hide();
44
- jQuery("#o2ti-osc-p2").removeClass('onestepcheckout-numbers onestepcheckout-numbers-3').addClass('onestepcheckout-numbers onestepcheckout-numbers-2');
45
- jQuery("#o2ti-osc-p3").removeClass('onestepcheckout-numbers onestepcheckout-numbers-4').addClass('onestepcheckout-numbers onestepcheckout-numbers-3');
46
- jQuery("#o2ti-osc-p4").removeClass('onestepcheckout-numbers onestepcheckout-numbers-5').addClass('onestepcheckout-numbers onestepcheckout-numbers-4');
47
- flag = 1;
48
- jQuery("#billing\\:save_in_address_book").val('0');
49
-
50
- jQuery('#ship_to_same_address').attr('checked','checked');
51
- jQuery('#shipping\\:same_as_billing').attr('checked', false);
52
- address_id = jQuery("#shipping-address-select").val();
53
- updateShippingForm(address_id) ;
54
-
55
- jQuery("#ship_to_same_address").val(1);
56
- updateShippingType();
57
- });
58
- jQuery("#ship_to_same_address").bind({
59
- click: function() {
60
- val_address = jQuery("#ship_to_same_address").val();
61
- shipaddselect = jQuery("#shipping-address-select");
62
- billaddselect = jQuery("#billing-address-select");
63
-
64
- if (val_address == 1) {
65
-
66
- jQuery("#o2ti-osc-p2").removeClass('onestepcheckout-numbers onestepcheckout-numbers-2').addClass('onestepcheckout-numbers onestepcheckout-numbers-3');
67
- jQuery("#o2ti-osc-p3").removeClass('onestepcheckout-numbers onestepcheckout-numbers-3').addClass('onestepcheckout-numbers onestepcheckout-numbers-4');
68
- jQuery("#o2ti-osc-p4").removeClass('onestepcheckout-numbers onestepcheckout-numbers-4').addClass('onestepcheckout-numbers onestepcheckout-numbers-5');
69
- flag = 0;
70
-
71
- jQuery('#ship_to_same_address').attr('checked', false);
72
- jQuery("#billing\\:save_in_address_book").val('1');
73
- jQuery("#shipping_show").show();
74
- jQuery("#ship_to_same_address").val(0);
75
- updateShippingType();
76
- } else {
77
- address_id = jQuery("#shipping-address-select").val();
78
- updateShippingForm(address_id) ;
79
- jQuery("#billing\\:save_in_address_book").val('0');
80
- jQuery('#shipping_show').hide();
81
- jQuery("#o2ti-osc-p2").removeClass('onestepcheckout-numbers onestepcheckout-numbers-3').addClass('onestepcheckout-numbers onestepcheckout-numbers-2');
82
- jQuery("#o2ti-osc-p3").removeClass('onestepcheckout-numbers onestepcheckout-numbers-4').addClass('onestepcheckout-numbers onestepcheckout-numbers-3');
83
- jQuery("#o2ti-osc-p4").removeClass('onestepcheckout-numbers onestepcheckout-numbers-5').addClass('onestepcheckout-numbers onestepcheckout-numbers-4');
84
- flag = 1;
85
- shipping.setSameAsBilling(true);
86
- jQuery('shipping\\:same_as_billing').attr('checked', true);
87
- jQuery('shipping\\:same_as_billing').attr('value', 1);
88
-
89
- jQuery('#shipping_show').hide();
90
- jQuery("#ship_to_same_address").val(1);
91
- updateShippingType();
92
- }
93
- }
94
- });
95
- jQuery('#register_new_account').val(1);
96
- jQuery('#subscribe_newsletter').bind({
97
- click: function() {
98
- var val = 0;
99
- if (jQuery(this).is(':checked')) {
100
- val = 1;
101
- }
102
- jQuery(this).val(val);
103
- }
104
- });
105
- jQuery.fn.clearForm = function() {
106
- jQuery(this).find(':input').each(function() {
107
- switch (this.type) {
108
- case 'password':
109
- case 'text':
110
- case 'textarea':
111
- jQuery(this).val('');
112
- break;
113
- case 'checkbox':
114
- case 'radio':
115
- }
116
- });
117
- };
118
- jQuery('#allow_gift_messages').bind({
119
- click: function() {
120
- if (jQuery(this).is(':checked')) {
121
- jQuery('#allow-gift-message-container').show();
122
- } else {
123
- jQuery('#allow-gift-message-container').hide();
124
- }
125
- }
126
- });
127
- if (country_load()) {
128
- jQuery('[id="billing:country_id"]').bind({
129
- change: function() {
130
- if (flag == 1) {
131
- updateShippingType();
132
- change = 0;
133
- } else {
134
- change = 1;
135
- }
136
- }
137
- });
138
- jQuery('[id="shipping:country_id"]').bind({
139
- change: function() {
140
- if (flag == 0) {
141
- change = 1;
142
- updateShippingType();
143
- }
144
- }
145
- });
146
- }
147
- if (region_load()) {
148
- jQuery('[id="billing:region_id"]').bind({
149
- change: function() {
150
- if (flag == 1) {
151
- updateShippingType();
152
- change = 0;
153
- } else {
154
- change = 1;
155
- }
156
- }
157
- });
158
- jQuery('[id="shipping:region_id"]').bind({
159
- change: function() {
160
- if (flag == 0) {
161
- change = 1;
162
- updateShippingType();
163
- }
164
- }
165
- });
166
- }
167
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/O2TI/onestepcheckout/shipping.js DELETED
@@ -1,14 +0,0 @@
1
- jQuery(function() {
2
- if (region_load()) {
3
- var regionship_before = jQuery('[id="shipping:region"]').val();
4
- jQuery('[id="shipping:region"]').bind({
5
- blur: function() {
6
- val = jQuery(this).val();
7
- if (val != "" && regionship_before != val) {
8
- updateShippingType();
9
- }
10
- regionship_before = val;
11
- }
12
- });
13
- }
14
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
media/{O2TI → MOIP}/all/logo.png RENAMED
File without changes
package.xml CHANGED
@@ -1,9 +1,9 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>o2ti_moip</name>
4
- <version>1.2.5</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>
8
  <extends/>
9
  <summary>Transparent Moip 100% homologated and with a OneStepCheckout free to use with Moip</summary>
@@ -31,11 +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 de metodos de json e xml do m&#xF3;dulo.</notes>
35
- <authors><author><name>O2TI</name><user>o2ti</user><email>contato@o2ti.com</email></author></authors>
36
- <date>2014-06-17</date>
37
- <time>12:08:32</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="7eccfd6ace8793b829cfdf33332562b5"/><file name="Info.php" hash="a1826c09d72b4310573cae391b8a0f06"/><file name="Novaforma.php" hash="9dfbce5025124bd7e80f7ac23386aa1a"/><file name="Redirect.php" hash="57cd69d9463f9761aac1e605c075e4fc"/></dir></dir><dir name="Helper"><file name="Data.php" hash="36af3c64c424820d5e6124528959d296"/></dir><dir name="Model"><file name="Api.php" hash="a987a83d674000a09b0df48ee97f6c98"/><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="1622c290f55763f87910af733bc93363"/><file name="Write.php" hash="ac1d3e9ff033480cab6ea20af271fa91"/><file name=".ftpquota" hash="bd9db78914b33cca442f35848cc680b5"/></dir><dir name="controllers"><file name="IndexController.php" hash="0f770f795a69e425bf9dd5bf52ed0e6b"/><file name="StandardController.php" hash="e167519d1d9327627c5c510ac6641592"/></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="ce34fa0e39beb82eb44983507360c884"/></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="9a63f0a96f6b0e5a7836b68a52b39efe"/><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="d93546b8fddf941d7d94df34f5899642"/></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="54373084da022ab3671982d6d2a51e8f"/><file name="TestController.php" hash="0d26f4e317fcab7a9f00ec95eada45b4"/></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="e6cf5ef53a911954cfead51c711bc032"/><file name="o2ti_onestepcheckout.xml" hash="0520c4f35471b2cbb129ca75c7634ef3"/></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="9ecd92654e0fda226a265dae40b1bd7f"/><file name="cartao.phtml" hash="22c6e3b63ea6b3fd2e606d324efbca18"/><file name="emptyupdate.phtml" hash="8625e958f0e2dd1138721b8518c8069a"/><file name="form.phtml" hash="97159f0fb40753ded7c032dfba582762"/><file name="horizontal_form.phtml" hash="b8591aa3c2448665afab4e8b2db53c15"/><file name="info.phtml" hash="c965f1f7589c0d1160c30d1427f59331"/><file name="layout_boleto.phtml" hash="6a609b4bc4bbbb610f151266983c06e1"/><file name="redirect.phtml" hash="4a778e5e9f9b391182cca210239cb18a"/><file name="refaz.phtml" hash="d81b71e6cc5ac3a96bce04f60cc8d917"/><file name="transferencia.phtml" hash="640c5c690474f70d70082446303eb63a"/><file name="vertical_form.phtml" hash="15cc92da37c442be254d7d702dd95e55"/></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="0d1ea39e631b8e0f305b67397f5b6b67"/></dir><file name="billing.phtml" hash="e8ba4434c06b32c7612d5bde80ab01d2"/><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="6070e9f318fc3baf4abe273b44c29cec"/><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="25f02e1cf5fa04dfd59ac385c7bd6649"/><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="288ce93953ad6393c9261459893df304"/><dir name="shipping"><file name="shipping_form.phtml" hash="79058df6163d35fa401ee859b5024457"/></dir><file name="shipping.phtml" hash="24fbfbe41cd2a8f2bb7bedf964d5aac8"/><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="d4e4648337e492651b43363634fa60bf"/><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="db05bd81fafa80734eb7a0ffc98a884f"/><file name="formulario.css" hash="340450e2b6647a33e50efa5999ef130c"/><file name="formulario_horizontal.css" hash="9eeeae1f0a700f4d7f3f8a86bd73e24f"/><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"/><file name="hodor_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="2e97028c3cf4c74bbc25a533ef55fdd7"/></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="4b1fa802580330a77296d1e30b67f8df"/></dir><file name="novamascara.js" hash="b9e977ef39649ce38245bb62a855551b"/><dir name="onestepcheckout"><file name="billing.js" hash="22083858d5c72381bac98513bb401e9a"/><file name="change-events.js" hash="c3793215150d62694c182451dd49e15d"/><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="26db92ec784ba3d6ba4d48ba5774dd58"/><file name="MOIP_SQL_MANUAL_INSTALATION.txt" hash="13eae7f8c8c9f6acb5011bb6afd2e514"/></dir></target></contents>
39
  <compatible/>
40
  <dependencies><required><php><min>4.0.0</min><max>15.5.5</max></php><extension><name>openssl</name><min>1</min><max>1</max></extension><extension><name>PDO</name><min>1</min><max>1</max></extension><extension><name>mcrypt</name><min>1</min><max>1</max></extension></required></dependencies>
41
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>o2ti_moip</name>
4
+ <version>1.3.0</version>
5
  <stability>stable</stability>
6
+ <license uri="http://moip.com/licensa_checkout_transparente.txt">Free to use with TRANSPARENTE</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Transparent Moip 100% homologated and with a OneStepCheckout free to use with Moip</summary>
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>Mudan&#xE7;a em layout e css, box de correios para busca do cep...</notes>
35
+ <authors><author><name>MOIP</name><user>moip</user><email>contato@moip.com</email></author></authors>
36
+ <date>2014-08-08</date>
37
+ <time>18:33:58</time>
38
+ <contents><target name="magelocal"><dir name="MOIP"><dir name="All"><dir name="Helper"><file name="Data.php" hash="10b776758585cb50355c0d6d0a5fdd5b"/></dir><dir name="etc"><file name="config.xml" hash="e04476923699975e6aad811230da5f50"/><file name="system.xml" hash="825545991621cd6e0fc34a19476d78cc"/></dir></dir><dir name="Onestepcheckout"><dir name="Block"><dir name="Adminhtml"><dir name="Form"><dir name="Renderer"><dir name="Config"><file name="Createfield.php" hash="eb94f83fce11018b5c9c82cbb5042b22"/></dir></dir></dir><dir name="Onestepcheckout"><dir name="Edit"><file name="Form.php" hash="0edd5c334c916c23feeaa7cb94822098"/><dir name="Tab"><file name="Form.php" hash="5abffe1372fb08beacd7747c4d95974b"/></dir><file name="Tabs.php" hash="58948fc037fc67bde3679e9c0de9d1a9"/></dir><file name="Edit.php" hash="2b4262c7a34c892b338693fbeff98cb9"/><file name="Grid.php" hash="82ff4b5fc692feaff2d441a6034f4031"/><dir name="Sales"><dir name="Order"><file name="Grid.php" hash="44b075f1acd3cefcf80b17672b7e3e4e"/><dir name="View"><dir name="Tab"><dir name="Info"><file name="Customermessages.php" hash="27970d8a771aa3e2bb33bd689133ee43"/><file name="Deliverydate.php" hash="1e20b440cff1da88bebd1464d1a5684e"/></dir></dir></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Addtimerange.php" hash="b2fe364d60208b05d4451e9a7c8187f0"/></dir></dir></dir></dir></dir><file name="Onestepcheckout.php" hash="d6b14d1f1a44f1d0e1c00295ae285030"/></dir><dir name="Checkout"><dir name="Onepage"><dir name="Billing"><file name="Sortbilling.php" hash="0a6069d37fbaf4f3be834ce465a0f4a4"/></dir><file name="Billing.php" hash="b8a5bfd5711f404b01f0ae0e47c25f61"/><dir name="Review"><file name="Options.php" hash="1a3d145e1f1081c625e59e4ffcac3fe5"/></dir><dir name="Shipping"><file name="Sortshipping.php" hash="bf84653fe3c87201061431b6ac569816"/></dir><file name="Shipping.php" hash="10c86ee0506bfed608f04419dee1da4f"/></dir><file name="Top.php" hash="7a2a329b7d63bf59f142e385c4f0dac3"/></dir><file name="Onestepcheckout.php" hash="6f34e0f80592894638869ca65e40574d"/><dir name="Sales"><dir name="Info"><file name="Deliverydate.php" hash="e9a19b853615ef601fa41ecdc92bc17e"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="5c19376368e6b2f744b448f0012f693e"/></dir><dir name="Model"><dir name="Customer"><file name="Customer.php" hash="c74a795ed1c64c62ff3dd8931a254aea"/></dir><dir name="Entity"><file name="Tipopessoa.php" hash="fd88583af9847289c889f0bf51bd1c2a"/></dir><dir name="Mysql4"><dir name="Onestepcheckout"><file name="Collection.php" hash="fc9252ebe14579fddf160e301a938e77"/></dir><file name="Onestepcheckout.php" hash="4ff78174ad64bc17c5263ce0fcf77402"/></dir><file name="Observer.php" hash="e8b37e9fb11cf2f47eb61d1629927ed1"/><file name="Onestepcheckout.php" hash="90db8eeb14fc762e79098edfac0684f8"/><dir name="Sales"><dir name="Quote"><file name="Address.php" hash="985ca5f6722a571a10d708e230647511"/></dir></dir><dir name="Shipping"><file name="Allowedmethods.php" hash="62c004be6a716a204b4d7810641418ec"/></dir><file name="Status.php" hash="cd2132bb22a1992e6ea762586391733b"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Checkuncheck.php" hash="febcb4b243d5e09ae7b77d603af45d63"/><file name="Disablefield.php" hash="196dcdb92863dbe110a8edc0be4cf953"/><file name="Formatdate.php" hash="8866b2675e0b0cb8807ad0339c779761"/><file name="Optionaddfield.php" hash="574f6f8d27245ab4f0d0362372f5082d"/><file name="Optionhidefield.php" hash="0cf65ef82933d93293eaada3125c3b1d"/><file name="Pagelayout.php" hash="23bb1780490da71206c8b45c4bda0362"/><dir name="Payment"><file name="Allowedmethods.php" hash="ebdb9c1d23e4ac2a566f39d5b15e43bd"/></dir><dir name="Shipping"><file name="Allowedmethods.php" hash="62c004be6a716a204b4d7810641418ec"/></dir><file name="Subscribenewletter.php" hash="a4c99e4f5417aa1b6d42364f4c83258c"/><dir name="form"><file name="Createfield.php" hash="a2cc83e3e48cab1c09f1d2c09b3f270c"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="OnestepcheckoutController.php" hash="481f6291fd10ee4ac80e3eed9ba1e878"/></dir><file name="IndexController.php" hash="f970f7e91b47a1b07022f379b12838ea"/><file name="TestController.php" hash="e551e63e2ae010e8b8b75cf7b31ef483"/></dir><dir name="etc"><file name="config.xml" hash="d257ed44d78d1c1a626b4d26efa4ac7f"/><file name="system.xml" hash="db0195cabfe0eb3525a4cae5eaa34282"/></dir><dir name="sql"><dir name="moip_onestepcheckout_setup"><file name="mysql4-install-0.1.0.php" hash="ca03016b7dc2a6c84e258b9e7248e5ff"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></dir><dir name="Transparente"><dir name="Block"><dir name="Adminhtml"><dir name="moip"><dir name="Info"><file name="Customermessages.php" hash="27970d8a771aa3e2bb33bd689133ee43"/><file name="Info.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></dir><file name="Info.php" hash="c875546525a1df60a862e86e4403b385"/><dir name="Standard"><file name="Form.php" hash="2b4832c0959ed0a3186f44c9421e6571"/><file name="Novaforma.php" hash="af0c33eaa1e297cbbec71a7eaada79ad"/><file name="Redirect.php" hash="0ce40fc7bf9a966a980c8c7384a490a2"/></dir></dir><dir name="Helper"><file name="Data.php" hash="dbbda1e77e2eefb38c1a96611646ed64"/></dir><dir name="Model"><file name="Api.php" hash="c138aa08a583588955a25f5ac0dbad85"/><dir name="Mysql4"><file name="Collection.php" hash="13a0788b3698b05607c8e48d45b712c2"/><file name="Write.php" hash="cd2a86f89b5e6ee6f8d37add67a88d76"/></dir><file name="Observer.php" hash="f44e87a19386b27a9fbbc8535c81be12"/><file name="Orders.php" hash="8de01cfc16794f2ded44c7a04be987a3"/><dir name="Source"><file name="Ambiente.php" hash="76749ed0937e4882357b23ac74ee22a0"/><file name="FormasPagamento.php" hash="9edf4a675cd6340a5fabd19996361eb4"/><file name="Layout.php" hash="212b1597bdbc653a2c7c0ad94e710474"/></dir><file name="Standard.php" hash="b6fe595397a6ea9b35a30e36b5288dca"/><file name="Write.php" hash="a18bda4c386668478d48a2c45a566c47"/><file name=".ftpquota" hash="bd9db78914b33cca442f35848cc680b5"/></dir><dir name="controllers"><file name="IndexController.php" hash="142377583c2ac0cd3ba8ee9741d8b9cb"/><file name="StandardController.php" hash="0a8cab2d1044df63559af732da723aa7"/></dir><dir name="etc"><file name="adminhtml.xml" hash="75bde86c187ceb24042233abde0f88b0"/><file name="config.xml" hash="a7c8cd2a37e87d6c39f5dc3fc0ffdea9"/><file name="system.xml" hash="a1ffeda8b358a8ca0b4fe11de0d9606c"/></dir><dir name="sql"><dir name="transparente_setup"><file name="mysql4-install-0.1.0.php" hash="103be1acccc73c2b4f70fc31e00cab17"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="1be7a66f09d08cf7e2897939d88e616e"/></dir></dir></dir><file name=".DS_Store" hash="15bd3b937c85e0f1c2cc079dcd2daa34"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="moip_transparente.xml" hash="96ca4692968a42aba19c9564388b3cdf"/><file name="moip_onestepcheckout.xml" hash="a02815d9aa2e1637af4c7921254382dc"/></dir><dir name="template"><dir name="MOIP"><dir name="customer"><dir name="address"><file name="book.phtml" hash="07747e72a21de6cc5ba6afa9ccc3aed1"/><file name="edit.phtml" hash="9ea60abf23fd6d0ca04c528d75f67e35"/></dir><dir name="widget"><file name="dob.phtml" hash="fc4646c6f8f786e2e72e473bbdaf94bc"/><file name="taxvat.phtml" hash="67333f779d3c7503209ce057a3b44c34"/></dir></dir><dir name="onestepcheckout"><dir name="daskboard"><dir name="onepage"><file name="agreements.phtml" hash="5b762aa76287b160fcbec8fed8b789e8"/><dir name="billing"><file name="billing_form.phtml" hash="2f612b9d5675bd71761d330bee70e0f2"/></dir><file name="billing.phtml" hash="c0b38ba3a92104a5261992c31aff79cc"/><file name="correio.phtml" hash="461b88fcbf6adffc4f23c5905932bafa"/><file name="coupon.phtml" hash="d1f926f184918ef20d6f6f3696ee9fdb"/><file name="forgotpassword.phtml" hash="6cf942b971460bfd82cbc587a08e8a39"/><file name="local.xml" hash="08c7ce351c502056fb9ee3a14a9b065a"/><file name="login.phtml" hash="11d6dccc3cbc34e5fbb48a3156f25e38"/><dir name="payment"><file name="methods.phtml" hash="b3d73a82dd363b403ef3a87cbddc7141"/></dir><file name="payment.phtml" hash="3501af6f3b4c108f11bc2bc6d58a9d87"/><dir name="review"><file name="button.phtml" hash="4d5c7c5a2d70f85ec324e79c7e81946b"/><file name="info.phtml" hash="59347e7f31f6c67e87d6a9bad9bd55de"/><file name="item.phtml" hash="25f02e1cf5fa04dfd59ac385c7bd6649"/><dir name="options"><file name="additional.phtml" hash="a915a8c848316dbe901c39f41bcfbdd2"/></dir><file name="options.phtml" hash="35d426f28c2b87a853f811ab7a18e544"/><file name="totals.phtml" hash="6e857d144768ed8faa0be977b547b32f"/></dir><file name="review.phtml" hash="9ea18ce3771f50dbe18bbc5d90db7e2b"/><dir name="shipping"><file name="shipping_form.phtml" hash="635244008f365b04eb88c254cf5492b4"/></dir><file name="shipping.phtml" hash="b8a0d2bcc61521c81ce333d4d02d5a5f"/><dir name="shipping_method"><file name="available.phtml" hash="a97013a6be2e0f33bcaad4d33ad34b1a"/></dir><file name="shipping_method.phtml" hash="478c97837904227e4cfcdd5cae00e696"/></dir></dir><file name="daskboard.phtml" hash="c2b4ce966d65351a76a13a6aa3272995"/><file name="emptyupdate.phtml" hash="7bf34446254428a5c42740731127b435"/><file name="onepage.phtml" hash="149f7077a5a959968afc0da9a0d952db"/><dir name="sales"><dir name="order"><dir name="info"><file name="customermessages.phtml" hash="813c6150e0e309612f40c9aee0d63c84"/><file name="customermessages.phtml~" hash="aa6199bb564edbf6d950fa154b624c02"/><file name="deliverydate.phtml" hash="a188cdefd8c346c28dbe2737097b208e"/><file name="deliverydate.phtml~" hash="75709e72398a0df41305dee259dc3de2"/></dir><file name="info.phtml" hash="a5b6b9223ec3d5da923e04f8becc84f3"/><dir name="view"><dir name="tab"><dir name="info"><file name="customermessages.phtml" hash="7de74c4598eceef2d17215585252f740"/><file name="deliverydate.phtml" hash="6e1260a32a1f6801ac185ef38a33114c"/></dir><file name="info.phtml" hash="57f4718dbfaa448976954368c1932b2b"/></dir></dir></dir></dir></dir><dir name="transparente"><file name="Novaforma.phtml" hash="49d046daa42bae37c1c5e80ff88c3e0d"/><file name="boleto.phtml" hash="cc66d2c01eb82259d0a4eddab45ded7e"/><file name="cartao.phtml" hash="587c3000f59f32365ecf27510ea619a1"/><file name="emptyupdate.phtml" hash="5504d0197f33a3db19ae9f75b5a43b86"/><file name="form.phtml" hash="c8d5626d1586aee99fed59decd55e9d4"/><file name="horizontal_form.phtml" hash="339f3bb119755968c3cd166f4025629c"/><file name="info.phtml" hash="d51bb066d8feddc10c2417abd5f64aaa"/><file name="layout_boleto.phtml" hash="8d91c7873e692648a7c1d9bd29091793"/><file name="redirect.phtml" hash="4a778e5e9f9b391182cca210239cb18a"/><file name="refaz.phtml" hash="21f6ac063f75c8ad7a07d17f753e28d8"/><file name="transferencia.phtml" hash="980961b551427deedb3aa5bece6bc429"/><file name="vertical_form.phtml" hash="e9196c626b0e916d01dc848ab3be81bd"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="MOIP"><dir name="onestepcheckout"><dir name="sales"><dir name="order"><dir name="view"><dir name="tab"><dir name="info"><file name="Customermessages.phtml" hash="336f1612d37946b870e3ac5e18e52dc1"/><file name="Deliverydate.phtml" hash="bdc0efab3d915de73f77a9db7d4a7ce6"/></dir><file name="info.phtml" hash="1b6b38d40668d878487f1710a28c1e69"/></dir></dir></dir></dir></dir><dir name="sales"><dir name="order"><dir name="view"><file name="info.phtml" hash="c6aa8255f5c494857c557a21a59e3367"/></dir></dir></dir><dir name="transparente"><file name="form.phtml" hash="2085219ca42621f5ab0172cba283ee1a"/><file name="info.phtml" hash="f1005b2874544d196842c96cd7c3a183"/><file name="redirect.phtml" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></dir><dir name="layout"><file name="moip_onestepcheckout.xml" hash="965904abd39a5a3d70a48cb1eeead421"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MOIP_All.xml" hash="5b4232633c10117c66c4054b95984c0d"/><file name="MOIP_Transparente.xml" hash="4a329e338fbbc0382234859c509e4178"/><file name="MOIP_Onestepcheckout.xml" hash="043133137c189e17b46afbda53b222f0"/></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="MOIP_Onestepcheckout.csv" hash="d7fd83d1c115af767311368be3b3a2e4"/></dir><dir name="pt_BR"><file name="MOIP_Onestepcheckout.csv" hash="d7fd83d1c115af767311368be3b3a2e4"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="MOIP"><dir name="onestepcheckout"><dir name="css"><file name="960grid_onestepcheckout.css" hash="aa451eb73128fd83916aa7f76fdba615"/><dir name="images"><file name="blank.gif" hash="325472601571f31e1bf00674c368d335"/><file name="fancy_close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="fancy_loading.png" hash="b1d54c240cf06e7f41e372d56919b738"/><file name="fancy_nav_left.png" hash="3f3e406102152cd8236383568a40ba35"/><file name="fancy_nav_right.png" hash="216e4bde5bddeeaa60dc3d692890a68e"/><file name="fancy_overlay.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="fancy_shadow_e.png" hash="fd4f491080d29fade5080877f1ba4c8b"/><file name="fancy_shadow_n.png" hash="18cde16379b2ceadef714d9b346d09ec"/><file name="fancy_shadow_ne.png" hash="63adf788acf193d4e4f3642d7d793125"/><file name="fancy_shadow_nw.png" hash="c820c878aedb7a7f9ebd7135a58e7c65"/><file name="fancy_shadow_s.png" hash="9b9e5c888028aaef40fe5b6a363f1e29"/><file name="fancy_shadow_se.png" hash="a8afd5a008884380ee712d177105268f"/><file name="fancy_shadow_sw.png" hash="f81cc0fee5581d76ad3cebe47e7e791b"/><file name="fancy_shadow_w.png" hash="59b0e63eb059e58d932cfd53da4d87e6"/><file name="fancy_title_left.png" hash="1582ac2d3bef6a6445bf02ceca2741cd"/><file name="fancy_title_main.png" hash="38dad6c1ed4bdc81c0bec721b2deb8c2"/><file name="fancy_title_over.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="fancy_title_right.png" hash="6cbe0c935511e7f9a2555ccb6a7324c4"/><file name="fancybox-x.png" hash="168696d8a694214090ef90e029cdf393"/><file name="fancybox-y.png" hash="36a58859beb9a6b19322a37466b9f78e"/><file name="fancybox.png" hash="f6ccaf1eda8a79a2bd44643e5a346990"/><file name="ui-bg_diagonals-thick_18_b81900_40x40.png" hash="95f9cceeb9d742dd3e917ec16ed754f8"/><file name="ui-bg_diagonals-thick_20_666666_40x40.png" hash="f040b255ca13e693da34ab33c7d6b554"/><file name="ui-bg_flat_10_000000_40x100.png" hash="c18cd01623c7fed23c80d53e2f5e7c78"/><file name="ui-bg_glass_100_f6f6f6_1x400.png" hash="5f1847175ba18c41322cb9cb0581e0fb"/><file name="ui-bg_glass_100_fdf5ce_1x400.png" hash="d26e8f463195a7b86f86b7d550cfc114"/><file name="ui-bg_glass_65_ffffff_1x400.png" hash="e5a8f32e28fd5c27bf0fed33c8a8b9b5"/><file name="ui-bg_gloss-wave_35_000_500x100.png" hash="5038a7d5d5bc3c3a565c585079798dca"/><file name="ui-bg_gloss-wave_35_f6a828_500x100.png" hash="5038a7d5d5bc3c3a565c585079798dca"/><file name="ui-bg_highlight-soft_100_eeeeee_1x100.png" hash="384c3f17709ba0f809b023b6e7b10b84"/><file name="ui-bg_highlight-soft_75_ffe45c_1x100.png" hash="b806658954cb4d16ade8977af737f486"/><file name="ui-icons_222222_256x240.png" hash="ebe6b6902a408fbf9cac6379a1477525"/><file name="ui-icons_228ef1_256x240.png" hash="ff1768bb6731566603303d106e298bec"/><file name="ui-icons_ef8c08_256x240.png" hash="ef9a6ccfe3b14041928ddc708665b226"/><file name="ui-icons_ffd27a_256x240.png" hash="ab8c30acc0e3608fb79e01fccf832c70"/><file name="ui-icons_ffffff_256x240.png" hash="342bc03f6264c75d3f1d7f99e34295b9"/></dir><file name="jquery.fancybox-1.3.1.css" hash="d97fbbe1ab67a487738e8121c79a5021"/><file name="onestepcheckout.css" hash="2696f183c7a47c02f667709f078b5a8d"/></dir><dir name="images"><file name="01.png" hash="89fcfa0fa3fe73b65ca2420269c26158"/><file name="02.png" hash="dab59c7515b3366465a4dd57d2d9deb2"/><file name="03.png" hash="dcaf4232529a8f9ac304db7553397450"/><file name="04.png" hash="68ae3a414c70c12f340e7c801d854c53"/><file name="05.png" hash="6e8fe636f0593ed3cf00d140e68d2308"/><file name="2_clock.png" hash="bb35645e06d8687f818a583202ad1615"/><file name="ajax-loader-tr.gif" hash="7a46575a4d543082fd6174c593aa762a"/><file name="bkg-giftmessage.png" hash="e0dc9f84c687af088bcc04e3ea200e0b"/><file name="bkg-step-review.png" hash="589914598419e9625c9358df8f68d49c"/><file name="bkg_form-search.gif" hash="2ca36eb80ea705e063409153f3821f78"/><file name="fancy_close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="fancy_loading.png" hash="b1d54c240cf06e7f41e372d56919b738"/><file name="fancy_nav_left.png" hash="3f3e406102152cd8236383568a40ba35"/><file name="fancy_nav_right.png" hash="216e4bde5bddeeaa60dc3d692890a68e"/><file name="fancy_overlay.png" hash="7a46575a4d543082fd6174c593aa762a"/><file name="fancy_shadow_e.png" hash="fd4f491080d29fade5080877f1ba4c8b"/><file name="fancy_shadow_n.png" hash="18cde16379b2ceadef714d9b346d09ec"/><file name="fancy_shadow_ne.png" hash="63adf788acf193d4e4f3642d7d793125"/><file name="fancy_shadow_nw.png" hash="c820c878aedb7a7f9ebd7135a58e7c65"/><file name="fancy_shadow_s.png" hash="9b9e5c888028aaef40fe5b6a363f1e29"/><file name="fancy_shadow_se.png" hash="a8afd5a008884380ee712d177105268f"/><file name="fancy_shadow_sw.png" hash="f81cc0fee5581d76ad3cebe47e7e791b"/><file name="fancy_shadow_w.png" hash="59b0e63eb059e58d932cfd53da4d87e6"/><file name="fancy_title_left.png" hash="1582ac2d3bef6a6445bf02ceca2741cd"/><file name="fancy_title_main.png" hash="38dad6c1ed4bdc81c0bec721b2deb8c2"/><file name="fancy_title_over.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="fancy_title_right.png" hash="6cbe0c935511e7f9a2555ccb6a7324c4"/><file name="fancybox-x.png" hash="168696d8a694214090ef90e029cdf393"/><file name="fancybox-y.png" hash="36a58859beb9a6b19322a37466b9f78e"/><file name="fancybox.png" hash="11e57e492ee0311540967cc7a1e6e3e2"/><file name="grid-cal.gif" hash="b1468e5239504974c689eea5d93f86d4"/><file name="line-gradient.gif" hash="bef9df2d426124dbe3d496407219190b"/><file name="loja_segura.jpg" hash="5e65fd40952db665746dc485d67fdf35"/><file name="opc-ajax-loader.gif" hash="e805ea7eca1f34c75ba0f93780d32d38"/><file name="validation_advice_bg.gif" hash="b85432906de8985a8b14eeb2dc652d3c"/></dir></dir><dir name="transparente"><dir name="css"><file name="bootstrap.css" hash="fba99415be28e6b3e49ddac177bab038"/><file name="formulario.css" hash="de729a6e94b8c285a6418a86a99d6351"/><file name="formulario_horizontal.css" hash="9158e09a3b888728338eb56a877111e5"/><file name="prettify.css" hash="ecd4a5d6c0cbee10b168f6aa000c64ea"/></dir><dir name="imagem"><file name="AmericanExpress.png" hash="40ea216476033961d50f452bf4bca4df"/><file name="BancoDoBrasil.png" hash="572914d1e4b635dc56cd507c6c46b023"/><file name="Banrisul.png" hash="d4ac02772b3f521a92542b849e679092"/><file name="Bradesco.png" hash="ceb6a2aaf263fc359fabaf6f102cb8db"/><file name="Diners.png" hash="0f4264379e7b8ba6b1a30a3d69240ae2"/><file name="Hipercard.png" hash="c25430ddd8e441cc2fc3ef68219e7668"/><file name="Itau.png" hash="40d639fe4b14d063d810589577f0eb7d"/><file name="Mastercard.png" hash="836466c092121163320e9e6279f11f8b"/><file name="Visa.png" hash="cc0709d50773fa2815f7bfeb741a4219"/><file name="ababoleto.png" hash="47e3ede4db46d5938a68f126bb68bcfe"/><file name="abacartao.png" hash="667954485c4082bafa84920073288453"/><file name="abatransf.png" hash="0623c4cf50653b9c13d12cca5eed43f6"/><file name="ajax-loader.gif" hash="57ca1a2085d82f0574e3ef740b9a5ead"/><dir name="azul"><file name="ababoleto.png" hash="47e3ede4db46d5938a68f126bb68bcfe"/><file name="abacartao.png" hash="667954485c4082bafa84920073288453"/><file name="abatransf.png" hash="0623c4cf50653b9c13d12cca5eed43f6"/></dir><file name="bank-icon.png" hash="3f73473ce94841328abffa85fe314f3e"/><file name="bank-title.png" hash="3d33028c41f80b1042ef5500ea05c0d1"/><file name="bb.png" hash="572914d1e4b635dc56cd507c6c46b023"/><file name="boleto-icon.png" hash="c4560588cb6e12ca7756788648493ad3"/><file name="boleto.png" hash="fe1b591868a937c40e1a095b1313e3ed"/><dir name="branco"><file name="ababoleto.png" hash="f3baeeaf41a6528905b97d825ac67cf7"/><file name="abacartao.png" hash="684d8a48644f55f2c3504da1f51a350b"/><file name="abatransf.png" hash="ea6f42607620ea8f8dca34c1fc98b42b"/><file name="e-sedex.gif" hash="9d0af24408b3798ab687094ab9b76199"/><file name="e-sedex.png" hash="19c04d68032987d594c4da51e3b66094"/><file name="pac.gif" hash="fc1373622266269e8b0986b637e93851"/><file name="pac.png" hash="17aaff70f9924a8e37166429ceae549e"/><file name="sedex.gif" hash="9b6771f2d93f8f73dbbc8f5584a7f580"/><file name="sedex.png" hash="15e2831cad72756b9a9bf99a6e2af5e5"/></dir><file name="cc-title.png" hash="f3064bbd55a468c5bb717762e93a8a3b"/><file name="codigo-seguranca.png" hash="b1cdecab044511593083ff18033d4e4f"/><file name="flatrate_flatrate.gif" hash="a27796835310fe5e57ed11b5792d5530"/><file name="freeshipping_freeshipping.gif" hash="80af8e1da4c9cf03b1856f47bf7e27a4"/><file name="info.png" hash="051e3f3601ab034ba27615e42dd5cfdf"/><file name="logomoip.png" hash="0f09942428d649b8aa6b8999f0c60c0b"/><file name="logomoipck.png" hash="684da020f45d07cbee27cc231920d72a"/><file name="moip.png" hash="14273d22979881d4a57c960b952866e3"/><file name="moipamerican.png" hash="40ea216476033961d50f452bf4bca4df"/><file name="moipbanner2.png" hash="1c24f42b0cbb05f00ea779d3a719ebe1"/><file name="moipdiners.png" hash="0f4264379e7b8ba6b1a30a3d69240ae2"/><file name="moiphiper.png" hash="c25430ddd8e441cc2fc3ef68219e7668"/><file name="moipmaster.png" hash="836466c092121163320e9e6279f11f8b"/><file name="moipvisa.png" hash="cc0709d50773fa2815f7bfeb741a4219"/><file name="pedroteixeira_correios_40010.gif" hash="e260acafdeaf0f493350cfa5c34b8be1"/><file name="pedroteixeira_correios_40096.gif" hash="9d0af24408b3798ab687094ab9b76199"/><file name="pedroteixeira_correios_41068.gif" hash="fc1373622266269e8b0986b637e93851"/><file name="pedroteixeira_correios_41106.gif" hash="dcb56e6f42c1730736b44363d7c01e11"/><file name="pedroteixeira_correios_81019.gif" hash="9b6771f2d93f8f73dbbc8f5584a7f580"/><dir name="preto"><file name="ababoleto.png" hash="a728ac886e7e57744e62bba2c7b0b969"/><file name="abacartao.png" hash="50b6103cb5b7e51a27f3c26eaa7411d0"/><file name="abatransf.png" hash="61eec388356aea3230fc5d811ef996ea"/></dir><file name="printer.png" hash="f4bfc0849dceba778a6e7f252b7a3b9c"/><dir name="verde"><file name="ababoleto.png" hash="3c3e047acb513328ebdfd6bfc9c339fa"/><file name="abacartao.png" hash="809d7e21263b3474d1685087a91ca18a"/><file name="abatransf.png" hash="0e3e6bdba002a69be78e126f3e7e775f"/></dir><dir name="vermelho"><file name="ababoleto.png" hash="0d84f05b75c8e964122c4f087268bd1c"/><file name="abacartao.png" hash="63b85e98d5b77c6a373bc351080e60f4"/><file name="abatransf.png" hash="0bef9fec6108a914ebc108f3c600c013"/></dir><file name="warning.png" hash="3fbeef48124ccb146e082a9d20977b3e"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="MOIP"><dir name="onestepcheckout"><dir name="css"><file name="960grid_onestepcheckout.css" hash="49257f08c5e41cca8748c3c0ff3d3cc2"/><dir name="images"><file name="blank.gif" hash="325472601571f31e1bf00674c368d335"/><file name="fancy_close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="fancy_loading.png" hash="b1d54c240cf06e7f41e372d56919b738"/><file name="fancy_nav_left.png" hash="3f3e406102152cd8236383568a40ba35"/><file name="fancy_nav_right.png" hash="216e4bde5bddeeaa60dc3d692890a68e"/><file name="fancy_overlay.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="fancy_shadow_e.png" hash="fd4f491080d29fade5080877f1ba4c8b"/><file name="fancy_shadow_n.png" hash="18cde16379b2ceadef714d9b346d09ec"/><file name="fancy_shadow_ne.png" hash="63adf788acf193d4e4f3642d7d793125"/><file name="fancy_shadow_nw.png" hash="c820c878aedb7a7f9ebd7135a58e7c65"/><file name="fancy_shadow_s.png" hash="9b9e5c888028aaef40fe5b6a363f1e29"/><file name="fancy_shadow_se.png" hash="a8afd5a008884380ee712d177105268f"/><file name="fancy_shadow_sw.png" hash="f81cc0fee5581d76ad3cebe47e7e791b"/><file name="fancy_shadow_w.png" hash="59b0e63eb059e58d932cfd53da4d87e6"/><file name="fancy_title_left.png" hash="1582ac2d3bef6a6445bf02ceca2741cd"/><file name="fancy_title_main.png" hash="38dad6c1ed4bdc81c0bec721b2deb8c2"/><file name="fancy_title_over.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="fancy_title_right.png" hash="6cbe0c935511e7f9a2555ccb6a7324c4"/><file name="fancybox-x.png" hash="168696d8a694214090ef90e029cdf393"/><file name="fancybox-y.png" hash="36a58859beb9a6b19322a37466b9f78e"/><file name="fancybox.png" hash="f6ccaf1eda8a79a2bd44643e5a346990"/><file name="ui-bg_diagonals-thick_18_b81900_40x40.png" hash="95f9cceeb9d742dd3e917ec16ed754f8"/><file name="ui-bg_diagonals-thick_20_666666_40x40.png" hash="f040b255ca13e693da34ab33c7d6b554"/><file name="ui-bg_flat_10_000000_40x100.png" hash="c18cd01623c7fed23c80d53e2f5e7c78"/><file name="ui-bg_glass_100_f6f6f6_1x400.png" hash="5f1847175ba18c41322cb9cb0581e0fb"/><file name="ui-bg_glass_100_fdf5ce_1x400.png" hash="d26e8f463195a7b86f86b7d550cfc114"/><file name="ui-bg_glass_65_ffffff_1x400.png" hash="e5a8f32e28fd5c27bf0fed33c8a8b9b5"/><file name="ui-bg_gloss-wave_35_000_500x100.png" hash="5038a7d5d5bc3c3a565c585079798dca"/><file name="ui-bg_gloss-wave_35_f6a828_500x100.png" hash="5038a7d5d5bc3c3a565c585079798dca"/><file name="ui-bg_highlight-soft_100_eeeeee_1x100.png" hash="384c3f17709ba0f809b023b6e7b10b84"/><file name="ui-bg_highlight-soft_75_ffe45c_1x100.png" hash="b806658954cb4d16ade8977af737f486"/><file name="ui-icons_222222_256x240.png" hash="ebe6b6902a408fbf9cac6379a1477525"/><file name="ui-icons_228ef1_256x240.png" hash="ff1768bb6731566603303d106e298bec"/><file name="ui-icons_ef8c08_256x240.png" hash="ef9a6ccfe3b14041928ddc708665b226"/><file name="ui-icons_ffd27a_256x240.png" hash="ab8c30acc0e3608fb79e01fccf832c70"/><file name="ui-icons_ffffff_256x240.png" hash="342bc03f6264c75d3f1d7f99e34295b9"/></dir><file name="jquery.fancybox-1.3.1.css" hash="d1e24fb0bfbd1f97b23edc75904b90d4"/><file name="onestepcheckout.css" hash="4f4a6534b37ef582f5aa8ff4a694017d"/></dir><dir name="images"><file name="01.png" hash="89fcfa0fa3fe73b65ca2420269c26158"/><file name="02.png" hash="dab59c7515b3366465a4dd57d2d9deb2"/><file name="03.png" hash="dcaf4232529a8f9ac304db7553397450"/><file name="04.png" hash="68ae3a414c70c12f340e7c801d854c53"/><file name="05.png" hash="6e8fe636f0593ed3cf00d140e68d2308"/><file name="2_clock.png" hash="bb35645e06d8687f818a583202ad1615"/><file name="ajax-loader-tr.gif" hash="7a46575a4d543082fd6174c593aa762a"/><file name="bkg-giftmessage.png" hash="e0dc9f84c687af088bcc04e3ea200e0b"/><file name="bkg-step-review.png" hash="589914598419e9625c9358df8f68d49c"/><file name="bkg_form-search.gif" hash="2ca36eb80ea705e063409153f3821f78"/><file name="bkg_header.jpg" hash="0211c47be1493bd0ec72949c47932b81"/><file name="blank.gif" hash="325472601571f31e1bf00674c368d335"/><file name="btn_checkout.gif" hash="d2060501e14e86c29e28137130e5726e"/><file name="clock.gif" hash="c6d5badd40d31d332470c32a03d2e98c"/><file name="clock.png" hash="73f0648c150bde4ef647db7e9c14ca3e"/><file name="demo-large_03.png" hash="86628bc4358a1c1f655534d4ae15be45"/><file name="demo-large_04.png" hash="0d5f289d2bf808165be000b318a50591"/><file name="demo-large_05.png" hash="5fd1386a147ea4768553c3990d9db804"/><file name="demo-large_051.png" hash="452556661a99a8fb20c6d507ce9506f0"/><file name="demo-large_06.png" hash="247e5412b0e70bf164a428374b15a82d"/><file name="demo-large_07.png" hash="9deac604cfb692b2e17f0f53c3aebbf4"/><file name="fancy_close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="fancy_loading.png" hash="b1d54c240cf06e7f41e372d56919b738"/><file name="fancy_nav_left.png" hash="3f3e406102152cd8236383568a40ba35"/><file name="fancy_nav_right.png" hash="216e4bde5bddeeaa60dc3d692890a68e"/><file name="fancy_overlay.png" hash="7a46575a4d543082fd6174c593aa762a"/><file name="fancy_shadow_e.png" hash="fd4f491080d29fade5080877f1ba4c8b"/><file name="fancy_shadow_n.png" hash="18cde16379b2ceadef714d9b346d09ec"/><file name="fancy_shadow_ne.png" hash="63adf788acf193d4e4f3642d7d793125"/><file name="fancy_shadow_nw.png" hash="c820c878aedb7a7f9ebd7135a58e7c65"/><file name="fancy_shadow_s.png" hash="9b9e5c888028aaef40fe5b6a363f1e29"/><file name="fancy_shadow_se.png" hash="a8afd5a008884380ee712d177105268f"/><file name="fancy_shadow_sw.png" hash="f81cc0fee5581d76ad3cebe47e7e791b"/><file name="fancy_shadow_w.png" hash="59b0e63eb059e58d932cfd53da4d87e6"/><file name="fancy_title_left.png" hash="1582ac2d3bef6a6445bf02ceca2741cd"/><file name="fancy_title_main.png" hash="38dad6c1ed4bdc81c0bec721b2deb8c2"/><file name="fancy_title_over.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="fancy_title_right.png" hash="6cbe0c935511e7f9a2555ccb6a7324c4"/><file name="fancybox-x.png" hash="168696d8a694214090ef90e029cdf393"/><file name="fancybox-y.png" hash="36a58859beb9a6b19322a37466b9f78e"/><file name="fancybox.png" hash="11e57e492ee0311540967cc7a1e6e3e2"/><file name="grid-cal.gif" hash="b1468e5239504974c689eea5d93f86d4"/><file name="line-gradient.gif" hash="bef9df2d426124dbe3d496407219190b"/><file name="loja_segura.jpg" hash="5e65fd40952db665746dc485d67fdf35"/><file name="opc-ajax-loader.gif" hash="e805ea7eca1f34c75ba0f93780d32d38"/><file name="validation_advice_bg.gif" hash="b85432906de8985a8b14eeb2dc652d3c"/></dir></dir><dir name="transparente"><dir name="css"><file name="bootstrap.css" hash="75c28a5ed4bf7d4c9a6eda4808438943"/><file name="formulario.css" hash="87e267ea81daca8c9aa4a528c63f5eb2"/><file name="formulario_horizontal.css" hash="502050c298a58cf25440950fb5127105"/><file name="prettify.css" hash="ecd4a5d6c0cbee10b168f6aa000c64ea"/></dir><dir name="imagem"><file name="AmericanExpress.png" hash="40ea216476033961d50f452bf4bca4df"/><file name="BancoDoBrasil.png" hash="572914d1e4b635dc56cd507c6c46b023"/><file name="Banrisul.png" hash="d4ac02772b3f521a92542b849e679092"/><file name="Bradesco.png" hash="ceb6a2aaf263fc359fabaf6f102cb8db"/><file name="Diners.png" hash="0f4264379e7b8ba6b1a30a3d69240ae2"/><file name="Hipercard.png" hash="c25430ddd8e441cc2fc3ef68219e7668"/><file name="Itau.png" hash="40d639fe4b14d063d810589577f0eb7d"/><file name="Mastercard.png" hash="836466c092121163320e9e6279f11f8b"/><file name="Visa.png" hash="cc0709d50773fa2815f7bfeb741a4219"/><file name="ababoleto.png" hash="47e3ede4db46d5938a68f126bb68bcfe"/><file name="abacartao.png" hash="667954485c4082bafa84920073288453"/><file name="abatransf.png" hash="0623c4cf50653b9c13d12cca5eed43f6"/><file name="ajax-loader.gif" hash="57ca1a2085d82f0574e3ef740b9a5ead"/><dir name="azul"><file name="ababoleto.png" hash="47e3ede4db46d5938a68f126bb68bcfe"/><file name="abacartao.png" hash="667954485c4082bafa84920073288453"/><file name="abatransf.png" hash="0623c4cf50653b9c13d12cca5eed43f6"/></dir><file name="bank-icon.png" hash="3f73473ce94841328abffa85fe314f3e"/><file name="bank-title.png" hash="3d33028c41f80b1042ef5500ea05c0d1"/><file name="bb.png" hash="572914d1e4b635dc56cd507c6c46b023"/><file name="boleto-icon.png" hash="c4560588cb6e12ca7756788648493ad3"/><file name="boleto.png" hash="fe1b591868a937c40e1a095b1313e3ed"/><dir name="branco"><file name="ababoleto.png" hash="f3baeeaf41a6528905b97d825ac67cf7"/><file name="abacartao.png" hash="684d8a48644f55f2c3504da1f51a350b"/><file name="abatransf.png" hash="ea6f42607620ea8f8dca34c1fc98b42b"/><file name="e-sedex.gif" hash="9d0af24408b3798ab687094ab9b76199"/><file name="e-sedex.png" hash="19c04d68032987d594c4da51e3b66094"/><file name="pac.gif" hash="fc1373622266269e8b0986b637e93851"/><file name="pac.png" hash="17aaff70f9924a8e37166429ceae549e"/><file name="sedex.gif" hash="9b6771f2d93f8f73dbbc8f5584a7f580"/><file name="sedex.png" hash="15e2831cad72756b9a9bf99a6e2af5e5"/></dir><file name="cc-title.png" hash="f3064bbd55a468c5bb717762e93a8a3b"/><file name="codigo-seguranca.png" hash="b1cdecab044511593083ff18033d4e4f"/><file name="flatrate_flatrate.gif" hash="a27796835310fe5e57ed11b5792d5530"/><file name="freeshipping_freeshipping.gif" hash="80af8e1da4c9cf03b1856f47bf7e27a4"/><file name="info.png" hash="051e3f3601ab034ba27615e42dd5cfdf"/><file name="logomoip.png" hash="0f09942428d649b8aa6b8999f0c60c0b"/><file name="logomoipck.png" hash="684da020f45d07cbee27cc231920d72a"/><file name="moip.png" hash="14273d22979881d4a57c960b952866e3"/><file name="moipamerican.png" hash="40ea216476033961d50f452bf4bca4df"/><file name="moipbanner2.png" hash="1c24f42b0cbb05f00ea779d3a719ebe1"/><file name="moipdiners.png" hash="0f4264379e7b8ba6b1a30a3d69240ae2"/><file name="moiphiper.png" hash="c25430ddd8e441cc2fc3ef68219e7668"/><file name="moipmaster.png" hash="836466c092121163320e9e6279f11f8b"/><file name="moipvisa.png" hash="cc0709d50773fa2815f7bfeb741a4219"/><file name="pedroteixeira_correios_40010.gif" hash="e260acafdeaf0f493350cfa5c34b8be1"/><file name="pedroteixeira_correios_40096.gif" hash="9d0af24408b3798ab687094ab9b76199"/><file name="pedroteixeira_correios_41068.gif" hash="fc1373622266269e8b0986b637e93851"/><file name="pedroteixeira_correios_41106.gif" hash="dcb56e6f42c1730736b44363d7c01e11"/><file name="pedroteixeira_correios_81019.gif" hash="9b6771f2d93f8f73dbbc8f5584a7f580"/><dir name="preto"><file name="ababoleto.png" hash="a728ac886e7e57744e62bba2c7b0b969"/><file name="abacartao.png" hash="50b6103cb5b7e51a27f3c26eaa7411d0"/><file name="abatransf.png" hash="61eec388356aea3230fc5d811ef996ea"/></dir><file name="printer.png" hash="f4bfc0849dceba778a6e7f252b7a3b9c"/><dir name="verde"><file name="ababoleto.png" hash="3c3e047acb513328ebdfd6bfc9c339fa"/><file name="abacartao.png" hash="809d7e21263b3474d1685087a91ca18a"/><file name="abatransf.png" hash="0e3e6bdba002a69be78e126f3e7e775f"/></dir><dir name="vermelho"><file name="ababoleto.png" hash="0d84f05b75c8e964122c4f087268bd1c"/><file name="abacartao.png" hash="63b85e98d5b77c6a373bc351080e60f4"/><file name="abatransf.png" hash="0bef9fec6108a914ebc108f3c600c013"/></dir><file name="warning.png" hash="3fbeef48124ccb146e082a9d20977b3e"/></dir></dir></dir></dir></dir></dir></target><target name="magemedia"><dir name="MOIP"><dir name="all"><file name="logo.png" hash="c08692c7e53617ad2a6d5f1449d04e96"/></dir></dir></target><target name="mageweb"><dir name="js"><dir name="MOIP"><file name="jquery.js" hash="f8e2833ce2f57ec673b178be7eefbd82"/><file name="jquery.mask.min.js" hash="c248ef809617dde36e1fa71e5a8a434f"/><file name="jquery_noconflict.js" hash="afdd9b4ecb226d898fe655136f849752"/><dir name="onestepcheckout"><file name="billing.js" hash="09f4109801826bb2023bd5e67cb3ec38"/><file name="change-events.js" hash="fb6cbfef1f186259b008d7d94cb593f8"/><file name="jquery.fancybox-1.3.1.js" hash="74be2c172f49740a6962de8baf0d1d68"/><file name="shipping.js" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><file name="script_mask.js" hash="8f741c8ca9a7786bb0b9faaa364fb3c9"/><dir name="transparente"><file name="bootstrap-modal.js" hash="3a3af727bfc923a064aad1b02681ffce"/><file name="bootstrap.min.js" hash="5eb1cb055ddcf2f7b2b662f73f56cf1f"/><file name="checkout.js" hash="90087361700c3efc739b2b995a79c159"/></dir><file name="validacao.js" hash="73cb3aaf10be38fda611e8cff9abd550"/></dir></dir></target></contents>
39
  <compatible/>
40
  <dependencies><required><php><min>4.0.0</min><max>15.5.5</max></php><extension><name>openssl</name><min>1</min><max>1</max></extension><extension><name>PDO</name><min>1</min><max>1</max></extension><extension><name>mcrypt</name><min>1</min><max>1</max></extension></required></dependencies>
41
  </package>
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/960grid_onestepcheckout.css RENAMED
@@ -1,5 +1,5 @@
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;}
@@ -14,7 +14,7 @@ input[type="checkbox"]{float: left; cleaR: none;margin-right: 10px;margin-top:2p
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;}
1
+ .moip-osc-block-content{padding:12px;border: 1px solid #ccc;border-radius: 0 0 5px 5px}
2
+ .moip-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;}
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
+ .moip-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;}
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/blank.gif RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_close.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_loading.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_nav_left.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_nav_right.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_overlay.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_e.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_n.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_ne.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_nw.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_s.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_se.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_sw.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_w.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_title_left.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_title_main.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_title_over.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_title_right.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancybox-x.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancybox-y.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/fancybox.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_diagonals-thick_20_666666_40x40.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_flat_10_000000_40x100.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_glass_100_f6f6f6_1x400.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_glass_100_fdf5ce_1x400.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_glass_65_ffffff_1x400.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_gloss-wave_35_000_500x100.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-icons_222222_256x240.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-icons_228ef1_256x240.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-icons_ef8c08_256x240.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-icons_ffd27a_256x240.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-icons_ffffff_256x240.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/jquery.fancybox-1.3.1.css RENAMED
@@ -248,6 +248,6 @@
248
  background: rgba(0, 0, 0, .8);
249
  }
250
 
251
- .o2ti-osc-title-login > h1 {
252
  color: #FFFFFF;
253
  }
248
  background: rgba(0, 0, 0, .8);
249
  }
250
 
251
+ .moip-osc-title-login > h1 {
252
  color: #FFFFFF;
253
  }
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/css/onestepcheckout.css RENAMED
@@ -1,18 +1,18 @@
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%; }
@@ -38,4 +38,4 @@
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; }
1
  /* page blocks */
2
+ .moip-osc-checkoutcontainer { display: block; clear: both; width: 100%; }
3
+ .moip-osc-checkoutcontainer .moip-osc-column-left { display: block; width: 33%; float: left; }
4
+ .moip-osc-checkoutcontainer .moip-osc-column-2 { display: block; width: 65%; margin-left: 2%; float: left; }
5
+ .moip-osc-checkoutcontainer .moip-osc-column-2 .moip-osc-column-middle { display: block; width: 47%; float: left; min-width: 290px !important; }
6
+ .moip-osc-checkoutcontainer .moip-osc-column-2 .moip-osc-column-right { display: block; width: 48%; float: left; margin-left: 2%; min-width: 283px !important; }
7
+ .moip-osc-checkoutcontainer .moip-osc-block-title h3 { margin: 0; padding: 5px; }
8
+ .moip-osc-checkoutcontainer .moip-osc-block-content { border: 1px solid #ccc; border-radius: 0 0 5px 5px; padding: 15px; }
9
+ .moip-osc-checkoutcontainer .review { float: left; width: 100%; clear: both; margin-top: 20px; }
10
+ .moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment { width: 45%; float: left; min-width: 290px !important; }
11
+ .moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment .moip-osc-column { width: 100%; margin: 0 0 15px 0; }
12
+ .moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review { width: 52%; clear: none; margin-left: 1%; margin-top: 0; }
13
+ .moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review .moip-osc-column-middle { width: 100%; clear: both; margin: 0; }
14
+ .moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review .moip-osc-column-middle #id_comments { width: 100%; border-radius: 5px; clear: both; margin: 0; }
15
+ .moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review .moip-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%; }
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
+ .moip-osc-block { min-width: 290px !important; }
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/01.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/02.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/03.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/04.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/05.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/2_clock.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/ajax-loader-tr.gif RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/bkg-giftmessage.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/bkg-step-review.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/bkg_form-search.gif RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/bkg_header.jpg RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/blank.gif RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/btn_checkout.gif RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/clock.gif RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/clock.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/demo-large_03.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/demo-large_04.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/demo-large_05.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/demo-large_051.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/demo-large_06.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/demo-large_07.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_close.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_loading.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_nav_left.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_nav_right.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_overlay.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_e.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_n.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_ne.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_nw.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_s.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_se.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_sw.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_w.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_title_left.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_title_main.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_title_over.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancy_title_right.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancybox-x.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancybox-y.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/fancybox.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/grid-cal.gif RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/line-gradient.gif RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/loja_segura.jpg RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/opc-ajax-loader.gif RENAMED
File without changes
skin/adminhtml/default/default/{O2TI → MOIP}/onestepcheckout/images/validation_advice_bg.gif RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/css/bootstrap.css RENAMED
@@ -17,7 +17,7 @@
17
  .modal-footer:after { clear: both;}
18
  .modal-footer .btn + .btn { margin-left: 5px; margin-bottom: 0;}
19
  .modal-footer .btn-group .btn + .btn { margin-left: -1px;}
20
- #moip_corpo {float: left; width:100%;}
21
  #icone_pg {float: left; width: 10%; margin-right: 2%;margin-bottom: 15px;}
22
  #Descr_pg {float: left; width: 88%;margin-bottom: 15px;min-height:140px;}
23
  #pgcartao {min-height:140px;}
@@ -41,7 +41,7 @@
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;
@@ -63,8 +63,8 @@ min-width: 250px;
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
 
@@ -82,8 +82,8 @@ min-width: 250px;
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: "}
17
  .modal-footer:after { clear: both;}
18
  .modal-footer .btn + .btn { margin-left: 5px; margin-bottom: 0;}
19
  .modal-footer .btn-group .btn + .btn { margin-left: -1px;}
20
+ #transparente_corpo {float: left; width:100%;}
21
  #icone_pg {float: left; width: 10%; margin-right: 2%;margin-bottom: 15px;}
22
  #Descr_pg {float: left; width: 88%;margin-bottom: 15px;min-height:140px;}
23
  #pgcartao {min-height:140px;}
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_transparente.grid12-5 {
45
  width: 44%;
46
  float: left;
47
  min-width: 250px;
63
 
64
  .boleto-title{background:url(../imagem/boleto-icon.png) no-repeat 10px 10px;padding: 20px 0;padding-left:120px;}
65
 
66
+ .btn-transparente{display:block;float:left;clear:both;border-radius:10px;color:#fff;font-size:16pt;font-weight:bold;text-align: centeR;text-transform: uppercase;position:relative;padding: 15px 20px;clear:both;margin-left:70px;margin-top:60px;margin-bottom:25px;background: #ff9900; /* Old browsers *//* IE9 SVG, needs conditional override of 'filter' to 'none' */background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmOTkwMCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZjY2MDAiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);background: -moz-linear-gradient(top, #ff9900 0%, #ff6600 100%); /* FF3.6+ */background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff9900), color-stop(100%,#ff6600)); /* Chrome,Safari4+ */background: -webkit-linear-gradient(top, #ff9900 0%,#ff6600 100%); /* Chrome10+,Safari5.1+ */background: -o-linear-gradient(top, #ff9900 0%,#ff6600 100%); /* Opera 11.10+ */background: -ms-linear-gradient(top, #ff9900 0%,#ff6600 100%); /* IE10+ */background: linear-gradient(to bottom, #ff9900 0%,#ff6600 100%); /* W3C */filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff9900', endColorstr='#ff6600',GradientType=0 ); /* IE6-8 */}
67
+ .btn-transparente 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
 
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-transparente{margin: 0 auto;float:none;margin-top:20px;}
86
  #pgcartao{float:left;cleaR:both;margin-top:30px;}
87
+ #statustransparenteadd{color:#666;font-size:11pt;line-height:1.3;}
88
+ #idtransparente{color:#333;margin:10px 0;font-size:14pt;}
89
+ #idtransparente:before{content:"Número da transação Moip: "}
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/css/formulario.css RENAMED
@@ -12,12 +12,12 @@ ul.form-list.dados-titular > li > div{ width: 50% !important;clear: none !import
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;}
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
+ .transparente-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-transparente-handler{position: relative !important;}
21
+ .tooltip-transparente{display: none;position: absolute; right: 0px;top: auto;background: #cccccc;padding: 20px;border-radius: 10px;min-width: 245px;box-shadow: 0 0 10px #000;z-index:999;}
22
+ .tooltip-transparente-handler:hover .tooltip-transparente{display: block;}
23
  .span3.method-image > img {float: right;margin-right: 15px;margin-top: 25px;}
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/css/formulario_horizontal.css RENAMED
@@ -12,33 +12,33 @@ ul.form-list.dados-titular > li > div{ width: 50% !important;clear: none !import
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;}
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.transparente-payment-method-line img{margin-left: 10px;}
16
 
17
+ .transparente-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-transparente-handler{position: relative !important;}
25
+ .tooltip-transparente{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-transparente-handler:hover .tooltip-transparente{display: block;}
27
  .span3.method-image > img {float: right;width: 100%;}
28
+ #checkoutmoip > 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
+ #transparente-boleto > div{float: left;width:70%;}
34
+ #transparente-boleto > div.method-image{width: 25%;margin-right:5%}
35
+ .transparente-payment-method-content, .transparente-payment-method-content p, .transparente-payment-method-content div, .transparente-payment-method-content *{text-align: left;}
36
 
37
+ .transparente-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
+ .transparente-payment-method-content .form-list label{float:left !important;}
43
 
44
  #formcli{clear: both;}
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/css/prettify.css RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/AmericanExpress.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/BancoDoBrasil.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/Banrisul.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/Bradesco.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/Diners.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/Hipercard.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/Itau.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/Mastercard.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/Visa.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/ababoleto.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/abacartao.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/abatransf.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/ajax-loader.gif RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/azul/ababoleto.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/azul/abacartao.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/azul/abatransf.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/bank-icon.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/bank-title.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/bb.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/boleto-icon.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/boleto.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/branco/ababoleto.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/branco/abacartao.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/branco/abatransf.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/branco/e-sedex.gif RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/branco/e-sedex.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/branco/pac.gif RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/branco/pac.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/branco/sedex.gif RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/branco/sedex.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/cc-title.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/codigo-seguranca.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/flatrate_flatrate.gif RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/freeshipping_freeshipping.gif RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/info.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/logomoip.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/logomoipck.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/moip.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/moipamerican.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/moipbanner2.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/moipdiners.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/moiphiper.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/moipmaster.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/moipvisa.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/pedroteixeira_correios_40010.gif RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/pedroteixeira_correios_40096.gif RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/pedroteixeira_correios_41068.gif RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/pedroteixeira_correios_41106.gif RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/pedroteixeira_correios_81019.gif RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/preto/ababoleto.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/preto/abacartao.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/preto/abatransf.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/printer.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/verde/ababoleto.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/verde/abacartao.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/verde/abatransf.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/vermelho/ababoleto.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/vermelho/abacartao.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/vermelho/abatransf.png RENAMED
File without changes
skin/adminhtml/default/default/{O2TI/moip → MOIP/transparente}/imagem/warning.png RENAMED
File without changes
skin/frontend/base/default/MOIP/onestepcheckout/css/960grid_onestepcheckout.css ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .moip-osc-block-content{padding:12px;border: 1px solid #ccc;border-radius: 0 0 5px 5px}
2
+ .moip-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
+ .moip-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;}
34
+
35
+
36
+ .dados-pj, .dados-titular {
37
+ display: none;
38
+ }
39
+ .erro_frete, .erro_frete_sem_cep {
40
+ display: none;
41
+ }
42
+ #shipping_show {
43
+ margin-top: 20px;
44
+ }
45
+
46
+
47
+
48
+
49
+ .moip-osc-page-tittle {
50
+ margin-top: 43px;
51
+ line-height: 10px;
52
+ }
53
+
54
+
55
+
56
+
57
+ .moip-osc-column-2.span8.grid12-8 {
58
+ width: 65.67%;
59
+ margin: 0;
60
+ }
61
+
62
+ #checkout-shipping-method-loadding > dd > ul > li {
63
+ border-color: #ccc !important;
64
+ border: 1px solid; border-radius: 4px;min-height: 36px;width: 100%;
65
+ }
66
+
67
+ #checkout-shipping-method-loadding > dd > ul > li img {
68
+ float: left;
69
+ padding: 3px;
70
+ max-height: 30px;}
71
+ #checkout-shipping-method-loadding > dd > ul > li > span {
72
+ float: left;
73
+ background: #ccc;
74
+ padding: 9px;
75
+ border-radius: 4px 0 0 4px;
76
+ width: 6%;
77
+ }
78
+ #checkout-shipping-method-loadding > dd > ul > li > label {
79
+ float: left;
80
+ width: 85%;
81
+ }
82
+ .sp-methods .price {
83
+ font-weight: bold;
84
+ float: left;
85
+ }
86
+ .sp-methods label {
87
+ float: left;
88
+ }
89
+ .sp-methods dd {
90
+ margin: 3px 0 0px !important;
91
+ }
92
+ .erro_cep{
93
+ padding: 0 10px;
94
+ font-weight: bold;
95
+ }
96
+ .com_cep {
97
+ color: red;
98
+ padding: 10px;
99
+ }
100
+
101
+ .title_shipping, .image_shipping {
102
+ float: left;
103
+ }
104
+ .sp-methods label {
105
+ float: left;
106
+ width: 90%;
107
+ }
108
+ .image_shipping {
109
+ width: 35%;
110
+ }
111
+
112
+ .title_shipping {
113
+ width: 64%;
114
+ }
115
+ .sp-methods .price {
116
+ float: left;
117
+ width: 100% !important;
118
+ }
119
+ #advice-validate-one-required-by-name-debito_instituicao {
120
+ position: relative;
121
+ min-width: 191px;
122
+ }
123
+
124
+ #inlinecorreio {
125
+ text-align: left;
126
+ }
127
+ button#correios_end {
128
+ float: right;
129
+ }
130
+ div#resultado {
131
+ float: left;
132
+ clear: both;
133
+ width: 100%;
134
+ }
135
+ .dados_result_end {
136
+ float: left;
137
+ width: 80%;
138
+ padding-left: 4%;
139
+ border-bottom: 2px solid #F0F0F0;
140
+ }
141
+ .seletec_result_end {
142
+ float: left;
143
+ width: 4%;
144
+ padding: 6%;
145
+ background: #F0F0F0;
146
+ border-bottom: 2px solid #F0F0F0;
147
+ }
148
+ span.rua, span.cidade, span.cep {
149
+ width: 100%;
150
+ float: left;
151
+ }
152
+
153
+ #buscar_nos_correios {
154
+ float: left;
155
+ bottom: 0;
156
+ display: none;
157
+ }
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/blank.gif RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_close.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_loading.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_nav_left.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_nav_right.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_overlay.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_e.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_n.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_ne.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_nw.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_s.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_se.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_sw.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_shadow_w.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_title_left.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_title_main.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_title_over.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancy_title_right.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancybox-x.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancybox-y.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/fancybox.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_diagonals-thick_20_666666_40x40.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_flat_10_000000_40x100.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_glass_100_f6f6f6_1x400.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_glass_100_fdf5ce_1x400.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_glass_65_ffffff_1x400.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_gloss-wave_35_000_500x100.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-icons_222222_256x240.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-icons_228ef1_256x240.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-icons_ef8c08_256x240.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-icons_ffd27a_256x240.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/images/ui-icons_ffffff_256x240.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/css/jquery.fancybox-1.3.1.css RENAMED
@@ -248,6 +248,3 @@
248
  background: rgba(0, 0, 0, .8);
249
  }
250
 
251
- .o2ti-osc-title-login > h1 {
252
- color: #FFFFFF;
253
- }
248
  background: rgba(0, 0, 0, .8);
249
  }
250
 
 
 
 
skin/frontend/base/default/MOIP/onestepcheckout/css/onestepcheckout.css ADDED
@@ -0,0 +1,194 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* page blocks */
2
+ .moip-osc-checkoutcontainer { display: block; clear: both; width: 100%; }
3
+ .moip-osc-checkoutcontainer .moip-osc-column-left { display: block; float: left; }
4
+ .moip-osc-checkoutcontainer .moip-osc-column-2 { display: block; width: 65%; margin-left: 2%; float: left; }
5
+ .moip-osc-checkoutcontainer .moip-osc-column-2 .moip-osc-column-middle { display: block; width: 47%; float: left; min-width: 280px !important; }
6
+ .moip-osc-checkoutcontainer .moip-osc-column-2 .moip-osc-column-right { display: block; width: 48%; float: left; margin-left: 2%; min-width: 280px !important; }
7
+ .moip-osc-checkoutcontainer .moip-osc-block-title h3 { margin: 0; padding: 5px; line-height: 1.50; }
8
+ .moip-osc-checkoutcontainer .moip-osc-block-content { border: 1px solid #ccc; border-radius: 0 0 5px 5px; padding: 15px; }
9
+ .moip-osc-checkoutcontainer .review { float: left; width: 97%; clear: both; margin-top: 20px; }
10
+ .moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment { width: 45%; float: left; min-width: 280px !important; }
11
+ .moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .shipping-payment .moip-osc-column { width: 100%; margin: 0 0 15px 0; }
12
+ .moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review { width: 52%; clear: none; margin-left: 1%; margin-top: 0; }
13
+ .moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review .moip-osc-column-middle { width: 100%; clear: both; margin: 0; }
14
+ .moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review .moip-osc-column-middle #id_comments { width: 100%; border-radius: 5px; clear: both; margin: 0; }
15
+ .moip-opc-2columns .moip-osc-checkoutcontainer .moip-osc-column-2 .review .moip-osc-column-right { width: 100%; clear: both; margin: 0; }
16
+ .coluna_1_checkout.span4.grid12-4 {
17
+ float: left;
18
+ width: 35%;
19
+ }
20
+ .checkbox {z-index: 9;}
21
+ .coluna_2_checkout.span8.grid12-8 {
22
+ float: left;
23
+ width: 65%;
24
+ }
25
+ .onestepcheckout-numbers { border-radius: 6px 6px 0 0;background-repeat:no-repeat;float: left;height: 35px;margin-right: 4px;width: 40px;background-position: 14px 6px;font-weight:normal; padding-left:10px; padding-top:3px;}
26
+ .onestepcheckout-numbers-1{background-image:url("../images/01.png") !important;background-repeat: no-repeat !important;}
27
+ .onestepcheckout-numbers-2{background-image:url("../images/02.png") !important;background-repeat: no-repeat !important;}
28
+ .onestepcheckout-numbers-3{background-image:url("../images/03.png") !important;background-repeat: no-repeat !important;}
29
+ .onestepcheckout-numbers-4{background-image:url("../images/04.png") !important;background-repeat: no-repeat !important;}
30
+ .onestepcheckout-numbers-5{background-image:url("../images/05.png") !important;background-repeat: no-repeat !important;}
31
+ .onestepcheckout-numbers-6{background-image:url("../images/bkg-step-review.png") !important;background-repeat: no-repeat !important;}
32
+
33
+ /* form list */
34
+ .form-list .field { float: left !important; width: 47.5% !important; }
35
+ .form-list .field.odd { margin-left: 5%; }
36
+ .form-list .wide,
37
+ .form-list .fields { width: 100%; clear: both; }
38
+ .form-list label em { position: absolute; top: 0; right: 0; color: red; }
39
+ .form-list .input-box { width: 100% !important; }
40
+ .form-list .input-box input,
41
+ .form-list .input-box select { width: 97% !important; border-radius: 3px; padding: 5px; }
42
+ .form-list .input-box input[type="checkbox"],
43
+ .form-list .input-box input[type="radio"] { width: auto !important; float: left; clear: none; margin-right: 5px; }
44
+ .dados-pj { display: none }
45
+ .customer-dob .dob-day,
46
+ .customer-dob .dob-month { margin: 0; max-width: 26px !important; }
47
+ #loading-mask { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.5) }
48
+ #loading-mask #loading_mask_loader { position: absolute; top: 50%; left: 50%; width: 230px; height: auto; background: #fff; border: 1px solid #ccc; border-radius: 10px; box-shadow: 0 0 10px #000; margin-left: -115px; display: block; text-align: center; padding: 20px; margin-top: -39px; }
49
+ #loginbox { background: #000000; padding: 10px 0px !important; color: #fff; text-decoration: none; border-radius: 5px; margin-bottom: 10px; float: left; clear: both; width: 100%; text-align: center; }
50
+ #co-billing-form { clear: both; }
51
+ .update_shipping,
52
+ .update_payment { width: 100%; text-align: center; font-size: 14px; min-height: 115px; padding-top: 50px; }
53
+ #co-payment-form { min-height: 150px !important; }
54
+ #advice-required-entry-id_accept_terms { position: relative !important; }
55
+ .sp-methods .form-list { padding-left: 0px !important; }
56
+ #checkout-review-table-wrapper { overflow-x: visible !important; }
57
+ .moip-osc-block { min-width: 280px !important; }
58
+ #shipping_show {
59
+ margin-top: 10px !important;
60
+ }
61
+ .checkout-onepage-index .col-main {
62
+ width: 100% !important;
63
+ }
64
+ label.label_pf_pj {
65
+ float: none;
66
+ }
67
+ h2{line-height: 1.50;}
68
+ .onestepcheckout-numbers{background-position: 14px 6px !important;}
69
+
70
+ .dados-pj, .dados-titular {
71
+ display: none;
72
+ }
73
+ .erro_frete, .erro_frete_sem_cep {
74
+ display: none;
75
+ }
76
+ #shipping_show {
77
+ margin-top: 20px;
78
+ }
79
+
80
+ .moip-osc-page-tittle {
81
+ margin-top: 43px;
82
+ line-height: 10px;
83
+ }
84
+
85
+ .moip-osc-column-2.span8.grid12-8 {
86
+ width: 64.67%;
87
+ margin: 0;
88
+ margin-left: 1%;
89
+ }
90
+ .erro_cep{
91
+ padding: 0 10px;
92
+ font-weight: bold;
93
+ }
94
+ .com_cep {
95
+ color: red;
96
+ padding: 10px;
97
+ }
98
+
99
+ #advice-validate-one-required-by-name-debito_instituicao {
100
+ position: relative;
101
+ min-width: 191px;
102
+ }
103
+
104
+ #inlinecorreio {
105
+ text-align: left;
106
+ }
107
+ button#correios_end {
108
+ float: right;
109
+ }
110
+ div#resultado {
111
+ float: left;
112
+ clear: both;
113
+ width: 100%;
114
+ }
115
+ .dados_result_end {
116
+ float: left;
117
+ width: 80%;
118
+ padding-left: 4%;
119
+ border-bottom: 2px solid #F0F0F0;
120
+ }
121
+ .seletec_result_end {
122
+ float: left;
123
+ width: 4%;
124
+ padding: 6%;
125
+ background: #F0F0F0;
126
+ border-bottom: 2px solid #F0F0F0;
127
+ }
128
+ span.rua, span.cidade, span.cep {
129
+ width: 100%;
130
+ float: left;
131
+ }
132
+
133
+ #buscar_nos_correios {
134
+ float: left;
135
+ bottom: 0;
136
+ display: none;
137
+ }
138
+
139
+
140
+
141
+ /* Css para estilo diferente no shipping */
142
+ #checkout-shipping-method-loadding > dd > ul > li {
143
+ border-color: #ccc !important;
144
+ border: 1px solid; border-radius: 4px;min-height: 36px;width: 100%;
145
+ }
146
+
147
+ #checkout-shipping-method-loadding > dd > ul > li img {
148
+ float: left;
149
+ padding: 3px;
150
+ max-height: 30px;}
151
+ #checkout-shipping-method-loadding > dd > ul > li > span {
152
+ float: left;
153
+ background: #ccc;
154
+ padding: 9px;
155
+ border-radius: 4px 0 0 4px;
156
+ width: 6%;
157
+ }
158
+ #checkout-shipping-method-loadding > dd > ul > li > label {
159
+ float: left;
160
+ width: 85%;
161
+ }
162
+ .sp-methods .price {
163
+ font-weight: bold;
164
+ float: left;
165
+ }
166
+
167
+ .sp-methods dd {
168
+ margin: 3px 0 0px !important;
169
+ }
170
+
171
+
172
+ .title_shipping, .image_shipping {
173
+ float: left;
174
+ }
175
+
176
+ .image_shipping {
177
+ width: 35%;
178
+ }
179
+
180
+ .title_shipping {
181
+ width: 64%;
182
+ }
183
+ .sp-methods .price {
184
+ float: left;
185
+ width: 100% !important;
186
+ }
187
+
188
+ .form-list .customer-dob .dob-year {
189
+ width: 50px !important;
190
+ }
191
+ .form-list .customer-dob .dob-day, .form-list .customer-dob .dob-month {
192
+ width: 22px !important;
193
+ margin-right: 10px !important;
194
+ }
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/01.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/02.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/03.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/04.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/05.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/2_clock.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/ajax-loader-tr.gif RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/bkg-giftmessage.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/bkg-step-review.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/bkg_form-search.gif RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_close.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_loading.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_nav_left.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_nav_right.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_overlay.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_e.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_n.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_ne.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_nw.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_s.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_se.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_sw.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_shadow_w.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_title_left.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_title_main.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_title_over.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancy_title_right.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancybox-x.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancybox-y.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/fancybox.png RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/grid-cal.gif RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/line-gradient.gif RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/loja_segura.jpg RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/opc-ajax-loader.gif RENAMED
File without changes
skin/frontend/base/default/{O2TI → MOIP}/onestepcheckout/images/validation_advice_bg.gif RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/css/bootstrap.css RENAMED
@@ -17,7 +17,7 @@
17
  .modal-footer:after { clear: both;}
18
  .modal-footer .btn + .btn { margin-left: 5px; margin-bottom: 0;}
19
  .modal-footer .btn-group .btn + .btn { margin-left: -1px;}
20
- #moip_corpo {float: left; width:100%;}
21
  #icone_pg {float: left; width: 10%; margin-right: 2%;margin-bottom: 15px;}
22
  #Descr_pg {float: left; width: 88%;margin-bottom: 15px;min-height:140px;}
23
  #Descr_pedido{float:left;width:100%;}
@@ -40,7 +40,7 @@
40
 
41
  .col-md-6 h1, .col-md-6 h2, .col-md-6 h3{color:#333;}
42
  .col-md-6 h4{color:#666;}
43
- .corpo_moip.grid12-5 {
44
  width: 44%;
45
  float: left;
46
  min-width: 250px;
@@ -62,8 +62,8 @@ min-width: 250px;
62
 
63
  .boleto-title{background:url(../imagem/boleto-icon.png) no-repeat 10px 10px;padding: 20px 0;padding-left:120px;}
64
 
65
- .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 */}
66
- .btn-moip img{position:absolute;left:-70px;top:-20px;}
67
  .btn-boleto{padding: 15px 20px 15px 55px;border: 0;}
68
  .btn-boleto span{display:block;clear:both;text-align: centeR;font-size:13pt;font-weight: lighter;margin:0;margin-top:10px;font-family:'Open Sans'}
69
 
@@ -81,8 +81,8 @@ min-width: 250px;
81
  #refazercartao h3{font-size:14pt;line-height:1.3;text-align:center;}
82
  #refazercartao ul li h3{margin-top:20px;}
83
  #refazercartao ul li label{color:#666}
84
- #refazercartao .btn-moip{margin: 0 auto;float:none;margin-top:20px;}
85
  #pgcartao{float:left;cleaR:both;margin-top:30px;}
86
- #statusmoipadd{color:#666;font-size:11pt;line-height:1.3;}
87
- #idmoip{color:#333;margin:10px 0;font-size:14pt;}
88
- #idmoip:before{content:"Número da transação Moip: "}
17
  .modal-footer:after { clear: both;}
18
  .modal-footer .btn + .btn { margin-left: 5px; margin-bottom: 0;}
19
  .modal-footer .btn-group .btn + .btn { margin-left: -1px;}
20
+ #transparente_corpo {float: left; width:100%;}
21
  #icone_pg {float: left; width: 10%; margin-right: 2%;margin-bottom: 15px;}
22
  #Descr_pg {float: left; width: 88%;margin-bottom: 15px;min-height:140px;}
23
  #Descr_pedido{float:left;width:100%;}
40
 
41
  .col-md-6 h1, .col-md-6 h2, .col-md-6 h3{color:#333;}
42
  .col-md-6 h4{color:#666;}
43
+ .corpo_transparente.grid12-5 {
44
  width: 44%;
45
  float: left;
46
  min-width: 250px;
62
 
63
  .boleto-title{background:url(../imagem/boleto-icon.png) no-repeat 10px 10px;padding: 20px 0;padding-left:120px;}
64
 
65
+ .btn-transparente{display:block;float:left;clear:both;border-radius:10px;color:#fff;font-size:16pt;font-weight:bold;text-align: centeR;text-transform: uppercase;position:relative;padding: 15px 20px;clear:both;margin-left:70px;margin-top:60px;margin-bottom:25px;background: #ff9900; /* Old browsers *//* IE9 SVG, needs conditional override of 'filter' to 'none' */background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmOTkwMCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZjY2MDAiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);background: -moz-linear-gradient(top, #ff9900 0%, #ff6600 100%); /* FF3.6+ */background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff9900), color-stop(100%,#ff6600)); /* Chrome,Safari4+ */background: -webkit-linear-gradient(top, #ff9900 0%,#ff6600 100%); /* Chrome10+,Safari5.1+ */background: -o-linear-gradient(top, #ff9900 0%,#ff6600 100%); /* Opera 11.10+ */background: -ms-linear-gradient(top, #ff9900 0%,#ff6600 100%); /* IE10+ */background: linear-gradient(to bottom, #ff9900 0%,#ff6600 100%); /* W3C */filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff9900', endColorstr='#ff6600',GradientType=0 ); /* IE6-8 */}
66
+ .btn-transparente img{position:absolute;left:-70px;top:-20px;}
67
  .btn-boleto{padding: 15px 20px 15px 55px;border: 0;}
68
  .btn-boleto span{display:block;clear:both;text-align: centeR;font-size:13pt;font-weight: lighter;margin:0;margin-top:10px;font-family:'Open Sans'}
69
 
81
  #refazercartao h3{font-size:14pt;line-height:1.3;text-align:center;}
82
  #refazercartao ul li h3{margin-top:20px;}
83
  #refazercartao ul li label{color:#666}
84
+ #refazercartao .btn-transparente{margin: 0 auto;float:none;margin-top:20px;}
85
  #pgcartao{float:left;cleaR:both;margin-top:30px;}
86
+ #statustransparenteadd{color:#666;font-size:11pt;line-height:1.3;}
87
+ #idtransparente{color:#333;margin:10px 0;font-size:14pt;}
88
+ #idtransparente:before{content:"Número da transação Transparente: "}
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/css/formulario.css RENAMED
@@ -12,12 +12,14 @@ ul.form-list.dados-titular > li > div{ width: 50% !important;clear: none !import
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;}
 
 
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
+ .transparente-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: 12%;cursor: pointer;opacity: 0.4;}
19
 
20
+ .tooltip-transparente-handler{position: relative !important;}
21
+ .tooltip-transparente{display: none;position: absolute; right: 0px;top: auto;background: #cccccc;padding: 20px;border-radius: 10px;min-width: 245px;box-shadow: 0 0 10px #000;z-index:999;}
22
+ .tooltip-transparente-handler:hover .tooltip-transparente{display: block;}
23
  .span3.method-image > img {float: right;margin-right: 15px;margin-top: 25px;}
24
+ #advice-required-entry-credito_expiracao_ano {max-width: 84px;float: left;position: absolute; display:none;}
25
+ #advice-required-entry-credito_expiracao_mes {position: absolute;margin-top: 30px;}
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/css/formulario_horizontal.css RENAMED
@@ -12,33 +12,33 @@ ul.form-list.dados-titular > li > div{ width: 50% !important;clear: none !import
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;}
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.transparente-payment-method-line img{margin-left: 10px;}
16
 
17
+ .transparente-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: 12%;cursor: pointer;opacity: 0.4;}
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-transparente-handler{position: relative !important;}
25
+ .tooltip-transparente{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-transparente-handler:hover .tooltip-transparente{display: block;}
27
  .span3.method-image > img {float: right;width: 100%;}
28
+ #checkoutmoip > 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
+ #transparente-boleto > div{float: left;width:70%;}
34
+ #transparente-boleto > div.method-image{width: 25%;margin-right:5%}
35
+ .transparente-payment-method-content, .transparente-payment-method-content p, .transparente-payment-method-content div, .transparente-payment-method-content *{text-align: left;}
36
 
37
+ .transparente-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
+ .transparente-payment-method-content .form-list label{float:left !important;}
43
 
44
  #formcli{clear: both;}
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/css/prettify.css RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/AmericanExpress.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/BancoDoBrasil.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/Banrisul.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/Bradesco.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/Diners.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/Hipercard.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/Itau.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/Mastercard.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/Visa.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/ababoleto.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/abacartao.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/abatransf.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/ajax-loader.gif RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/azul/ababoleto.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/azul/abacartao.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/azul/abatransf.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/bank-icon.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/bank-title.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/bb.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/boleto-icon.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/boleto.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/branco/ababoleto.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/branco/abacartao.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/branco/abatransf.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/branco/e-sedex.gif RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/branco/e-sedex.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/branco/pac.gif RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/branco/pac.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/branco/sedex.gif RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/branco/sedex.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/cc-title.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/codigo-seguranca.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/flatrate_flatrate.gif RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/freeshipping_freeshipping.gif RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/info.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/logomoip.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/logomoipck.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/moip.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/moipamerican.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/moipbanner2.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/moipdiners.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/moiphiper.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/moipmaster.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/moipvisa.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/pedroteixeira_correios_40010.gif RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/pedroteixeira_correios_40096.gif RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/pedroteixeira_correios_41068.gif RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/pedroteixeira_correios_41106.gif RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/pedroteixeira_correios_81019.gif RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/preto/ababoleto.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/preto/abacartao.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/preto/abatransf.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/printer.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/verde/ababoleto.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/verde/abacartao.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/verde/abatransf.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/vermelho/ababoleto.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/vermelho/abacartao.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/vermelho/abatransf.png RENAMED
File without changes
skin/frontend/base/default/{O2TI/moip → MOIP/transparente}/imagem/warning.png RENAMED
File without changes
skin/frontend/base/default/O2TI/onestepcheckout/css/960grid_onestepcheckout.css DELETED
@@ -1,33 +0,0 @@
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/hodor_onestepcheckout.css DELETED
@@ -1,33 +0,0 @@
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/onestepcheckout.css DELETED
@@ -1,61 +0,0 @@
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; line-height: 1.50; }
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: 97%; 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
- .coluna_1_checkout.span4.grid12-4 {
17
- float: left;
18
- width: 35%;
19
- }
20
- .checkbox {z-index: 9;}
21
- .coluna_2_checkout.span8.grid12-8 {
22
- float: left;
23
- width: 65%;
24
- }
25
- /* form list */
26
- .form-list .field { float: left !important; width: 47.5% !important; }
27
- .form-list .field.odd { margin-left: 5%; }
28
- .form-list .wide,
29
- .form-list .fields { width: 100%; clear: both; }
30
- .form-list label { position: relative; clear: both; }
31
- .form-list label em { position: absolute; top: 0; right: 0; color: red; }
32
- .form-list .input-box { width: 100% !important; }
33
- .form-list .input-box input,
34
- .form-list .input-box select { width: 97% !important; border-radius: 3px; padding: 5px; }
35
- .form-list .input-box input[type="checkbox"],
36
- .form-list .input-box input[type="radio"] { width: auto !important; float: left; clear: none; margin-right: 5px; }
37
- .dados-pj { display: none }
38
- .customer-dob .dob-day,
39
- .customer-dob .dob-month { margin: 0; max-width: 26px !important; }
40
- #loading-mask { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.5) }
41
- #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; }
42
- #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; }
43
- #co-billing-form { clear: both; }
44
- .update_shipping,
45
- .update_payment { width: 100%; text-align: center; font-size: 14px; min-height: 115px; padding-top: 50px; }
46
- #co-payment-form { min-height: 150px !important; }
47
- #advice-required-entry-id_accept_terms { position: relative !important; }
48
- .sp-methods .form-list { padding-left: 0px !important; }
49
- #checkout-review-table-wrapper { overflow-x: visible !important; }
50
- .o2ti-osc-block { min-width: 290px !important; }
51
- #shipping_show {
52
- margin-top: 10px !important;
53
- }
54
- .checkout-onepage-index .col-main {
55
- width: 100% !important;
56
- }
57
- label.label_pf_pj {
58
- float: none;
59
- }
60
- h2{line-height: 1.50;}
61
- .onestepcheckout-numbers{background-position: 14px 6px !important;}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
skin/frontend/base/default/O2TI/onestepcheckout/images/bkg_header.jpg DELETED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/blank.gif DELETED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/btn_checkout.gif DELETED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/clock.gif DELETED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/clock.png DELETED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/demo-large_03.png DELETED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/demo-large_04.png DELETED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/demo-large_05.png DELETED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/demo-large_051.png DELETED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/demo-large_06.png DELETED
Binary file
skin/frontend/base/default/O2TI/onestepcheckout/images/demo-large_07.png DELETED
Binary file