Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

tep_session_register—2 dimensional array


prakash_t

Recommended Posts

Posted

Does any body tell me how to create session in two dimensional array in oscommerce? I can create a normal session with tep_session_register(). I just want to create sessions like below,

 

1) $_SESSION[$products_id]["Adults"] = $Adults;

2) $_SESSION[$products_id]["Child"] = $Child;

3) $_SESSION[$products_id]["total_price"] = $total_price;

 

Thanks in advance.

Posted

Does any body tell me how to create session in two dimensional array in oscommerce? I can create a normal session with tep_session_register(). I just want to create sessions like below,

 

1) $_SESSION[$products_id]["Adults"] = $Adults;

2) $_SESSION[$products_id]["Child"] = $Child;

3) $_SESSION[$products_id]["total_price"] = $total_price;

 

Thanks in advance.

 

$_SESSION[$product_id] = Array("Adults" => $Adults, "Child" => $Child, "total_price" => $total_price );

echo $_SESSION[$product_id]["Adults"];

etc...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...