My company just redid their checkout process and with it we redid the web interface for looking at and tracking our orders. Well on the new page we want to integrate the info from the Visitor Profile widget into it. So I’m starting small and just trying to include the entire widget onto our site and it’s not working. I copied the code from the widgets page for the iframe and at the end of the src I added the visitorId variable. What I end up seeing is the visitor profile of the most recent visitor to our site and not the visitor I requested. I can’t figure out what’s going on. And sometimes I get this error:
Key “lastVisits” for array with keys “” does not exist in “@Live/getVisitorProfilePopup.twig” at line 2
Here is the code I’m using when I get the above error:
I have everything hardcoded in for testing but the date and visitorId will be added via variable in the end.