Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Oct 2007
    Location
    Hong Kong
    Posts
    111
    Plugin Contributions
    0

    Default taking Qty out of product display table

    Hi. I am selling downloadable files and Qty is irrelevant.

    I have set all the "Display Quantity" values to 0 in all the places I can find on Admin (Configuration, Product Type, etc.). It worked in most of my product listings (I show All, and New Listings only)

    However, the quantity number "1" refuses to go away in my bottom category product listing table. See this page: http://haostaff.com/store/index.php?...=index&cPath=8

    I have tried to look everywhere.

    Also, you will notice that the price is too "high". It does not appear to be on the same row as the product name. I am less concerned about this one.

    Thanks.

    Jeff

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: taking Qty out of product display table

    I am not sure what this actually is and do not see it on any install that I have.

    From your source this is the entry and I have highlighted the value you are concerned with but still do not know from where this is set???
    Code:
    ... more info</a><br />&nbsp;1<br /></td>
    Zen-Venom Get Bitten

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

    Default Re: taking Qty out of product display table

    That looks like a minimum, maximum or unit setting without the text for it ...

    Do you have units or maximum set to 1 on your products?
    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!

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: taking Qty out of product display table

    Thanks Ajeh!!!
    Zen-Venom Get Bitten

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

    Default Re: taking Qty out of product display table

    Sneaky code eh?

    The give away was seeing the same thing when added to the cart ...
    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
    Oct 2007
    Location
    Hong Kong
    Posts
    111
    Plugin Contributions
    0

    Default Re: taking Qty out of product display table

    Hi, Ajeh and Kokra.

    Indeed the "1" comes from Max Qty 1. I removed the "Max", from one of the files (possbly English.php, I can't remember exactly).

    So the question is how do I make it NOT show "1". Easy or major?

    Jeff learns to Zen

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: taking Qty out of product display table

    I removed the "Max", from one of the files (possbly English.php, I can't remember exactly).
    Get the heck out of the files!!!!

    this is in admin > catalog > categories/products > select the product > set Product Qty Maximum: to > "0"
    Zen-Venom Get Bitten

  8. #8
    Join Date
    Oct 2007
    Location
    Hong Kong
    Posts
    111
    Plugin Contributions
    0

    Default Re: taking Qty out of product display table

    That's it ? That's it ! Dug a hole for myself. Thanks Kobra and Ajeh.

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

    Default Re: taking Qty out of product display table

    NOTE: Setting the Maximum to 0 means no limit and the message is not shown ...
    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
    Oct 2007
    Location
    Hong Kong
    Posts
    111
    Plugin Contributions
    0

    Default Re: taking Qty out of product display table

    For those who view this thread in future, just to let you know the end state of this issue.

    I have to reset the Maximum back to "1" in the Product creation Admin, because I am selling downloadable product and don't want the customer to unintentionally add 2 of the same product to the Cart.

    See the following thread: http://www.zen-cart.com/forum/showthread.php?t=84115 (Problem No. 1)

    The way I finally took the "Max 1" out from the category product listing page is by editing the includes/functions/functions_prices.php file, by commenting out the following codes:

    PHP Code:
        // quantity max
        // $check_max = zen_get_products_quantity_order_max($product_id);

       // if ($check_max != 0) {
       //   if ($include_break == true) {
       //     $the_min_units .= ($the_min_units != '' ? '<br />' : '') . PRODUCTS_QUANTITY_MAX_TEXT_LISTING . '&nbsp;' . $check_max;
       //   } else {
       //     $the_min_units .= ($the_min_units != '' ? '&nbsp;&nbsp;' : '') . PRODUCTS_QUANTITY_MAX_TEXT_LISTING . '&nbsp;' . $check_max;
       //   }
       // }

       // return $the_min_units; 
    It did a neat and clean job! See http://haostaff.com/store/index.php?...index&cPath=17

    The price is now also horizontally aligned with the product names (achieved by adding a cell padding from the applicable tpl files).

    Hooray!

    Jeff

    For your reference only.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h Display Attributes, Qty Discounts & Qty Box in a Table
    By pool27 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 28 May 2014, 11:49 AM
  2. Display Attributes/Options, Qty Discounts & Qty Box in Matrix
    By teaj in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 21 Apr 2011, 02:59 PM
  3. Change the display order of qty discount table?
    By ivndrs in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 16 Feb 2010, 11:36 PM
  4. Display "Qty Discounts Off Price" table Product Listing intead of Detail
    By digulu in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 30 Dec 2009, 01:34 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