I have the following array <?php foreach ($order->getItems() as $item) { ?> "<?php echo $data['orderNumber']?>", "<?php echo $item->getProductNumber()?>", "<?php echo $item->getName()?>", "<?php echo $item->getUnitPrice()?>", "<?php echo $item->getQuantity()?>" <?php } ?> PHP: I need help writing the follow information into a session and then reading the same info from a session. I tried using $_SESSION['neworders']=$order; PHP: but that didn't work. The array can contain one product or multiple products.
To add to session: $_SESSION['neworders'] = serialize($order); PHP: to get back from session $order = unserialize($_SESSION['neworders']); PHP: