Forum Replies Created
-
AuthorPosts
-
January 13, 2021 at 1:04 am in reply to: How to update the order cost calculation programmatically? #89527
Anytime ๐
In that case, please consider leaving a review if you are enjoying the plugin/support. It would be much appreciated ๐
January 12, 2021 at 2:57 am in reply to: How do I define two date ranges for two different categories? #100531Hi Mohsen,
Sorry for the delay,
First, you could setup the default date range that would work for most of your categories, let’s say monthly. And then you could enable Limits > Per product category and edit the limit on the category page.
Finally, you’d have to use a custom code for the other category with different date range. I’ve created it for you as an example considering the id of the category A as 41
add_filter( 'alg_wc_mppu_date_to_check', function ( $date_to_check, $date_range, $current_time, $product_or_term_id, $current_user_id, $is_product ) { if ( ! $is_product ) { return $date_to_check; } $product_categories_ids = wp_get_post_terms( $product_or_term_id, 'product_cat', array( 'fields' => 'ids' ) ); // Yearly for category A (41) if ( in_array( 41, $product_categories_ids ) ) { $date_to_check = ( $current_time - YEAR_IN_SECONDS ); } return $date_to_check; }, 10, 6 );Let me know if it helps ๐
January 11, 2021 at 6:03 pm in reply to: Is there a way to verify my customer’s email before they can order? #101233Hello Jeff,
Have you already tried these 2 options?
– Block adding products to cart
– Block checkoutIf even so, they are placing orders with incorrect emails, please try this other option:
– Unverify email changing accountsThis will unverify customer accounts if they change the original email
January 9, 2021 at 10:55 pm in reply to: Why does the plugin not work properly if there’s a 100% coupon? #100529Hello Alex,
Sorry for the delay.
I think I couldn’t reproduce the problem. If the limit is 1 and I add 1 to cart the plugin should allow the purchase just fine and that is what it’s doing . It doesn’t make any difference if I use a 100% coupon or not. Now, if I try to add 2 of the same product, I can only purchase it if I use the coupon and if I do that it works fine too, I mean, I didn’t receive the max message.Please help me with some details.
1. How should be set the mode option? I imagine it should be set as “Product Prices” considering your example.
2. Have you purchased the product previously first?
3. Can you please try to disable other plugins that could be conflicting with our plugin and maybe switch the theme too?
January 8, 2021 at 6:28 pm in reply to: How to set different limits for different categories? #100533Hello Antonieta,
You can follow these steps:
1. Enable Limits > Per product category
2. Access the category you wish. For example: Products > Categories > Category A
3. Set the Limit per user option on the category page.January 6, 2021 at 9:30 pm in reply to: How to update the order cost calculation programmatically? #89525Yes, you could use this:
alg_wc_cog()->core->orders->update_order_items_costs( $order_id, true );
January 4, 2021 at 12:31 pm in reply to: Is it possible when user clicks the “Add to Cart”, redirect to the login page? #101231January 3, 2021 at 11:59 pm in reply to: Is it possible when user clicks the “Add to Cart”, redirect to the login page? #101229Hi,
Glad to hear you’re enjoying it ๐
I just created this new option for you and I’m sending you right now a modified version of the plugin with the new feature via email.Let me know if it works for you ๐
January 3, 2021 at 8:49 pm in reply to: How to fix the warning “NaN undefined” on Analytics > Orders? #89531January 3, 2021 at 12:30 am in reply to: How can I limit the customer’s purchases to five products? #100527Yes, and you can even limit the user to buy a specific product only once per year or any other period you’d like ๐
January 2, 2021 at 11:43 pm in reply to: How to fix the warning “NaN undefined” on Analytics > Orders? #89529Hi Monika,
I know you’ve said you cleared the cache but have you tried clearing it here?
– WooCommerce > Status > Tools > Clear analytics cacheJanuary 2, 2021 at 11:32 pm in reply to: How can I limit the customer’s purchases to five products? #100525Hi Antonieta,
Sorry for the delay.
We have a “Mode” option that controls how the plugin will work. We have different values for it. In your case, you’d be able to set it by price or by quantity, but not both at the same time.In the end, I believe you’d have good results by selecting “Product quantities”, and then you’d choose exactly the products you want to limit.
We have a free version too. Please give it a try first ๐
January 1, 2021 at 7:33 pm in reply to: How to update the order cost calculation programmatically? #89523Hello Guido,
We have three options on the Advanced section that may suit you:
– Force costs update on order update
– Force costs update on order status change
– Force costs update on new order item
Anyway, if you want to recalculate all the orders, you can use this option:
– Tools & Reports > Recalculate orders cost and profitHi Kiren,
I’m sorry but after thinking for a while we believe that if you use taxes in your store you’d have to enable the option from WooCommerce:
– Enable tax rates and calculationsThis is the only way of calculating taxes correctly, regardless if prices include or exclude taxes.
December 30, 2020 at 3:08 pm in reply to: Are the total costs from reports considering only products in stock? #89521Hi Ben,
The report under “WooCommerce > Reports > Orders > Cost of goods” shows the numbers related to the orders, so it won’t make a difference if the products are currently in stock or not.
Now, our other report under “WooCommerce > Reports > Stock > Cost of Goods” only shows the info related to products currently in stock
-
AuthorPosts