VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: BjornOnPole on June 03, 2015, 12:25:19 PM

Title: Order confirmation not sent to user
Post by: BjornOnPole on June 03, 2015, 12:25:19 PM
PHP 5.4.10
Joomla! 3.4.1   
VirtueMart 3.0.9
URL: http://onpole.org/letsgrow/administrator

Whenever a user places an order, the user does not get any email. The admin does get email, so emailing works.
I tried setting the email to text instead of HTML, no difference.
In Configuration > Configuration > Checkout I've added all the possible status to all the boxes, no difference.

How to fix?
Title: Re: Order confirmation not sent to user
Post by: nicoco59 on June 13, 2015, 17:32:32 PM
We have the same problem, apart that it is worse: we don't receive emails when there is a new order, and the customer doesn't either, but when we do receive emails when we have a new customer.

PHP 5.5
Joomla! 3.4.1   
VirtueMart 3.0.9
Installed components : Artio Joomsef, Xmap, Mailchimp

The Paypal plugin (we are using) and Virtuemart's checkout options are well configured, so I don't see what could be wrong...

Thanks for your help
Title: Re: Order confirmation not sent to user
Post by: jjk on June 13, 2015, 21:44:37 PM
Just in case you have 'Pending' in order status email settings - remove it.
Title: Re: Order confirmation not sent to user
Post by: nicoco59 on June 14, 2015, 18:25:05 PM
Quote from: jjk on June 13, 2015, 21:44:37 PM
Just in case you have 'Pending' in order status email settings - remove it.

I'm on this page : /administrator/index.php?option=com_virtuemart&view=orderstatus, there are two things:

- "Sent" and "Pending" status are locked and I can't change them,
- When I try to unpublish (at least) the "Pending" status nothing happen and I have a this error in the console : Empty string passed to getElementById(). jquery.min.js:2:0

I'll try to force and unpublish the status through the database and report to you if it works.
Title: Re: Order confirmation not sent to user
Post by: jjk on June 15, 2015, 00:27:45 AM
Quote from: nicoco59 on June 14, 2015, 18:25:05 PM
I'm on this page : /administrator/index.php?option=com_virtuemart&view=orderstatus, there are two things:
- "Sent" and "Pending" status are locked and I can't change them

That's the wrong page. Leave those intact. They are locked, because VM needs them.
Look at the VM Configuration > Checkout tab instead.
Title: Re: Order confirmation not sent to user
Post by: rojones31 on June 17, 2015, 03:29:02 AM
I'm having the same issue, has anyone found a solution for this issue?  There is no "pending" set for either the client nor the store.  client still not receiving emails nor is the store.  The is also not receiving any email from when the client signs up as a new customer.

Please help.

