Tom Anbinder

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 1,184 total)
  • Author
    Posts
  • in reply to: Product URL in email #144702
    Tom Anbinder
    Moderator
    Plugin Support

    Hi, Eike,

    Wasn’t possible, but I have just added it to the plugin. Please update the plugin to the latest v2.9.2. Now you can use the %product_url% placeholder in all plugin’s emails, e.g.:

    <a href="%product_url%">%product_title%</a>

    Please give it a try and let me know what you think.

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

    in reply to: High-Performance Order Storage #144099
    Tom Anbinder
    Moderator
    Plugin Support

    Hi, Julian,

    Please update the plugin to the latest v1.7.0 โ€“ it is now “High-Performance Order Storage (HPOS)” compatible.

    in reply to: Custom email for existing users #142848
    Tom Anbinder
    Moderator
    Plugin Support

    Hi,

    Sorry for not getting back to you sooner.

    Do you mean you want to run this once, i.e., go through all your currently existing users and send an email if the user has two or more orders?

    If that’s the case, please add this PHP snippet to your site:

    /**
     * Sends custom emails to the users.
     *
     * @see https://example.com/wp-admin/?my_wpfactory_send_user_emails
     */
    add_action( 'admin_init', function () {
        if (
            isset( $_GET['my_wpfactory_send_user_emails'] ) &&
            current_user_can( 'manage_woocommerce' ) &&
            function_exists( 'alg_wc_ce_send_email' )
        ) {
    
            // Custom vars
            $custom_email_id = 1; // Custom email #1
            $min_order_count = 2;
    
            // Set up user emails
            add_filter( 'alg_wc_custom_emails_is_user_email', '__return_true' );
    
            // Users loop
            $users = get_users( array( 'role__in' => array( 'customer' ) ) );
            foreach ( $users as $user ) {
                if (
                    ( $customer = new WC_Customer( $user->ID ) ) &&
                    $customer->get_order_count() >= $min_order_count
                ) {
                    alg_wc_ce_send_email( $custom_email_id, $user->ID );
                }
            }
    
            // The end
            die();
        }
    } );

    After that, you can run the snippet with this URL:

    https://example.com/wp-admin/?my_wpfactory_send_user_emails

    The snippet will send the “Custom email #1” (you can change that by updating the $custom_email_id value in the snippet) to each user with two or more orders (see the $min_order_count).

    In the email settings (in “WooCommerce > Settings > Emails > Custom email #X”), leave the “Recipients” field empty – the plugin will automatically use the user’s email.

    Also, you can use our [user_prop] shortcode in the content, e.g.:

    Hi, [user_prop key="display_name"],

    Please give it a try and let me know what you think.

    in reply to: Order shipping total but with the tax excluded #142821
    Tom Anbinder
    Moderator
    Plugin Support

    Hi,

    Please update the plugin to the latest v2.1.3. Then try our new [order_shipping_total_incl_tax] shortcode, e.g.:

    [order_shipping_total_incl_tax format="price" before="Shipping (incl. tax): "]

    I’ve also added an alias for the [order_shipping_total] shortcode – [order_shipping_total_excl_tax] – to make it more clear.

    Regarding the [order_total_in_words] shortcode – unfortunately, we have to add each language individually, and now only two are implemented – English and Lithuanian. You can change it with the lang attribute, e.g.:

    [order_total_in_words lang="EN"]
    [order_total_in_words lang="LT"]

    Which language do you need? I can try to add it to the plugin. As for the currency – the plugin will automatically retrieve the order’s currency for the whole part. However, it will always show cents ¢ for the decimal part. Do you need something else instead of the cents?

    Please let me know what you think.

    P.S. If you like the plugin, please consider leaving me a rating.

    in reply to: Order shipping total but with the tax excluded #142274
    Tom Anbinder
    Moderator
    Plugin Support

    Hi,

    This is Tom from the development team. Happy to hear you liked the plugin ๐Ÿ™‚

    Regarding the issue – I’ve just tested it on my server – it looks like the [order_shipping_total] shortcode displays the amount excluding tax, i.e., what you need. If that’s not the case – would it be possible to log in to your site and take a look (my email is [email protected])?

    in reply to: Admin Order #141278
    Tom Anbinder
    Moderator
    Plugin Support

    Hi, Benjamin,

    Hopefully, we were able to fix it. Please update the plugin to the latest v3.7.1 and give it a try.

    in reply to: Admin Order #140051
    Tom Anbinder
    Moderator
    Plugin Support

    Hi, Benjamin,

    I’ve just tested it on my server, but it seems to be working fine here – the prices are correctly updated after I click on the “Recalculate” button (in the “Product Price by Quantity” admin meta box). Would it be possible to share access to your site so I could log in and check what’s going on (my email is [email protected])?

    P.S. I can confirm there is an issue when creating a new order (i.e., items are removed), so we have to save the order first (before clicking on the “Recalculate” button). I will be fixing that in the next plugin release, however, it still won’t solve the problem in your case.

    in reply to: Multiple meta values #138719
    Tom Anbinder
    Moderator
    Plugin Support

    Hi, Lisa,

    Happy to hear it’s working ๐Ÿ™‚ Let me know if you need anything else. And if you like the plugin, please consider leaving me a rating.

    in reply to: Multiple meta values #138644
    Tom Anbinder
    Moderator
    Plugin Support

    Hi, Lisa,

    Yes, I think this is doable – try enabling the “Meta > Multiple meta values” checkbox and setting the “Meta > Meta value” option to:

    ,0

    Please give it a try and let me know what you think.

    in reply to: Disable Coupon’s on Offered Price #137718
    Tom Anbinder
    Moderator
    Plugin Support

    Hi, Ashley,

    Sorry for not getting back to you sooner.

    Happy to hear it’s solved ๐Ÿ™‚ Please let me know if you need anything else.

    P.S. Since the plugin v2.8.0, it’s possible to achieve what we need without a custom code. There is a new “Exclude price offers from coupons” checkbox option in “WooCommerce > Settings > Price Offers > General > Advanced Options” – it’s enabled by default.

    P.P.S. If you like the plugin, please consider leaving me a rating.

    in reply to: How to ? #136809
    Tom Anbinder
    Moderator
    Plugin Support

    P.P.S. Could you please check if “WordPress cron” is enabled on your site (in “WooCommerce > Status > System status”)? If it’s disabled, could you please enable it?

    You could also try switching from “Use WP cron” to “Use Action Scheduler” in “WooCommerce > Settings > Order Status Rules > Advanced > Periodical Processing Options”. However, as far as I understand, “Action Scheduler” uses WP cron, so I’m not sure if it’ll help.

    Also, did you try running the rules manually in “WooCommerce > Settings > Order Status Rules > Tools > Run all rules now”? What happens then? Are orders processed as expected?

    in reply to: Cart instead of package #136781
    Tom Anbinder
    Moderator
    Plugin Support

    Hi, Julian,

    Thank you for pointing it out – it looks like there was a bug in our plugin (when multiple shipping packages were used). Please update the plugin to the latest v1.8.0 – the issue should be gone now.

    Please give it a try and let me know what you think.

    in reply to: custom trigger addres change #136681
    Tom Anbinder
    Moderator
    Plugin Support

    Update: Since the latest plugin v2.9.3, we can now achieve what we need without custom triggers and code. There are two new “Extra” triggers: “Customer address saved” and “Customer address changed”. The first one is the same as the woocommerce_after_save_address_validation custom trigger I mentioned earlier. The second one is fired only if the address was actually changed (i.e., not just saved without any changes).

    Please give it a try and let me know what you think.

    in reply to: Disable Coupon’s on Offered Price #136605
    Tom Anbinder
    Moderator
    Plugin Support

    Hi, Ashley,

    Thank you for pointing it out. We will address this in the next plugin version. Meanwhile, if you are ok with adding a small PHP snippet to your site, I think this should solve our problem:

    add_filter( 'woocommerce_coupon_get_discount_amount', function ( $discount, $discounting_amount, $cart_item, $single, $coupon ) {
        return ( ! empty( $cart_item['alg_wc_price_offer_id'] ) ? 0 : $discount );
    }, 10, 5 );

    Please give it a try and let me know what you think.

    in reply to: How to ? #136600
    Tom Anbinder
    Moderator
    Plugin Support

    P.S. I’ve just noticed that you posted a screenshot earlier – your settings look ok there. If it’s not working – would it be possible to share access to your site, so I could log in and check what’s going on (my email is [email protected])?

Viewing 15 posts - 1 through 15 (of 1,184 total)