Post by alper60 » Thu Apr 19, 2012 11:31 pm

Hello,
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;
<?php if (!isset($redirect)) { ?>
I put this code's;

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>
It show's order table and products but not other ones that my variables. I don't understand why. I try both of them;

Code: Select all

<?php foreach ($orders as $order) { ?>

Code: Select all

<?php foreach ($total_data as $key => $value) { ?>
here is the result;
Image

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 />

User avatar
Newbie

Posts

Joined
Mon Apr 09, 2012 5:02 am

Post by Avvici » Fri Apr 20, 2012 1:22 pm

No, please don't frustrate yourself doing this. Change your terms and conditions in Administration. Just go to CATALOG>INFORMATION then edit it there.

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by alper60 » Fri Apr 20, 2012 4:16 pm

thanks, but I know the information pages and "terms&conditions", but it doesn't comment PHP codes? I put same PHP values on there and just commented out it.

I think I need some code on controller/checkout/confirm.php. but it has already some codes about shipping. but not comment it. I think $order variable is comment after confirm. so it does comment out when I put this code before confirm. I think I need session's code on order table but also

Code: Select all

<?php echo $this->session->data['shipping_address_id']; ?><br /> 
didn't work :S

User avatar
Newbie

Posts

Joined
Mon Apr 09, 2012 5:02 am

Post by biquul » Wed Apr 25, 2012 3:07 pm

Do not have a progress on this problem?

Newbie

Posts

Joined
Tue Mar 27, 2012 6:21 am
Who is online

Users browsing this forum: Amazon [Bot], Google [Bot] and 29 guests