Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jeff 74 posts 346 karma points
    Nov 30, 2015 @ 15:29
    Jeff
    0

    Limit the quantity someone can order

    Hi,

    I want to put a limit on the amount of one product someone can order. I limited this on the product page by putting a max of 10 on it. However I can't see a way to limit it per order line on the cart content page. Is there a method that can be used?

    Thanks, Jeff

  • Tom Steer 161 posts 596 karma points
    Nov 30, 2015 @ 19:49
    Tom Steer
    1

    Hey Jeff,

    You could probably hook into one of the Order events in the NotificationCenter. I did something similar in the passed by hooking into the NotificationCenter.Order.OrderLinesAdding and removed the order line if it matched a certain condition.

    Hope that helps.

    Tom

  • Anders Burla 2560 posts 8256 karma points
    Dec 01, 2015 @ 10:17
    Anders Burla
    100

    Or you can just handle it using JavaScript if you only want it to be client side. But you will have to change the code of the cart

  • Jeff 74 posts 346 karma points
    Dec 01, 2015 @ 15:50
    Jeff
    0

    Thanks, I will try these out.

Please Sign in or register to post replies

Write your reply to:

Draft