Hey all,
I am attempting to output a list of products in a cart, and then send them by email using eform, as well as writing them to the db using eform2db. However, I am having a bit of trouble getting eform2db to output all the items.
This is what I have right now
$cart = $_SESSION['cart'];
if ($cart) {
$items = explode(',',$cart);
}
foreach ($items as $id) {
$fields['objid'] = $id;
}
Although this only outputs the final item in the cart. Is there an easy fix? Is there perhaps a better way to approach this?
Any help would be greatly appreciated.
Thanks.