Forums / All Other Contributions/Addons / Recover Cart [Support Thread]

Recover Cart [Support Thread]

Started by jayson_gurney on 31 May 2006, 9:15 AM · Views: 219,677

Results 641 to 660 of 662
24 Nov 2022, 10:12 PM
#641
websmith avatar

websmith

New Zenner

Join Date:
Jan 2015
Location:
Pensacola Florida
Posts:
75
Plugin Contributions:
0

Recover Cart [Support Thread]

websmith:

After seeing how this pasted in with all the # signs apparently I have a problem with pasting from my machine. This was copied out from the server using nano. It does not show the number signs but when I turn on the white space I can see spaces are not there. I modified the file with nano and now the spaces show and the error changes so it is something with the way I am editing files. I am working to identify that and will update when I know more.

Ok after several hours of work I know the cause of the problem it is being generated by using FireFox to copy to code from the web it is putting spurious characters in for spaces. I do not know why or how to fix this but I will worry about that later.
Nano nor Vim with see it but cat –A, the ZC website (the # in the previous post), and apparently php8.1 see it. This is a sample of the results of cat -A:

ifM-BM- (!function_exists('defineIfNot'))M-BM- {^M$
M-BM- M-BM- M-BM- M-BM- functionM-BM- defineIfNot(stringM-BM- $name,M-BM- stringM-BM- $definition)^M$
M-BM- M-BM- M-BM- M-BM- {^M$
M-BM- M-BM- M-BM- M-BM- M-BM- M-BM- M-BM- M-BM- ifM-BM- (!defined($name))M-BM- {^M$
M-BM- M-BM- M-BM- M-BM- M-BM- M-BM- M-BM- M-BM- M-BM- M-BM- M-BM- M-BM- define($name,M-BM- $definition);^M$
M-BM- M-BM- M-BM- M-BM- M-BM- M-BM- M-BM- M-BM- }^M$
M-BM- M-BM- M-BM- M-BM- }^M$
}^M$

I have found a work around (I manually typed the code in nano) and now have cleared the error with the changed code. When I click customer and choose Abandoned Carts I get the full page and it is showing abandoned carts (I had a test one sitting in the db) however I get the following Debug error:

[24-Nov-2022 14:50:49 America/Chicago] Request URI: /humphreystow/index.php?cmd=recover_cart_sales, IP address: 98.190.184.37
#0 /var/www/alt1.humphreystowbars.com/public_html/humphreystow/recover_cart_sales.php(577): zen_debug_error_handler()
#1 /var/www/alt1.humphreystowbars.com/public_html/humphreystow/index.php(11): require('...')
--> PHP Warning: Undefined array key "message" in /var/www/alt1.humphreystowbars.com/public_html/humphreystow/recover_cart_sales.php on line 577.

I do not have mail installed on this particular test server, it is just basic, so I cannot check to see if it is sending correctly at the moment.

24 Nov 2022, 10:17 PM
#642
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,747
Plugin Contributions:
56

Re: Recover Cart [Support Thread]

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

25 Nov 2022, 9:26 PM
#643
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Re: Recover Cart [Support Thread]

websmith:

....however I get the following Debug error:

[24-Nov-2022 14:50:49 America/Chicago] Request URI: /humphreystow/index.php?cmd=recover_cart_sales, IP address: 98.190.184.37
#0 /var/www/alt1.humphreystowbars.com/public_html/humphreystow/recover_cart_sales.php(577): zen_debug_error_handler()
#1 /var/www/alt1.humphreystowbars.com/public_html/humphreystow/index.php(11): require('...')
--> PHP Warning: Undefined array key "message" in /var/www/alt1.humphreystowbars.com/public_html/humphreystow/recover_cart_sales.php on line 577.

> 
> I do not have mail installed on this particular test server, it is just basic, so I cannot check to see if it is sending correctly at the moment.

i'm showing this on line 563:

```php
<td><?php echo zen_draw_textarea_field('message', 'soft', '100%', '15', $_POST['message']); ?></td>

which i am guessing corresponds to your line 577.

that warning can be resolved like so:

<td><?php echo zen_draw_textarea_field('message', 'soft', '100%', '15', $_POST['message'] ?? ''); ?></td>

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

25 Nov 2022, 9:54 PM
#644
websmith avatar

websmith

New Zenner

Join Date:
Jan 2015
Location:
Pensacola Florida
Posts:
75
Plugin Contributions:
0

Re: Recover Cart [Support Thread]

Well here it goes, these are the warnings/errors I am currently seeing with the Recover Cart Module

Errors

[25-Nov-2022 15:07:13 America/Chicago] Request URI: /admin/index.php?cmd=recover_cart_sales, IP address: 98.190.184.37
#0 [internal function]: zen_debug_error_handler()
#1 /var/www/alt1.adminbars.com/public_html/admin/recover_cart_sales.php(397): strtotime()
#2 /var/www/domain.com/public_html/admin/index.php(11): require('...')
--> PHP Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/domain.com/public_html/admin/recover_cart_sales.php on line 397.
[25-Nov-2022 15:07:13 America/Chicago] Request URI: /admin/index.php?cmd=recover_cart_sales, IP address: 98.190.184.37
#0 /var/www/domain.com/public_html/admin/recover_cart_sales.php(505): zen_debug_error_handler()
#1 /var/www/domain.com/public_html/admin/index.php(11): require('...')
--> PHP Warning: Undefined variable $ib in /var/www/domain.com/public_html/admin/recover_cart_sales.php on line 505.

[25-Nov-2022 15:07:13 America/Chicago] Request URI: /admin/index.php?cmd=recover_cart_sales, IP address: 98.190.184.37
#0 /var/www/domain.com/public_html/admin/recover_cart_sales.php(510): zen_debug_error_handler()
#1 /var/www/domain.com/public_html/admin/index.php(11): require('...')
--> PHP Warning: Undefined array key "page" in /var/www/domain.com/public_html/admin/recover_cart_sales.php on line 510.

[25-Nov-2022 15:07:13 America/Chicago] Request URI: /admin/index.php?cmd=recover_cart_sales, IP address: 98.190.184.37
#0 /var/www/domain.com/public_html/admin/recover_cart_sales.php(577): zen_debug_error_handler()
#1 /var/www/domain.com/public_html/admin/index.php(11): require('...')
--> PHP Warning: Undefined array key "message" in /var/www/domain.com/public_html/admin/recover_cart_sales.php on line 577. [/code}

Using the link supplied by the Software Guy, I look in the docs and made changes that seem to work however I am not sure they are actually correct.

Line 577 
Was:
[code]td><?php echo zen_draw_textarea_field('message', 'soft', '100%', '15', $_POST['message']); ?></td>

Changed to:

<td><?php echo zen_draw_textarea_field('message', 'soft', '100%', '15', (!empty($_POST['message']))) ?></td>

Line 510
Was:

'products_type']), "page=" . $_GET['page'] . "&product_type=" . $products->fields['products_type'] . "&cPath=" . zen_get_product_path((int)$basket->fields[

Changed to:

'products_type']), "page=" . (!empty($_GET['page'])). "&product_type=" . $products->fields['products_type'] . "&cPath=" . zen_get_product_path((int)$basket->fields[

Line 505 Undefined variable $ib I found nothing on this type of error in the docs, I did look at other sources and tried to guess a fix but had no luck. The same is true for the warning on line 397 PHP Deprecated: strtotime().

If anyone can help with those 2 it would be much appreciated.

25 Nov 2022, 11:23 PM
#645
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,747
Plugin Contributions:
56

Re: Recover Cart [Support Thread]

Your line numbers don't correspond to the latest download - are you working with the last version of the plugin?
This mod hasn't been upgraded for PHP 8.1 yet - you might be better off to go down to PHP 7.4 until there's an update for this plugin, then go to PHP 8.0 then to 8.1.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

26 Nov 2022, 6:52 PM
#646
websmith avatar

websmith

New Zenner

Join Date:
Jan 2015
Location:
Pensacola Florida
Posts:
75
Plugin Contributions:
0

Re: Recover Cart [Support Thread]

swguy:

Your line numbers don't correspond to the latest download - are you working with the last version of the plugin?
This mod hasn't been upgraded for PHP 8.1 yet - you might be better off to go down to PHP 7.4 until there's an update for this plugin, then go to PHP 8.0 then to 8.1.

I am aware the mod has not been updated.

I am testing trying to get everything working to upgrade production sites. I have many hours invested in this and was close to completing it, I have identified and tested the server upgrades needed and I have a working sitemap and Google ReCaptcha, recover carts was the final module I needed and to appearance I have corrected all the other errors it was throwing except the 2 listed in the post.

The line numbers do not match because I was using the file that has been modified with the previous posts in this thread. I am sorry I forgot to include the original file line numbers.

The original line numbers are mod file line 505 = original file line 491 and mod file line 397 = original file line 383.

The production sites are already at 1.5.7c and PHP 7.4, (which hits end of life in 2 days (11/28/22) this is the first chance I have had the time to work on moveing up to 1.5.8 and PHP 8.1 which is why I have put so much effort into it.

26 Nov 2022, 7:46 PM
#647
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,747
Plugin Contributions:
56

Re: Recover Cart [Support Thread]

$ib issue
original file admin/recover_cart_sales.php" line 356 add
$ib = 0;

strtotime issue
That value should not be null but I guess it is so you will want to change

original file admin/recover_cart_sales.php" line 383

from

        if ((time()-(RCS_EMAIL_TTL*24*60*60)) <= strtotime($basket->fields['datemodified'])) {

to

$mod = $basket->fields['datemodified'];
if (empty($mod)) {
$mod = date('Ymd');
}
if ((time()-(RCS_EMAIL_TTL2460*60)) <= strtotime($mod)) {

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

26 Nov 2022, 7:50 PM
#648
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,747
Plugin Contributions:
56

Re: Recover Cart [Support Thread]

btw please package and submit to plugins once you have it working.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

5 Dec 2022, 6:25 PM
#649
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Recover Cart [Support Thread]

I've submitted an updated version for review. Hopefully the moderators won't take too long to approve it.

Zen Cart developer since 2009 — Zen Cart Solutions
Ecommerce development, integrations & automation — Junction Solutions

17 May 2024, 7:48 AM
#650
amebb avatar

amebb

Zen Follower

Join Date:
May 2008
Location:
UK
Posts:
408
Plugin Contributions:
0

Re: Recover Cart [Support Thread]

would this plugin work on ZC 1.5.8a ?

Thank you

17 May 2024, 2:00 PM
#651
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,747
Plugin Contributions:
56

Re: Recover Cart [Support Thread]

I have some fixes that I will get in ASAP.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

17 May 2024, 2:19 PM
#652
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,747
Plugin Contributions:
56

Re: Recover Cart [Support Thread]

Updated to use new language files.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

29 Jan 2026, 4:52 PM
#653
spawnie69 avatar

spawnie69

Totally Zenned

Join Date:
Sep 2005
Location:
Ocala, FL
Posts:
527
Plugin Contributions:
0

Re: Recover Cart [Support Thread]

tried recover cart v2.0.0 on the latest zen cart 2.1.0
and got HTTP ERROR 500 on the abandoned carts link.

here are my logs:

[29-Jan-2026 08:52:08 America/Boise] Request URI: /shop/xxxxx/index.php?cmd=recover_cart_sales, IP address: xxx.xx.xxx.xxxx.xxx..x
, Language id 1
#0 /xxxx/xxxx/public_html/shop/xxxx/recover_cart_sales.php(37): zen_debug_error_handler()
#1 /xxxx/xxxx/public_html/shop/xxxx/recover_cart_sales.php(37): require()
#2 /xxxx/xxxx/public_html/shop/xxxx/index.php(16): require('/xxxx/xxxxx...')
--> PHP Warning: require(includes/languages/english/mail.php): Failed to open stream: No such file or directory in /xxx/xxxx/public_html/shop/xxxx/recover_cart_sales.php on line 37.

[29-Jan-2026 08:52:08 America/Boise] PHP Fatal error:  Uncaught Error: Failed opening required 'includes/languages/english/mail.php' (include_path='.:/opt/cpanel/ea-php83/root/usr/share/pear') in /xxxxx/xxxx/public_html/shop/xxxx/recover_cart_sales.php:37
Stack trace:
#0 /xxxx/xxxx/public_html/shop/xxxx/index.php(16): require()
#1 {main}
  thrown in /xxxx/xxxx/public_html/shop/xxxx/recover_cart_sales.php on line 37

[29-Jan-2026 08:52:08 America/Boise] Request URI: /shop/xxxx/index.php?cmd=recover_cart_sales, IP address: 174.58.200.157
--> PHP Fatal error: Uncaught Error: Failed opening required 'includes/languages/english/mail.php' (include_path='.:/opt/cpanel/ea-php83/root/usr/share/pear') in /xxxxx/xxxx/public_html/shop/xxxx/recover_cart_sales.php:37
Stack trace:
#0 /xxxx/xxxxx/public_html/shop/xxxx/index.php(16): require()
#1 {main}
  thrown in /xxxx/xxxxx/public_html/shop/xxxx/recover_cart_sales.php on line 37.

[29-Jan-2026 08:52:08 America/Boise] Request URI: /shop/xxxx/index.php?cmd=recover_cart_sales, IP address: 174.58.200.157
--> PHP Fatal error: Uncaught Error: Failed opening required 'includes/languages/english/mail.php' (include_path='.:/opt/cpanel/ea-php83/root/usr/share/pear') in /xxxx/xxxx/public_html/shop/xxxx/recover_cart_sales.php:37
Stack trace:
#0 /xxxx/xxxxx/public_html/shop/xxxx/index.php(16): require()
#1 {main}
  thrown in /xxxx/xxxx/public_html/shop/xxxx/recover_cart_sales.php on line 37.
6 Apr 2026, 5:04 PM
#654
tamya avatar

tamya

Zen Follower

Join Date:
Feb 2007
Posts:
336
Plugin Contributions:
0

Re: Recover Cart [Support Thread]

spawnie69:

tried recover cart v2.0.0 on the latest zen cart 2.1.0
and got HTTP ERROR 500 on the abandoned carts link.

here are my logs:

[29-Jan-2026 08:52:08 America/Boise] Request URI: /shop/xxxxx/index.php?cmd=recover_cart_sales, IP address: xxx.xx.xxx.xxxx.xxx..x
, Language id 1
#0 /xxxx/xxxx/public_html/shop/xxxx/recover_cart_sales.php(37): zen_debug_error_handler()
#1 /xxxx/xxxx/public_html/shop/xxxx/recover_cart_sales.php(37): require()
#2 /xxxx/xxxx/public_html/shop/xxxx/index.php(16): require('/xxxx/xxxxx...')
--> PHP Warning: require(includes/languages/english/mail.php): Failed to open stream: No such file or directory in /xxx/xxxx/public_html/shop/xxxx/recover_cart_sales.php on line 37.

[29-Jan-2026 08:52:08 America/Boise] PHP Fatal error: Uncaught Error: Failed opening required 'includes/languages/english/mail.php' (include_path='.:/opt/cpanel/ea-php83/root/usr/share/pear') in /xxxxx/xxxx/public_html/shop/xxxx/recover_cart_sales.php:37
Stack trace:
#0 /xxxx/xxxx/public_html/shop/xxxx/index.php(16): require()
#1 {main}
thrown in /xxxx/xxxx/public_html/shop/xxxx/recover_cart_sales.php on line 37

[29-Jan-2026 08:52:08 America/Boise] Request URI: /shop/xxxx/index.php?cmd=recover_cart_sales, IP address: 174.58.200.157
--> PHP Fatal error: Uncaught Error: Failed opening required 'includes/languages/english/mail.php' (include_path='.:/opt/cpanel/ea-php83/root/usr/share/pear') in /xxxxx/xxxx/public_html/shop/xxxx/recover_cart_sales.php:37
Stack trace:
#0 /xxxx/xxxxx/public_html/shop/xxxx/index.php(16): require()
#1 {main}
thrown in /xxxx/xxxxx/public_html/shop/xxxx/recover_cart_sales.php on line 37.

[29-Jan-2026 08:52:08 America/Boise] Request URI: /shop/xxxx/index.php?cmd=recover_cart_sales, IP address: 174.58.200.157
--> PHP Fatal error: Uncaught Error: Failed opening required 'includes/languages/english/mail.php' (include_path='.:/opt/cpanel/ea-php83/root/usr/share/pear') in /xxxx/xxxx/public_html/shop/xxxx/recover_cart_sales.php:37
Stack trace:
#0 /xxxx/xxxxx/public_html/shop/xxxx/index.php(16): require()
#1 {main}
thrown in /xxxx/xxxx/public_html/shop/xxxx/recover_cart_sales.php on line 37.


Have you ever got to work on 2.1.0?
6 Apr 2026, 9:25 PM
#655
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
431
Plugin Contributions:
0

Re: Recover Cart [Support Thread]

I have it working on 2.1.0 and 2.2.2. The only changes I have made in the past is to:
change the DATE_FORMAT to DATE_FORMAT_INTL in recover_cart_sales.php; and
update the doc header in stats_recover_cart_sales.php.

The error listed in the previous post is because the admin mail language file is missing from the zc install. It has nothing to do with Recover Cart install.
Get the email working in Admin first.

OldNGrey
ZC222 PHP 8.4.27
MySQL 11.8.5-MariaDB

7 Apr 2026, 6:58 AM
#656
tamya avatar

tamya

Zen Follower

Join Date:
Feb 2007
Posts:
336
Plugin Contributions:
0

Re: Recover Cart [Support Thread]

OldNGrey:

I have it working on 2.1.0 and 2.2.2. The only changes I have made in the past is to:
change the DATE_FORMAT to DATE_FORMAT_INTL in recover_cart_sales.php; and
update the doc header in stats_recover_cart_sales.php.

The error listed in the previous post is because the admin mail language file is missing from the zc install. It has nothing to do with Recover Cart install.
Get the email working in Admin first.

Awesome, Thanks for the quick reply. I will give it try.

7 Apr 2026, 10:59 AM
#657
tamya avatar

tamya

Zen Follower

Join Date:
Feb 2007
Posts:
336
Plugin Contributions:
0

Re: Recover Cart [Support Thread]

Zen cart 2.1.0 - bootstrap 3.7.8
I gave it a try, i copied the files to the correct location, Now
I see >> Configuration > Configure RCS
I do not see >> Customers > Abandoned Carts
and i do not see >> Reports > Recovered Sales Results

7 Apr 2026, 11:50 AM
#658
tamya avatar

tamya

Zen Follower

Join Date:
Feb 2007
Posts:
336
Plugin Contributions:
0

Re: Recover Cart [Support Thread]

TamyA:

Zen cart 2.1.0 - bootstrap 3.7.8
I gave it a try, i copied the files to the correct location, Now
I see >> Configuration > Configure RCS
I do not see >> Customers > Abandoned Carts
and i do not see >> Reports > Recovered Sales Results

Never mind, the Abandoned carts is under Tools not Customers.
and i also see the Recovered Sales Results under Reports

7 May 2026, 1:31 PM
#659
spawnie69 avatar

spawnie69

Totally Zenned

Join Date:
Sep 2005
Location:
Ocala, FL
Posts:
527
Plugin Contributions:
0

Re: Recover Cart [Support Thread]

wanted to use the latest recover cart for my upgraded zc 2.1
I downloaded the file, first line in readme notes says:
Recover Cart Sales (RCS) plugin for Zen Cart v1.5

ZEN CART VERSION:

Zen Cart v1.5.x ONLY
(this mod version will not run on any previous version)

was this a typo? should i just install on my zc 2.1?
Also curious if there are overwrites?

9 May 2026, 3:15 PM
#660
spawnie69 avatar

spawnie69

Totally Zenned

Join Date:
Sep 2005
Location:
Ocala, FL
Posts:
527
Plugin Contributions:
0

Re: Recover Cart [Support Thread]

The latest recover cart is not working properly.
I installed the latest recover cart to an upgraded zc 2.1 on php 8.3.3 and when clicking Customers > Abandoned Carts the screens displays..Dif.
Does Anyone have this issue too?