Forum Replies Created
-
AuthorPosts
-
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.
Hi, Julian,
Please update the plugin to the latest v1.7.0 โ it is now “High-Performance Order Storage (HPOS)” compatible.
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.
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 thelang
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.
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])?Hi, Benjamin,
Hopefully, we were able to fix it. Please update the plugin to the latest v3.7.1 and give it a try.
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.
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.
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.
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.
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?
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.
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.
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.
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])?
-
AuthorPosts