[eluser]jonny68[/eluser]
Hi,
if i loop through:
$a = 0;
foreach ($this->cart->contents() as $items) {
echo $items['rowid'].'<br />';
$a++;
};
i get all the rowid's from the cart, but what if i want the last inserted?
By increasing $a i get the number of items, and theorically that (number-1) should be the
last..
I'm i wrong? I can't find the way to get this straight something like
$this->cart->contents($a => 'rowid') or $this->cart->contents()[$a]['rowid'] etc,
nothing seems to work..
Thanks a lot!