VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Brockney on April 04, 2017, 13:03:37 PM

Title: Receive email after an order is placed
Post by: Brockney on April 04, 2017, 13:03:37 PM
Hi there,

We are not receiving an email when an order is placed.

We only know about an order when we receive payment through PayPal

Orders are showing up in the Orders section of Virtuemart but we need orders to go to the store owner each time an order is placed.

How do we set this up?
Title: Re: Receive email after an order is placed
Post by: jenkinhill on April 04, 2017, 13:17:40 PM
What is the order status shown on the orders list?  Are emails sent if you manually change the order status from there? Do you have the right settings in VM Configuration/Emails "Default Order Status to send email to...."

Quote
Joomla 3.6.4

Did you miss the vital security release?
https://www.joomla.org/announcements/release-news/5693-joomla-3-6-5-released.html
http://virtuemart.net/news/latest-news/478-joomla-security-release-3-6-5-and-patch-for-joomla-2-5-28
http://forum.virtuemart.net/index.php?topic=118683.0

Check that the site has not been hacked - one indication is new users with admin permissions!

Title: Re: Receive email after an order is placed
Post by: Brockney on April 04, 2017, 18:36:40 PM
Hi,

The Default Order Status to send email to vendor includes Pending, Confirmed by Shopper, Confirmed, Cancelled, Refunded and Completed

I have just changed the status of recent orders to Completed and no emails have been received.

The email address is set to contact@emporiumvape.com in Global Configuration -> Server -> Mail Settings

Order emails were coming through up until 2 weeks ago



Title: Re: Receive email after an order is placed
Post by: jenkinhill on April 04, 2017, 23:43:17 PM
Quote from: Brockney on April 04, 2017, 18:36:40 PM
Order emails were coming through up until 2 weeks ago

SO what happened 2 weeks ago? Did you or the host change something? Have you checked to see if the site may have been hacked?
Title: Re: Receive email after an order is placed
Post by: Brockney on April 05, 2017, 16:34:21 PM
Thank you very much for the reply and apologies for not responding straight away.

I have been running a few checks to check the email is functioning.

Also, I'm not entirely sure how this changed 2 weeks ago and there is nothing that suggests we may have been hacked.

Emails sent to the business email are received by the email account and are being accessed by logging into our host. They are also being forwarded to the store owner's personal account by default.

Emails sent out from the business email are being received.

Clicking 'Send Test Email' in Joomla sends a test email to the business email address and this is also forwarded to the store owner.

I have been placing test orders at £0.01 for some 'Fresh Air' rather than using the sandbox. PayPal notifications are received by myself as the shopper and the store owner to his personal email but nothing seems to be reaching the shopper or the vendor in terms of an email with details of the actual order.

The business email address is stored in the Global Configuration -> Server -> Mass Mail Settings and is set to PHP Mail

Have I missed part of the link out?
Title: Re: Receive email after an order is placed
Post by: GJC Web Design on April 05, 2017, 17:07:57 PM
check your settings on the Paypal plugin and the email tab of the VM config
Title: Re: Receive email after an order is placed
Post by: Brockney on April 05, 2017, 18:23:11 PM
i have found the setting!!

Thank you so much for your guidance because it has prompted me to look around and check all of the settings.

I had set up a new Vendor in the Shoppers section and added the email address.

What I needed to do was to go into the original Vendor details and replace the email in there to the one that is linked with Joomla.

I have set the business email up to forward to the store owner and myself so things are running nice and tidily now.

Not sure if this is the 100% correct method but it works a treat :)

Thank you once again for taking the time to help with this  :D ;)
Title: Re: Receive email after an order is placed
Post by: GJC Web Design on April 05, 2017, 23:35:30 PM
Good

please update your Joomla if it is Joomla 3.6.4 -- it must be 3.6.5 .. your site is vulnerable
It is a tiny update and breaks nothing
Title: Re: Receive email after an order is placed
Post by: Brockney on November 01, 2017, 14:31:04 PM
Hello again, we were able to resolve this earlier this year but we have stopped receiving emails for orders.

We are still receiving emails to the contact email address but are not receiving orders.

We have Joomla 3.8.1

Apart from uploading new stock the only change we have made is the password to log in to Joomla.

Could this have caused the problem?
Title: Re: Receive email after an order is placed
Post by: jenkinhill on November 01, 2017, 19:21:58 PM
If you use Joomla 3.8.1 then you should use at least VM3.2.2  (current stable is 3.4.4)
Title: Re: Receive email after an order is placed
Post by: Brockney on November 03, 2017, 11:49:00 AM
Thanks, I just checked and we have VM 3.2.4

In the email settings we have always had contact@emporiumvape.com into the Additional vendor email addresses field and we used to receive emails when an order was placed.

Is this where we choose the address to use for order notifications?

(This email address is also set to forward to a gmail account and functions correctly if an email is sent to it)
Title: Re: Receive email after an order is placed
Post by: Brockney on November 03, 2017, 11:50:22 AM
Ps apologies for the two attachments, they are both the same file
Title: Re: Receive email after an order is placed
Post by: jenkinhill on November 03, 2017, 12:01:21 PM
Maybe deselect "Use the vendor email address"

I assume that the payment plugin is returning "confirmed" for the orders?  Are mails sent when you manually change the status of an order?
Title: Re: Receive email after an order is placed
Post by: Brockney on November 03, 2017, 12:34:13 PM
Ok, I have done that and the change was accepted (although I did get this notification: Notice Loaded virtuemart default configuration from file virtuemart.cfg)

We placed a test order yesterday for a bag of fresh air charged at 1 pence (lol!)

No email was received. I have just changed the order status to "Refunded" and have not received a notification email following the change.

Emails sent to the address are still being received and forwarded to my Gmail account.

Here are a couple of screenshots, one shows the order being refunded and the other shows the default order status to send emails to vendor
Title: Re: Receive email after an order is placed
Post by: Brockney on November 03, 2017, 12:52:42 PM
Ps do you have a link for the very latest VM update please (sorry, I couldn't find it anywhere in Joomla)
Title: Re: Receive email after an order is placed
Post by: Brockney on November 03, 2017, 13:07:05 PM
I just changed the order status and ticked the "Notify Shopper" option. We got this message

Could not instantiate mail function.
Could not send a message to Osman xxxxx, emporiumxxx@hotmail.co.uk

Could this have any relation to us not receiving order emails?
Title: Re: Receive email after an order is placed
Post by: jenkinhill on November 03, 2017, 15:32:34 PM
That would do it. See  http://forum.virtuemart.net/index.php?topic=137272.msg480561#msg480561

Latest release VM versions are on http://dev.virtuemart.net/projects/virtuemart/files   
Title: Re: Receive email after an order is placed
Post by: Brockney on November 07, 2017, 18:34:35 PM
Thank you, I clicked the Joomla Hosting link that was on the page you linked me to and I have resolved it. Thank you very much  ;D ;)