RJ >:(
Title: Re: Order confirmation not sent to user
Post by: jjk on June 17, 2015, 11:14:04 AM
Quote from: rojones31 on June 17, 2015, 03:29:02 AM
...client still not receiving emails nor is the store.  The is also not receiving any email from when the client signs up as a new customer.

Sounds like you should also check your email settings. Do you receive an email if you use 'Ask a question about this product'?
Title: Re: Order confirmation not sent to user
Post by: rojones31 on June 17, 2015, 15:19:42 PM
I have the "Ask a question about this product' turned off in my settings.  Therefore, if I have that turned off it should not interrupt the store and client from receiving notification emails about a order confirmation.   I have no clue on how to fix this. 

RJ
Title: Re: Order confirmation not sent to user
Post by: jjk on June 17, 2015, 16:25:50 PM
@rojones31
Turn on 'Ask a question about this product' temporarily and test if the email is sent. If that doesn't work either, you have most likely a wrong email configuration.
Title: Re: Order confirmation not sent to user
Post by: rojones31 on June 17, 2015, 16:42:18 PM
I will try that and get back to you if this works or not.

RJ
Title: Re: Order confirmation not sent to user
Post by: rojones31 on June 17, 2015, 17:45:04 PM
@jjk
I turned on the 'Allows to Ask a question' in VM3 backend and tested the link on the product page on the site and the question was sent to the proper store email.  So, seems like the correct email configuration is set up, so I don't know how to fix the order confirmation email.  Please help.

RJ
Title: Re: Order confirmation not sent to user
Post by: nicoco59 on June 18, 2015, 13:31:35 PM
Quote from: jjk on June 15, 2015, 00:27:45 AM
Quote from: nicoco59 on June 14, 2015, 18:25:05 PM
I'm on this page : /administrator/index.php?option=com_virtuemart&view=orderstatus, there are two things:
- "Sent" and "Pending" status are locked and I can't change them

That's the wrong page. Leave those intact. They are locked, because VM needs them.
Look at the VM Configuration > Checkout tab instead.

Hi,

Some updates on the problem :

- I checked the "checkout" tab and the Pending status doesn't appear at all in those : "Default Order Status to create an invoice", "Default Order Status to send email to shopper", so it seems to be ok.
- We finally received an email today, and found out that when the customer has free delivery the order confirmation email will be sent, if not,  it won't be sent.
- If we change the status of an email to : confirmed again, the email will be sent

I don't have any clues yet why this is happening, if I do I'll warn you.
Title: Re: Order confirmation not sent to user
Post by: rojones31 on June 18, 2015, 15:27:36 PM
@nicoco59 - Thanks for your insight.  If you don't mind me asking, what are your selections under Default Order Status to create an invoice, Default Order Status to send email to shopper and Default Order Status to send email to vendor?  When I force a cancellation of an order an email is sent to the customer.  For some reason I believe there is an issue with IPN to change the status of the order.  When the order is placed and confirmed in Paypal, VM is not being notified of the status change and it's not relayed back to VM and that's why the orders aren't being updated in the backed of VM.  Something is up with the IPN process, but I don't know how to fix it.   If there is anyone out there please help us with this process.

Thanks,
RJ
Title: Re: Order confirmation not sent to user
Post by: jjk on June 18, 2015, 18:32:26 PM
Did you read this? https://forum.virtuemart.net/index.php?topic=122595.0
In order to find out if you have a PayPal configuration issue, you can also (temporarily) configure a 'Standard' payment method and check if the emails are ok with that.
Do you use any third party 'One page checkout' extension?
Title: Re: Order confirmation not sent to user
Post by: rojones31 on June 18, 2015, 19:55:35 PM
@jjk  - Thanks for responding.  I will check this out and get back to you if this has resolved the issues. 

Thanks again,
RJ
Title: Re: Order confirmation not sent to user
Post by: nicoco59 on June 28, 2015, 18:05:26 PM
Quote from: rojones31 on June 18, 2015, 15:27:36 PM
@nicoco59 - Thanks for your insight.  If you don't mind me asking, what are your selections under Default Order Status to create an invoice, Default Order Status to send email to shopper and Default Order Status to send email to vendor?  When I force a cancellation of an order an email is sent to the customer.  For some reason I believe there is an issue with IPN to change the status of the order.  When the order is placed and confirmed in Paypal, VM is not being notified of the status change and it's not relayed back to VM and that's why the orders aren't being updated in the backed of VM.  Something is up with the IPN process, but I don't know how to fix it.   If there is anyone out there please help us with this process.

Thanks,
RJ

For those options:

- Default Order Status to create an invoice => Confirmed
- Default Order Status to send email to shopper => Confirmed, reimbursed, sent
- Default Order Status to send email to vendor => Everything except "on hold"

I'm still checking the problem, there are just several issues I have on my side and can explain why this doesn't work :

- By using joomla's update tool, I got those errors :

Update: Could not open update site #18 "VirtueMart plg_vmpayment_standard Update Site", URL: VirtueMart plg_vmpayment_standard Update Site/extension.xml

Update: Could not open update site #19 "VirtueMart plg_vmpayment_klarna Update Site", URL: VirtueMart plg_vmpayment_klarna Update Site/extension.xml

Update: Could not open update site #20 "VirtueMart plg_vmpayment_klarnacheckout Update Site", URL: VirtueMart plg_vmpayment_klarnacheckout Update Site/extension.xml

Update: Could not open update site #21 "VirtueMart plg_vmpayment_sofort Update Site", URL: VirtueMart plg_vmpayment_sofort Update Site/extension.xml

Update: Could not open update site #22 "VirtueMart plg_vmpayment_paypal Update Site", URL: VirtueMart plg_vmpayment_paypal Update Site/extension.xml

Update: Could not open update site #23 "VirtueMart plg_vmpayment_heidelpay Update Site", URL: VirtueMart plg_vmpayment_heidelpay Update Site/extension.xml

Update: Could not open update site #24 "VirtueMart plg_vmpayment_paybox Update Site", URL: VirtueMart plg_vmpayment_paybox Update Site/extension.xml

Update: Could not open update site #34 "VirtueMart plg_vmpayment_authorisenet Update Site", URL: VirtueMart plg_vmpayment_authorizenet Update Site/extension.xml

Update: Could not open update site #35 "VirtueMart plg_vmpayment_sofort_ideal Update Site", URL: VirtueMart plg_vmpayment_sofort_ideal Update Site/extension.xml

Update: Could not open update site #36 "VirtueMart plg_vmshipment_weight_countries Update Site", URL: VirtueMart3 plg_vmshipment_weight_countries Update Site/extension.xml

Update: Could not open update site #37 "VirtueMart plg_vmcustom_textinput Update Site", URL: VirtueMart3 plg_vmcustom_textinput Update Site/extension.xml

Update: Could not open update site #38 "VirtueMart plg_vmcustom_specification Update Site", URL: VirtueMart3 plg_vmcustom_specification Update Site/extension.xml

Update: Could not open update site #40 "VirtueMart plg_vmcalculation_avalara Update Site", URL: VirtueMart3 plg_vmcalculation_avalara Update Site/extension.xml

Update: Could not open update site #41 "VirtueMart plg_search_virtuemart Update Site", URL: VirtueMart3 plg_search_virtuemart Update Site/extension.xml

Update: Could not open update site #42 "VirtueMart MOD_VMENU Update Site", URL: VirtueMart3 MOD_VMENU Update Site/extension.xml

Update: Could not open update site #43 "VirtueMart mod_virtuemart_currencies Update Site", URL: VirtueMart3 mod_virtuemart_currencies Update Site/extension.xml

Update: Could not open update site #44 "VirtueMart mod_virtuemart_product Update Site", URL: VirtueMart3 mod_virtuemart_product Update Site/extension.xml

Update: Could not open update site #45 "VirtueMart mod_virtuemart_search Update Site", URL: VirtueMart3 mod_virtuemart_search Update Site/extension.xml

Update: Could not open update site #46 "VirtueMart mod_virtuemart_manufacturer Update Site", URL: VirtueMart3 mod_virtuemart_manufacturer Update Site/extension.xml

Update: Could not open update site #47 "VirtueMart mod_virtuemart_cart Update Site", URL: VirtueMart3 mod_virtuemart_cart Update Site/extension.xml

Update: Could not open update site #48 "VirtueMart mod_virtuemart_category Update Site", URL: VirtueMart3 mod_virtuemart_category Update Site/extension.xml

- For some reasons, I can't access the virtuemart all in one component..

Do you have the same problem ?
Title: Re: Order confirmation not sent to user
Post by: nicoco59 on June 28, 2015, 18:11:21 PM
Quote from: jjk on June 18, 2015, 18:32:26 PM
Did you read this? https://forum.virtuemart.net/index.php?topic=122595.0
In order to find out if you have a PayPal configuration issue, you can also (temporarily) configure a 'Standard' payment method and check if the emails are ok with that.
Do you use any third party 'One page checkout' extension?

I checked this page, and here are the results:

- The order status is not updated when a payment has been done
There might be several reasons for that:
1) Your virtueMart version is < 2.0.26
We do not SEF the IPN URL anylonger. To fix this issue
in file /plugins/vmpayment/paypal/paypal.php
replace this line
Code: [Select]
"notify_url"       => substr(JURI::root(false,''),0,-1) . JROUTE::_('index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component', false),

