Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Quantity Units errors - in shopping cart

    i'm getting this shopping cart error just kinda curious what it is, as well it won't let me check out

    Please update your order. The item: Apeman Training Gloves ... Quantity Units errors -
    You ordered a total of: 1
    i have have plenty of stock for that attribute so i'm not sure what is going on.

    i've installed the latest version of stock by attributes on a clean cart
    www.gorillagear.ca = zencart v1.3.9h with 40+ mods

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

    Default Re: Quantity Units errors - in shopping cart

    also getting this errer in the debugger
    [28-Jun-2010 08:13:15] PHP Warning: Division by zero in /store/includes/functions/functions_general.php on line 1329
    [28-Jun-2010 08:13:15] PHP Warning: Division by zero in store/includes/functions/functions_general.php on line 1329s
    which is this line of code
    $zc_round = ($x*1000)/($y*1000);
    which is not a file i've touched so far in this but i wonder if something else i install is effecting this piece of code or em i looking in the totally wrong place?
    Last edited by MB1; 28 Jun 2010 at 08:44 AM.
    www.gorillagear.ca = zencart v1.3.9h with 40+ mods

  3. #3
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: Quantity Units errors - in shopping cart

    i cornered it down to this my last install of group pricing per item, i assumed everything was working but obviously not here is a link to my attempt at merging 1.39d with group pricing per item, i wonder what i did wrong

    http://www.2shared.com/file/BHl-BTXw...r_item_1-.html
    www.gorillagear.ca = zencart v1.3.9h with 40+ mods

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

    Default Re: Quantity Units errors - in shopping cart

    ok i found the file with that is the issue but i don't know what to do with it

    store/includes/classes/shopping_cart.php

    i'm just going back to the original code and test each line i modify till i track the issue down to the single line of code
    www.gorillagear.ca = zencart v1.3.9h with 40+ mods

  5. #5
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: Quantity Units errors - in shopping cart

    here is the piece of code around line 1135 that is screwing everything up

    Code:
        $products_array = array();
        reset($this->contents);
        while (list($products_id, ) = each($this->contents)) {
          $products_query = "select p.products_id, p.master_categories_id, p.products_status, pd.products_name, p.products_model, p.products_image,
                                      p.products_price, p.products_weight, p.products_tax_class_id,
    
                                      p.products_group_a_price, p.products_group_b_price,
                                      p.products_group_c_price, p.products_group_d_price,
    
                                      p.product_is_free, p.products_priced_by_attribute,
                                      p.products_discount_type, p.products_discount_type_from
                               from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd
                               where p.products_id = '" . (int)$products_id . "'
                               and pd.products_id = p.products_id
                               and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'";
    replaces this original code

    Code:
     $products_array = array();
        reset($this->contents);
        while (list($products_id, ) = each($this->contents)) {
          $products_query = "select p.products_id, p.master_categories_id, p.products_status, pd.products_name, p.products_model, p.products_image,
                                      p.products_price, p.products_weight, p.products_tax_class_id,
                                      p.products_quantity_order_min, p.products_quantity_order_units,
                                      p.product_is_free, p.products_priced_by_attribute,
                                      p.products_discount_type, p.products_discount_type_from
                               from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd
                               where p.products_id = '" . (int)$products_id . "'
                               and pd.products_id = p.products_id
                               and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'";
    any ideas? on what to do with this
    www.gorillagear.ca = zencart v1.3.9h with 40+ mods

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

    Default Re: Quantity Units errors - in shopping cart

    ok i just merged the 2 instead of replace one for the other and it seems like everything is peachy now


    Code:
    
        $products_array = array();
        reset($this->contents);
        while (list($products_id, ) = each($this->contents)) {
          $products_query = "select p.products_id, p.master_categories_id, p.products_status, pd.products_name, p.products_model, p.products_image,
                                      p.products_price, p.products_weight, p.products_tax_class_id,
                                       p.products_quantity_order_min, p.products_quantity_order_units,
                                      p.products_group_a_price, p.products_group_b_price,
                                      p.products_group_c_price, p.products_group_d_price,
                                      p.product_is_free, p.products_priced_by_attribute,
                                      p.products_discount_type, p.products_discount_type_from
                               from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd
                               where p.products_id = '" . (int)$products_id . "'
                               and pd.products_id = p.products_id
                               and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'";
    www.gorillagear.ca = zencart v1.3.9h with 40+ mods

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

    Default Re: Quantity Units errors - in shopping cart

    Before changing code, could you make sure your Products are not setup with a Product Unit of 0 it should be 1 as you cannot but 0 ...
    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!

  8. #8
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: Quantity Units errors - in shopping cart

    sorry product unit? all the products have stock?
    www.gorillagear.ca = zencart v1.3.9h with 40+ mods

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

    Default Re: Quantity Units errors - in shopping cart

    Edit your Products ...

    Check the settings, the defaults are:
    Product Qty Minimum: 1
    Product Qty Maximum: 0
    Product Qty Units: 1
    If you have the Product Quantity Units set to 0 you will get errors ...
    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!

  10. #10
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: Quantity Units errors - in shopping cart

    would this be done through the admin or through the code?
    www.gorillagear.ca = zencart v1.3.9h with 40+ mods

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 Quantity Units errors.
    By tsubasa2013 in forum Basic Configuration
    Replies: 9
    Last Post: 19 Jul 2012, 05:54 AM
  2. Ver 1.3.9h Quantity Units Errors
    By lindenboy in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 7 Feb 2011, 05:51 PM
  3. ... Quantity Units errors - please update your order
    By w2e in forum General Questions
    Replies: 2
    Last Post: 26 Sep 2008, 12:01 AM
  4. Quantity Units errors
    By tobstar in forum Basic Configuration
    Replies: 3
    Last Post: 19 Sep 2007, 04:21 PM
  5. Quantity Units errors -message. How do I fix it?
    By ralphcol in forum General Questions
    Replies: 5
    Last Post: 2 Aug 2006, 05:01 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