Zen Cart Logo
Forums / General Questions / HTML Link in Product Info Page

HTML Link in Product Info Page

Views: 812

Results 1 to 7 of 7
14 Mar 2012, 10:53 AM
#1
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

HTML Link in Product Info Page

Hi,

Can someone please confirm that I am not going mad and that you cannot add an active link or image link to the product description on the product info page?

I am trying to place a sizing guide link and Samples link to specific items however the link wont work. I have tried standard a href but to no avail.

I know this can be added via tpl product_info_display however that places it on all products which is not required.

Adding a direct anchor tag link is a simple ask, or so I thought?

14 Mar 2012, 12:27 PM
#2
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: HTML Link in Product Info Page

Yes, you can with a simple a href link.

14 Mar 2012, 12:27 PM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: HTML Link in Product Info Page

There's no reason you can't embed a link in the product description. Post the exact 'a href' code you're using and what happens (if anything) when you click the link (if it appears).

14 Mar 2012, 12:49 PM
#4
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Re: HTML Link in Product Info Page

stevesh:

There's no reason you can't embed a link in the product description. Post the exact 'a href' code you're using and what happens (if anything) when you click the link (if it appears).

Hi, here is the code i am using - ```
<a href="index.php?main_page=sizeguides">
<img width="120" height="25" alt="Clothing Size Guides" src="images/sizeguideimage.gif" class="sizeguidesimage" /></a>


In the admin preview pain these links appear to display correctly, however on the actual page there is no link only the image?

Thanks.
14 Mar 2012, 1:00 PM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: HTML Link in Product Info Page

<a href="index.php?main_page=sizeguides">

You're pointing to a page that doesn't exist. Where exactly is the page that the size guide is in (full path) ?

14 Mar 2012, 1:07 PM
#6
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Re: HTML Link in Product Info Page

stevesh:

<a href="index.php?main_page=sizeguides">

You're pointing to a page that doesn't exist. Where exactly is the page that the size guide is in (full path) ?

http://www.example.com/productionsite/index.php?main_page=sizeguides

is the full path. I just tried adding that and still no link appearing only the image.

14 Mar 2012, 1:31 PM
#7
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Re: HTML Link in Product Info Page

Ok, I think I have solved the issue. In the tpl product info file I had removed a <br class="clearBoth" /> from under product description and main image. The css I was using for positioning has hidden the a href links under other elements. I have added <br class="clearBoth" /> and the layout is messed up but the links are back.

So crisis averted :blink:

Just need to fix layout again.

Thanks for your assistance.