Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2009
    Posts
    7
    Plugin Contributions
    0

    Default want to add php code in define_main_page.php

    Hi All,

    Can any one suggest how to add php code in
    define_main_page.php file?
    I want to use upload class API to facilitate users to upload their file.
    I tried doing that using Admin->Tools->Define Pages Editor
    and used HTMLarea to add php code with <?php ..?> tag...but that
    does not work it shows the entire code on the homepage instead
    of executing it

    Plz Help!
    Thanks
    Parin

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: want to add php code in define_main_page.php

    Is there a specific reason why you want them to have the ability to upload a file on the main page?

    This is a built-in function for product attributes - which is generally the only time you would want users to post a file.
    20 years a Zencart User

 

 

Similar Threads

  1. v139h How to add code to category_row.php?
    By wirefram in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Aug 2012, 09:04 AM
  2. Replies: 6
    Last Post: 11 May 2009, 03:35 AM
  3. Want to add html to tpl_header.php
    By cgardner in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 17 Feb 2008, 02:38 AM
  4. Want to put php code in sidebox
    By bgroup99 in forum Basic Configuration
    Replies: 0
    Last Post: 30 Nov 2007, 08:05 PM
  5. HELP! php code to add to cart
    By utah_aviator in forum General Questions
    Replies: 3
    Last Post: 7 Dec 2006, 12:33 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR