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 621 to 640 of 662
16 Oct 2019, 4:17 PM
#621
bowerstech avatar

bowerstech

New Zenner

Join Date:
Mar 2010
Posts:
83
Plugin Contributions:
0

Recover Cart [Support Thread]

I guess it won't be modified to support 1.5.6 since there hasn't been a response to your inquiry for almost a month. Bummer, was thinking about using this mod.

12 Jan 2020, 4:15 PM
#622
sstreich avatar

sstreich

New Zenner

Join Date:
Nov 2014
Location:
PA
Posts:
36
Plugin Contributions:
0

Re: Recover Cart [Support Thread]

bowerstech:

I guess it won't be modified to support 1.5.6 since there hasn't been a response to your inquiry for almost a month. Bummer, was thinking about using this mod.

I just updated from v154 and figured I'd try this on V156c - it works fine for me. I did use the old V154 Scart database file so all I had to do was upload the files (skipping the install ones).

9 Oct 2020, 4:16 AM
#623
harry2cool avatar

harry2cool

Zen Follower

Join Date:
Oct 2005
Posts:
280
Plugin Contributions:
0

Re: Recover Cart [Support Thread]

How to send multiple reminders in case the users have not completed the sale at least three reminders at alternate day intervals ?

9 Oct 2020, 11:16 AM
#624
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Recover Cart [Support Thread]

harry2cool:

How to send multiple reminders in case the users have not completed the sale at least three reminders at alternate day intervals ?

I haven't looked at this mod in years, but if I recall correctly it only tracks "whether the customer has been reminded once". Its config settings let you exclude customers who place an order matching the abandoned cart.

I suppose you could track multiple reminders by adding fields to the database table and customizing the code to store the history of each notification, and then updating the report to filter/sort based on the number of reminders. And probably some cleanup or exclusions after a certain threshold.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Oct 2020, 12:11 AM
#625
elemi avatar

elemi

Zen Follower

Join Date:
Mar 2006
Location:
Auckland, New Zealand
Posts:
242
Plugin Contributions:
0

Re: Recover Cart [Support Thread]

Isn't emailing more than once considered harrassment??? Personally, I delete those emails and never go back and purchase, and allowing for the extra stress everyone is under at the moment with Covid-19, etc, I'd be less inclined to be chasing anyone up...

Elemi

The Art of Bespoke Aromatherapy
https://www.AmorAromatherapy.co.nz

28 Feb 2022, 2:04 PM
#626
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,456
Plugin Contributions:
4

Re: Recover Cart [Support Thread]

Hello,

Installing the new pack (4.0.6) gives a blank page (without any configuration elements) when you go to Configuration > Recover RCS.

IDEASLady
IDEAS Creative Studio

Your image... our business!

1 Mar 2022, 4:35 AM
#627
oldngrey avatar

oldngrey

Zen Follower

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

Re: Recover Cart [Support Thread]

Firstly what version of zc are you using?
Have you had recover cart installed before?
Have you logged out of admin and logged back to check for changes?

I have recover cart 4.0.5 working on zc157c and zc157d and just installed recover cart 4.0.6 over the top and it works correctly without any alterations.

OldNGrey
ZC222 PHP 8.4.27
MySQL 11.8.5-MariaDB

1 Mar 2022, 12:21 PM
#628
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,456
Plugin Contributions:
4

Re: Recover Cart [Support Thread]

I did the installation just after the patch from 1.5.7b to 1.5.7d. Everything else looked fine, just that page is the one that doesn't look right. First time installation on this cart.

IDEASLady
IDEAS Creative Studio

Your image... our business!

23 May 2022, 10:16 AM
#629
ntestinfo11 avatar

ntestinfo11

New Zenner

Join Date:
Mar 2011
Posts:
39
Plugin Contributions:
0

Re: Recover Cart [Support Thread]

Ckeditor Not working.

Zencart Version : 1.5.7

Module : Recover Cart Sales

Problem : Ckeditor Not Loading . On other pages i.e. define page editor, ezpages, send email Ckeditor Loads.

Attachment 20009

25 May 2022, 3:03 AM
#630
ntestinfo11 avatar

ntestinfo11

New Zenner

Join Date:
Mar 2011
Posts:
39
Plugin Contributions:
0

Re: Recover Cart [Support Thread]

Here is the fix.

