Results 1 to 8 of 8
  1. #1
    Join Date
    Aug 2011
    Posts
    10
    Plugin Contributions
    0

    Default Using echo in classes shopping_cart.php not displaying

    Version 1.3.9h.

    a simple:

    echo 'I got here';

    is not happening when I'm 99.99% certain I got there.

    Is there a trick to getting echo to work?

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

    Default Re: Using echo in classes shopping_cart.php not displaying

    To my knowledge a classes file is not used for display you might look at the tpl file for it

    tpl_shopping_cart_default.php

  3. #3
    Join Date
    Aug 2011
    Posts
    10
    Plugin Contributions
    0

    Default Re: Using echo in classes shopping_cart.php not displaying

    Thanks Kobra.

    So how does one "debug/trace" activity in a class.

    I'm modifying the shopping_cart.php class and have 90% working but the last 10% would be better debugged if I could see displays/output at certain points including contents of data elements.

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

    Default Re: Using echo in classes shopping_cart.php not displaying

    So how does one "debug/trace" activity in a class.
    I am bad at php...

    Search here for DrByte and strict error reporting - - as I recall

  5. #5
    Join Date
    Aug 2011
    Posts
    10
    Plugin Contributions
    0

    Default Re: Using echo in classes shopping_cart.php not displaying

    Thx.

    I actually installed the user supplied trace facility. It's working for me.

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: Using echo in classes shopping_cart.php not displaying

    Quote Originally Posted by edkocol View Post
    Thx.

    I actually installed the user supplied trace facility. It's working for me.
    I don't know what the "user supplied trace facility" is, but I've submitted an add-on that does this ...

  7. #7
    Join Date
    Aug 2011
    Posts
    10
    Plugin Contributions
    0

    Default Re: Using echo in classes shopping_cart.php not displaying

    Sorry, I used the wrong words. That is add-on I am using.

    Thanks.

  8. #8
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: Using echo in classes shopping_cart.php not displaying

    I've also found the Superglobals Plus add-on to be helpful in the debug process. Just declare variables you're interested in as either class members or 'global' and they'll be displayed at the end of the page.

 

 

Similar Threads

  1. v154 Docs index, includes/classes/shopping_cart.php, and CHANGES-714
    By llynix in forum Upgrading to 1.5.x
    Replies: 5
    Last Post: 12 Jan 2015, 08:32 PM
  2. Displaying php errors in shopping_cart.php
    By jsmuck02 in forum General Questions
    Replies: 1
    Last Post: 25 Apr 2008, 07:53 AM
  3. [Done 2.0.0] /includes/classes/shopping_cart.php
    By BlessIsaacola in forum Bug Reports
    Replies: 9
    Last Post: 3 Sep 2007, 08:11 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