Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / For more information, please visit this product's webpage

For more information, please visit this product's webpage

Locked

Views: 2,235

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
13 Sep 2008, 9:37 PM
#1
convergence avatar

convergence

New Zenner

Join Date:
Nov 2006
Location:
Brighton, CO
Posts:
90
Plugin Contributions:
0

For more information, please visit this product's webpage

Greetings,

I would like to replace the phrase "**For more information, please visit this product's webpage" **with the products name and a "Get Info" icon next to it.

I was able to get the products name and a "Get Info" icon to show up but unable to to get a link to go to the manucacturer's url.

Any ideas?

Thanks!

15 Sep 2008, 3:03 PM
#2
s_t_e_v_e avatar

s_t_e_v_e

Zen Follower

Join Date:
Aug 2006
Location:
UK
Posts:
430
Plugin Contributions:
0

Re: For more information, please visit this product's webpage

have you edited the template or the language file?

can you give a link to your site... (helps to see the problem)

are you typing the url correctly into the proucts url?

15 Sep 2008, 3:34 PM
#3
convergence avatar

convergence

New Zenner

Join Date:
Nov 2006
Location:
Brighton, CO
Posts:
90
Plugin Contributions:
0

Re: For more information, please visit this product's webpage

Hi Steve,

Thank you for replying.

The problem I am having is writing the code for the image's URL.

What I am after is the URL for this to be attached to an image (instead of using the "For more information..." text). In other words, replace the string of code below with an image.

<p id="productInfoLink" class="productGeneral centeredContent"><?php echo sprintf(TEXT_MORE_INFORMATION, zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_url), 'NONSSL', true, false)); ?></p>

Code is located: /includes/templates/template_default/templates/tpl_product_info_display.php

Thank you again for replying and for your assistance.

15 Sep 2008, 4:51 PM
#4
s_t_e_v_e avatar

s_t_e_v_e

Zen Follower

Join Date:
Aug 2006
Location:
UK
Posts:
430
Plugin Contributions:
0

Re: For more information, please visit this product's webpage

Replace;

<p id="productInfoLink" class="productGeneral centeredContent"><?php echo sprintf(TEXT_MORE_INFORMATION, zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_url), 'NONSSL', true, false)); ?></p>

With;

<p id="productInfoLink" class="productGeneral centeredContent">
<a href="<?php zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_url), 'NONSSL', true, false)); ?>"><img src="<?php echo DIR_WS_TEMPLATE_IMAGES; ?>moreinforimage.jpg"  border="0" alt="More Information" /></a></p>

you will have to change the image name moreinforimage.jpg you wish to use for you more information image, and put that image into your;
includes - templates - yourtemplate - images folder

15 Sep 2008, 6:41 PM
#5
convergence avatar

convergence

New Zenner

Join Date:
Nov 2006
Location:
Brighton, CO
Posts:
90
Plugin Contributions:
0

Re: For more information, please visit this product's webpage

s_t_e_v_e:

Replace;