On recover_cart_sales.php Replace below line. LINE NO #555

echo zen_draw_textarea_field('message_html', 'soft', '100%', '25', stripslashes($_POST['message_html']), 'id="message_html"');

WITH

 echo zen_draw_textarea_field('message_html', 'soft', '100%', '25', htmlspecialchars(stripslashes(isset($_POST['message_html'])?$_POST['message_html']:''), ENT_COMPAT, CHARSET, TRUE), 'id="message_html" class="editorHook form-control"');
22 Nov 2022, 9:52 PM
#631
websmith avatar

websmith

New Zenner

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

Re: Recover Cart [Support Thread]

Please, I need help to get the recover cart module working on ZC 1.5.8 so I can upgrade production sites and I do not have enough php knowledge to fix the errors occurring.

I am currently testing with this configuration:

Server: Ubuntu 20.04 PHP 8.1 MySQL 8.0.31 (I have ran ZC for many years but I did confirm all recommended server requirements are present just in case something changed with 1.5.8)
Test Site: Zen Cart 1.5.8 with the exception of the Recover Cart 4.0.6 being tested no additional modules have been installed and no demo data (I have found there is a problem with the 1.5.8 install that changes the ownership of the demo images/folders added during the install process to www-data blocking sftp manipulation, if you change them back to the correct owner it breaks image display). I have created a couple of categories and items to provide data for recover carts.
Test Site url: a l t 1.h u m p h r e y s t o w b a r s.c o m

The Recover Carts module is currently using all default setting from the installation.

After install when I drop down Customers and Click Abandon Carts I get a blank page and this debug error: (I changed the domain and admin folder hoping to make this easier to read)

[22-Nov-2022 14:22:04 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(37): zen_debug_error_handler()
#1 /var/www/domain.com/public_html/admin/recover_cart_sales.php(37): require()
#2 /var/www/domain.com/public_html/admin/index.php(11): require('...')
--> PHP Warning: require(includes/languages/english/mail.php): Failed to open stream: No such file or directory in /var/www/domain.com/public_html/admin/recover_cart_sales.php on line 37.

[22-Nov-2022 14:22:04 America/Chicago] PHP Fatal error:  Uncaught Error: Failed opening required 'includes/languages/english/mail.php' (include_path='.:/usr/share/php') in /var/www/domain.com/public_html/admin/recover_cart_sales.php:37
Stack trace:
#0 /var/www/domain.com/public_html/admin/index.php(11): require()
#1 {main}
  thrown in /var/www/domain.com/public_html/admin/recover_cart_sales.php on line 37

[22-Nov-2022 14:22:04 America/Chicago] Request URI: /admin/index.php?cmd=recover_cart_sales, IP address: 98.190.184.37
--> PHP Fatal error: Uncaught Error: Failed opening required 'includes/languages/english/mail.php' (include_path='.:/usr/share/php') in /var/www/domain.com/public_html/admin/recover_cart_sales.php:37
Stack trace:
#0 /var/www/domain.com/public_html/admin/index.php(11): require()
#1 {main}
  thrown in /var/www/domain.com/public_html/admin/recover_cart_sales.php on line 37.

After researching I found that (admin)'includes/languages/english/mail.php' had changed name to lang.mail.php.

I changed the end of line 37 to: '/' . 'lang.' . FILENAME_MAIL . '.php');

which cleared this error, and I do not think it will cause additional problem since it is simply correcting the name of the file required.

Now when I click Abandoned Carts I get the top portion of the page down to the subject line and I have the following error in the debug logs.

22-Nov-2022 14:37:51 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(41): zen_debug_error_handler()
#1 /var/www/domain.com/public_html/admin/index.php(11): require('...')
--> PHP Warning: Undefined variable $action in /var/www/domain.com/public_html/admin/recover_cart_sales.php on line 41.

