VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: Traveller47 on September 13, 2021, 09:35:28 AM

Title: Paypal Email to Vendor
Post by: Traveller47 on September 13, 2021, 09:35:28 AM
I am using Joomla 3.10.0, VM version 3.88 (plugins all 3.8.8) and PHP 7.3.27.

I am confused! The vendor receives a notification from Paypal that a new order has been placed and payment made. But the vendor has no idea what has been ordered. Does VM send a separate email to the vendor with order/product details or should all the info be in the Paypal email?

Comments appreciated.
Title: Re: Paypal Email to Vendor
Post by: Jörgen on September 13, 2021, 09:51:49 AM
I think You can ask the PayPal payment method to add products and details in the info that is sent to Paypal. Normally You only send the total amount and ordernumber to PayPal. This is what PayPal then returns in their receipt.

VM sends an orderconfimation email to the vendor and the customerif You want it. You have to set up which order status sends or not sends emails to customer and vendor. It is found in VM back end Configuration->Configuration.

Jörgen @ Kreativ Fotografi
Title: Re: Paypal Email to Vendor
Post by: Traveller47 on September 13, 2021, 10:20:59 AM
Thank you for the reply.
In VM/Config/Config I have set "Default Order Status to send email to vendor" to "confirmed by shopper", "confirmed", "cancelled" and "refunded". However, no email is received by the vendor. I have two email addresses set to receive these emails, one is person1@myhost.com and the other is person2@btinternet.com.
I think the vendor emails probably disappeared with a VM update but I cannot be sure.
Any comments will be appreciated.
Title: Re: Paypal Email to Vendor
Post by: Jörgen on September 13, 2021, 10:51:28 AM
Are You receiving other vendor emails for other things like waiting list?
Have You checked your spam ?

Jörgen
Title: Re: Paypal Email to Vendor
Post by: Traveller47 on September 13, 2021, 11:22:58 AM
I've checked spam and that is not the problem. Not sure of waiting lists. This is not a very busy shop and gets only a couple of orders per week or so.
Title: Re: Paypal Email to Vendor
Post by: Jörgen on September 13, 2021, 11:35:03 AM
Are the customers getting their email ?
You can test this under order editing using an order status update.

Jörgen
Title: Re: Paypal Email to Vendor
Post by: Traveller47 on September 13, 2021, 12:10:23 PM
Sorry, I don't understand how to check whether customers get their email.
Title: Re: Paypal Email to Vendor
Post by: Jörgen on September 13, 2021, 12:13:25 PM
1 Create an order, with Your email.
2 Confirm this order
3 Check also other statuses in order editing.

See if the customer and vendor receives email.

Check also settings for smtp email or similar in Joomla settings. They could be wrong.

Jörgen
Title: Re: Paypal Email to Vendor
Post by: Traveller47 on September 13, 2021, 13:08:32 PM
Thanks again for your comments - the help is appreciated.
The results from my test order are confusing. The customer and the vendor both received their order emails correctly, but a previous order from a "real" customer produced only a Paypal email - nothing from VM.
The Joomla email setting is currently set to PHP mail.
Title: Re: Paypal Email to Vendor
Post by: Jörgen on September 13, 2021, 13:14:01 PM
Was the real orders orderstatus of the order correctly updated ? Orderstatus = payed or confirmed ?

Jörgen @ Kreativ Fotografi
Title: Re: Paypal Email to Vendor
Post by: Traveller47 on September 13, 2021, 17:14:10 PM
Thanks again. The order status was "Confirmed".
Title: Re: Paypal Email to Vendor
Post by: GJC Web Design on September 13, 2021, 19:02:50 PM
and is there a received IPN from Paypal  or an IPN sent in the paypal admin?
Title: Re: Paypal Email to Vendor
Post by: Traveller47 on September 13, 2021, 19:53:03 PM
I turned off the IPN check a few weeks back because VM suddenly started reporting IPN errors with the payment method. (Paypal).
Title: Re: Paypal Email to Vendor
Post by: AH on September 14, 2021, 09:54:33 AM

