Results 1 to 10 of 2177

Hybrid View

  1. #1
    Join Date
    Apr 2009
    Location
    Athens, Europe
    Posts
    125
    Plugin Contributions
    0

    Default Re: Fast and Easy Checkout for Zen Cart

    Hallo,

    After installing this great module version 1.8.1 with cj loader-1.6, in zen cart-1.3.9c, I keep receiving the following warning:

    Code:
    PHP Warning:  Invalid argument supplied for foreach() in includes/classes/order.php on line 778
    The relevant code is the following:

    PHP Code:
    // kuroi: trigger and details for attribute low stock email
    } elseif ($attribute_stock_left <= STOCK_REORDER_LEVEL) {
    $this->email_low_stock .=  'ID# ' zen_get_prid($this->products[$i]['id']) . ', ' $this->products[$i]['model'] . ', ' $this->products[$i]['name'] . ', ';

     
    //the following is line 778:

    foreach($this->products[$i]['attributes'] as $attributes){
    $this->email_low_stock .= $attributes['option'] . ': ' $attributes['value'] . ', ';
    }
    $this->email_low_stock .= 'Stock: ' $attribute_stock_left "\n\n";
    }
    }

    I would appreciate your help.

    Kind regards,
    orange_juice

  2. #2
    Join Date
    Apr 2008
    Posts
    351
    Plugin Contributions
    4

    Default Re: Fast and Easy Checkout for Zen Cart

    Quote Originally Posted by orange_juice View Post
    Hallo,

    After installing this great module version 1.8.1 with cj loader-1.6, in zen cart-1.3.9c, I keep receiving the following warning:

    Code:
    PHP Warning:  Invalid argument supplied for foreach() in includes/classes/order.php on line 778
    The relevant code is the following:

    PHP Code:
    // kuroi: trigger and details for attribute low stock email
    } elseif ($attribute_stock_left <= STOCK_REORDER_LEVEL) {
    $this->email_low_stock .=  'ID# ' zen_get_prid($this->products[$i]['id']) . ', ' $this->products[$i]['model'] . ', ' $this->products[$i]['name'] . ', ';

     
    //the following is line 778:

    foreach($this->products[$i]['attributes'] as $attributes){
    $this->email_low_stock .= $attributes['option'] . ': ' $attributes['value'] . ', ';
    }
    $this->email_low_stock .= 'Stock: ' $attribute_stock_left "\n\n";
    }
    }

    I would appreciate your help.

    Kind regards,
    orange_juice
    Which file is this in. In my version of FEC181, it isn't there in the includes/classes/order.php file and that is the only file I can find that foreach statement that you show above.
    Recheck that the file is the current one.

  3. #3
    Join Date
    Apr 2009
    Location
    Athens, Europe
    Posts
    125
    Plugin Contributions
    0

    Default Re: Fast and Easy Checkout for Zen Cart

    Thanx for replying.

    The path is correct: <store root>/includes/classes/order.php

    This file can be found at fec/required_files/includes/classes/order.php after extracting the contents of fast_and_easy_checkout_for_zen_cart_1-8-1.zip file.

    However, the message stopped when I set admin -> configuration -> e-mail options -> send low stock emails to 1. I made some purchases and then set it back to 0.

    I have made some other purchases with several quantities ... and I have not seen the message yet ...

    This sounds good ...

    I do not know ... if I see it I will report back.

    Kind regards,
    orange_juice

  4. #4
    Join Date
    Apr 2008
    Posts
    351
    Plugin Contributions
    4

    Default Re: Fast and Easy Checkout for Zen Cart

    OK, glad you got it to work. Be sure to check that Credit Cards work without any problems. I've experienced that and have read where others have too.

  5. #5
    Join Date
    May 2010
    Location
    Texas
    Posts
    508
    Plugin Contributions
    0

    Default FEC: fec_confirmation page

    What is the purpose of the fec_confirmation page?
    It apparently displays the message "Your order is being processed please wait..."

    It just seems to add to the length of the process of checking out.

    I was thinking of high-jacking this page and filling it with information about what the customer might expect when they are redirected to Paypal Express checkout to use their credit card. Note that the fec_confirmation page is apparently bypassed when a customer selects the "Check out with Paypal" button. Which is perfect, since those customers already know what to expect from Paypal.

    Thanks,
    Last edited by split63; 31 May 2010 at 10:54 PM.

  6. #6
    Join Date
    May 2010
    Location
    Texas
    Posts
    508
    Plugin Contributions
    0

    Default Re: Fast and Easy Checkout for Zen Cart

    I still don't quite understand the purpose of the fec_confirmation page.

    But I found that I only needed to turn off single page checkout in the configuration and then alter the tpl_fec_confirmation_default.php, inserting the text I needed.

 

 

Similar Threads

  1. Replies: 4
    Last Post: 25 Jan 2012, 07:37 PM
  2. Fast and Easy Checkout - Checkout Without Account not showing
    By Lee-oh in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 3 Feb 2010, 05:09 PM
  3. Go To Checkout Error - with Fast and Easy Checkout installed
    By RFree190 in forum General Questions
    Replies: 3
    Last Post: 10 Mar 2009, 07:08 AM
  4. checkout page not redirect (Fast and Easy Checkout module)
    By wowemall in forum Addon Templates
    Replies: 0
    Last Post: 27 Sep 2008, 02:36 PM
  5. Fast and Easy Checkout
    By cmes in forum General Questions
    Replies: 5
    Last Post: 15 Feb 2008, 04:07 PM

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