- Support forum for the Maximum Products per User for WooCommerce.
Tagged: Settings
- This topic has 6 replies, 4 voices, and was last updated 1 year, 2 months ago by pablo-pacheco.
-
AuthorPosts
-
April 26, 2023 at 1:33 pm #113956Arthur CottonParticipant
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 valueI have also two type of users:
- 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 :
- I would like to enter a specific A limit value for each user with the role Customer (each user has its own limit)
- I would like to enter a specific B limit value for each user with the role Ninja (each user has its own limit)
- I would like to enter the value A and B as and attribute for each product
- 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 !
May 1, 2023 at 6:41 am #114207MoshtafizurParticipantHi 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,
MoshtafizurMay 4, 2023 at 11:40 am #114394Arthur CottonParticipantHello, 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
May 6, 2023 at 12:44 pm #114547MoshtafizurParticipantHi 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,
MoshtafizurMay 7, 2023 at 8:30 pm #114613Hi 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 theproduct_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.
July 17, 2023 at 12:21 pm #114737Arthur CottonParticipantHello ,
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/rQmLSTMsecond ACF , we called it VDGE
https://ibb.co/x8gYVgdAnd this is the custom fields in the product
https://ibb.co/c22zNWkas 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/CWwmXh3I don’t know how to make it work from there:
- Having those ACF ( DGE and VDGE ) as the custom limit for product (based on the screenshots sent)
- 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
July 24, 2023 at 10:15 pm #120773pablo-pachecoModeratorHi,
There is something I still can’t understand.
Do you want to create different limits based on user meta or product meta?
-
AuthorPosts
- You must be logged in to reply to this topic.