Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Debuggin - Cant see the output of echo

    Hi there
    I was making some changes to the order confirmation e-mail.
    So, I started editing
    includes/classes/order.php

    I have these statements inside the function send_order_email

    echo "START";
    echo htmlspecialchars($this->products_ordered_html);
    echo "END";

    But after I complete the test purchase, I cant see this output on any of the pages
    Am I doing something wrong?
    I am sure this is getting called because when I make errros, the last page of order confirmation doesn't proceed
    Please help!
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Debuggin - Cant see the output of echo

    The page does a redirect when it's finished processing, and the redirect wipes the debug output.

    Add another line to your code which will halt execution and display your data before redirecting:

    Code:
    echo 'blahblahblah';
    echo 'more stuff here';
    echo $varContentsOfSomeVariables;
    die('Execution stopped to display messages.');
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: Debuggin - Cant see the output of echo

    Thanks DrByte!
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

 

 

Similar Threads

  1. Ouch..I cant see the words in my ADMIN screen
    By glittergirljo in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 8 Jul 2010, 12:16 AM
  2. I cant see my Page 2 in the sidebox
    By louiepelon in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Mar 2010, 01:57 AM
  3. Cant see the buttons
    By markus75 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Jan 2009, 04:25 PM
  4. I cant see easy ppopulate on the cart
    By elektroniques in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 17 Dec 2008, 09:19 AM
  5. Another Paypal IPN problem-cant see the orders in admin
    By dfoxengr in forum PayPal Website Payments Pro support
    Replies: 18
    Last Post: 7 Mar 2008, 06:05 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