I think you may find that the fix suggests you add $cust_array = array(); below the $custlist = ''; and not replace that line.........
Printable View
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'])) {
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();
Hi,
I have been editing the recover_cart_sales.php to customize the email sent out. I do want to make it more personal by having the customers first name only. Can anyone help with how I can achieve this. TIA
i have the fllowing error on the reports tool of this mod. getting this error,
Warning: Invalid argument supplied for foreach() in /public_html/store/admin/stats_recover_cart_sales.php on line 153
this is in the Amount section of the table. This is a fress install on 1.3.7. is this error because the mod has no detils to work with yet or is it a problem??
Perhaps scrolling up 2 posts might give you the answer you're seeking?
fixed thanks, i did see the post but thought i would post the whole error code as this help people searching for the error code etc :D
So as to not confuse anyone, my post had a mistake. The change should be added before the loop at around line 97 as someone else had mentioned.