On your file admin/stats_recover_cart_sales.php replace the following code on line 96:
$custlist = '';
Replace with:
$cust_array = array();
It was posted here.
Thank you so much for the help. I totally appreciate it!
Denise
Hi, I have downloaded this mod, and I have to say its such an excellent idea!
I am wanting to change the email, so its slightly more relevant for our shop and more personal.
I have found where the email is created (shop/admin/includes/languages/english/recover_cart_sales.php) so no problem editing the actual text there.
The one thing I want to remove is the shopping cart contents that appears in the email between 'EMAIL_TEXT_BODY_HEADER' and 'EMAIL_TEXT_BODY_FOOTER'. I was wondering someone could tell me which bit of code (and where) I need to delete to remove the contents of the shopping cart from the email.
For ZenCart Version 1.3.8a the following install worked for me:
From the ZenCart Downloads section:
Download and install "Recover Cart Sales" V3.0 August 12 2007.
Modify admin/stats_recover_cart_sales.php as follows:
find around line 96:
change to:Code:$custlist = '';
Code:$custlist= ''; $cust_array = array();
Modify admin/recover_cart_sales.php as follows:
Find around line 381:
change to:Code:if ((time()-(RCS_EMAIL_TTL*24*60*60)) <= strtotime($basket->fields['datemodified'])) {
These modifications are the same as posted by Andrew Berezin in post #199. I can confirm that this modification works with ZenCart version 1.3.8a with the listed modifications installed.Code:if ($basket->fields['datemodified'] != '' && (time()-(RCS_EMAIL_TTL*24*60*60)) <= strtotime($basket->fields['datemodified'])) {
www.aspenshopsonline.com - ZenCart 1.3.9h
www.wilkssupply.com - ZenCart 1.3.9h
www.un-du.net - ZenCart 1.3.8a
I have this installed with 1.38 and have applied the patches. When testing, existing customers receive the EMAIL_TEXT_NEWCUST_INTRO rather than the EMAIL_TEXT_CURCUST_INTRO.
Can someone confirm that EMAIL_TEXT_CURCUST_INTRO is being sent on their install?
If you receive an error message on line 153 of stats_recover_cart_sales.php regarding an invalid argument supplied for the foreach() function, then before line 119:
add:PHP Code:if (!$orders->EOF) {
$custknt++;
$total_recovered += $orders->fields['value'];
$cust_array[$custknt] = array_merge($scart->fields, $orders->fields);
}
PHP Code:$cust_array = array();