Tom Anbinder

Forum Replies Created

Viewing 15 posts - 721 through 735 (of 942 total)
  • Author
    Posts
  • in reply to: Why variation prices are not updating properly? #89283
    Tom Anbinder
    Moderator
    Plugin Support

    Hi Lior,

    Hmm… Maybe I can log in to your site to check it out (my email is [email protected])? And just to be sure – you are using the latest plugin v1.4.5?

    in reply to: Why variation prices are not updating properly? #89281
    Tom Anbinder
    Moderator
    Plugin Support

    Hi Lior,

    Ok. Could you please try disabling “Prepopulate in AJAX” and then “Repopulate on recalculate” options in plugin settings and let me know if disabling any of them makes any difference?

    in reply to: Why my cost and profit are wrong for previous orders? #89276
    Tom Anbinder
    Moderator
    Plugin Support

    Hi Kristjan,

    Maybe it would be 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 continue solving it remotely.

    in reply to: Why variation prices are not updating properly? #89279
    Tom Anbinder
    Moderator
    Plugin Support

    Hi Lior,

    Could you please let me know if the issue is still there if you disable our plugin?

    Tom Anbinder
    Moderator
    Plugin Support

    Hi,

    The only explanation I’ve got – some order items (i.e. products) do not have the cost entered. Even if an order has profit calculated, it may be that some items don’t have cost set. For example, let’s say we have an order with a total of $100. Let’s say this order has two items: Product A and Product B, both sold for $50. Now if you have only set cost for Product A (let’s say $30), then the order profit will show $20, so that can produce a mismatch.

    Again, if I could log in, I would be able to tell exactly what’s happening. I would start by checking reports day by day (i.e. instead of “This month”, I would start checking “2020-03-01 – 2020-03-01”, “2020-03-02 – 2020-03-02” and so on, until I could see a mismatch, then I would check each order for that day.

    Tom Anbinder
    Moderator
    Plugin Support

    Hi Gabriel,

    I was thinking about your task and I think I have a solution.

    First of all, we should set Formula to something like this:

    [alg_wc_mppu_max_qty max_qty="10" membership_plan="silver" term_id="101"]
    [alg_wc_mppu_max_qty max_qty="15" membership_plan="gold" term_id="102"]
    [alg_wc_mppu_max_qty max_qty="-1" term_id="101,102"]
    

    This way users with active memberships will be able to order maximum 10 and 15 products depending on their membership plan. And users with no active membership will be restricted from buying any products at all (i.e. max quantity -1).

    Now if you set “Date range” to “Last 30 days”, the only problem we now have is that when checking orders for quantities, the plugin may check too many orders, i.e. orders from previous subscription. To fix that we will need to use alg_wc_mppu_date_to_check filter available in the plugin. Unfortunately, I don’t have “WooCommerce Memberships” plugin on my server, so I can’t give you the exact code, but if I could log in to your server (with FTP), I should be able to do it (if that’s possible my email is [email protected]). Or you can try to test it yourself with the code below. Generally the filter can be used to define custom date range, i.e.:

    add_filter( 'alg_wc_mppu_date_to_check', 'my_alg_wc_mppu_date_to_check', 10, 3 );
    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 ) {
            foreach ( wc_memberships_get_membership_plans() as $membership_plan_id => $membership_plan ) {
                if ( wc_memberships_is_user_active_member( get_current_user_id(), $membership_plan_id ) ) {
                    $user_membership = wc_memberships()->get_user_memberships_instance()->get_user_membership( get_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 let me know what you think.

    Tom Anbinder
    Moderator
    Plugin Support

    Hi Katrien,

    As promised, we’ve released new plugin v2.5.0 today, where I’ve added new options to display remaining, maximum, etc. quantity to the user on the frontend. So you have 3 new options:

    1. “Permanent notice” option in “WooCommerce > Settings > Maximum Products per User > Frontend” – this will display info for the current product on the single product page. You can also customize the notice text.

    2. “Quantities” tab on the “My Account” page (again in “WooCommerce > Settings > Maximum Products per User > Frontend”) – this will display quantities table for all products.

    3. [alg_wc_mppu_user_product_quantities] shortcode – this will output the same data as in the “Quantities” tab on the “My Account” page, however, you can use this shortcode anywhere on your site.

    Please let me know if something is not working as expected or if you have any questions or suggestions.

    And if you like the plugin, please consider leaving me a rating.

    Tom Anbinder
    Moderator
    Plugin Support

    Hi Gabriel,

    Ok, I think I got it this time. Please give me a couple of days to get back to you.

    Tom Anbinder
    Moderator
    Plugin Support

    Hi Gabriel,

    When you set the date range to “Last 30 days”, the plugin will check all orders from the last 30 days from the current moment (i.e. from the moment customer tries to buy a new product). As I understand, you need something different, i.e. the plugin should check if 30 days have passed since the customer bought a subscription and if so then apply zero max quantity for the product, is that correct? If that’s the case, I will have to check on how can I implement it in the plugin.

    P.S. Thank you for the purchase.

    Tom Anbinder
    Moderator
    Plugin Support

    Hi Katrien,

    For the moment, the only way a customer can see how many products he can still buy, is via the “Customer message” option in “WooCommerce > Settings > Maximum Products per User > Frontend”. However, I’m already working on adding 2 new options to the plugin: “Permanent notice” (on the single product page) and new “Quantities” tab in the “My Account” section. I will be releasing the new plugin version in the next few days.

    Tom Anbinder
    Moderator
    Plugin Support

    Hi Gabriel,

    Yes, the plugin can do that. What you need is to use “Formula” settings section (“WooCommerce > Settings > Maximum Products per User > Formula”) and set the “Formula” option there to something like this:

    [alg_wc_mppu_max_qty max_qty="10" membership_plan="silver" term_id="101"]
    [alg_wc_mppu_max_qty max_qty="15" membership_plan="gold" term_id="101"]
    

    As for resetting bought quantities on a monthly basis – you need to set “Date range” option in “General” settings section (“WooCommerce > Settings > Maximum Products per User > General”) to “Last 30 days” (or possibly “This month” if you want quantities to reset on the first day of each month instead of after 30 days).

    Hope that clears it up. Please let me know if you have any questions.

    in reply to: Why is it not showing the right amount of profit and cost? #89272
    Tom Anbinder
    Moderator
    Plugin Support

    Hi,

    The first idea that comes to mind – did you click “Recalculate orders cost and profit for all orders” (in “WooCommerce > Settings > Cost of Goods > Tools”) so the plugin would calculate profits from before it was installed? Also please make sure that you have set costs for the products from the orders.

    If that doesn’t help – as far as I remember, WooCommerce saves reports in transients, so please try clearing transients in “WooCommerce > Status > Tools > WooCommerce transients”.

    If none of the above helps – 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 continue solving it remotely.

    in reply to: Search product notes in admin #87265
    Tom Anbinder
    Moderator
    Plugin Support

    Hi Jill,

    Happy to hear you like it, and thank you for the purchase!

    in reply to: Search product notes in admin #87263
    Tom Anbinder
    Moderator
    Plugin Support

    Hi Jill,

    No, the notes won’t show up in the page source.

    As for exporting and admin searching – we’ve just released new plugin v1.3.0, where I’ve added both options.

    Hope that clears it up. Please let me know if you have any more questions and/or ideas.

    in reply to: How to remove the item cost input from order page? #89270
    Tom Anbinder
    Moderator
    Plugin Support

    Happy to help 🙂

Viewing 15 posts - 721 through 735 (of 942 total)