If you turn off VM IPN check - it handles the IPN sent by PayPal without bothering to check for known PayPal servers

IPN's are still sent from PayPal and handled by VM based on your settings and the IPN status sent via PayPal
Title: Re: Paypal Email to Vendor
Post by: Tryer on September 14, 2021, 16:39:17 PM
Thanks for the comments.
Still not sure whether to turn off IPN check but it has  stopped PayPal error messages.
I think I may now see the difference between the orders that send a vendor email and those that do not. The orders that send vendor emails correctly are placed when the user is not registered and hence not logged in. Those that do not send vendor emails correctly are those from registered, logged in customers.

Comments appreciated.
Title: Re: Paypal Email to Vendor
Post by: AH on September 14, 2021, 17:00:31 PM
Turning of IPN will allow the IPN message to be processed.

Vendor email is not based on customer registration  - it is based on your order status settings

https://docs.virtuemart.net/manual/configuration-menu/configuration.html#orders (https://docs.virtuemart.net/manual/configuration-menu/configuration.html#orders)

"Default Order Status to send email to shopper/Default Order Status to send email to Vendor"
Title: Re: Paypal Email to Vendor
Post by: Tryer on September 14, 2021, 17:26:46 PM
Thanks again.
The default status to send emails to vendor is confirmed, cancelled etc but the vendor receives no email when the cust9mer is logged in as registered user. Sounds odd, but that does seem to be the case.
Title: Re: Paypal Email to Vendor
Post by: Tryer on September 16, 2021, 10:31:09 AM
Can anyone please offer any further comments/help. I am still stuck with this problem.
I note that the VM PayPal plu8n is flagged as " no information" by the Joomla compatibility check in v 3.10.2. Maybe that is irrelevant?

The shop products on this site are divided into two categories. Category A is visible to all visitors and Categories A and B are both visible to registered users. The orders which do not generate vendor emails are, currently, always from Category B. This led me to wonder whether registration/login were relevant in some way.

As a secondary issue, I cannot see how the set the PayPal plugin to include product details in the PayPal payment notification email.

Comments will be very much appreciated.
Title: Re: Paypal Email to Vendor
Post by: Jörgen on September 16, 2021, 13:38:32 PM
You do NOT set this in the plugin, you set this in the PayPal Payment method in Virtuemart. Each plugin can serve multiple Payment methods with separate settings.

I can not find this setting either right now, but I am using a very old VM version.

Jörgen
Title: Re: Paypal Email to Vendor
Post by: jenkinhill on September 16, 2021, 15:28:26 PM
Quote from: Tryer on September 16, 2021, 10:31:09 AM
I note that the VM PayPal plu8n is flagged as " no information" by the Joomla compatibility check in v 3.10.2. Maybe that is irrelevant?

That is irrelevant until you migrate to Joomla 4. Compatibility information will be added once a stable J4 version of VM is released.
Title: Re: Paypal Email to Vendor
Post by: Tryer on September 16, 2021, 16:23:48 PM
Thanks for the replies. I will check this ASAP and maybe it will prove to be a substitute for the missing VM vendor email.
Title: Re: Paypal Email to Vendor
Post by: Traveller47 on September 16, 2021, 20:05:07 PM
I checked  the VM Paypal payment method but cannot find any option to include product details in the vendors payment notification email.
Title: Re: Paypal Email to Vendor
Post by: Jörgen on September 16, 2021, 20:43:12 PM
I think there have been issues, mostly rounding errors. This because VM and Paypal do not perform rounding the same way.

That could be the reason the option to send product details to Paypal is not available any more.

Jörgen
Title: Re: Paypal Email to Vendor
Post by: Traveller47 on September 16, 2021, 21:01:16 PM
Thank you - that is useful information.
OK, so I am back to trying to get the VM vendor email to work consistently accross all the site orders.