kosy33
Forum Replies Created
-
Forum: Plugins
In reply to: [Quotes for WooCommerce] add user name to “send quote” email subjectHi Pinal,
Sorry for my very late answer, thank for you reply but my concern was about adding last-name to the SUBJECT of send-quote-email not in the body of the mail. This can be done in request-new-quot-email and not in the-send-quote-email,maybe my question was not clear enough, I apologize for that.
Thank you for your time.
Best regards
JeanMarco,
Thank you for these useful information, unfortunately I was not able to make it work.
Following your advice code becomesfunction filter_woocommerce_email_headers( $headers, $email_id, $order){ $order_id = method_exists( $order, ‘get_id’ ) ? $order->get_id() : $order->id; $user_id = get_meta( $order_id,’_billing_shop_as_client_handler_user_id’ ,true); $user = get_user_by( ‘ID’, $user_id ); $user_email = $user->user_email; // Add Cc to headers $headers .= ‘Cc: ‘ . $user_email . "\r\n"; return $headers; } add_filter( ‘woocommerce_email_headers’, ‘filter_woocommerce_email_headers’, 10, 3);
email is sent to billing_email address but no cc to client handler user
Thanks again having tried to help me; I will let you know if I can solve this issue
Regards- This reply was modified 3 years, 2 months ago by kosy33.
Forum: Plugins
In reply to: [Quotes for WooCommerce] send-quote email send copy to user email addressThank you Pinal,
I will send you the email with details as requestedBest regards
Hi Marco,
Thank you for your prompt answer and paying atention to my problem, yes the order has the meta, email is sent manually after checkout. At the moment I did not set any condition to $email_id. My code would be like this:
`function filter_woocommerce_email_headers( $headers, $email_id, $order){
$order_id = method_exists( $order, ‘get_id’ ) ? $order->get_id() : $order->id;
$user_id = get_meta( $order_id,’_billing_shop_as_client_handler_user_id’ ,true);
$user = get_user_by( ‘ID’, $user_id );$user_email = $user->user_email;
// Get first & last name
$user_name = $user->first_name . ‘ ‘;
$user_name .= $user->last_name;// Prepare the the data
$formatted_email = utf8_decode( $user_name . ‘ <‘ . $user_email . ‘>’ );// Add Cc to headers
$headers .= ‘Cc: ‘ . $formatted_email . ‘\r\n’;
}return $headers;
}add_filter( ‘woocommerce_email_headers’, ‘filter_woocommerce_email_headers’, 10, 3);
This code doesn not work, none email are sent.
As my knowledge of coding is low your help would be welcome
ThanksForum: Plugins
In reply to: [Quotes for WooCommerce] send-quote email send copy to user email addressDear Pinal,
Thank you for your prompt answer and your help, I copied and paste your code above and the problem stands except that quote is now sent to billing email address (it was not the case before with my code). User email address does not receive any mail yet.
My code, as yours, works for $email_id == ‘processing_order’ when woocommerce email order notification are triggered, email is sent to both addresses. I cannot understand why this does not work with the send-quote template.Forum: Plugins
In reply to: [Quotes for WooCommerce] issue with payment gatewayHi Pinal
Thank you for your answer, I am sorry but I do not achieve reproducing the issue. I think the problem is solved, which is a very good news. I cannot understand what happened.
I am very confused to have bothered you and thank you for your willingness to help.
Many thanks
Jean- This reply was modified 3 years, 2 months ago by kosy33.
Forum: Plugins
In reply to: [Quotes for WooCommerce] change email sender sender for quotesolved adding these lines in functions.php
add_filter( 'woocommerce_email_from_address', function( $from_email, $wc_email ){ if( $wc_email->id == 'qwc_send_quote' ) $from_email = '[email protected]'; return $from_email; }, 10, 2 );
Forum: Plugins
In reply to: [Food Store - Online Food Delivery & Pickup] input quantityThanks a lot
Forum: Plugins
In reply to: [Food Store - Online Food Delivery & Pickup] input quantityThank you.
By the way only 2 digits are visible in the quantity box can you please enlarge it ablittle.
Thank you for offering us a such great plugin.
Regards- This reply was modified 3 years, 3 months ago by kosy33.
Forum: Plugins
In reply to: [Food Store - Online Food Delivery & Pickup] Skip opening hours checkHi,
Thank you for your prompt answer, but this means that I cannot select service anymore when adding 1st item.
My point was just to make sure that orders can be accepted 24 hour a day.
I will have another question regarding input quantity but I will open another topic
Thanks
RegardsProblem when maximizing window appears on firefox with windows not linux.
Sending emails or quotes apparently do not work, maybe I am not using it the right way.
RegardsHi,
Thanks a lot the problem is solved.
I think there is a little problem with the detection of the resolution because the estimate page exceeds size of the screen when you maximize your window.
I noticed a conflict between your plugin and country based restrictions for woocommerce. When CBR for woocommerce is activated you can not create any estimate, the website falls down.
Last, I have a request regarding product categories . I would like to know how to limit search products to some predefined categories.Thanks a lot for your help. Your plugin is great, and offer uncomparable functionalities.
Forum: Plugins
In reply to: [Country Based Restrictions for WooCommerce] list of countriesThank you for your answer
by text box I meant in the Query whitelist setting field
sorryGregory,
thank you for your answer, I already read this page, but I did not understand what should I write in the text box in my case.
regards