Works fine on IE and Not on FF
Posted: Tue Jan 26, 2010 2:08 am
Hello friends,
I've simple cart script where a button once visitor click on it,it send the item to the cart
It works fine on IE and not working on FF due to something called append_cookie
here is the code
I've simple cart script where a button once visitor click on it,it send the item to the cart
It works fine on IE and not working on FF due to something called append_cookie
here is the code
Code: Select all
<?
} else if ($productrow['type'] == 0 && (!$isMember && !$isAdmin)) {
echo "<b>Member Download Only</b>";
} else if ($productrow['type'] == 1 || $productrow['type'] == 2) {
echo "<a href='#' onclick='append_cookie(\"cartcontent\", \"".$productrow['productID']."\", \"\")'>";
echo "<img src='$addtocart_button' border=0>";
echo "</a>";
echo "<a href='#' onclick='append_cookie(\"cartcontent\", \"".$productrow['productID']."\", \"\");self.location.replace(\"".FILE_INDEX."?action=checkout\")'>";
echo "<img src='$buy_button' border=0>";
echo "</a>";
}
} else {
echo "<img src='$na_button' border=0>";
}
?>
