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?

Thanks,
Jacob
Comments
  • fc_adamfc_adam FoxyCart Team
    @jacobdubail,

    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.