Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2011
    Posts
    207
    Plugin Contributions
    0

    Default 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>.');

  2. #2
    Join Date
    Sep 2006
    Posts
    542
    Plugin Contributions
    0

    Default 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">');

  3. #3
    Join Date
    Feb 2011
    Posts
    207
    Plugin Contributions
    0

    Default 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.

 

 

Similar Threads

  1. How to Remove Categories sidebox From product_info.php page?
    By none in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 27 Jul 2011, 07:31 AM
  2. Custom html_header.php for product_info page - How?
    By profitshock in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Jun 2010, 09:58 PM
  3. How to tell category_row.php not to add image
    By Joseph M in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 27 Apr 2008, 08:16 PM
  4. I can't just add new fields and refer to them in product_info.php can I?
    By Ben-B in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 24 Apr 2008, 11:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg