Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Capture a cart contents within an iFrame, then open checkout in a new window

Capture a cart contents within an iFrame, then open checkout in a new window

maxicrisp
Shopify Partner
2 0 0

The dev team has disabled X-Frame-Options in order to enable my store to be rendered in an iFrame. I'm looking to now send the content of that store to a checkout, where that is then sent to a checkout, and a checkout window is opened in a new window to satisfy the checkout requirements. Is there a way to capture the contents of the cart within the iFrame and then send that to a checkout which is then rendered in the new window?

 

The idea is that the website is filled with say blog posts, when they click on the blog post it opens up a modal which contains a shopify store in an iFrame. The checkout is fine to be completed within a new tab and redirects the user back to the previous page.

Replies 0 (0)