[-] MO : fixed bug #PSCFV-7703 - Images for bank wire, cheque and cash payment missing on Order Summary

This commit is contained in:
vAugagneur
2013-04-26 10:30:17 +02:00
parent a0867d3a92
commit 9983b1723f
12 changed files with 14 additions and 8 deletions
+1
View File
@@ -177,6 +177,7 @@ class BankWire extends PaymentModule
$this->smarty->assign(array(
'this_path' => $this->_path,
'this_path_bw' => $this->_path,
'this_path_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->name.'/'
));
return $this->display(__FILE__, 'payment.tpl');
@@ -49,6 +49,7 @@ class BankwirePaymentModuleFrontController extends ModuleFrontController
'currencies' => $this->module->getCurrency((int)$cart->id_currency),
'total' => $cart->getOrderTotal(true, Cart::BOTH),
'this_path' => $this->module->getPathUri(),
'this_path_bw' => $this->module->getPathUri(),
'this_path_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->module->name.'/'
));
@@ -38,7 +38,7 @@
<h3>{l s='Bank-wire payment.' mod='bankwire'}</h3>
<form action="{$link->getModuleLink('bankwire', 'validation', [], true)}" method="post">
<p>
<img src="{$this_path}bankwire.jpg" alt="{l s='Bank wire' mod='bankwire'}" width="86" height="49" style="float:left; margin: 0px 10px 5px 0px;" />
<img src="{$this_path_bw}bankwire.jpg" alt="{l s='Bank wire' mod='bankwire'}" width="86" height="49" style="float:left; margin: 0px 10px 5px 0px;" />
{l s='You have chosen to pay by bank wire.' mod='bankwire'}
<br/><br />
{l s='Here is a short summary of your order:' mod='bankwire'}
@@ -25,7 +25,7 @@
<p class="payment_module">
<a href="{$link->getModuleLink('bankwire', 'payment')}" title="{l s='Pay by bank wire' mod='bankwire'}">
<img src="{$this_path}bankwire.jpg" alt="{l s='Pay by bank wire' mod='bankwire'}" width="86" height="49"/>
<img src="{$this_path_bw}bankwire.jpg" alt="{l s='Pay by bank wire' mod='bankwire'}" width="86" height="49"/>
{l s='Pay by bank wire (order process will be longer)' mod='bankwire'}
</a>
</p>
+2 -1
View File
@@ -75,7 +75,8 @@ class CashOnDelivery extends PaymentModule
}
$smarty->assign(array(
'this_path' => $this->_path,
'this_path' => $this->_path, //keep for retro compat
'this_path_cod' => $this->_path,
'this_path_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->name.'/'
));
return $this->display(__FILE__, 'payment.tpl');
@@ -70,7 +70,8 @@ class CashondeliveryValidationModuleFrontController extends ModuleFrontControlle
$this->context->smarty->assign(array(
'total' => $this->context->cart->getOrderTotal(true, Cart::BOTH),
'this_path' => $this->module->getPathUri(),
'this_path' => $this->module->getPathUri(),//keep for retro compat
'this_path_cod' => $this->module->getPathUri(),
'this_path_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->module->name.'/'
));
@@ -36,7 +36,7 @@
<form action="{$link->getModuleLink('cashondelivery', 'validation', [], true)}" method="post">
<input type="hidden" name="confirm" value="1" />
<p>
<img src="{$this_path}cashondelivery.jpg" alt="{l s='Cash on delivery (COD) payment' mod='cashondelivery'}" style="float:left; margin: 0px 10px 5px 0px;" />
<img src="{$this_path_cod}cashondelivery.jpg" alt="{l s='Cash on delivery (COD) payment' mod='cashondelivery'}" style="float:left; margin: 0px 10px 5px 0px;" />
{l s='You have chosen the cash on delivery method.' mod='cashondelivery'}
<br/><br />
{l s='The total amount of your order is' mod='cashondelivery'}
@@ -25,7 +25,7 @@
<p class="payment_module">
<a href="{$link->getModuleLink('cashondelivery', 'validation', [], true)}" title="{l s='Pay with cash on delivery (COD)' mod='cashondelivery'}" rel="nofollow">
<img src="{$this_path}cashondelivery.gif" alt="{l s='Pay with cash on delivery (COD)' mod='cashondelivery'}" style="float:left;" />
<img src="{$this_path_cod}cashondelivery.gif" alt="{l s='Pay with cash on delivery (COD)' mod='cashondelivery'}" style="float:left;" />
<br />{l s='Pay with cash on delivery (COD)' mod='cashondelivery'}
<br />{l s='You pay for the merchandise upon delivery' mod='cashondelivery'}
<br style="clear:both;" />
+1
View File
@@ -162,6 +162,7 @@ class Cheque extends PaymentModule
$this->smarty->assign(array(
'this_path' => $this->_path,
'this_path_cheque' => $this->_path,
'this_path_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->name.'/'
));
return $this->display(__FILE__, 'payment.tpl');
@@ -52,6 +52,7 @@ class ChequePaymentModuleFrontController extends ModuleFrontController
'chequeName' => $this->module->chequeName,
'chequeAddress' => Tools::nl2br($this->module->address),
'this_path' => $this->module->getPathUri(),
'this_path_cheque' => $this->module->getPathUri(),
'this_path_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->module->name.'/'
));
@@ -38,7 +38,7 @@
<h3>{l s='Check payment' mod='cheque'}</h3>
<form action="{$link->getModuleLink('cheque', 'validation', [], true)}" method="post">
<p>
<img src="{$this_path}cheque.jpg" alt="{l s='Check' mod='cheque'}" width="86" height="49" style="float:left; margin: 0px 10px 5px 0px;" />
<img src="{$this_path_cheque}cheque.jpg" alt="{l s='Check' mod='cheque'}" width="86" height="49" style="float:left; margin: 0px 10px 5px 0px;" />
{l s='You have chosen to pay by check.' mod='cheque'}
<br/><br />
{l s='Here is a short summary of your order:' mod='cheque'}
@@ -25,7 +25,7 @@
<p class="payment_module">
<a href="{$link->getModuleLink('cheque', 'payment', [], true)}" title="{l s='Pay by check.' mod='cheque'}">
<img src="{$this_path}cheque.jpg" alt="{l s='Pay by check.' mod='cheque'}" width="86" height="49" />
<img src="{$this_path_cheque}cheque.jpg" alt="{l s='Pay by check.' mod='cheque'}" width="86" height="49" />
{l s='Pay by check (order processing will take more time).' mod='cheque'}
</a>
</p>