Skip to content

Why Double Array? #20

Description

@giugit

I'm finding your cart very interesting, i wondered why the product are inside a double array?
I'm curious to kown the reason. Thank You Very Much!

Array
(
    [1] => Array
        (
            [0] => Array
                (
                    [id] => 1
                    [quantity] => 1
                    [hash] => 82aa6954b3eecf592b1e8fb86063fd80
                    [attributes] => Array
                        (
                            [price] => 349
                            [color] => Silver
                        )

                )

        )

    [2] => Array
        (
            [0] => Array
                (
                    [id] => 2
                    [quantity] => 1
                    [hash] => a4da6514bfe02e8b9ad747387005561a
                    [attributes] => Array
                        (
                            [price] => 449
                            [color] => Silver
                            [size] => Small
                        )

                )

        )

)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions