chilidogs
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Payment of behalf of a customerSorry Superkot,
I didn’t receive the notification in my mail of your answer, I thought I had them activated.There are students and sponsors, and some students get in contact with sponsors to paid their inscription fee. That’s the case I would need to solve, existant users that are not paying their inscriptions but is the sponsor who does it. So in that case the sponsors has to come to the checkout but it has not the credentials (password of the user) and we don’t see reasonable that they have it, so we would like in that case to let the sponsor to complete the checkout without doing that ‘log in’. The purchase should identify via user ID that this purchase should be included under this user.
Do you think it is feasible? Somebody has an idea of the functions to use to achieve this?
Thanks a lot Raf!
It worked like a charm!Thanks a lot for your help!
Hi again Ewout!
For this second approach of changing the recipient of the mail it finally worked using the ‘woocommerce_email_recipient_’ filter as follows:
add_filter( 'woocommerce_email_recipient_customer_completed_order', 'your_email_recipient_filter_function', 10, 2); function your_email_recipient_filter_function($recipient, $object) { $email_address_to_send = get_post_meta( $object->id, 'inscription_textbox2', true ); if ( null == $email_address_to_send ){ return $recipient; } else{ $recipient = null; $recipient = $email_address_to_send ; return $recipient; } }
Thanks a lot for your time and effort replying so quickly!
Best regards!
Angl.Forum: Plugins
In reply to: [WooCommerce] Removing User E-mail from ‘customer_completed_order’ MailHi Riian!
thanks a lot for your answer! It worked using the other option I had overlooked (the ‘woocommerce_email_recipient_’ filter):
add_filter( 'woocommerce_email_recipient_customer_completed_order', 'your_email_recipient_filter_function', 10, 2); function your_email_recipient_filter_function($recipient, $object) { $email_address_to_send = get_post_meta( $object->id, 'inscription_textbox2', true ); if ( null == $email_address_to_send ){ return $recipient; } else{ $recipient = null; $recipient = $email_address_to_send ; return $recipient; } }
Thanks a lot for your help!
Angel.- This reply was modified 7 years, 10 months ago by chilidogs.
Hi Ewout!
thanks a lot, the second version worked!
now What I am trying to do is to send the e-mail ONLY to the address in $email_address_to_send variable … I am trying to empty the variable $headers and afterwards to fill it with the $email_address_to_send but, I am still receiving the e-mail in the e-mail address of the user … I guess I am losing some details here … Any hint about it? Thanks a lot for your expert help!
Hi Ewout!
Thanks a lot for your quick answer!
Actually this solution was intended only for sending the e-mail with the attached invoice to the correct e-mail address, so I guess that with the particularization you stated with $email == ‘customer_completed_order’ it should be OK to affect only this invoice attached mail, Am I right?I will test it this evening!
Thanks again!Forum: Plugins
In reply to: [Theme My Login] Custom E-mail not calledHi Jeff!,
I was using it because it let you configure easily the layout / background / colors and fields of the login / lost password etc. screens …
Would you say that the code of the hook is well formed and should catch the wordpress emailing and call the TML one? :
add_action( ‘wp_new_user_notifications’,’wp_new_user_notification_tml’, 10, 2 );
function wp_new_user_notification_tml($user_id, $notify ){
do_action( ‘tml_new_user_notification’, $user, null );
}Thanks a lot for your patience and help!
Angel.Forum: Plugins
In reply to: [Theme My Login] Custom E-mail not calledThe one I think is messing around is the ‘Erident Custom Login’, that actually let you customize aspect of the login screen. I guess that if the default WordPress email are still being sent is because there is a call to the wordpress email motor that I am not able to catch with that hook? Do you have any idea/suggestion?
Thanks for your time!
Angel.Forum: Plugins
In reply to: [Theme My Login] Custom E-mail not calledActually I have enabled it, and it doesn’t work =).
The thing is that maybe another plugin is calling the default WordPress mailing motor, so that is why asked if this code would be correct to catch it a redirect it to TML. Would that be correct or there is something missing/incorrect?:add_action( ‘wp_new_user_notifications’,’wp_new_user_notification_tml’, 10, 2 );
function wp_new_user_notification_tml($user_id, $notify ){
do_action( ‘tml_new_user_notification’, $user, null );
}Thanks again!
Angel.Hi Uncanny! I am having the same issue, but without in my case I have other theme installed, so I guess it has nothing to be with the theme.
After completing the process to change the password and receiving the e-mail of confirmation of the reset of the password, I can’t log anymore with that password, so apparently it has not been properly changed.
You have the details of the workflow of the problem here:
Please feel free to contact me and I will give you more details or access to be able to check it yourselves.
Could you please investigate it? It is kind of impossible for my users to reset and even access the content.
Thanks in advance!
Angel.