Hi,
I am using the Swipe HQ payment module, I also have quantity discounts installed. For some reason on the order confirmation e-mail the
discount gets taken of the total twice - it doesn't do this anywhere else, just on the confirmation e-mail and only when using the swipeHQ payment module.
Below is the code I believe to be responsible for sending the order confirmation e-mail from the swipehq module:
//send emails
if (!empty($_REQUEST['user_data'])) {
$order_id = $_REQUEST['user_data'];
if (!empty($_SESSION['swipehq_order_' . $order_id])) {
require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
require_once('includes/languages/english/checkout_process.php');
require_once(DIR_WS_CLASSES . 'order.php');
require_once(DIR_WS_CLASSES . 'payment.php');
$payment_class = new payment($_SESSION['payment']);
$order = unserialize($_SESSION['swipehq_order_' . $order_id]);
require_once(DIR_WS_CLASSES . 'order_total.php');
$order_total_modules = new order_total;
$order_totals = $order_total_modules->process();
$order->send_order_email($order_id, 2);
$zco_notifier->notify('NOTIFY_CHECKOUT_PROCESS_AFTER_SEND_ORDER_EMAIL');
}
}
I have e-mailed swipe HQ re this, but as it may have something to do with having the quantity discount mod installed thought I would ask about it here also.
Thanks,
Mike.
Bookmarks