Post by rvjventures » Sat May 19, 2018 10:34 pm

Hello, I recently changed the button on the category.tpl from Add to Cart to Product Details and it works just fine.
What I want to do it make it look like a button on the product.tpl. See image.
I've tried different codes and can't seem to get it to work.
Does anyone know what coding I need to make my link look the same?
Thanks.

Attachments

button.jpg

button.jpg (128.24 KiB) Viewed 1485 times


Newbie

Posts

Joined
Wed May 02, 2018 10:17 pm

Post by yodapt » Mon May 21, 2018 10:28 pm

We do, but we don't know what you have right now.

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by rvjventures » Wed May 23, 2018 8:24 pm

sorry, here is the code I've come up with:
location: https://www.rvj-ventures.com/cart/index ... urer_id=23

<div class="button-group">
<center>
<a class="button" href="<?php echo str_replace('&', '&', $product['href']); ?>" ><span><font="Arial" size="+5"><b>Product Details!</b> <i class="fa fa-info-circle" aria-hidden="true"></i></font></span></a>
</center>
</div>

Newbie

Posts

Joined
Wed May 02, 2018 10:17 pm

Post by OSWorX » Wed May 23, 2018 9:23 pm

First of all:

Code: Select all

<center>..</center>
is outdated.

Code: Select all

<font>..</font>
the same.

Such was used 10 years ago.

Use CSS

Code: Select all

<span style="font-size: xx; text-align: center;">
instead.
Second, why not this way:

Code: Select all

<a class="btn btn-info" href="<?php echo str_replace('&', '&', $product['href']); ?>" ><span><font="Arial" size="+5"><b>Product Details!</b> <i class="fa fa-info-circle" aria-hidden="true"></i></font></span></a>

Forum Rules: viewtopic.php?f=176&t=200480
Commercial Request: viewforum.php?f=88

Image


User avatar
Expert Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by rvjventures » Thu May 24, 2018 1:23 am

Thanks for the updated coding.

Newbie

Posts

Joined
Wed May 02, 2018 10:17 pm
Who is online

Users browsing this forum: No registered users and 4 guests