[22-Nov-2022 14:37:51 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(47): zen_debug_error_handler()
#1 /var/www/domain.com/public_html/admin/index.php(11): require('...')
--> PHP Warning: Undefined array key "action" in /var/www/domain.com/public_html/admin/recover_cart_sales.php on line 47.

[22-Nov-2022 14:37:51 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(58): zen_debug_error_handler()
#1 /var/www/domain.com/public_html/admin/index.php(11): require('...')
--> PHP Warning: Undefined array key "action" in /var/www/domain.com/public_html/admin/recover_cart_sales.php on line 58.

[22-Nov-2022 14:37:51 America/Chicago] PHP Fatal error:  Uncaught Error: Undefined constant "TEXT_MESSAGE_HTML" in /var/www/domain.com/public_html/admin/recover_cart_sales.php:541
Stack trace:
#0 /var/www/domain.com/public_html/admin/index.php(11): require()
#1 {main}
  thrown in /var/www/domain.com/public_html/admin/recover_cart_sales.php on line 541

[22-Nov-2022 14:37:51 America/Chicago] Request URI: /admin/index.php?cmd=recover_cart_sales, IP address: 98.190.184.37
--> PHP Fatal error: Uncaught Error: Undefined constant "TEXT_MESSAGE_HTML" in /var/www/domain.com/public_html/admin/recover_cart_sales.php:541
Stack trace:
#0 /var/www/domain.com/public_html/admin/index.php(11): require()
#1 {main}
  thrown in /var/www/domain.com/public_html/admin/recover_cart_sales.php on line 541.

Which up to this point I have had no success in resolving.

23 Nov 2022, 5:03 AM
#632
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,892
Plugin Contributions:
20

Re: Recover Cart [Support Thread]

NOTE that I have not tested this as I don't have a 1.5.8 for adding the mod. Nor is it my forte. Just some thoughts on the matter. Use at your own risk.

If Recover Cart has its own extra_filenames.php, you might want to fix it there. Or...

How's about just changing the defined name in includes/filelnames.php. Line 102. Change 'mail' to 'lang.mail'. Or, if it needs to be different because something else is using FILENAME_MAIL, copy line 102 to 103 and make the new line FILENAME_MAIL_RECOVER with 'lang.mail'

define('FILENAME_LOGIN', 'login');define('FILENAME_LOGOFF', 'logoff');
define('FILENAME_MAIL', 'mail');
define('FILENAME_MAIN_PRODUCT_IMAGE', 'main_product_image');
```to```
define('FILENAME_LOGIN', 'login');define('FILENAME_LOGOFF', 'logoff');
define('FILENAME_MAIL', 'lang.mail');
define('FILENAME_MAIN_PRODUCT_IMAGE', 'main_product_image');
```or```
define('FILENAME_LOGIN', 'login');define('FILENAME_LOGOFF', 'logoff');
define('FILENAME_MAIL', 'mail');
define('FILENAME_MAIL_RECOVER', 'lang.mail');
define('FILENAME_MAIN_PRODUCT_IMAGE', 'main_product_image');

With the last, you would need to change the call in the Recover Cart file to look for FILENAME_MAIL_RECOVER versus FILENAME_MAIL

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

23 Nov 2022, 5:53 AM
#633
carlwhat avatar

carlwhat

zennedOut

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

Re: Recover Cart [Support Thread]

i will give my thoughts on the matter.

first off, i would ignore all of the well-intentioned advice here.

second, i would look to the plugin author for fixes.

third, you can try some of my code. being that i do have a working v158 test site available...

looking at admin/recover_cart_sales.php, just after the file change you made at line 37, add the following code:

if (!function_exists('defineIfNot')) {
    function defineIfNot(string $name, string $definition)
    {
        if (!defined($name)) {
            define($name, $definition);
        }
    }
}

foreach ($define as $key => $value) {
    defineIfNot($key, $value);
}

i am not sure if that is the approved method for loading a language file that does not get loaded as part of the autoloading process, but i have reasonable confidence that this fix will address your first issue.

the second issue requires a bit more work. you can add the following line right after the code above:

$action = $_GET['action'] ?? 'noAction';

and the replace all instances (other than the line i just gave you above) of:

$_GET['action']

with

$action

and that should address the 2nd issue you are having.

let us know how it goes.

and ping the plugin author to see if he can update the plugin.

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.

23 Nov 2022, 6:25 AM
#634
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,892
Plugin Contributions:
20

Re: Recover Cart [Support Thread]

It Worked!

I knew if I threw something out there, Paul would come to my rescue!

:rotflmao:

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

23 Nov 2022, 8:36 PM
#635
websmith avatar

websmith

New Zenner

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

Re: Recover Cart [Support Thread]

I thank everyone for the replies and the efforts to help.

I did send a private message to the person listed as the author (Ryk) on the download site. The last update lists The Software Guy but I did not send to him.

After reading what dbltoe sent, this fix only addresses the FILENAME_MAIL which I fixed in line 37 it is the other errors that are the main problem. I made the change in the recover_cart_sales file because FILENAME_MAIL is used in multiple other places throughout the code and it was simplest to fix it in the only file that was causing a problem.

Then I applied what Carlwhat sent with these results:

I inserted the first code snippet in at line 41 (the other change was at line 37 and line 38 and 39 already had code line 40 is blank)

Next below that I inserted the second snippet at line 54 (one blank line below the previous snippet)

Finally I searched for $_GET['action'] and replaced them with $action (before the changes they were on lines 47, 58, and 162 (2 places)) on lines 62, 73, and 177 (2 places)

When I go to customers and click abandoned carts I now get a blank page and the debug report below

[23-Nov-2022 14:29:09 America/Chicago] PHP Parse error:  syntax error, unexpected identifier "##" in /var/www/admin/public_html/admin/recover_cart_sales.php on line 41

[23-Nov-2022 14:29:09 America/Chicago] Request URI: /admin/index.php?cmd=recover_cart_sales, IP address: 98.190.184.37
--> PHP Parse error: syntax error, unexpected identifier "##" in /var/www/admin/public_html/admin/recover_cart_sales.php on line 41.

I am sure it is close I could have done something wrong but I have done this several times and the results are the same so I can not identify anything wrong.

Note: In the code I am not sure why it put "##" the actual error shows " "

23 Nov 2022, 8:52 PM
#636
carlwhat avatar

carlwhat

zennedOut

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

Re: Recover Cart [Support Thread]

post lines 30-50 here, and lets see where you went adrift.

also please indicate which line is the one where the error occurs.

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

24 Nov 2022, 10:29 AM
#637
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Recover Cart [Support Thread]

Hi. Not really sure why the forum lists me as the "owner" as we added an update many years ago to Conor's original - although that was on a previous incarnation of the forum!

I probably can't personally answer the question (I work as Development Manager with JSWeb Ltd, but am not a developer/programmer/coder) but if you post the code snippet as carlwhat suggests, someone should be able to spot the error. Probably just a typo.

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

24 Nov 2022, 4:22 PM
#638
websmith avatar

websmith

New Zenner

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

Re: Recover Cart [Support Thread]

carlwhat:

post lines 30-50 here, and lets see where you went adrift.

also please indicate which line is the one where the error occurs.

require(DIR_WS_LANGUAGES . $_SESSION['language'] . '/' . 'lang.' .  FILENAME_MAIL . '.php');
require(DIR_WS_CLASSES . 'currencies.php');
$currencies = new currencies();

if##(!function_exists('defineIfNot'))##{
########function##defineIfNot(string##$name,##string##$definition)
########{
################if##(!defined($name))##{
########################define($name,##$definition);
################}
########}
}

foreach##($define##as##$key##=>##$value)##{
########defineIfNot($key,##$value);
}

