Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2006
    Location
    Atlanta, GA
    Posts
    112
    Plugin Contributions
    0

    Default Debug: USPS.php PHP Warning: Invalid argument supplied for foreach()

    I'm getting this debug error:
    PHP Warning: Invalid argument supplied for foreach()
    and it points to this in usps.php

    PHP Code:
    //Get value of package - used for insurance and cod.
        
    $value=0;
        foreach (
    $order->products as $p) {
          
    $value+=$p['final_price']*$p['qty'];
        }
        
    $this->_setValue($value); 
    Any ideas?
    http://www.divinelighting.com -- Super Orders 3.0 -- Ultimate SEO -- Quantity Discounts -- SitemapXML -- Image Handler -- Shipworks

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,726
    Plugin Contributions
    6

    Default Re: Debug: USPS.php PHP Warning: Invalid argument supplied for foreach()

    Is this a customized usps.php file?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #3
    Join Date
    Jun 2006
    Location
    Atlanta, GA
    Posts
    112
    Plugin Contributions
    0

    Default Re: Debug: USPS.php PHP Warning: Invalid argument supplied for foreach()

    It is the marco file from May 10. Just realized there is a support thread for that and a newer version from May26
    http://www.zen-cart.com/index.php?ma...oducts_id=1914

    I updated usps.php and we'll see if the problem is fixed.
    http://www.divinelighting.com -- Super Orders 3.0 -- Ultimate SEO -- Quantity Discounts -- SitemapXML -- Image Handler -- Shipworks

 

 

Similar Threads

  1. Replies: 1
    Last Post: 13 Mar 2009, 08:35 PM
  2. Help receiving: Warning: Invalid argument supplied for foreach()
    By kateoeight in forum General Questions
    Replies: 9
    Last Post: 1 May 2007, 09:28 PM
  3. Warning: Invalid argument supplied
    By godspeed27 in forum General Questions
    Replies: 24
    Last Post: 4 Feb 2007, 04:55 AM
  4. Warning: Invalid argument supplied for foreach
    By harlyman in forum General Questions
    Replies: 9
    Last Post: 23 Aug 2006, 11:39 AM
  5. Replies: 7
    Last Post: 31 Jul 2006, 04:03 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
  •