with this line
Code: [Select]
"notify_url"       =>JURI::root() .  'index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component' . '&lang='.JRequest::getCmd('lang','') ,

=> Those lines don't appear in the Paypal's php file

2) Check if you received the IPN
In  your browser, try to access this URL http://yourdomain.com/index.php?option=com_virtuemart&amp;view=pluginresponse&amp;task=pluginnotification&amp;tmpl=component . There can be a problem here if you use 3rd party SEF since some member report that joomla redirect it to 404 when accessing this notification url.
=> When checking I arrive to a blank page (but it's not 404)

3) Check your server logs, and search for "task=pluginnotification".
Don't have any traces of this in my log file
Title: Re: Order confirmation not sent to user
Post by: nicoco59 on June 28, 2015, 18:54:40 PM
For information : I tried setting the url like on this page : http://www.virtuemartrackingextension.com/virtuemart-tracking-extension-documentation/24-setup-paypal-to-auto-confirm-orders-in-virtuemart

There page isn't blank anymore, but I still won't receive any order confirmation email, so I guess it has nothing to do with the paypal's IPN.

Can someone tell me which PHP file I can edit ? That virtuemart emails management..

Thanks.
Title: Re: Order confirmation not sent to user
Post by: nicoco59 on September 24, 2015, 17:50:45 PM
This problem has been solved after the release of virtuemart 3.0.10  ;D

Thanks guys !^^
Title: Re: Order confirmation not sent to user
Post by: Milbo on September 24, 2015, 21:52:45 PM
Great, we found out, an email not send to shoppers is often a broken invoice.