Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 3 of 3

Thread: Limit Quantity of Product to Order

  1. #1
    sduffy77 is offline Senior Member
    Join Date
    Feb 2010
    Location
    Lancaster, PA
    Posts
    142

    Default Limit Quantity of Product to Order

    I know this sounds counter-intuitive to e-commerce but it's a requirement my client needs.

    Is there a way to enforce a maximum quantity a customer can order of a product?

    We're using ML v9.0.1.3 32bit w/ source

  2. #2
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    nothing out of the box, but that's pretty much easy to do. If you're familar with how the appconfig: CartMinOrderAmount work, then you could do similar thing also.

    Couple of hints:
    - Add an appconfig: CartMinOrderQty
    - Modify shoppingcart.aspx.cs
    - go to InitializePageContent() method
    - add Decimal MinOrderQty = AppLogic.AppConfigUSDecimal("CartMinOrderQty");
    - mimic the MeetsMinimumOrderAmount() method

  3. #3
    BFG 9000 is offline Senior Member
    Join Date
    Oct 2006
    Location
    South UK
    Posts
    882

    Default

    Or you could just use the existing Restricted Quantities functionality...


    TTFN

    BFG