How can I restrict customers from purchasing products?

Top WooCommerce & WordPress Plugins Forums Maximum Products per User for WooCommerce How can I restrict customers from purchasing products?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #100685
    Ole Kroer
    Participant

    Hi Support

    Is there a way to setup limit to 0 in formula limit. I have tried without success. the lowest is 1, can you help

    regards

    ole

    #100686
    Zohaib
    Participant

    Hi,

    It would not be possible to set the maximum limit to 0. What that would mean is no user would be able to purchase the product with a limit of 0.

    Can you please explain a little more on what you are trying to achieve and we might be able to help.

    #100687
    Ole Kroer
    Participant

    I have a shop with different products and different allowed maximum’s and some users is not allowed to buy some of the product, and my idea was to allow zero on specific users and products with no date limit

    #100688
    Zohaib
    Participant

    Hi Ole,

    I have passed your request to our development team. They will check the possibility of this. Can you please share the formula that you are using?

    #100689
    Ole Kroer
    Participant

    Hi here is the formula i want to use

    [alg_wc_mppu limit="0" user_id="285,286" product_id="1851,1652,1643,1800,1308,1330,1646,2207,1327,1640,2476,2309,2144,1936,1668,1649,1301" not_date_limit]
    #100690
    Zohaib
    Participant

    Hi,

    Can you please try this formula:

    [alg_wc_mppu limit="-1" user_id="285,286" product_id="1851,1652,1643,1800,1308,1330,1646,2207,1327,1640,2476,2309,2144,1936,1668,1649,1301"]

    When the limit is set to 0 – this actually means that there are no limitations (i.e. the customer can buy an unlimited number of this product)… While -1 means that he cannot buy any.

    #100691
    Ole Kroer
    Participant

    The -1 in the formula solved the issue, thaks

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.