Tom Anbinder

Forum Replies Created

Viewing 15 posts - 586 through 600 (of 942 total)
  • Author
    Posts
  • Tom Anbinder
    Moderator
    Plugin Support

    Hi,

    Unfortunately, I don’t think our plugin can cancel membership at the moment. I could try to implement it, but to be honest, I’m not sure which “WooCommerce Memberships” plugin function should I call to cancel membership for a user. Will be looking into it more…

    P.S. I’m not sure if this will help, but some of our plugin’s users were using the membership subscription start date as a date to start counting products from. I.e. instead of checking the last 30 days, the plugin will check how many products did user buy since his membership subscription start date. If that’s something that may help you, let me know, and I’ll help you with setting this up on your site.

    in reply to: How can I exclude some users from the minimum amount check? #92886
    Tom Anbinder
    Moderator
    Plugin Support

    Hi again,

    As promised, we’ve just released new plugin v3.1.0 – now if you set a negative amount value (e.g. -1) for some user, then amounts won’t be checked for him.

    Please give it a try and let me know if something is not working as expected.

    in reply to: How can I exclude some users from the minimum amount check? #92885
    Tom Anbinder
    Moderator
    Plugin Support

    Hi,

    1. Yes, by username. There is one issue though – at the moment, if you set min amount to zero for the user, the plugin will ignore it and will use your global min amount (i.e. 250) instead. So would have to enter some very small value, e.g. 0.000001. Fixing this already – I’m thinking about adding “special” value, like -1, for users without min amount at all. Will try to release new plugin version today, in a couple of hours.

    2. Yes, you can use the plugin on both sites. You just need to generate a key (in https://wpfactory.com/my-account/downloads/) for your staging site, and when you move to a new site, you just delete the old key/site and generate a new key for the new site.

    in reply to: How can I exclude some users from the minimum amount check? #92883
    Tom Anbinder
    Moderator
    Plugin Support

    Hi,

    The Pro version has “Amounts by user” options (i.e. amounts on per user basis). You could set different amounts for some of your registered users this way (i.e. basically by user ID). Is that good enough, or do you need to set it necessarily by email?

    in reply to: EAN and WooCommerce Branding plugin #84913
    Tom Anbinder
    Moderator
    Plugin Support

    Hi Florin,

    Sorry for the late reply.

    1. WooCommerce Branding – thanks for letting us know, but unfortunately, I’m not sure if we can do anything here. I believe it’s some kind of bug in their plugin. I assume that the same error for the “Visit plugin site” link will occur for any other plugin which has “woocommerce” in its link.

    2. GTIN – yes, we will be adding it to the current plugin. Will get back to you about this asap.

    in reply to: How to fix 403 Forbidden access? #88253
    Tom Anbinder
    Moderator
    Plugin Support

    Hi,

    It looks like some security tool is stopping settings from saving. Do you have anything like “Wordfence” plugin installed on your server? Also, could you please try saving it with the simplest “Content/Message” settings possible, something like “test” (i.e. without any HTML tags etc.)?

    Tom Anbinder
    Moderator
    Plugin Support

    Hi Paul,

    Sure. I would need to log in to your site though (my email is [email protected]).

    Tom Anbinder
    Moderator
    Plugin Support

    Hi Paul,

    To hide it you will need to add this snippet to your (child) theme’s functions.php file:

    add_filter( 'woocommerce_hidden_order_itemmeta', 'my_alg_wc_cog_hide_order_cost_meta', PHP_INT_MAX );
    if ( ! function_exists( 'my_alg_wc_cog_hide_order_cost_meta' ) ) {
        function my_alg_wc_cog_hide_order_cost_meta( $meta_keys ) {
            $meta_keys[] = '_alg_wc_cog_item_cost';
            return $meta_keys;
        }
    }

    Hope that helps. Please let me know if you have any questions.

    Tom Anbinder
    Moderator
    Plugin Support

    Well, it will delete data, but after that it will go through all the orders in your system, and recount all data (while skipping the canceled orders), so it all should be ok after the tool finishes. I could add an option to make this tool recurring/automated, but to be honest, I don’t think it’s the right way – it will go through all your orders again and again, and this will take too much unnecessary resources. Please give me a couple of days or so to implement it correctly, i.e. by adding special action when some order is canceled.

    Tom Anbinder
    Moderator
    Plugin Support

    Sorry, I meant “Delete & recalculate sales data” tool.

    Tom Anbinder
    Moderator
    Plugin Support

    Hi,

    Sorry for the late reply. Yes, I’m aware of the problem – already working on it. I’m planning to add an option to select order statuses to decrease amounts in the next plugin version. Meanwhile, you can either manually edit sales data on the user’s profile page, or run the plugin’s “recalculate data” tool which will skip canceled orders automatically.

    Tom Anbinder
    Moderator
    Plugin Support

    Hi Jacob,

    Currently %first_order_date_exp_timeleft% is using human_time_diff() function to display the time, so it will automatically start decreasing time units when the time will get closer to zero, i.e. “2 days”, “1 hour”, “5 mins”. Let me know if you want to make it always display in the same format (e.g. days), and I will add it in the next plugin version.

    Also, not sure if you really need it, but you can display the actual date with %first_order_date_exp% (i.e. vs %first_order_date_exp_timeleft%).

    in reply to: Why can’t this plugin add products to the cart page? #92544
    Tom Anbinder
    Moderator
    Plugin Support

    Hi Elton,

    Would it be possible for me to log in to your site to check what’s going on (my email is [email protected]). And FTP access would also help a lot.

    Tom Anbinder
    Moderator
    Plugin Support

    Hi Jacob,

    Sorry for the late reply.

    This can be done with our plugin, however, you will need to: a) add a small PHP snippet to your (child) theme’s functions.php file, and b) assign all your products to some category or tag.

    If that’s good enough – here is what you need to do:

    1. To limit the total number of products to 3 – as mentioned, you 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”) to “3”. Unfortunately, “Per product category” (and “Per product tag”) options are available in Pro version only.

    And, as you want this monthly, you need to set the “Date range” option (in “WooCommerce > Settings > Maximum Products per User > General”) to “This month” or “Last 30 days” (depending if you want it to be counted from the 1st of the current month, or in last 30 days).

    2. Now to add an additional “one product only” requirement, you will need to add this snippet:

    add_filter( 'alg_wc_mppu_check_quantities_for_product', 'my_alg_wc_mppu_limit_all_products_to_one', 10, 3 );
    if ( ! function_exists( 'my_alg_wc_mppu_limit_all_products_to_one' ) ) {
        /**
         * Sets max quantity for all products to one.
         */
        function my_alg_wc_mppu_limit_all_products_to_one( $is_valid, $core, $args ) {
            if ( $is_valid ) {
                $max_qty_all_products = 1;
                $bought_data          = $core->get_user_already_bought_qty( $args['product_id'], $args['current_user_id'], true );
                $user_already_bought  = $bought_data['bought'];
                if ( ( $user_already_bought + $args['cart_item_quantity'] ) > $max_qty_all_products ) {
                    if ( $args['do_add_notices'] ) {
                        $core->output_notice( $args['product_id'], $max_qty_all_products, $bought_data, $args['is_cart'], $args['cart_item_quantity'], 0 );
                    }
                    return false;
                }
            }
            return $is_valid;
        }
    }
    

    Please give it a try and let me know if you have any questions.

    in reply to: Why isn’t the limit working? #100433
    Tom Anbinder
    Moderator
    Plugin Support

    Hi Alfonso,

    First thing that comes to mind – please make sure that you have selected the right order statuses in the “Order statuses” option in the “General” section (in “WooCommerce > Settings > Maximum Products per User > General”) – by default it’s set to count “Completed” orders only.

    Please let me know if that doesn’t help.

Viewing 15 posts - 586 through 600 (of 942 total)