Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2006
    Location
    Oregon
    Posts
    9
    Plugin Contributions
    0

    Default PHP- category/product description

    ref; zen-cart v1.3.6

    How can I use PHP to load an image by adding PHP code in the product desctriptiuon text box.
    example;

    <?php
    $image_name = "t.gif";

    include("/includes/CUSTOM/display_image.php");

    //------------------------
    display_image.php file

    <img src= <?php echo $image_name ?> width="100" height="95">


    ?> // end of code

    Appreciate any Idea's ...
    Thank U...
    May U have many more Happy Returns...
    Doug

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: PHP- category/product description

    I do not think that I am mistaken, but the product description box will not parse php code. It will parse html code and if you use the html editor there is in the tool bar, an image insertion tool, or in text mode you can either type the code or paste it.

 

 

Similar Threads

  1. Category Description in tpl_main_page.php
    By philip937 in forum General Questions
    Replies: 2
    Last Post: 15 Jan 2013, 09:05 PM
  2. Can I put a PHP Script in category description?
    By byoriginaldesign in forum General Questions
    Replies: 11
    Last Post: 27 Aug 2010, 07:22 PM
  3. Add a product description deletes category description
    By dartmoorcf in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 15 Feb 2010, 08:36 PM
  4. including jscript*.php file in category description
    By shocker in forum General Questions
    Replies: 14
    Last Post: 24 Sep 2009, 07:36 PM
  5. Using PHP "include" in category & product description
    By g6enterprises in forum General Questions
    Replies: 4
    Last Post: 30 Jan 2009, 09:14 PM

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