The Foxy forums are on the move!

We're in the process of moving our forums over to a new system, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to reach out to us via email.

Session Variable => array of data

Hey guys,

I have a fairly complex bit of data I'd like to pass over as a session variable. Ideally, I'd pass an array. When I do that, the FC.json.custom_fields gives me a value of 1 for that session variable.

http_build_query(array("h:addon" => $addon));

$addon is a decent sized array of data.

Do I need to think of a different way to do this? An ajax request back to my server?

  • fc_adamfc_adam FoxyCart Team

    Good question - to pass an array of data, you'll want to stringify it so that it can be passed through correctly. That should get it working for you, and you'll just need to parse it on the other side then.
Sign In or Register to comment.