Forum Replies Created
-
AuthorPosts
-
Just wanted to let you know – this is now fixed in plugin v2.4.3 – i.e. it’s no longer required to have any of the “Quantities” checkboxes enabled for “Formula” to be active.
February 18, 2020 at 11:42 pm in reply to: How to remove the item cost input from order page? #89268In case if anyone else has a similar issue – the question was about item cost inputs (i.e. not about the meta box, which is working normally). Since plugin v1.4.5, it’s now possible to disable (or alternatively make them read-only) item cost inputs with the “Item costs” option in “WooCommerce > Settings > Cost of Goods > Admin Order Options”.
February 18, 2020 at 11:25 am in reply to: How to remove the item cost input from order page? #89267Hi Keith,
Hmm… That’s really strange. I’ve just retested it on my server and it seems to be working fine here – as soon as I unchecked the “Meta box” checkbox, the “Cost of Goods” meta box on the order edit page is no longer showing. Are you sure it’s not coming from some other cost of goods plugin? Maybe I can log in to your server to check what’s going on (my email is [email protected])?
February 13, 2020 at 12:17 am in reply to: Is it possible to limit the products a user with a role can purchase in a month? #100356Hi Guillermo,
If I understood you correctly – possible solution would be to group your products in some product category or tag and then use “Per product category” or “Per product tag” option (in “WooCommerce > Settings > Maximum Products per User > Quantities > Per Product Taxonomy”). Please let me know if that’s good enough or if I misunderstood you.
If anyone else has a similar issue – we’ve discovered a bug today – you need to enable one of the checkboxes in the “Quantities” section for “Formula” to become active. We will be releasing the fix as soon as possible, meanwhile, you can simply enable e.g. “Per product” checkbox (in “WooCommerce > Settings > Maximum Products per User > Quantities”). If you won’t then set any actual max quantities on the product edit pages, this checkbox won’t have any other effect, except fixing it, i.e. making “Formula” active.
February 11, 2020 at 6:30 pm in reply to: Is it possible to limit to one per category while allowing unlimited quantities? #100354Hi Jonas,
Unfortunately, no – currently the plugin will require you to set max quantity for the product, so the closest solution would be to set max quantity to 1 for the category, i.e. customers will be able to buy only one product per category, but the quantity has also to be 1. Let me check if I can implement your task in the plugin. I will get back to you as soon as I can.
Hmm… It should count the amount… Maybe it’s possible for me to log in to your site to check what’s going on (my email is [email protected])? Please let me know if sharing an account is not an option and I will try to solve this remotely.
Hi,
Are there any shipping costs included in the order total? If so – please let me know what are they. Also is this order total include taxes? If so – please let me know what is tax percent.
Hi,
I’ve just logged in to your site.
1. You need to use membership plan slug instead of title, so I’ve replaced “Family Membership 2020 (#273)” with “student-membership-2020” in “Formula”.
2. Please note that you have set quantities to be updated only when order is “Completed” (in “Order statuses” option in “General” plugin settings section).
Please let me know if that solves it. If not – I will continue investigating. And in this case – maybe you have some test user assigned to some membership plan, so I could login as this user and test it?
Hi,
Maybe it’s possible to share an admin account to your site, so I could log in and check what’s going on (my email is [email protected])? If sharing an account is not an option – let me know and I will solve this remotely.
Hi Anne,
We’ve released new plugin v2.4.2 today, where I’ve added new
membership_planattribute to the “Formula” section. So now you can set max quantities per membership plan (i.e. without user roles). Basically now you need to add something like this to the “Formula” option:[alg_wc_mppu_max_qty max_qty="2" membership_plan="silver,gold"]
I.e. in this example you will set the max quantity to
2pcs. for all users withsilverorgoldmembership plan (you need to use membership plan slugs here).If you want to set different max quantities for different products, then you need to enable “Per Product” checkbox in “Quantities” section and set “Formula” to e.g.:
[alg_wc_mppu_max_qty max_qty="2" membership_plan="silver,gold" product_id="101,102"] [alg_wc_mppu_max_qty max_qty="1" membership_plan="silver,gold" product_id="103,104"]
Please let me know if something is not working as expected or if you have any questions.
P.S. If you wish, you can also share an admin account to your site, so I could log in and help you with it (my email is [email protected]).
Ok, if you will be able to connect memberships and user roles, then you will just need to enable “User roles” checkbox in plugin settings and then set max quantities for each user role (and optionally product).
If you won’t be able to connect it with user roles – I will have to add some code to the plugin to make it work with memberships.
Hi Anne,
Could you please let me know if each membership type has its own user role? Or those are not connected?
Hi,
I’m not sure if I understood your question correctly, but if you need to get excluded product IDs from
WC_Couponobject, you need to call:$coupon->get_excluded_product_ids();
and for the excluded category IDs:
$coupon->get_excluded_product_categories();
P.S. I’m not sure how you’ve formed the array in your example, but you should be able to get the object itself with:
$coupon = $your_array['coupon20'];
Hope that helps.
January 31, 2020 at 9:25 pm in reply to: How do I set the product limit for the customer to zero? #100340Hi,
You are correct,
max_qty="0"means that there are no restrictions for max quantity for that user. To set it to zero, you need to set max quantity to-1, i.e.:[alg_wc_mppu_max_qty max_qty="-1" user_id="5" product_id="448"]
-
AuthorPosts