- Support forum for the Maximum Products per User for WooCommerce.
- This topic has 7 replies, 2 voices, and was last updated 1 year, 4 months ago by Moshtafizur.
-
AuthorPosts
-
July 28, 2023 at 3:33 pm #121010Arsalan RaufParticipant
Here is the use case I’m looking for:
There is one product with 2 variations, each variation has a subscription option as well as one-time purchase. I want the first variation to have a purchase limit of 1, and the second variation to have a purchase limit of 3. These purchase limits should only last one month. Can you help with some instructions on how to set this up?
I have tried setting it up with “Product orders” mode, but test purchases allow me to purchase over the set limit. I could set limits by quantity, but then the customer is still allowed to purchase the product multiple times in separate orders.
Thanks in advance.
July 31, 2023 at 1:43 pm #121152Arsalan RaufParticipantHi,
Any update here? It is urgent since we are launching a sale soon and need this functionality.
August 1, 2023 at 12:22 pm #121200MoshtafizurParticipantHi there,
I apologize for the delay in getting back to you. We receive a high volume of support requests every day, which sometimes causes delays in our response time.
We are currently working on your ticket. We will get back to you as soon as possible.
Kind regards,
MoshtafizurAugust 1, 2023 at 12:36 pm #121201MoshtafizurParticipantHi again, Arsalan,
It is possible with our plugin to set different limits based on product variation. Please follow the general steps to achieve this:
In the ‘General’ section, set the ‘Mode’ to ‘Product quantities’ Configure the ‘Order statuses’ to the relevant order status you desire and set the ‘Date range’ to ‘This month’.’ Then go to the ‘Limits’ section and enable the ‘Per product’ option. Then go to the ‘Formula’ section and enable it. Now let’s say you want to limit the purchase of 2 variations of a product to 1, and 3 whose product IDs are 10, 20, and then you would need to paste a shortcode like this in the ‘Formula’ section:
[alg_wc_mpp limit='1' product_id='10' ] [alg_wc_mpp limit='3' product_id='20' ]
Please give it a try.
Kind regards,
MoshtafizurAugust 1, 2023 at 1:16 pm #121204Arsalan RaufParticipantThanks for the response. I used your settings on a test site but it doesn’t seem to work properly. It seems like the limit being set by the shortcode isn’t working, but if I go to the specific product page and set the limits from there it will work.
I also have a couple of other questions – if I set the range to “Monthly”, does that mean it would reset the count at the 1st of every month? I also found an exploit in which if a user adds the item to their cart, then go back to the product, they can choose to add the item again which is a way of bypassing the limit. To address this, I tried enabling the setting to block the checkout page as well as validate on add to cart but that doesn’t seem to do anything. How can I fix that issue?
August 2, 2023 at 9:27 am #121246MoshtafizurParticipantHi there,
Thanks for your reply.
> I used your settings on a test site but it doesn’t seem to work properly.
Could you please go to the “Tools” section and run the “Recalculate sales data” tool and see if the issue persists?
Regarding your second question, yes, you are right regarding the date range. But could you please let me know what value you have set in the “Order statuses” under the “General” section? Because the limit won’t work until in “WooCommerce > Orders”, the order status is set to the same value as “Order statuses”.
Kind regards,
MoshtafizurAugust 2, 2023 at 12:57 pm #121260Arsalan RaufParticipantHi,
I tried “Recalculate sales data” but it still isn’t working. I check the limits by going to the account page and looking at the product limits tab. It says there are no restrictions.
For the order status, I set it to “Processing”, so that it should always count.
Would it be easier if I set up a user for you on the site so you could go in and enable the right settings?
August 3, 2023 at 9:20 am #121283MoshtafizurParticipantHi Arsalan,
We apologize for any inconvenience you may be experiencing.
In order to assist you further, please provide us with access to your WordPress dashboard. You can send your login credentials to [email protected].
Kind regards,
Moshtafizur -
AuthorPosts
- You must be logged in to reply to this topic.