Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2008
    Location
    Bordeaux, France
    Posts
    69
    Plugin Contributions
    6

    Default [Done v2.0] Unable to find the method 'count_contents_qty'

    Searched but have not found class method 'count_contents_qty'
    used in function zen_get_products_quantity_discount_mixed()
    in file ZENCART-1.3.9f-08142010\includes\functions\functions_prices.php
    -- And my editor has a global search function in a project --

    Seems relate to attributes mixed (with what ??)
    define('TEXT_PRODUCTS_MIXED','Product Qty Min/Unit Mix:');
    I dont understand the use of it.
    Last edited by gob33; 11 Sep 2010 at 05:14 PM.

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

    Default Re: Unable to find the method 'count_contents_qty'

    For the Quantity of a specific Product with a prid:
    Code:
      /**
       * Method to get the quantity of an item in the cart
       *
       * @param mixed product ID of item to check
       * @return decimal the quantity of the item
       */
      function get_quantity($products_id) {
    For a Product without regard to the prid, when the Mixed is set to YES on the Product:
    Code:
      /**
       * Method to calculate item quantity, bounded the mixed/min units settings
       *
       * @param boolean product id of item to check
       * @return deciaml
       */
      function in_cart_mixed_discount_quantity($products_id) {
    For the total quantity of items in the cart:
    Code:
      /**
       * Method to count total number of items in cart
       *
       * Note this is not just the number of distinct items in the cart,
       * but the number of items adjusted for the quantity of each item
       * in the cart, So we have had 2 items in the cart, one with a quantity
       * of 3 and the other with a quantity of 4 our total number of items
       * would be 7
       *
       * @return total number of items in cart
       */
      function count_contents() {
    Last edited by Ajeh; 11 Sep 2010 at 09:19 PM.
    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 2008
    Location
    Bordeaux, France
    Posts
    69
    Plugin Contributions
    6

    Default Re: Unable to find the method 'count_contents_qty'

    Yeah, but the question was where is 'count_contents_qty()' ?
    My editor gives only:

    Code:
    ----------------------------------------
    Find 'count_contents_qty' in 'ZENCART-1.3.9f-08142010\admin\includes\functions\functions_prices.php':
    ZENCART-1.3.9f-08142010\admin\includes\functions\functions_prices.php(347):       if ($new_qty = $_SESSION['cart']->count_contents_qty($product_id)) {
    Found 'count_contents_qty' 1 time(s).
    ----------------------------------------
    Find 'count_contents_qty' in 'ZENCART-1.3.9f-08142010\includes\functions\functions_prices.php':
    ZENCART-1.3.9f-08142010\includes\functions\functions_prices.php(368):       if ($new_qty = $_SESSION['cart']->count_contents_qty($product_id)) {
    Found 'count_contents_qty' 1 time(s).
    
    Search complete, found 'count_contents_qty' 2 time(s). (2 file(s)).

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

    Default Re: Unable to find the method 'count_contents_qty'

    I goofed and posted some code I was working on ...

    At this time, count_contents_qty does not exist ...
    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!

 

 

Similar Threads

  1. Unable to configure any payment method
    By lisah746 in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 20 Sep 2011, 06:24 PM
  2. Replies: 4
    Last Post: 4 Sep 2011, 06:49 PM
  3. Unable to determine connection method on a link!
    By shalesey in forum General Questions
    Replies: 13
    Last Post: 1 Mar 2011, 10:34 AM
  4. Unable to find the socket transport "http" - did you forget to enable it when you con
    By sandykr09 in forum PayPal Website Payments Pro support
    Replies: 0
    Last Post: 27 Jan 2008, 04:08 AM
  5. Unable to determine connection method on a link!
    By mrkrinkle in forum Built-in Shipping and Payment Modules
    Replies: 10
    Last Post: 25 Jul 2006, 01:52 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