printing parent page and iframe contents from print button withing iframe.

Posted by user329094 on Stack Overflow See other posts from Stack Overflow or by user329094
Published on 2010-04-29T16:18:30Z Indexed on 2010/04/29 18:17 UTC
Read the original article Hit count: 309

Filed under:
|
|

I am using an iframe (I hate them by the way!) to call in a 3rd party checkout page into my parent page. The check out page doesn't allow me to pass any variables into it other than $total_amount. So, if an individual purchases 2 or more items they have no record of the items they purchase just the total amount. I have echoed the list of items purchased with php above the iframe for their reference. The final checkout step in the iframe allows you to print the receipt. However, it only prints the iframe content. Can you tell a print button within an iframe to print the parent page as well?

© Stack Overflow or respective owner

Related posts about iframe

Related posts about printing