Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2006
    Location
    Atlanta, GA
    Posts
    118
    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
    69,402
    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.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jun 2006
    Location
    Atlanta, GA
    Posts
    118
    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: 3 Jul 2013, 04:00 AM
  2. Replies: 7
    Last Post: 4 Jan 2013, 09:21 PM
  3. Replies: 5
    Last Post: 29 Jun 2011, 04:16 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR