N
N
NisXan2017-04-27 09:47:44
PHP
NisXan, 2017-04-27 09:47:44

Why doesn't I receive an order completion email from Virtuemart3?

Hello, I use CMS Joomla 3.4.1, VirtueMart 3.0.18 component.
After placing an order, a new one with the status "pending" appears in the list of orders. In the e-mail settings, I set it to send a letter for orders with the status "pending". But the letter does not arrive. If you manually change the status of the order to "confirmed", then the letter comes to both the admin and the customer.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gedonist, 2020-02-21
@Gedonist

I faced a similar problem: a new order is assigned the status "pending" (pending). At the same time, neither the owner nor the client receive notifications. But if you change the status of the order, then notifications come to everyone.
this is affected by VirtueMart's "settings-settings-email" settings. There are items:
"Default order status for sending an email to the buyer"
"Default order status for sending an email to the seller"
Solution 1
Out of the box, VirtueMart does not allow you to add the "pending" status there. In order to fix this, you can apply the following hack:
go to administrator/components/com_virtuemart/views/config/tmpl/ open default_email.php and
find something like this:

echo VmHTML::row('genericlist', 'COM_VIRTUEMART_CFG_OSTATUS_EMAILS_SHOPPER', $this->osWoP_Options, 'email_os_s[]', $attrlist, 'order_status_code', 'order_status_name', VmConfig::get('email_os_s', array('U', 'C', 'S', 'R', 'X')), 'email_os_s', true);

Replace $this->osWoP_Options with $this->os_Options
In the options, you can select a "pending" state to send to the client/owner. Changing options, profit!
Decision 2
We prescribe in all payment methods so that after "payment" the status of the order changes to "confirmed by the buyer". In this case, even without a hack, letters will begin to arrive.
Of course, all these methods will work only if the system for sending emails is configured and working, the sender's address matches the site's domain, and emails are not stored in spam.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question