Hello,
How can I add Payment instruction to success page? It is relevant for bank transfer payment mostly. (I am using few bank transfer payment methods for different banks.). Please help.
Hello
It works in my success page.
Add this to your catalog/controller/checkout/success.php
If you successfully change the controller file of your checkout success page just add this code in controller file.
just bellow
Add this code
Just in case your success page is the default success page of opencart, try to search in extension page for FREE CUSTOM SUCCESS PAGE, have a customer details in success page for you to find the code I am saying.
Then Add this to your TPL FILE
in your catalog/view/theme/*/template/common/success.tpl
It works in my success page.
Add this to your catalog/controller/checkout/success.php
If you successfully change the controller file of your checkout success page just add this code in controller file.
just bellow
Code: Select all
$data['totals'] = array();
$totals = $this->model_account_order->getOrderTotals($this->session->data['order_id']);
foreach ($totals as $total) {
$data['totals'][] = array(
'title' => $total['title'],
'text' => $this->currency->format($total['value'], $order_info['currency_code'], $order_info['currency_value'])
);
}
Add this code
Code: Select all
// History
$data['histories'] = array();
$results = $this->model_account_order->getOrderHistories($this->session->data['order_id']);
foreach ($results as $result) {
$data['histories'][] = array(
'comment' => nl2br($result['comment'])
);
}
Just in case your success page is the default success page of opencart, try to search in extension page for FREE CUSTOM SUCCESS PAGE, have a customer details in success page for you to find the code I am saying.
Then Add this to your TPL FILE
in your catalog/view/theme/*/template/common/success.tpl
Code: Select all
<table class="csd_table">
<thead>
<tr>
<td><?php echo $text_pminstruction; ?></td>
</tr>
</thead>
<tbody>
<?php foreach ($histories as $history) { ?>
<tr>
<td ><?php echo $history['comment']; ?></td>
</tr>
<?php } ?>
</tbody>
</table>
Who is online
Users browsing this forum: No registered users and 51 guests