Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to Add Image to product_info.php?

How to Add Image to product_info.php?

Views: 620

Results 1 to 3 of 3
16 Jul 2011, 11:22 PM
#1
sparrowce avatar

sparrowce

Zen Follower

Join Date:
Feb 2011
Posts:
207
Plugin Contributions:
0

How to Add Image to product_info.php?

Am trying to add an image to the product_info.php where the 'products url' link shows up in the product detail listing

Have tried several variations but nothing is working to make the image show up. Here is the latest syntax I've tried, but the image is still not showing up, I just get a blank space with the alt and title and link, but no .png. What am I doing wrong? Thank you!

define('TEXT_MORE_INFORMATION', 'Click here for more information <a href="%s" target="_self" src = "includes/languages/english/clickhere.png" alt="CLICK HERE" title="CLICK HERE!" /a>.');

17 Jul 2011, 3:05 AM
#2
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: How to Add Image to product_info.php?

looks like you are calling for your image in your language/english folder. Which of course will not work.

Instead put your button IN YOUR TEMPLATE/images

define('MORE_INFO_TEXT', 'Click here for more information<img src="' . HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_TEMPLATE . 'images/name of your image">');

17 Jul 2011, 10:27 PM
#3
sparrowce avatar

sparrowce

Zen Follower

Join Date:
Feb 2011
Posts:
207
Plugin Contributions:
0

Re: How to Add Image to product_info.php?

Thank you, that worked like a charm, and to add the product link, I modified it to this:

define('TEXT_MORE_INFORMATION', 'Click here for more information<a href="%s" target="_self"><img src="' . HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_TEMPLATE . 'images/clickhere.png">');

Appreciate the help, thanks.