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
$_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
Comment