Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2009
    Posts
    65
    Plugin Contributions
    0

    Default How to restrict minimum quantity per product attribute?

    Hi, I am building a new zen cart with 1.3.9h. I have configured products with attributes (three different colours for the same type of product). I need to set a minimum quantity. I have set the minimum quantity in the products setup page, but I need a further level of restriction. I need every colour (attribute) to have a minimum of 10.

    I would like to create a work around solution, which is to set a global minimum of 10 that can be added to the cart, regardless of product type and attribute. Could one of the Zen Cart experts please point towards the script that controls where quantity is added to the cart? I want to make simple mod, e.g., "if quantity < 10, quantity = 10"

    Many thanks.

  2. #2
    Join Date
    Sep 2009
    Posts
    65
    Plugin Contributions
    0

    Default Re: How to restrict minimum quantity per product attribute

    Please ignore, I have found what I'm looking for. The answer was to add the following to the section with label
    Code:
    //echo 'I SEE actionAddProduct: ' . $_POST['products_id'] . '<br>';
    Line 1624 in version 1.3.9g of includes/classes/shopping_cart.php

    Code:
            if ($new_qty < 20) {
                    $new_qty = 20;
            }

 

 

Similar Threads

  1. Quantity per Product Option/Attribute
    By AstroBBoy in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 2 Nov 2008, 02:37 AM
  2. How does customer specify quantity per attribute?
    By skrimpy in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 25 Jun 2008, 04:41 PM
  3. How to Remove Minimum Quantity Text from Product Listing
    By mrmeech in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 Jun 2008, 03:13 AM
  4. How to restrict to just one product in the cart per customer?
    By gifro10 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 28 Apr 2008, 07:49 AM
  5. Minimum quantity per category
    By Calstamps in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 5 Dec 2006, 05:48 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