Forum Replies Created
-
AuthorPosts
-
Update: Since the plugin v2.8.0, it’s now possible to achieve the same without the snippet – with the new “Require order status” (and “Exclude order status”) option (in “WooCommerce > Settings > Emails > Custom email #X > Order Options”).
Hi, @weatherly-boehmer,
how to disable the default WooCommerce receipt from sending a copy at the same time that our custom receipt goes out.
Since the plugin v2.7.3, it’s now possible to disable the default emails with the “Stop emails” option (in “WooCommerce > Settings > Emails > Custom email #X > Advanced Options”).
Hi, @getmilk-team,
default triggers are not sending the emails. only when I manually trigger from the order.
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])?
Hi, Juan,
Please update the plugin to the latest v2.2.0 – it is now “High-Performance Order Storage (HPOS)” compatible.
Please let me know if you need anything else. And if you like the plugin, please consider leaving me a rating.
Hi,
I think you have to submit different EANs for different variations. On the Google Merchant Center Help GTIN page, it says:
Use the correct GTIN for each product, including variants. Each product and variant of a product (different colors or sizes) has its own GTIN, so make sure to submit the correct value.
I hope this helps.
Hi, Thore,
Sorry for not getting back to you sooner.
How can I override those colors?
Since the plugin v2.7.1, you can set additional styling with the new “Email style” options (in “WooCommerce > Settings > Emails > Custom email #X > Email Data”).
Or can I use a filter / hook to add custom styling to my email?
Yes, you can use the
alg_wc_custom_emails_content
filter:add_filter( 'alg_wc_custom_emails_content', function ( $content, $email, $order, $user, $product ) { if ( 1 == $email->alg_wc_ce_id ) { // for the "Custom email #1" $content = '<style> .my-class { color: orange; } </style>' . $content; } return $content; }, 10, 5 );
Please give it a try and let me know what you think.
Hi,
where should i add the snippet, just in theme functions file?
Yes, you can put it in your child theme’s
functions.php
file.is it posible to also connect the filter to one specific mail?
Yes, you can use the
$email->alg_wc_ce_id
property, like this:add_filter( 'alg_wc_custom_emails_do_send_order_email', function ( $do_send, $email, $order ) { if ( 1 == $email->alg_wc_ce_id ) { // for the "Custom email #1" return $order->has_status( 'on-hold' ); } return $do_send; }, 10, 3 );
Hi,
Please check if WP Cron is enabled on your site. You can do that in “WooCommerce > Status > System status > WordPress cron”.
If WP Cron is disabled, please try one of these two solutions:
- enable WP cron – check if you have
define( 'DISABLE_WP_CRON', true );
in your wp-config.php file, or - switch the “Scheduler” option from “WP Cron” to “Action Scheduler” (in “WooCommerce > Settings > Custom Emails > General > Scheduler”). The option is available since the plugin v2.7.0.
Hi,
Please try this:
Select “Subscriptions: Subscription status updated to” in “Enabled triggers groups” in “WooCommerce > Settings > Custom Emails > General > Advanced Options”.
Then go to “WooCommerce > Settings > Emails > Custom email”, set “Triggers” to “Subscription status updated to On Hold”, and “Delay” to “1 hour”.
Now, to ensure that the email is sent only if the subscription is still “on hold”, we need to add this snippet:
add_filter( 'alg_wc_custom_emails_do_send_order_email', function ( $do_send, $email, $order ) { return $order->has_status( 'on-hold' ); }, 10, 3 );
Please give it a try and let me know what you think.
Hi,
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])?
Hi, Christiaan,
You can neste shortcodes, but not with the same name, so one of the solutions would be to create an alias for the
[if]
shortcode with a PHP snippet, e.g.,[my_if]
:add_shortcode( 'my_if', function ( $atts, $content = '' ) { if ( function_exists( 'alg_wc_custom_emails' ) && isset( alg_wc_custom_emails()->core->shortcodes ) ) { return alg_wc_custom_emails()->core->shortcodes->if( $atts, $content ); } } );
Then you can do this:
[if][my_if]...[/my_if][/if]
Please give it a try and let me know what you think.
December 11, 2023 at 3:55 pm in reply to: How to make additional urls buttons appear on product page? #130296Hi,
Sorry for not getting back to you sooner.
Please check if you’ve enabled the “Single” checkbox in “WooCommerce > Settings > Advanced External Products > Multiple Product URLs”.
Also, as you correctly noted, the product’s main/default “Product URL” field must be set as well.
Please let me know if that helps.
Hi, Patryk,
As I understand, you are referring to the “Info > Discount Pricing Table > Single product page” option (in “WooCommerce > Settings > Product Price by Quantity”), correct? If that’s the case, you need to add the
heading_format
attribute to the shortcode, i.e., update the “Template” option there from the default:[alg_wc_product_ppq_table]
to:
[alg_wc_product_ppq_table heading_format="from %level_min_qty% pcs."]
* Here you can replace “from” and “pcs.” with your translations.
Please give it a try and let me know what you think.
Hi,
Please update the plugin to the latest v2.4.0.
It’s now possible to exclude products by price with the “Exclude > Above/Below price” options (in “WooCommerce > Settings > Price Offers > General”).
Also, now you can select “Exclude categories” (vs. “Require categories”) for the “Per product category” option (in “WooCommerce > Settings > Price Offers > General > Selected Products Options”).
Please give it a try and let me know what you think.
Hi,
Already working on it – will be releasing a new plugin version in the next few days.
Hi,
Sorry for not getting back to you sooner.
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])?
- enable WP cron – check if you have
-
AuthorPosts