amc11
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Astra] Child theme doesnt work as expectedThanks man great info!
Well. My wish is to have two menus, one hamburger and another one as a basic menu to the right of logo. But the mobile menu do not show up on desktop version. So that is why ive added that code.
Thanks ๐
AdrianForum: Themes and Templates
In reply to: [Astra] Child theme doesnt work as expectedHi Avinash,
It still doesnt work as it should.
Please have a look at the following screenshots. With child theme active, and the code:add_filter( ‘astra_tablet_breakpoint’, function() {
return 10077;
});add_filter(‘astra_is_header_footer_builder_active’, ‘is_header_footer_builder_active_callback’); function is_header_footer_builder_active_callback() {
return false;
}It doesn’t work, it produces the following layout in header. The last image is correct, but that is when I load the above code in Functions.php within Astra parent theme.

Wrong

Correct
- This reply was modified 2 years, 1 month ago by amc11.
Forum: Themes and Templates
In reply to: [Astra] Child theme doesnt work as expectedAlso weird, when using the code in parent Astra theme, in Functions.php it works correctly, the problem only occurs when code is placed in child theme Functions.php it goes wrong.
- This reply was modified 2 years, 1 month ago by amc11.
Forum: Themes and Templates
In reply to: [Astra] Child theme doesnt work as expectedHi,
Thank you.
Sorry, it didn’t make any difference. Your error must have happened when you copy pasted directly my text, mine has the same ‘ as yours in my code. I guess this forum adds ยด for posted threads.
Forum: Plugins
In reply to: [WooCommerce] woocommerce_package_rates not firingI disabled all plugins except for woo ofcourse, still doesnt work.
Its solved.
Ok it works again, maybe it was woocommerce version 5.2.0, but im not sure.
I upgraded woocommerce to 5.2.1 and then activated the xt-woo and it works.Forum: Plugins
In reply to: [Custom Order Numbers for WooCommerce] Get correct order idI managed to fix it with:
$order->get_order_number();
Thanks anyway.
Forum: Plugins
In reply to: [All-in-One WP Migration and Backup] Lots of media filesYes but I removed them all, there is only 800 showing in the
library. How can this be?Thanks!
Forum: Plugins
In reply to: [WooCommerce] Status change stop mail sentOkay great to hear that.
Thank you ๐
Forum: Plugins
In reply to: [WooCommerce] Send copy emails – Failed and PausedI tried some more, and currently it sends a New Order mail
when using customer_on_hold_order and failed.Im using woocommerce_email_headers instead now.
myemail is ofcourse a real mail but not in below.function add_bcc_to_certain_emails( $headers, $object, $order ) { if ( $object == 'customer_on_hold_order' ) { $headers = array( $headers,'Bcc: myemail' ."\r\n"); } if ( $object == 'failed_order' ) { $customer_email = $order->get_billing_email(); $headers = array( $headers,'Bcc: ' . $customer_email ."\r\n"); } return $headers; } add_filter( 'woocommerce_email_headers', 'add_bcc_to_certain_emails', 10, 3 );Forum: Plugins
In reply to: [WooCommerce] Send copy emails – Failed and PausedSo it sends one new order mail to admin and two mails to
customer mail for On-Hold status. It doesn’t care about the
below recipient email. It just triggers the customer mail another
time.$wc_emails[‘WC_Email_Customer_On_Hold_Order’]->recipient = ‘xxxxx@domain’;
// Sending the email from this instance
$wc_emails[‘WC_Email_Customer_On_Hold_Order’]->trigger( $order_id );- This reply was modified 5 years, 4 months ago by amc11.
Forum: Plugins
In reply to: [WooCommerce] Send copy emails – Failed and PausedSo ive tested it some time now, and it actually sends an New Order mail to the Admin when the status changes to Paused (On-Hold) within the order in admin. Now I understand why in the production environment for our customer, this happens, it should not work that way. It must be a bug!
Please look into this.
Forum: Plugins
In reply to: [WooCommerce] Send copy emails – Failed and PausedHi,
Thank you for the reply.
Of course I could hire someone ๐The problem im facing could actually be a bug.
I do this simple function within woocommerce_order_status_changed.
function send_custom_email_notifications( $order_id, $old_status, $new_status, $order ){ $wc_emails = WC()->mailer()->get_emails(); $wc_emails['WC_Email_Customer_On_Hold_Order']->recipient = 'xxxxxx@domain'; $wc_emails['WC_Email_Customer_On_Hold_Order']->trigger( $order_id ); } add_action('woocommerce_order_status_changed', 'send_custom_email_notifications', 10, 4 );It sends two emails to the mailadress in Woo settings. But not to
the above email adress (ofcourse a correct one)..Its a bit strange.
What I’ve noticed, this doesn’t happen for status changed to Failed.
Were it sends two mails. One to the customer (the order email) and one to admin (default).Forum: Plugins
In reply to: [All-in-One WP Migration and Backup] CRITICAL Allowed memory sizeHi,
That was a fast fix.
I change the server memory limit from 128M to 256M in Cpanel.
Now it works again ๐