Thread: operand types

Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Posts
    14
    Plugin Contributions
    0

    Default operand types

    Hi,

    I had someone send me this error -

    Fatal error: Unsupported operand types in
    /home/martianc/public_html/shop/includes/classes/shopping_cart.php on
    line 763

    They are using a safari browser, it doesn't seem to happen in other browsers. I am using version 1.2, it has been heavily customizable so upgrading isn't really an easy option. Can anyone shed any light here? Thanks a million.

  2. #2
    Join Date
    Jun 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: operand types

    Sorry, the line above shows:

    $discount_type_id = '';

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

    Default Re: operand types

    Can you post the file shopping_cart.php?
    Thanks

  4. #4
    Join Date
    Jun 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: operand types

    Actually, I was looking at the wrong shopping cart page. The correct one has the Dual Pricing mod making line 763:

    $attributes_price += $attribute_price;

    changing this to


    $attributes_price == $attribute_price;


    seems to fix the problem but I don't know if it will mess with anything else?

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: operand types

    Just as a test, make a file: test.php
    PHP Code:
    <?php
      $calculation 
    27;
      
    $calculation2 27;

      
    $calculation == $calculation;
      
    $calculation2 += $calculation2;

      echo 
    $calculation ' vs ' $calculation2;

    ?>
    The results will be: 27 vs 54

    There is a difference ...
    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!]
    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!

  6. #6
    Join Date
    Jun 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: operand types

    I see, so do you have any idea why this wouldn't work with += ?

 

 

Similar Threads

  1. v139h Express Checkout Unsupported operand in functions_taxes.php
    By Mad Maxx in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 10 Apr 2014, 10:49 PM
  2. 3 types of shipping
    By jennygrl99 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 13 Feb 2012, 04:03 AM
  3. Email Fatal Error: Unsupported operand types
    By Webskipper in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 20 Apr 2008, 04:59 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