Results 1 to 10 of 673

Hybrid View

  1. #1
    Join Date
    Feb 2008
    Posts
    52
    Plugin Contributions
    0

    Default Re: Recover Cart Stats

    Quote Originally Posted by craiglove View Post
    hi guys, have just updated the RCS and all went well except in "stats_recover_cart_sales" get

    Warning: Invalid argument supplied for foreach() in /home/<domainname>/admin/stats_recover_cart_sales.php on line 153


    foreach($cust_array as $cust) {
    ?>
    must have somthing to do with this.

    tips welcome

    Craig
    NZ
    I have the same problem. Does anyone know of a fix? I am using 1.3.8a

  2. #2
    Join Date
    Apr 2006
    Location
    Fort Bragg, North Carolina
    Posts
    153
    Plugin Contributions
    0

    Default Re: Recover Cart

    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.

  3. #3
    Join Date
    Jan 2006
    Location
    New York
    Posts
    22
    Plugin Contributions
    0

    Default Re: Recover Cart

    Thank you so much for the help. I totally appreciate it!

    Denise

  4. #4
    Join Date
    Jul 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Recover Cart

    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.

  5. #5
    Join Date
    Apr 2007
    Posts
    30
    Plugin Contributions
    0

    Default Re: Recover Cart

    I think you may find that the fix suggests you add $cust_array = array(); below the $custlist = ''; and not replace that line.........

    Quote Originally Posted by bigjoed View Post
    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.

  6. #6
    Join Date
    Sep 2006
    Location
    Colorado Springs CO USA
    Posts
    516
    Plugin Contributions
    2

    Default Re: Recover Cart

    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:

    Code:
    $custlist = '';
    change to:

    Code:
    $custlist= '';
    $cust_array = array();

    Modify admin/recover_cart_sales.php as follows:
    Find around line 381:

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

    Code:
    if ($basket->fields['datemodified'] != '' && (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.
    www.aspenshopsonline.com - ZenCart 1.3.9h
    www.wilkssupply.com - ZenCart 1.3.9h
    www.un-du.net - ZenCart 1.3.8a

  7. #7
    Join Date
    Mar 2007
    Location
    Taiwan
    Posts
    241
    Plugin Contributions
    0

    Default Re: Recover Cart

    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?

  8. #8
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,566
    Plugin Contributions
    74

    Default Re: Recover Cart

    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:

    PHP Code:
    if (!$orders->EOF) {
      
    $custknt++;
      
    $total_recovered += $orders->fields['value'];
      
    $cust_array[$custknt] = array_merge($scart->fields$orders->fields);

    add:

    PHP Code:
    $cust_array = array(); 

 

 

Similar Threads

  1. Shipping Rates in Cart [support thread]
    By Steven300 in forum Addon Shipping Modules
    Replies: 95
    Last Post: 12 May 2023, 02:39 AM
  2. Shopping Cart Steps Images [Support Thread]
    By Trinity14 in forum Addon Templates
    Replies: 21
    Last Post: 11 Apr 2021, 05:35 AM
  3. v151 AJAX Add to Cart [Support Thread]
    By balihr in forum All Other Contributions/Addons
    Replies: 133
    Last Post: 20 Oct 2020, 02:16 AM
  4. Empty Cart Manager [support thread]
    By Steven300 in forum All Other Contributions/Addons
    Replies: 49
    Last Post: 26 May 2010, 10:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg