Confirmation Email Problem

Confirmation Email Problem

Postby alexbenning@.....za » Mon Sep 12, 2011 9:36 am

I am having a problem with the confirmation email not being sent automatically after payment has been made. I am using the email after payment confirmation feature and all is working well, the pending email is not being sent, the order status is being changed when successful payment is returned from the payment gateway, the only problem is that I have to click update status in my orders list before the confirmation email is sent. If I dont click update status then no email goes out.
When I click update status then 2 emails are being sent, the purchase order with confirmed not pending status, which is perfect, but another email is going out saying the order status has changed, be nice to stop this one. I would assume that if the confirmed purchase order email could be triggered without clicking update status then the second email wouldnt be sent.

I am using Joomla 1.5.2
and Virtuemart 1.1.4

any help would be much appreciated

Andrew
alexbenning@.....za
 
Posts: 1
Joined: Mon Sep 12, 2011 9:11 am

Re: Confirmation Email Problem

Postby admin » Wed Sep 21, 2011 1:10 pm

Hello Alex,
this feature works as you described intentionally: it sends Confirmation email only for "confirmed" status of the order. The customer still gets the order status emails because in case of unsuccessfull payment he needs to know that the payment was not processed.


After we finish implementation of this features (this week):
- shipping templates
- disable a shipping method per payment method
- disable a payment method per shipping method (for any shipping method, not only standard shipping)
- payment html per checkbox

This will be inluded in 1.2.289 build in our extended ps_order.php file.

please edit this file:
/components/com_virtuemart/themes/__YOURVMTHEME__/html/ps_order.php
optionally you can edit installer file in:
/administrator/components/com_onepage/vm_files/ps_order.php

search for this
Code: Select all
    $retval = $ps_order_orig->order_status_update($d);


replace the line with these lines
Code: Select all
      if (!isset($d['notify_customer'])) $d['notify_customer'] = 'N';
      $nc = $d['notify_customer'];
      if (!empty($d['order_status']) && ($d['order_status'] == 'C'))
      {
       $d['notify_customer'] = 'N';
    }
    $retval = $ps_order_orig->order_status_update($d);
    $d['notify_customer'] = $nc;
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm


Return to One Page Checkout for Virtuemart 1.1.x