Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2007
    Location
    Ontario, Canada
    Posts
    234
    Plugin Contributions
    0

    Default Fatal Error on Shipping Estimator

    Well I have a custom shipping option installed, which as far as I knew worked great, until today, when a customer tried the shipping estimator and received a fatal error. Unfortunately, I can't find the guy who wrote it, so I'm really hoping someone can perhaps see an obvious error.

    Here is a link to a product just so you can try:
    http://transportation.actionforms.ca...oducts_id=2002

    The error received is:
    Fatal error: Cannot use object of type shoppingCart as array in /home/actforms/public_html/cart/includes/modules/shipping/canpar.php on line 187

    And this is the snip of code that is in that area:
    Code:
    $itemCount = 0;
            
            $totalWeight = 0;
    
            if (count($order->products) > 0) {
                foreach ($order->products as $pkey=>$pval) {
                    $totalWeight = $totalWeight + ($pval['weight'] * $pval['qty']);
                    $itemCount++;
                }
            } else {
                if (array_key_exists("cart", $_SESSION) && count($_SESSION['cart']['contents']) > 1) {
                    // this might be the shipping estimator
                    foreach ($_SESSION['cart']['contents'] as $pkey=>$pval) {
                        $totalWeight = $totalWeight + ($pval['weight'] * $pval['qty']);
                        $itemCount++;
                    }
                } else {
    //                return $this->error("You have no items in your cart.");
                    return $this->error(MODULE_SHIPPING_CANPAR_TEXT_LOGIN);
                }
            }
    It works just fine to actually place an order, just a problem with the estimator. Any help would be appreciated!!!
    Thanks, Colleen
    www.af-company.com
    To err is human, but to really foul things up requires a computer. Farmers' Almanac, 1978

  2. #2
    Join Date
    Feb 2007
    Location
    Ontario, Canada
    Posts
    234
    Plugin Contributions
    0

    Default Re: Fatal Error on Shipping Estimator

    Anyone?
    Thanks, Colleen
    www.af-company.com
    To err is human, but to really foul things up requires a computer. Farmers' Almanac, 1978

  3. #3
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default Re: Fatal Error on Shipping Estimator

    Margecc could you please email or PM me. I am working with Canpar to build a new shipping module for 1.55f + right now - using their new connection requirements - and I have experienced some of these problems with the old/publicly available Canpar modules.
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base8 - Obsidian - This, is what's new.

 

 

Similar Threads

  1. v154 error Shipping "Estimator
    By soxophoneplayer in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 28 Jul 2015, 07:12 PM
  2. v151 Shipping Estimator Sidebox PHP Fatal error: Cannot redeclare class order on 1.5.1
    By explorer1979 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 10 Apr 2014, 08:29 AM
  3. Shipping Estimator - Need error if not shipping in that region
    By design4dotcom in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 1 Aug 2009, 12:26 AM
  4. Shipping Estimator error
    By capeinfo in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 20 Dec 2008, 03:58 PM
  5. Error occurred in Shipping Estimator
    By dealbyethan.com in forum General Questions
    Replies: 5
    Last Post: 15 Apr 2007, 04:54 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