I want to add custom terms for my store and I have to do it but, I couldn't manage it. Here is what I want:
on confirm.tpl, after;
I put this code's;<?php if (!isset($redirect)) { ?>
Code: Select all
<div>
<table>
<tr><td>Here is my terms for you</td></tr>
<tr>
<td align="center">
<div style="border:1px solid #ccc;width:98%;height:250px;overflow: scroll;">
<table>
<tr>
<td>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce vehicula leo non mauris placerat suscipit. Donec vitae lacus nec arcu consectetur tincidunt. Maecenas ut bibendum urna. Mauris augue dolor, sagittis at congue sed, volutpat vitae eros. Curabitur sit amet nibh non diam condimentum tincidunt eget ac nisi. Nunc lobortis, mi eu euismod posuere, sapien purus iaculis felis, quis venenatis elit lectus sed turpis. Mauris scelerisque velit id tortor interdum ut pulvinar nibh volutpat. Vivamus et libero a nisi iaculis commodo. Morbi a lorem sem. Ut vel elit purus. Nullam leo quam, sollicitudin ac sollicitudin non, cursus eu lorem. Praesent placerat lacinia tincidunt. Phasellus non urna ligula. Etiam in vestibulum nunc. Morbi pellentesque arcu in tortor laoreet blandit.<br /><br />
<?php foreach ($orders as $order) { ?>
<div style="page-break-after: always;">
<h2 align="center"><?php echo $order['store_url']; ?> MY TERMS ON WEB</h2>
Order DAte : <?php echo $order['date_added']; ?><br />
<div>
<p>MY TERMS <br />
<br />
1.1- STORE:<br />
<br />
<?php echo $order['store_name']; ?><br />
<?php echo $order['store_address']; ?><br />
<?php if ($order['store_fax']) { ?>
<?php echo $text_fax; ?> <?php echo $order['store_fax']; ?><br />
<?php } ?>
<?php echo $order['store_email']; ?><br />
<?php echo $order['store_url']; ?><br />
<p>1.2- CUSTOMER:<br />
<br />
<?php echo $order['payment_address']; ?><br/>
<?php echo $order['email']; ?><br/>
<?php echo $order['telephone']; ?><br />
<?php echo $order['payment_address']; ?><br />
<?php echo $order['shipping_address']; ?><br />
<?php echo $this->session->data['shipping_address_id']; ?><br />
<br />
<br />
Order Date/Order No : <?php echo $order['date_added']; ?>/<?php echo $order['order_id']; ?><br />
Aliquam sed est mollis dolor rutrum sagittis at et dolor. In quam neque, cursus vitae pharetra et, tincidunt eu arcu. Nunc ac magna dui. Pellentesque ac fringilla ipsum. Nunc tristique mollis mauris eu aliquet. Phasellus pretium scelerisque laoreet. Curabitur bibendum purus orci. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae;
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<?php } ?>
</div>
Code: Select all
<?php foreach ($orders as $order) { ?>
Code: Select all
<?php foreach ($total_data as $key => $value) { ?>

I'm not good on PHP, if you tell me one of codes that how to show me, maybe I copies other ones; here is what I want to show;
Code: Select all
<?php echo $order['date_added']; ?><br />
<?php echo $order['store_name']; ?><br />
<?php echo $order['store_address']; ?><br />
<?php if ($order['store_fax']) { ?>
<?php echo $text_fax; ?> <?php echo $order['store_fax']; ?><br />
<?php echo $order['store_email']; ?><br />
<?php echo $order['store_url']; ?><br />
<?php echo $order['payment_address']; ?><br/>
<?php echo $order['email']; ?><br/>
<?php echo $order['telephone']; ?><br />
<?php echo $order['payment_address']; ?><br />
<?php echo $order['shipping_address']; ?><br />
<?php echo $this->session->data['shipping_address_id']; ?><br />