$action##=##$_GET['action']##??##'noAction';

The error indicates the error is in line 41 if##(!function_exists('defineIfNot'))##{

24 Nov 2022, 4:52 PM
#639
websmith avatar

websmith

New Zenner

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

Re: Recover Cart [Support Thread]

websmith:

require(DIR_WS_LANGUAGES . $_SESSION['language'] . '/' . 'lang.' . FILENAME_MAIL . '.php');
require(DIR_WS_CLASSES . 'currencies.php');
$currencies = new currencies();

if##(!function_exists('defineIfNot'))##{
########function##defineIfNot(string##$name,##string##$definition)
########{
################if##(!defined($name))##{
########################define($name,##$definition);
################}
########}
}

foreach##($define##as##$key##=>##$value)##{
########defineIfNot($key,##$value);
}

$action##=##$_GET['action']##??##'noAction';

> 
> The error indicates the error is in line 41 if##(!function_exists('defineIfNot'))##{

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.
24 Nov 2022, 5:53 PM
#640
swguy avatar

swguy

Administrator

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

Re: Recover Cart [Support Thread]

Attention all developers, especially those just getting started:

The community needs volunteers to step up and adopt plugins like this. It's a great way to help the project and to build your skills at the same time.

https://docs.zen-cart.com/dev/plugins/adoption/

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.