Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix if statement in tpl (#42) #43

Merged
merged 1 commit into from
Aug 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion conekta_prestashop.php
Original file line number Diff line number Diff line change
Expand Up @@ -1049,10 +1049,11 @@ public function processPayment($type, $token, $msi)
. $this->l('Mode:') . ' ' . ($charge_response->livemode == 'true' ? $this->l('Live') : $this->l('Test')) . "\n";
}


$this->validateOrder(
(int)$this->context->cart->id,
(int) $order_status,
$order->amount,
$order->amount / 100,
$this->displayName,
$message,
array(),
Expand Down
8 changes: 4 additions & 4 deletions views/templates/hook/checkout-confirmation-all.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*}

{if $cash }
{if isset($cash)}
<p> {l s='Informacion para realizar el pago:' mod='conekta_prestashop'} <p>
<br><br><b>{l s='Monto:' mod='conekta_prestashop'}</b> $ {$conekta_order.amount|escape:'htmlall':'UTF-8' }
<br><br><b>{l s='Monto:' mod='conekta_prestashop'}</b> $ {$conekta_order.amount|escape:'htmlall':'UTF-8' }
{$conekta_order.currency|escape:'htmlall':'UTF-8' }
<br><b><p>OXXO cobrará una comisión adicional al momento de realizar el pago</p>
<br><h1>Referencia: {$conekta_order.barcode|escape:'htmlall':'UTF-8'}</h1>
Expand All @@ -39,7 +39,7 @@
<div class="conf confirmation">{l s='Por favor de imprimir la ficha de pago y realizar el pago en el OXXO más cercano.' mod='conekta_prestashop'}</div>
{/if}

{if $card }
{if isset($card)}
{if $conekta_order.valid == 1 }
<div class="conf confirmation">{l s='Pago Exitoso, el pago ha sido aprobado y el pedido se ha guardado con la referencia ' mod='conekta_prestashop'} <b>{$conekta_order.reference|escape:'htmlall':'UTF-8'}</b>.</div>
{else}
Expand All @@ -49,7 +49,7 @@
{/if}
{/if}

{if $spei }
{if isset($spei)}
<p> {l s='Informacion para realizar el pago por medio de SPEI:' mod='conekta_prestashop'} <p>
<br><br><b>{l s='Monto:' mod='conekta_prestashop'}</b> $ {$conekta_order.amount|escape:'htmlall':'UTF-8' } {$conekta_order.currency|escape:'htmlall':'UTF-8' }
<br><br><b>{l s='CLABE:' mod='conekta_prestashop'}</b>
Expand Down
176 changes: 0 additions & 176 deletions views/templates/hook/payment-methods-all.tpl

This file was deleted.