VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Development Projects, Modifications, Hacks & Tweaks. VM1.1 => Payment Modules => Topic started by: hasnut on October 24, 2007, 22:07:56 PM

Title: Payment Extra Info cant use Session Variable?
Post by: hasnut on October 24, 2007, 22:07:56 PM
Is there any reson that Session variable cant be used in payment Extra info php code??

for ($i=0;$i<$_SESSION['cart']["idx"];$i++) {
$c=$i+1;
echo '<input type="hidden" name="'.$item.$c._desc.'" value="'.$_SESSION['cart'][$i]["description"].'" />';
echo '<input type="hidden" name="'.$item.$c._price.'" value="'.$_SESSION['cart'][$i]['product_id'].'" />';
echo '<input type="hidden" name="'.$item.$c._qty.'" value="'.$_SESSION['cart'][$i]["quantity"].'" />';
}
Title: Re: Payment Extra Info cant use Session Variable?
Post by: Joseph Kwan on October 25, 2007, 08:26:59 AM
Not sure what you need. What page did you put this code?