Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why Double Array? #20

Open
giugit opened this issue Aug 20, 2022 · 1 comment
Open

Why Double Array? #20

giugit opened this issue Aug 20, 2022 · 1 comment

Comments

@giugit
Copy link

giugit commented Aug 20, 2022

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
                        )

                )

        )

)
@giugit
Copy link
Author

giugit commented Aug 20, 2022

OK I understood, is about the same product with different hash! ;-) Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant