Forum Replies Created
-
AuthorPosts
-
November 16, 2020 at 1:37 am in reply to: How do I set the minimum order amount for a particular category? #92900
Hi Eugenio,
Yes, that’s possible. Here is what you need to do:
1. Set “Order sum” option (in “WooCommerce > Settings > Order Min/Max Amount > General > Order Sum Options”) to “Order subtotal” – this way we’ll exclude shipping from cart total.
2. Enable our “Products” section (in “WooCommerce > Settings > Order Min/Max Amount > Products”).
3. In the same “Products” section – set the “Product Categories > Require” option to “Fresh” – this way the amount rules will be applied only when there is at least one “Fresh” product in the cart.
* Please note that if you set it up as I’ve described – when comparing the amounts, cart total will include both categories in your example (“Dry” and “Fresh”). Our plugin can also calculate cart total by including selected product categories only (e.g. “Fresh” only), but this is set via another option – “WooCommerce > Settings > Order Min/Max Amount > General > Scope Options > Per product category” – this will also allow you to set different min/max amounts for different categories.
Hope that helps. Please let me know if you have any questions.
November 16, 2020 at 12:20 am in reply to: How can I set the plugin so that users can use shipping when they reach 1 kg? #92904Hi Hannes,
Ok, what you need to do is:
1. Set “Limits” to “Minimum” and “Types” to “Weight” (both options are in “WooCommerce > Settings > Order Min/Max Amount > General”).
2. Enable our “Shipping” section (in “WooCommerce > Settings > Order Min/Max Amount > Shipping”).
3. In the same “Shipping” section – set your shipping method’s “Min weight” option to “1”, and leave pickup’s “Min weight” as “0”.
A couple of notes:
* Please make sure that you have left the general “Min weight” option (in “WooCommerce > Settings > Order Min/Max Amount > Amounts”) set as “0”, otherwise, this will be used as a fallback value for the pickup.
* Our plugin won’t hide the shipping method on the wrong order amount, but instead it will add a message in cart and checkout and won’t allow your customers to finish the order with the wrong weight.
* Our plugin will use the same weight unit as set in “WooCommerce > Products > General > Measurements”, so, for example, if you have set “g” instead of “kg” there, you’ll need to set “1000” instead of “1” in step nr. 3.
Hope that helps. Please let me know if you have any questions.
Also, if there are still any problems, if you wish, you can share an account to your site (my email is [email protected]), so I could log in and help you setting up the plugin.
Hi Dexter,
Sorry for the late reply.
If I understood your question correctly, then yes, it’s possible, but it’s a bit of a workaround – you’ll need to assign all your products to some category or tag. After that you need to enable “Per product category” (or “Per product tag”) option in “WooCommerce > Settings > Maximum Products per User > Limits”, and then set “Limit per user” option for that category (or tag) (in “Products > Categories > Your category > Edit”).
Hope that helps. Please let me know if you have any questions, or if I misunderstood the question.
November 13, 2020 at 11:42 pm in reply to: How to set different timeframe for two different category? #100509Hi Doug,
That’s possible, however, you will need to add a small PHP snippet to your site. If that’s good enough, first you need to set “Date range” option (in “WooCommerce > Settings > Maximum Products per User > General”) to “Last 365 days” as you would normally do, and then add this snippet to your (child) theme’s functions.php file:
if ( ! function_exists( 'my_alg_wc_mppu_date_to_check' ) ) { function my_alg_wc_mppu_date_to_check( $date_to_check, $date_range, $current_time, $product_or_term_id, $current_user_id, $is_product ) { // TODO: You need to add your term "timeframe exceptions" here; in `term ID => days` format. $terms = array( 123 => 365 * 3, 124 => 365 * 4, ); return ( ! $is_product && isset( $terms[ $product_or_term_id ] ) ? ( $current_time - $terms[ $product_or_term_id ] * DAY_IN_SECONDS ) : $date_to_check ); } add_filter( 'alg_wc_mppu_date_to_check', 'my_alg_wc_mppu_date_to_check', 10, 6 ); }* You only need to change the code in the snippet where it says “TODO: You need to add your term …”.
So in this example term with ID
123will have its own timeframe of365 * 3days (i.e. 3 years), and term124will have365 * 4days (i.e. 4 years).Hope that helps. Please give it a try and let me know what you think.
November 13, 2020 at 12:21 am in reply to: Why can’t users see any error notice if they try to buy beyond the limit? #100504Hi Ghazi,
Could you please check if the “Cart notice” checkbox is enabled in “WooCommerce > Settings > Maximum Products per User > Frontend”? This should output the notices on the cart page.
Also, if the “Validate on add to cart” checkbox is enabled (again in “WooCommerce > Settings > Maximum Products per User > Frontend”), it should output the notice right after your customer adds a product to the cart.
And finally, could you please try setting the “Single product page” option (again in “WooCommerce > Settings > Maximum Products per User > Frontend”) to different values (except “Disable”) and then check if info is appearing on the single product pages.
If none of the above helps – could you please share access to your site (my email is [email protected])?
P.S. Regarding your yesterday’s note – you have accidentally posted it on our other plugin’s page – Order Minimum/Maximum Amount for WooCommerce – we’ve just removed it from there.
November 12, 2020 at 1:29 am in reply to: Is it possible to restrict non-registered users from adding items to the cart? #100499Hi Zoltan,
Sorry for the late reply.
Unfortunately, no – currently guest users’ sales can not be tracked. We did however receive a number of similar requests from our customers, so will be implementing it as soon as I can.
Regarding the notice position – again, unfortunately, currently there is no way to change the position, however, this should be easy to add to our plugin. Let me check it and I will get back to you about this shortly…
November 12, 2020 at 1:17 am in reply to: How can I use the “start_date” and “end_date” in the formula? #100502Hi Douglas,
We are using PHP
strtotime()function to parse date format, so it should basically parse about any English textual datetime description. I would recommend using the MySQL DATETIME format (YYYY-MM-DD hh:mm:ss), i.e.:[alg_wc_mppu limit="5" term_id="321" start_date="2021-01-01" end_date="2021-03-01"]
P.S. Just to be sure – our
start_date,end_dateandnot_date_limitshortcode attributes will set the effective date(s) for the shortcode, but not the “Date range” to check product sales in (i.e. this will still be taken from what you’ve set in “Date range” option in “WooCommerce > Settings > Maximum Products per User > General”).Hope that helps. Please let me know if you have any questions.
November 9, 2020 at 4:42 pm in reply to: How can I let my customer use the flat rate only if their subtotal is 20 pounds? #92897Hi Jon,
Would it be possible 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 continue solving it remotely.
November 5, 2020 at 1:21 am in reply to: When the membership is renewed, how do I reset the limit? #100497Hi Marti,
Sorry for the late reply.
Thank you.
That’s possible, however, you will need to add a small PHP snippet to your site. If that’s good enough, please add the snippet below to your (child) theme’s functions.php file. Please note that for this filter to be applied, “Date range” option (in “WooCommerce > Settings > Maximum Products per User > General”) must not be set to “Lifetime”.
add_filter( 'alg_wc_mppu_date_to_check', 'my_alg_wc_mppu_date_to_check', 10, 6 ); if ( ! function_exists( 'my_alg_wc_mppu_date_to_check' ) ) { /** * Maximum Products per User: Sets "date to check" to current user's membership start date. */ function my_alg_wc_mppu_date_to_check( $date_to_check, $date_range, $current_time, $product_or_term_id, $current_user_id, $is_product ) { foreach ( wc_memberships_get_membership_plans() as $membership_plan_id => $membership_plan ) { if ( wc_memberships_is_user_active_member( $current_user_id, $membership_plan_id ) ) { $user_membership = wc_memberships()->get_user_memberships_instance()->get_user_membership( $current_user_id, $membership_plan_id ); $date_to_check = get_post_modified_time( 'U', false, $user_membership->post ); if ( ! $date_to_check ) { $date_to_check = $user_membership->get_start_date( 'timestamp' ); // Fallback } return $date_to_check; } } return $date_to_check; } }Please give it a try and let me know if something is not working as expected, or if you have any questions.
P.S. And if you like the plugin, please consider leaving me a rating.
November 5, 2020 at 12:56 am in reply to: Why isn’t the user able to reorder items with same tag if he cancels orders? #100494Hi,
Happy to hear it’s solved! Please let me know if you need anything else. And if you like the plugin, please consider leaving me a rating.
November 3, 2020 at 11:24 pm in reply to: Why does the plugin not allow customers to complete the checkout process? #92893Hi again Andreas,
Please update the plugin to the latest v3.2.1 (released just a couple of minutes ago). Now there is a new “Block checkout process” checkbox option in “WooCommerce > Settings > Order Min/Max Amount > General > Advanced”. It’s enabled by default, you should disable it. Please give it a try and let me know if something is not working as expected.
And if you like the plugin, please consider leaving me a rating.
Hi Stéphane,
I would suggest translating messages directly in “WooCommerce > Settings > Order Min/Max Amount > Messages”. If you still prefer to use Loco Translate, please check the “Reset section settings” checkbox in the same “Messages” section (it’s located at the bottom of the page) and click “Save changes” – this will replace the default messages with translated ones.
Hope that helps. Please let me know if you have any questions.
November 3, 2020 at 10:09 pm in reply to: Why does the plugin not allow customers to complete the checkout process? #92892Hi Andreas,
Sorry for the late reply. Currently, it’s not possible, but let me try to add it to the plugin – will get back to you in a minute…
November 2, 2020 at 11:41 pm in reply to: Why isn’t the user able to reorder items with same tag if he cancels orders? #100492Hi,
I believe what you need is “Order statuses: Delete” option (in “WooCommerce > Settings > Maximum Products per User > General”). If you select “Cancelled” status there, the amounts will be reduced for the user when his order is cancelled.
P.S. Option was added in version 3.3.0, so please make sure that you’ve updated the plugin.
Please give it a try and let me know if something is not working as expected.
October 28, 2020 at 9:24 pm in reply to: Can the coupon be used with a URL that also utilizes the add-to-cart parameter? #92549If anyone else has a similar question – although I wasn’t able to reproduce the issue on my test server, after logging in to Eugenio’s site, I’ve managed to fix it. Generally, our “apply coupon” action was called later than “add to cart” action for some reason. I’m not sure why, as it’s working differently on my test server, but it may be some compatibility issue with some other plugin installed on the server. I ended up adding two new options to the plugin (in v1.3.1): Hook priority and Remove “add to cart” key. Both options are in the “Advanced” settings section of our plugin (in “WooCommerce > Settings > URL Coupons”). So now if you lower the “Hook priority” to 10, and disable the “Remove ‘add to cart’ key” checkbox, it all seems to be working fine.
-
AuthorPosts