VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Payment VM 1.1 => PayPal / PayPal Pro VM 1.1 => Topic started by: t.hagoort on September 24, 2010, 15:48:41 PM

Title: Disable automatic mail: notify customer
Post by: t.hagoort on September 24, 2010, 15:48:41 PM
Hi,

Does anyone know how I can disable the automatic email that virtuemart sends when a PayPal transaction is confirmed?

Kind regards, Thijs
Title: Re: Disable automatic mail: notify customer
Post by: PRO on September 24, 2010, 18:18:45 PM
the file is ps_communication
Title: Re: Disable automatic mail: notify customer
Post by: t.hagoort on September 26, 2010, 15:07:05 PM
Ok. And where can I find the rule to disable the automatic notify mail?
Title: Re: Disable automatic mail: notify customer
Post by: PRO on September 27, 2010, 18:20:00 PM
I am not a php guy. But its there. Do you only want it done with paypal orders?
Title: Re: Disable automatic mail: notify customer
Post by: t.hagoort on September 27, 2010, 22:04:43 PM
Hi,

I'm not using the automatic notify for other payments. So when it is a global switch, it is also good for me.

Hope you can help me. I can't figure it out
Title: Re: Disable automatic mail: notify customer
Post by: PRO on September 28, 2010, 02:41:55 AM
in ps communication, you should be able to remove this

         //Send sender confirmation email
         $sender_mail = vmMail( $vendor_email, $dbv->f("vendor_name"), $shopper_email, $shopper_subject, $shopper_msg, "" );

         if ( ( !$vendor_mail ) || (!$sender_mail) ) {
            $vmLogger->debug( 'Something went wrong while sending the enquiry email to '.$vendor_email.' and '.$shopper_email );
            return false;
         }
      }
Title: Re: Disable automatic mail: notify customer
Post by: t.hagoort on October 02, 2010, 15:45:35 PM
Thanks!

I will test it and let you know!
Title: Re: Disable automatic mail: notify customer
Post by: t.hagoort on October 04, 2010, 12:30:04 PM
Hi,

This wasn't the solution. It still changes the order status.
I think that it has something to do with the PayPal script. Is there someone who has a solution?
Title: Re: Disable automatic mail: notify customer
Post by: t.hagoort on October 04, 2010, 12:37:14 PM
I see this rule in the PayPal script under Payment methods:

"return" => SECUREURL ."index.php?option=com_virtuemart&page=checkout.result&order_id=".$db->f("order_id"),
"notify_url" => SECUREURL ."administrator/components/com_virtuemart/notify.php",

could it be something with notify.php ??
Title: Re: Disable automatic mail: notify customer
Post by: PRO on October 04, 2010, 14:11:42 PM
i do not know