if (sizeof($_SESSION['order']['orderitems']) > 0)
{
$orderitems = $_SESSION['order']['orderitems'];
foreach($orderitems as $key => $orderitem)
{
print '
| '.get_product_by_id($orderitem['product_id'])->name.' |
'.$orderitem['quantity'].' ('.(get_total_stock_by_product_id($orderitem['product_id'])).' in stock)';
if (get_total_stock_by_product_id($orderitem['product_id']) < $orderitem['quantity'])
{
print '*';
$exceedsstock = 1;
}
print ' |
Remove
|
';
}
}