+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 11 to 17 of 17

Thread: How To Allow Sneder to Print Results

  1. #11
    Join Date
    Jan 2008
    Location
    Vancouver, WA
    Posts
    18

    Default Re: How To Allow Sneder to Print Results

    Here is the error message that gets sent to the email:
    The following error occurred in FormMail :
    Failed to open template
    "http://cleangreenwa.com/template//pr...NT=Mozilla%2F4
    .0+%28compatible%3B+MSIE+7.0%3B+Windows+NT+5.1%3B+.NET+CLR+2.0.50727%29&PHPS
    ESSID=a05b8330ef5cf5adcd6b8b860875c299" : failed to open stream: no suitable
    wrapper could be found

    Where is the // coming from between the template and printtemplate.html? I double checked the php file and there is no // there. Is this the reason the template fails to open?

  2. #12
    Join Date
    Feb 2008
    Posts
    149

    Default Re: How To Allow Sneder to Print Results

    Hi Dotty,

    Search the forum for no suitable wrapper and you will see many posts. First read the ones from the "Formmail Subscription Support" forum. Those are the ones Russell has answered.

    Here's one for starters:
    http://www.tectite.com/vbforums/show...itable+wrapper
    James Ivey
    Interested in calligraphy?
    www.iampeth.com

  3. #13
    Join Date
    Jan 2008
    Location
    Vancouver, WA
    Posts
    18

    Default Re: How To Allow Sneder to Print Results

    Thanks for your help. All is fixed. I used the testalert to see what the directory path was then entered it into the TEMPLATEDIR and all works now. I did not realize the hosting company had a directory path that was not obvious.

  4. #14
    Join Date
    Feb 2008
    Posts
    149

    Default Re: How To Allow Sneder to Print Results

    Good deal. Glad you're up and running.
    James Ivey
    Interested in calligraphy?
    www.iampeth.com

  5. #15
    Join Date
    Aug 2008
    Posts
    2

    Default Re: How To Allow Sneder to Print Results

    I was able to successfully install the template and get it working to show the results, but I had one question I'm hoping someone can help me with.

    I want to only show the results of products that were ordered, not show a bunch of products with 0 next to them.

    How do a write either javascript or PHP to the effect of...

    if product_qty != 0 print product_qty

    ?

    Thanks.

  6. #16
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: How To Allow Sneder to Print Results

    Hi,

    Quote Originally Posted by scottmaui View Post
    I was able to successfully install the template and get it working to show the results, but I had one question I'm hoping someone can help me with.

    I want to only show the results of products that were ordered, not show a bunch of products with 0 next to them.

    How do a write either javascript or PHP to the effect of...

    if product_qty != 0 print product_qty
    This can be done with FormMail's Advanced Templates feature, which is available with the Computation Module, but it's not a free product (source code license is currently US$245).

    Here's an example of what it would look like:
    HTML Code:
    <if $product_qty>
    Quantity order: $product_qty
    </if>
    A template cannot use PHP in this way because the template values are inserted after the PHP has been executed on the server.

    You might be able to figure out some JavaScript to do this, but it won't be as trivial as an "if" statement and it will only work for users that have JavaScript enabled.

    Here's a operational example:
    http://www.tectite.com/samples/orderform.htm
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  7. #17
    Join Date
    Aug 2008
    Posts
    2

    Default Re: How To Allow Sneder to Print Results

    Thanks for your reply. I did manage to get it to work with Javascript using this code...

    <script language="Javascript" type="text/javascript"><!--
    if ($Product_Qty > "0") {
    document.write ('<tr><td>Special Bouquet<\/td><td>$Product_Qty<\/td><td>$59.95<\/td><td>$$Special_Total<\/td><\/tr>');
    }
    // -->
    </script>

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Sending form results in an HTML email
    By russellr in forum HOWTO Guides and Tips
    Replies: 26
    Last Post: 12-Jan-2006, 09:31 PM
  2. Sending custom fields on form results
    By pablo1999 in forum FormMail Subscription Support
    Replies: 3
    Last Post: 03-Mar-2005, 07:28 PM
  3. smae setup different results
    By tray in forum FormMail Subscription Support
    Replies: 7
    Last Post: 17-Aug-2004, 09:24 PM
  4. Show form results to user
    By cottonslurpy in forum FormMail Subscription Support
    Replies: 1
    Last Post: 02-Aug-2004, 05:59 AM
  5. not so intersting results
    By expisp in forum FormMail Subscription Support
    Replies: 4
    Last Post: 10-Feb-2004, 08:15 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