How can I configure the plugin so that members can buy one unit of each product?

Forums Maximum Products per User for WooCommerce How can I configure the plugin so that members can buy one unit of each product?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #100885
    Zohaib
    Participant

    Hi,

    There are a number of ways to achieve this. But here is the most efficient:

    -General > Mode > Product Quantities
    -Date Range > Last 365 days
    -Limits > Per product
    -Formula > Limits by formula > Enable

    Then use a formula such as:

    [alg_wc_mppu limit="1" membership_plan="plan_1" product_id="1,2,3,4,5,6,7,8"]
    

    In the formula, product ID put all the 25 product’s IDs. This way people with membership plan “plan_1” will only be able to buy  1 of each product from the specified list of product IDs.

    #100886
    Pablo
    Moderator
    Plugin Support

    Hi Nathaniel,

    There is also a different workaround you could try.

    The idea is to create a shortcode pretending that all of the products have 1 as limit. And then we overwrite that rule by saying that the other products don’t have that limit.

    Since you have mentioned category B for the products with limits, let’s say the other products are from category A having an ID of 6. This is what you could try:

    – General > Mode > Product Quantities

    – Limits > Per product category > Enable

    – Formula > You have to use the shortcodes in the specific order:

    [alg_wc_mppu limit="99999999" term_id="6"]
    [alg_wc_mppu membership_plan="1" limit="1"]
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.