To make the delete button work I added an "echo"
Changed (approx line 3xx recover_cart_sales.php)
Code:
<!-- Delete Button //-->
<td colspan='8' align='right'><a href="<?php zen_href_link(FILENAME_RECOVER_CART_SALES, 'action=delete&customer_id=' . $curcus . '&tdate=' . $tdate); ?>"><?php echo zen_image_button('button_delete.gif', IMAGE_DELETE); ?></a></td>
To:
Code:
<!-- Delete Button //-->
<td colspan='8' align='right'><a href="<?php echo zen_href_link(FILENAME_RECOVER_CART_SALES, 'action=delete&customer_id=' . $curcus . '&tdate=' . $tdate); ?>"><?php echo zen_image_button('button_delete.gif', IMAGE_DELETE); ?></a></td>
I also changed the sort on customers_id from "asc" to "desc".
And the stats_recover_cart_sales.php file reported an sql error on names containing a single quote. The error comes from:
Code:
OR o.customers_name like '" . $customer->fields['customers_firstname'] . ' ' . $customer->fields['customers_lastname'] . "')
For now I removed this from the sql because I don't understand why this file looks up orders from customers having a name "like" another customers name, or something
Bookmarks