Skip to content

Commit

Permalink
widget v3
Browse files Browse the repository at this point in the history
  • Loading branch information
afatsini committed Apr 4, 2016
1 parent f5c3226 commit 9a01445
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
12 changes: 10 additions & 2 deletions 1.5.x/includes/languages/english/modules/payment/pagamastarde.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,16 @@
}else{
$discount = 0;
}
$widget = '<div style="width:185px;top:-20px;" class="pmt-custom pmt-detail pmt-simulator" data-pmt-num-quota="4" data-pmt-style="neutral" data-pmt-type="3" data-pmt-discount="'.$discount.'" data-pmt-amount="'.(float)( $order->info['total'] ).'" data-pmt-expanded="no"></div>
<script type ="text/javascript" src ="https://cdn.pagamastarde.com/pmt-simulator/2/js/pmt-simulator.min.js">
$widget = '<div class="PmtSimulator" data-pmt-num-quota="4" data-pmt-style="neutral" data-pmt-type="3" data-pmt-discount="'.$discount.'" data-pmt-amount="'.(float)( $order->info['total'] ).'" data-pmt-expanded="no"></div>
<script type ="text/javascript" src ="https://cdn.pagamastarde.com/pmt-simulator/3/js/pmt-simulator.min.js">
</script>
<script>
jQuery( document ).ready(function() {
pmtSimulator.simulator_app.load_jquery();
});
jQuery( document ).ajaxComplete(function() {
pmtSimulator.simulator_app.updateSimulators();
});
</script>';
define('MODULE_PAYMENT_PAGAMASTARDE_TEXT_TITLE', 'Paga Más Tarde');
define('MODULE_PAYMENT_PAGAMASTARDE_FINANCING','Financiación');
Expand Down
4 changes: 2 additions & 2 deletions 1.5.x/includes/modules/payment/pagamastarde.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class pagamastarde {
*/
function pagamastarde() {
global $order;
$this->signature = 'pagamastarde|pagamastarde|1.1|1.0';
$this->signature = 'pagamastarde|pagamastarde|1.4|1.0';
$this->code = 'pagamastarde';
$this->title = MODULE_PAYMENT_PAGAMASTARDE_TEXT_TITLE;
$this->description = MODULE_PAYMENT_PAGAMASTARDE_TEXT_DESCRIPTION;
Expand Down Expand Up @@ -370,7 +370,7 @@ function process_button() {
'address[zipcode]' => $order->customer['postcode'],
'callback_url' => $callback_url,
'discount[full]' => $dicount,
'phone' => $order->customer['telephone'],
'mobile_phone' => $order->customer['telephone'],

);
//product descirption
Expand Down
Binary file added releases/pagamastarde-zencart-1.4.zip
Binary file not shown.

0 comments on commit 9a01445

Please sign in to comment.