Gavin Newsom - Debt Consolidation - Debt Consolidation - Find jobs - WoW Gold

PDA

View Full Version : Help With E-Commerce Script


adamjblakey
Jun 2nd 2009, 8:20 am
Hi,

I have a e-commerce script which i am trying to modify. It currently takes the price and qty and puts them into a session. I want to add the color and size selection in the session also but am unsure how to do this.

The code is below:

case 'add':
$new = '';
for ($i = 0; $i < $_POST['qty']; $i++)
{
$new .= $_GET['id'] . ',';
}
$new = substr($new, 0, -1);
if ($cart)
{
$cart .= ',' . $new;
}
else
{
$cart = $new;
}
break;


Thank you in advance.
Adam

givemeknol
Jun 2nd 2009, 8:40 am
Could you access color and size from $cart ?

adamjblakey
Jun 2nd 2009, 8:42 am
Yes if they was stored in there.

adamjblakey
Jun 12th 2009, 2:37 am
Can anyone help with this?