Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Sep 2006
    Location
    United Kingdom
    Posts
    195
    Plugin Contributions
    0

    Default insert php script into item descritption for domain name registration ???

    i wanting to know if it is possible to insert and integrate a php file into the item description
    the php is for a who is script for domain name registration
    you can see a working version here : http://www.1st-class-webdesigns.co.uk/whois/whois.php

    what i want rather taking the customer away from my shop is to just add this script into the description so they can check if the domain they want is avalaible

    anyone got any idea's?

    i have the following html but when i click the submit button the cart picks it up and adds the product to the cart instead of the htlm script running the whois result
    <form name='whois_search' method='POST' action='whois/whois.php'>
    <input type='hidden' name='page' value='WhoisSearch'>
    <input name='domain' type='text' value='desired domain name' size="30" maxlength="63">
    <select name="ext0">
    <option value="ru" selected>.ru</option>
    <option value="com">.com</option>
    <option value="net">.net</option>
    <option value="org">.org</option>
    <option value="us">.us</option>
    <option value="biz">.biz</option>
    <option value="info">.info</option>
    <option value="tv">.tv</option>
    <option value="ws">.ws</option>
    <option value="cc">.cc</option>
    <option value="name">.name</option>
    <option value="in">.in</option>
    <option value="cn">.cn</option>
    <option value="be">.be</option>
    <option value="it">.it</option>
    <option value="net.ru">.net.ru</option>
    <option value="org.ru">.org.ru</option>
    <option value="pp.ru">.pp.ru</option>
    <option value="msk.ru">.msk.ru</option>
    <option value="spb.ru">.spb.ru</option>
    <option value="su">.su</option>
    <option value="ру">.ру</option>
    <option value="ком">.ком</option>
    <option value="нет">.нет</option>
    <option value="орг">.орг</option>
    </select>
    <input type='submit' id='Submit' value='submit'>
    </form>

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

    Default Re: insert php script into item descritption for domain name registration ???

    The description area is html only - it will not parse php
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Sep 2006
    Location
    United Kingdom
    Posts
    195
    Plugin Contributions
    0

    Default Re: insert php script into item descritption for domain name registration ???

    this goes out to a php script and i have seen it working on another site(wish i still had the url)

    but if this wont work any idea's how i can incorporate the php script as part of the product description?

  4. #4
    Join Date
    Sep 2006
    Location
    United Kingdom
    Posts
    195
    Plugin Contributions
    0

    Default Re: insert php script into item descritption for domain name registration ???

    Quote Originally Posted by kobra View Post
    The description area is html only - it will not parse php
    sorry misread your reply


    how can in incorporate a whois lookup in a product without taking the customer away from main shopping site?

    i don't mind having it in a side box or something if necessary though i would prefer it on the product description

  5. #5
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,748
    Plugin Contributions
    0

    Default Re: insert php script into item descritption for domain name registration ???

    Hard code it into the tpl_product_info_display.php and wrap that code with code to check the product your on to see if it should display
    Mike
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  6. #6
    Join Date
    Sep 2006
    Location
    United Kingdom
    Posts
    195
    Plugin Contributions
    0

    Default Re: insert php script into item descritption for domain name registration ???

    wont that add it to all products though?

  7. #7
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,748
    Plugin Contributions
    0

    Default Re: insert php script into item descritption for domain name registration ???

    thats why I said to wrap the form code in conditional code that checks what product is being displayed to determine if it should display the form or skip it and just move on to the description.....
    Mike
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  8. #8
    Join Date
    Sep 2006
    Location
    United Kingdom
    Posts
    195
    Plugin Contributions
    0

    Default Re: insert php script into item descritption for domain name registration ???

    ok i understand

    except im not good at this sort of thing if a post the main form code could you show me an example

    or would it be possible to just add an include for the php script file?

    script file name is /whois/whois.php

    you can find it working on my site @ http://www.1st-class-webdesigns.co.uk/whois/whois.php

  9. #9
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,748
    Plugin Contributions
    0

    Default Re: insert php script into item descritption for domain name registration ???

    hey another thought wrap your form code in a <iframe>....your code....</iframe> in the description
    Mike
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  10. #10
    Join Date
    Sep 2006
    Location
    United Kingdom
    Posts
    195
    Plugin Contributions
    0

    Default Re: insert php script into item descritption for domain name registration ???

    Quote Originally Posted by barco57 View Post
    hey another thought wrap your form code in a <iframe>....your code....</iframe> in the description
    the html code or the php script?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v153 PHP Fatal error: Duplicate entry for key insert into sessions
    By carlwhat in forum General Questions
    Replies: 2
    Last Post: 6 Jan 2015, 02:32 AM
  2. v139h Altering Orders.php to insert (sub)category into invoice line item details
    By Centurius in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 12 Dec 2012, 04:30 PM
  3. Replies: 1
    Last Post: 19 Feb 2009, 01:08 AM
  4. Domain Name Registration
    By delia in forum All Other Contributions/Addons
    Replies: 13
    Last Post: 9 Sep 2008, 10:30 PM

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