| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Hide Failed Orders From Customers | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Hide Failed Orders From Customers
Hi,
I wanted to hide orders with a Failed Status from customers so I asked Qualiteam to provide a solution. In <xcart_dir>/include/orders.php find: <CODE> # Search by order status if (!empty($data["status"])) $search_condition .= " AND $sql_tbl[orders].status='".$data["status"]."'"; </CODE> and replace with: <CODE> # Search by order status if (!empty($data["status"])) { $search_condition .= " AND $sql_tbl[orders].status='".$data["status"]."'"; } else { if ($current_area == "C") $search_condition .= " AND $sql_tbl[orders].status <> 'F' AND $sql_tbl[orders].status <> 'D' "; } </CODE> The way I use this is to set an order to Declined, so that the customer receives an email lettting them know their order hasn't gone through, then change the order status to Failed - they aren't emailed with a Failed order status and the order won't show up on their order history. Works on 4.0.18, should work on other versions if you can locate the first piece of code in include/orders.php
__________________
X-Cart Gold | v 4.0.18 | Unix | php 4.3 | phpMyAdmin 2.8.0.3 | |
|||||||||
|
|||
X-Cart forums © 2001-2020
|