Can’t seem to apply a “simple” use case

Top WooCommerce & WordPress Plugins Forums Maximum Products per User for WooCommerce Can’t seem to apply a “simple” use case

Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #113956
    Arthur Cotton
    Participant

    Hello,

    we’ve just purchased this plugin based on the documentation, and actually i can’t find my way around to make it work for a “simple” use case.

    I have several Woocommerce product that have 2 custom attributs : let’s call them A and B
    A and B are numeric value

    I have also two type of users:

    1. Let’s call the first one Customer, that’s gonna be limited by the A value of the product

    2. the second one is Ninja , that’s gonn be limited by the B value of the product

    here’s the use case :

    1. I would like to enter a specific A limit value for each user with the role Customer (each user has its own limit)
    2. I would like to enter a specific B limit value for each user with the role Ninja (each user has its own limit)
    3. I would like to enter the value A and B as and attribute for each product
    4. Limit the users based on their specific limit within a Date range

    If anyone can help me around this use case , i would appreciate it !

    #114207
    Moshtafizur
    Moderator
    Plugin Support

    Hi Arthur,

    Thank you for getting in touch with us.

    In response to your inquiry, I would like to inform you that our plugin allows setting different limits based on user roles. You can achieve this by going to the “General” settings of the plugin’s settings and setting the “Mode” to “Product quantities”. After that, you can set appropriate values for the “Date range” and “Order statuses”. Next, enable the “User roles” option, and select the user roles you want to set different limits for in the “Enabled user roles” field. Once you have completed these steps, you can move on to the “Limits” section and set different limits for different user roles.

    Please follow these instructions and let us know if you encounter any issues. We are always here to help if you need further assistance.

    Best regards,
    Moshtafizur

    #114394
    Arthur Cotton
    Participant

    Hello, and thank you for your response.

    Actually what you described is not what we’re trying to achieve.

    I need to set different limits on custom fields created in the product, for each product (2 custom field by product)

    I need to set different limit for each user (ACF is attributed to a user role) , based on the custom field created for the product

    And the limit for the user needs to apply on all product.

    I didn’t find a way to set limits based on a ACF , for the product and for the users

    we’re not trying to set a limit based on quantity but on a custom field

    Thank you

    #114547
    Moshtafizur
    Moderator
    Plugin Support

    Hi Arthur,

    Thank you for providing additional information regarding your request. I understand that you need to set different limits on custom fields created in the product for each product and for each user role.

    I apologize for any confusion that my previous response may have caused. I have escalated your request to our development team. They will get back to you as soon as possible.

    Thank you for your patience, and please let me know if you have any further questions.

    Kind regards,
    Moshtafizur

    #114613
    Pablo
    Moderator
    Plugin Support

    Hi Arthur,

    The plugin was not designed to dynamically calculate the limit per product like that. However, I was able to create a new attribute product_limit_meta for you in the Formula section. You need to use it with the product_id attribute though.

    Let’s suppose you have a custom field key _my_custom_field that is supposed to receive a number representing the product limit. And you have products with the ID of 18 and 17. That’s how you could set it up:

    [alg_wc_mppu product_id="18,17" product_limit_meta="_my_custom_field"]

    The new attribute is available on version 3.8.7 I just released.

    • This reply was modified 11 months, 2 weeks ago by Pablo.
    • This reply was modified 11 months, 2 weeks ago by Pablo.
    #114737
    Arthur Cotton
    Participant

    Hello ,

    first of all, thank you for your support, we really appreciate the time you’re taking helping us out.

    So we updated the plugin, and tried to set up a use case, that doesnt seem to work .

    First of all , we set up our 2 Custom field here in a product example :

    First ACF , we called it DGE
    https://ibb.co/rQmLSTM

    second ACF , we called it VDGE
    https://ibb.co/x8gYVgd

    And this is the custom fields in the product
    https://ibb.co/c22zNWk

    as you can see , DGE is set to 2 and VDGE is set to 3

    This is what we’re trying to achieve from this:
    We want to limit a user based on the DGE or VDGE

    ( each user will have either a DGE Limit by month or a VDGE limit by month, based on his role , and each user gonna have his own limit ),

    So for example :
    If a user have a limit of 60 DGE , he’ll be limited to 30 quantity of this product in stock
    (this product is 2 DGE , so 30 times this product would give us 60 DGE )

    we tried using the shortcode in the formula section, but it doesnt seem to do anything , or i am still not understanding how to perform what i need
    https://ibb.co/CWwmXh3

    I don’t know how to make it work from there:

    1. Having those ACF ( DGE and VDGE ) as the custom limit for product (based on the screenshots sent)
    2. Giving a specific limit to the user – Example : Settng for user A a limit of 60 DGE / monthly , and for user B a limit of 80 VDGE / month
      even tho i think that the limit for each user can be set with this formula :

      [alg_wc_mppu limit="18" user_id="2,5"]
      with a twist , where limit should represent DGE of VDGE

    thank you for your time

    #120773
    pablo-pacheco
    Moderator

    Hi,

    There is something I still can’t understand.

    Do you want to create different limits based on user meta or product meta?

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