Post by Mountune » Fri May 11, 2018 9:02 pm

As above,

Read many threads about adding them in section 5 but I just want someone to confirm where I need to add the image link for step 6. Also if you can include how to insert the link (the text I need to put in).

I thought it may be Catalogue/View/Theme/Default/Template/checkout/confirm.tpl or /payment_mehtod.tpl but I want clarification.

Many thanks.

-----
Opencart Version = v2.3.0.2
Theme = SimpleONE Boxed


Active Member

Posts

Joined
Mon Mar 27, 2017 10:03 pm

Post by DigitCart » Fri May 11, 2018 10:46 pm

Hi,
Step 6: Confirm Order: it's confirm.tpl and here is an example of a link:

Code: Select all

<a href="https://www.opencart.com/">Your text here</a>

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by Mountune » Mon May 14, 2018 6:30 pm

Many thanks DigiCART,

Can you confirm the code if I want to insert an image rather then text and in the centre?

I seem to be having issues getting an image to work correctly and be aligned in the middle

The area I want it to appear is here:


<tfoot>
<?php foreach ($totals as $total) { ?>
<tr>
<td colspan="4" class="text-right"><strong><?php echo $total['title']; ?>:</strong></td>
<td class="text-right"><?php echo $total['text']; ?></td>
</tr>
<?php } ?>
</tfoot>
</table>
</div>

<a href="https://www.opencart.com/">This is where I want a centre aligned image without effecting the payment table</a>

<?php echo $payment; ?>
<?php } else { ?>
<script type="text/javascript"><!--
location = '<?php echo $redirect; ?>';
//--></script>
<?php } ?>

-----
Opencart Version = v2.3.0.2
Theme = SimpleONE Boxed


Active Member

Posts

Joined
Mon Mar 27, 2017 10:03 pm

Post by DigitCart » Wed May 16, 2018 7:08 pm

Hi,
Try this:

Code: Select all

<div style="text-align:center"><a href="https://www.opencart.com/"><img src="https://www.opencart.com/application/view/image/icon/opencart-logo.png" alt="Image Text" /></a></div>

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by Mountune » Thu May 17, 2018 10:50 pm

Works spot on thanks again digitcart

-----
Opencart Version = v2.3.0.2
Theme = SimpleONE Boxed


Active Member

Posts

Joined
Mon Mar 27, 2017 10:03 pm

Post by DigitCart » Thu May 17, 2018 10:59 pm

You're welcome!

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm

Who is online

Users browsing this forum: No registered users and 423 guests