WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce MercadoPago
[resolved] Order notification (29 posts)

  1. coroleu
    Member
    Posted 1 year ago #

    Hi, im from argentina... be pacient with my regular english.
    I need to recieve email order notification when the client buy products without pay for them. How i do that?

    http://wordpress.org/extend/plugins/woocommerce-mercadopago/

  2. Marcelo Pedra
    Member
    Posted 1 year ago #

    Hola, tenés que habilitar el envio de mails en WooCommerce, aunque la operación figure como On hold, te tiene que llegar el mail. Hay que usar una casilla de mail del mismo dominio donde esté instalado WooCommerce para asegurarse que no falle el envío.
    A mí ya me pasó algo parecio...
    Saludos

  3. coroleu
    Member
    Posted 1 year ago #

    Gracias Marcelo por tu respuesta. El envio lo tengo habilitado. Voy a probar lo de la casilla de email y te cuento como me fue. Saludos y gracias de nuevo.

  4. coroleu
    Member
    Posted 1 year ago #

    Hola Marcelo, estoy usando una cuenta de correo del mismo dominio y sigue sin funcionar. Lo raro es que cuando se registra un nuevo cliente si recibo la notificacion perfectamente. Ya no se que hacer. Alguna otra idea?

  5. Marcelo Pedra
    Member
    Posted 1 year ago #

    Y dime, los usuarios se registran con el form nativo de WordPress o a través de Woocommerce?
    Tenés instalados otros plugins que generen mensajes por mail? te llegan esos?

  6. coroleu
    Member
    Posted 1 year ago #

    Este es mi sitio http://toquedebelleza.com.ar/. Los usuarios se registran en el formulario de woocommerce si no me equivoco. Los mensajes que se envian desde el formulario de contacto de la plantilla funcionan perfecto. Uso un hosting en GODDADY si te sirve ese dato. Ya no se que hacer para que funcionen.

  7. coroleu
    Member
    Posted 1 year ago #

    Marcelo como estas. Estoy probando en otro hosting (gratis) y funcionan las notificaciones de ordenes nueva pero solamente con los pagos contrarreembolso y transferencia bancaria (probe esos 2 y mercadopago). Con mercadopago siguen sin funcionar las notificaciones. Creo que puede ser el plugin.

  8. esmi
    Forum Moderator
    Posted 1 year ago #

    These are English language forums, so please use English. Alternatively, use a WP support forum in your language.

  9. coroleu
    Member
    Posted 1 year ago #

    Ok, sorry. I try to use english language.

  10. Claudio Sanches
    Member
    Plugin Author

    Posted 1 year ago #

    Who sends the emails the WooCommerce is not MercadoPago plugin.
    Beyond the scope of the plugin send emails.

    WooCommerce default is to send e-mails when the product goes to the status of pending or processing.
    You'll have to search a solution to always send emails.

  11. coroleu
    Member
    Posted 1 year ago #

    Thanks for your answer. The point is that when i order with COD (contrarreembolso) payment method or banking transfer the notification email works fine (http://i.imgur.com/UVzMpML.png)...

  12. coroleu
    Member
    Posted 1 year ago #

    Only with mercadopago doesnt works the notification new order emails... please help me Claudo, i dont know I'm doing wrong...

  13. coroleu
    Member
    Posted 1 year ago #

    Maybe the problem is in the status of the orders:
    - Via banking transfer: hold on (notification email works!!)
    - Via COD (contrarreembolso): hold on (notification email works!!)
    - Via mercadopago: pending (notification email doesnt works)

    How i change automatically the status to "hold on" on the mercadopago orders?

    Sorry for ask

  14. Claudio Sanches
    Member
    Plugin Author

    Posted 1 year ago #

    The plugin works well and we will not change it.
    You can start getting used to it.

    Because the status goes to on-hold only when you have a response from the MercadoPago!!!!!!!

    Because until then the customer could have simply given up buying...
    If the customer gave up buying what was your interest in receiving an e-mail?

    This is how it works and this is how it will work!

  15. coroleu
    Member
    Posted 1 year ago #

    Thanks for your answer. Now i understand how works. But if you do not mind can you please show me in your code where i can change the default status from "pending" to "hold on"... my client needs to be prepared with the products when users order. Sorry and thanks for your help.

  16. coroleu
    Member
    Posted 1 year ago #

    Appreciate you help...

  17. Claudio Sanches
    Member
    Plugin Author

    Posted 1 year ago #

    And if the customer withdraws to pay when you get on screen MercadoPago?
    You will prepare everything and wait about 2 weeks to see that the request will not be completed?

    But ok, you can change this using the hooks of WooCommerce.
    No need to change anything in the plugin MercadoPago.

    Use this action woocommerce_checkout_order_processed to change the status.
    With it you can do what you need.

  18. coroleu
    Member
    Posted 1 year ago #

    Thanks Claudio. I do not know how to use this ACTION, but its ok i'll keep looking.
    Thanks again.

  19. Claudio Sanches
    Member
    Plugin Author

    Posted 1 year ago #

    You wanted to change the plugin and do not know or use action?
    The result here and see for yourself how works:

    function custom_processed_mercado_pago( $order_id, $data ) {
        if ( 'mercadopago' == $data['payment_method'] ) {
            $order = new WC_Order( $order_id );
            $order->update_status( 'on-hold', __( 'Was not what you expected is not it?' ) );
        }
    }
    
    add_action( 'woocommerce_checkout_order_processed', 'custom_processed_mercado_pago', 1, 2 );
    

    Hopefully now you finally understood why the application needs to stay as pending before going on-hold!

  20. coroleu
    Member
    Posted 1 year ago #

    Yes Claudio, i understood very well your explanation, but my client is...i dont know... rare and he asked me if i try to change the status to receive the notification email...and i dont know how.
    "No es mi intencion molestarte Claudio"
    i'll try with your code
    Sorry and thanks

  21. Claudio Sanches
    Member
    Plugin Author

    Posted 1 year ago #

    Try the code please.

  22. coroleu
    Member
    Posted 1 year ago #

    You're right, when the status change automatically to "on-hold" MercadoPago considers that the order has been paid...and does not help me...

  23. coroleu
    Member
    Posted 1 year ago #

    Just only need an email notification before the client paid for the admin prepare the orden... (words of the my client)

  24. coroleu
    Member
    Posted 1 year ago #

    I probe the code, and your right again... the checkout jump to "Gracias por pagar su pedido blablabla..." and never show the mercadopago payment

  25. Claudio Sanches
    Member
    Plugin Author

    Posted 1 year ago #

    This is simple!

    Use the woocommerce_checkout_update_order_meta action and woocommerce_mail function.

    Create yourself the email!
    This way you can build the notification as you see better.

  26. coroleu
    Member
    Posted 1 year ago #

    Sounds easy to a wordpress guru, im just a guy with basic knowledge about wp... i dont know nothing about PHP. Can i paid you with PESOS ARGENTINOS?
    The client make me feel so tire. I thought it would be easier.
    Thanks a lot Claudio, i'll keep looking.
    Your plugin is great for argentinian and brazilian.

  27. Claudio Sanches
    Member
    Plugin Author

    Posted 1 year ago #

    I'm not picking up freelancers at the moment.

    And honestly it is quite simple to do.
    The one studied in the code you can.

  28. coroleu
    Member
    Posted 1 year ago #

    No problem Claudio, i'll try to learn more about php... with your help im in the right way. Thanks again, i apreciatte your help.

  29. coroleu
    Member
    Posted 1 year ago #

    Something like this?

    function send_mercadopago_notification( $order_id, $data ) {
    if ( 'status' == 'pending' ) {
    function woocommerce_mail( $to, $subject, $message, $headers = "Content-Type: text/html\r\n", $attachments = "" )
    }
    }

    :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.