<p id="productInfoLink" class="productGeneral centeredContent"><?php echo sprintf(TEXT_MORE_INFORMATION, zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_url), 'NONSSL', true, false)); ?></p> ``` > > With; > > ``` <p id="productInfoLink" class="productGeneral centeredContent"> <a href="<?php zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_url), 'NONSSL', true, false)); ?>"><img src="<?php echo DIR_WS_TEMPLATE_IMAGES; ?>moreinforimage.jpg" border="0" alt="More Information" /></a></p> ``` > > you will have to change the image name moreinforimage.jpg you wish to use for you more information image, and put that image into your; > includes - templates - yourtemplate - images folder

Steve,

Thank you again for your assistance.

Unfortunately I am sad to report it did not work :( - the area where the product was listed went blank.

Any other suggestions.

Thank you again for your help.

15 Sep 2008, 6:48 PM
#6
s_t_e_v_e avatar

s_t_e_v_e

Zen Follower

Join Date:
Aug 2006
Location:
UK
Posts:
430
Plugin Contributions:
0

Re: For more information, please visit this product's webpage

hmmmmph... having another look...

15 Sep 2008, 7:02 PM
#7
convergence avatar

convergence

New Zenner

Join Date:
Nov 2006
Location:
Brighton, CO
Posts:
90
Plugin Contributions:
0

Re: For more information, please visit this product's webpage

s_t_e_v_e:

hmmmmph... having another look...

LOL - Thanks Steve!

15 Sep 2008, 7:02 PM
#8
s_t_e_v_e avatar

s_t_e_v_e

Zen Follower

Join Date:
Aug 2006
Location:
UK
Posts:
430
Plugin Contributions:
0

Re: For more information, please visit this product's webpage

DOHHHH i can't count brackets.....
try this;

<p id="productInfoLink" class="productGeneral centeredContent"> <a href="<?php zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_url), 'NONSSL', true, false); ?>"><img src="<?php echo DIR_WS_TEMPLATE_IMAGES; ?>moreinforimage.jpg" border="0" alt="More Information" /></a></p>
15 Sep 2008, 7:13 PM
#9
s_t_e_v_e avatar

s_t_e_v_e

Zen Follower

Join Date:
Aug 2006
Location:
UK
Posts:
430
Plugin Contributions:
0

Re: For more information, please visit this product's webpage

ignore that one... i tested the code below;

<p id="productInfoLink" class="productGeneral centeredContent"> <a href="<?php echo zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_url), 'NONSSL', true, false); ?>"><img src="<?php echo DIR_WS_TEMPLATE_IMAGES; ?>moreinforimage.jpg" border="0" alt="More Information" /></a></p>
15 Sep 2008, 7:52 PM
#10
convergence avatar

convergence

New Zenner

Join Date:
Nov 2006
Location:
Brighton, CO
Posts:
90
Plugin Contributions:
0

Re: For more information, please visit this product's webpage

s_t_e_v_e:

ignore that one... i tested the code below;

<p id="productInfoLink" class="productGeneral centeredContent"> <a href="<?php echo zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_url), 'NONSSL', true, false); ?>"><img src="<?php echo DIR_WS_TEMPLATE_IMAGES; ?>moreinforimage.jpg" border="0" alt="More Information" /></a></p>

Steve,

You are the man!:clap:

Thank you so much for your relentless help!

23 Sep 2008, 1:15 PM
#11
savewizard avatar

savewizard

New Zenner

Join Date:
Apr 2008
Posts:
10
Plugin Contributions:
0

Re: For more information, please visit this product's webpage

For some reason For more information, please visit this product's webpage is not showing up on my listing, is there somewhere to turn this feature on or off? I added a link to one of my listings and it didn't show up, can't find it as an option otherwise in admin

23 Sep 2008, 1:23 PM
#12
convergence avatar

convergence

New Zenner

Join Date:
Nov 2006
Location:
Brighton, CO
Posts:
90
Plugin Contributions:
0

Re: For more information, please visit this product's webpage

savewizard:

For some reason For more information, please visit this product's webpage is not showing up on my listing, is there somewhere to turn this feature on or off? I added a link to one of my listings and it didn't show up, can't find it as an option otherwise in admin

Admin > Catalog > Product Types > Product - General > Edit Layout > Show Product URL > 1 (True).

There you go!

23 Sep 2008, 1:24 PM
#13
savewizard avatar

savewizard

New Zenner

Join Date:
Apr 2008
Posts:
10
Plugin Contributions:
0

Re: For more information, please visit this product's webpage

Thanks I was just replying to say nevermind I found it, in my case it was on, but I had a duplicate listing and I was looking at the listing that didn't have a URL added DUH, but your other solution in this thread is actually something I am also looking to do so I win! maybe one day I'll know this stuff good enough to actually help others