VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: sydneyartschool on February 13, 2016, 11:34:32 AM

Title: [SOLVED] Order Status Emails Not Working
Post by: sydneyartschool on February 13, 2016, 11:34:32 AM
Virtuemart 3.0.12
Joomla 2.5.28

I upgraded from VM 2.6.18 to 3.0.12 so that I could start to prepare for a migration of to Joomla 3.
Order confirmation/status emails have stopped working properly.

Order Status Email DOES NOT SEND when shopper starts/finishes transaction
Order Status Email however DOES SEND when status is changed manually.

In CONFIGURATION>EMAILS
Default Order Status to send email to shopper is set to Paid, Cancelled, Refunded
Default Order Status to send email to vendo is set to: Pending, Paid, Cancelled, Refunded

I have tried various combinations of text and html email.  php, and smtp mailers.
I have tried installing VM 3.0.11
Nothing seems to work

I remember having a similar problem some years ago and someone suggested using a file from an older version of VM which I recall seemed to work.  But for the life of me I can't find that post.

Can anyone throw any light on what might be the problem.
Title: Re: Order Status Emails Not Working
Post by: jenkinhill on February 13, 2016, 12:08:22 PM
What order status is your payment plugin returning?
Title: Re: Order Status Emails Not Working
Post by: sydneyartschool on February 13, 2016, 13:17:45 PM
I am using Paypal (Standard)

When the shopper first places the order and checks out the Order Status is Pending
When the shopper pays at Paypal the Order Status becomes Paid.

I'm assuming these are coming from the payment plugin.
Title: Re: Order Status Emails Not Working
Post by: GJC Web Design on February 13, 2016, 15:35:42 PM
pending no longer sends mails
check all your configs for emails in VM .. there are new settings
Title: Re: Order Status Emails Not Working
Post by: sydneyartschool on February 14, 2016, 06:27:16 AM
Hi GJC,  as per my original email.  This is not a config issue.

I agree,  Pending staus is not available as a trigger to generate an email to a shopper.
However,  it is still there as a a trigger for vendors.  (If this has also been deprecated then the admin interface is still showing it as an option).

Regardless,  that does still not explain the lack of emails for Paid and Cancelled order status events.

BTW.  Since the original bug report I have upgraded to Joomla 3.4.8 and the email defect is still there.
(So this probably rules out the Joomla version as the problem).

There seem to be other posts that describe similar defects.   So I suspect a lot of people will be happy if we can bottom this one out.
Title: Re: Order Status Emails Not Working
Post by: GJC Web Design on February 14, 2016, 10:25:32 AM
another possibility is if a pdf invoice is set to generate on confirm but this fails.. can you produce a pdf invoice?
if not check the server logs.. is often a lack of server memory
Title: Re: Order Status Emails Not Working
Post by: Milbo on February 14, 2016, 11:37:15 AM
Most time the problems are the urls for images. You need absolute urls! http://docs.virtuemart.net/manual/general-concepts/205-invoices.html
Title: [SOLVED] Order Status Emails Not Working
Post by: sydneyartschool on February 14, 2016, 15:17:42 PM
GJC:  You are a genius.
Milbo:  I thank you for the link ... very useful


So my configuration was set to create an invoice on PAID. 
But when I checked the invoice in the orders screen I was getting a TCPDF ERROR: [Image] Unable to get the size of the image: http://sydneyartschool.com.au/images/stories/virtuemart/payment/paypal visa mc.png

Chanced the image to jpeg and all is now good.  Vendor and customer are getting emails on PAID.

Interesting that the configuration still shows the option of the vendor receiving an email on PENDING status.  But this seems to have gone away.
This was a useful feature it enabled us to follow up in with people in real time if they were struggling with the online system.

But at least we get the email confirmation on PAID which covers  95% of our requirement.

Thanks again for the help. 

SAS
Title: Re: [SOLVED] Order Status Emails Not Working
Post by: GJC Web Design on February 14, 2016, 18:54:59 PM
QuoteInteresting that the configuration still shows the option of the vendor receiving an email on PENDING status.  But this seems to have gone away.
This was a useful feature it enabled us to follow up in with people in real time if they were struggling with the online system.

Is it not possible just to make some other status e.g. not completed.. and set the 'pending" ones to that in the payment plugin and trigger an admin email for?
Title: Re: [SOLVED] Order Status Emails Not Working
Post by: Milbo on February 15, 2016, 10:46:42 AM
Quote from: sydneyartschool on February 14, 2016, 15:17:42 PM
GJC:  You are a genius.
Milbo:  I thank you for the link ... very useful



lol, in the link stands your answer and I wrote it. Any part of the whole matter, lol.
Title: Re: [SOLVED] Order Status Emails Not Working
Post by: kalestud on March 24, 2016, 15:36:00 PM
Hate to tell you this, but that's not the solution.
I also get a lot of TCPDF errors when saving order heads.

I removed all old media and made a new vh_logo.jpg, also dove into the database where it was still on the old .gif and changed it.
I still get the message:

TCPDF ERROR: [Image] Unable to get the size of the image: images/stories/virtuemart/vendor/vh_logo.jpg
As you can see, no full addres here, but the relative path.

So I figured, maybe it's got to do with the base URL ad tried changing it from http://www.domain.ext to the actual https://www.domain.ext and even www.domain.ext and domain.ext, all to no success.

I'm sowly loosing my mind over this....
VM 3.0.14 / J! 3.5.0
Title: Re: [SOLVED] Order Status Emails Not Working
Post by: GJC Web Design on March 24, 2016, 18:59:36 PM
there is a post on here from ages ago about this.. from memory it was only on particular server setups and was TCPDF library related . not VM
Title: Re: [SOLVED] Order Status Emails Not Working
Post by: kalestud on March 24, 2016, 21:16:47 PM
 changed stuff to the config of virtuemart, but looking at the database, it still wants files that aren't there anymore. That has nothing to do with tcpdf...
Title: Re: [SOLVED] Order Status Emails Not Working
Post by: Milbo on March 27, 2016, 03:05:32 AM
Install our tcpdf version 1.0  for vm3, if your vm is quite old (vm2.6) then you may have to use the tcpdf 0.8
http://dev.virtuemart.net/projects/tcpdf