I use this code for the loop:
<?php foreach($_SESSION['accessories'] as $accessory) : ?>
<?php var_dump($accessory); ?>
<?php endforeach; ?>
The problem is that now I can access the content of each accessory but without knowing the id of that accessory, because the original array look like this:
[accessories] => Array
(
[63] => Array
(
[price] => 15000
[name] => Product 2
)
.
..
...
)
And the 63 is lost ;(
Any idea how to get the 63 too?