Got one problem solved

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jecha
    New Member
    • Feb 2007
    • 3

    Got one problem solved

    For the error I had posted I realised that I had not declare $_SESSION as an an array so I had to declare it as follows and that did it

    $_SESSION['cart'] = array();

    but now the checkout.php is still not reading the if statement to display checkout form from the output_fns.php script. I guess there is something wrong with the following lines of code:

    if($cart&&array _count_values($ cart))
    {
    writeShoppingCa rt($cart,false, 0);
    display_checkou t_form($HTTP_PO ST_VARS);
    }

    Your help is greatly appreciated
  • Purple
    Recognized Expert Contributor
    • May 2007
    • 404

    #2
    Originally posted by jecha
    For the error I had posted I realised that I had not declare $_SESSION as an an array so I had to declare it as follows and that did it

    $_SESSION['cart'] = array();

    but now the checkout.php is still not reading the if statement to display checkout form from the output_fns.php script. I guess there is something wrong with the following lines of code:

    if($cart&&array _count_values($ cart))
    {
    writeShoppingCa rt($cart,false, 0);
    display_checkou t_form($HTTP_PO ST_VARS);
    }

    Your help is greatly appreciated
    Hi Jecha,

    I think I need a little more detail to help - what is (or isn't happening ?)

    Comment

    Working...