Author Topic: [SOLVED] Order Status Emails Not Working  (Read 4372 times)

sydneyartschool

  • Beginner
  • *
  • Posts: 28
[SOLVED] Order Status Emails Not Working
« 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.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27467
  • Always on vacation
    • Jenkin Hill Internet
Re: Order Status Emails Not Working
« Reply #1 on: February 13, 2016, 12:08:22 pm »
What order status is your payment plugin returning?
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.3.10057 on Joomla 3.9.10 PHP 7.0.33
Testing VM 3.5.0.10097 on Joomla 3.9.10

sydneyartschool

  • Beginner
  • *
  • Posts: 28
Re: Order Status Emails Not Working
« Reply #2 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.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8893
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: Order Status Emails Not Working
« Reply #3 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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

sydneyartschool

  • Beginner
  • *
  • Posts: 28
Re: Order Status Emails Not Working
« Reply #4 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.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8893
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: Order Status Emails Not Working
« Reply #5 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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9853
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Order Status Emails Not Working
« Reply #6 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
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

sydneyartschool

  • Beginner
  • *
  • Posts: 28
[SOLVED] Order Status Emails Not Working
« Reply #7 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

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8893
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: [SOLVED] Order Status Emails Not Working
« Reply #8 on: February 14, 2016, 18:54:59 pm »
Quote
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.

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?
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9853
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: [SOLVED] Order Status Emails Not Working
« Reply #9 on: February 15, 2016, 10:46:42 am »
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.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

kalestud

  • Beginner
  • *
  • Posts: 14
    • Vintage Hatter
  • VirtueMart Version: VM 3.2.2 on Joomla 3.7.4
Re: [SOLVED] Order Status Emails Not Working
« Reply #10 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

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8893
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: [SOLVED] Order Status Emails Not Working
« Reply #11 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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

kalestud

  • Beginner
  • *
  • Posts: 14
    • Vintage Hatter
  • VirtueMart Version: VM 3.2.2 on Joomla 3.7.4
Re: [SOLVED] Order Status Emails Not Working
« Reply #12 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...

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9853
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: [SOLVED] Order Status Emails Not Working
« Reply #13 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
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/