Originally posted by los_design
Announcement
Collapse
No announcement yet.
how can i have a print function for just product not whole page?
Collapse
X
-
Originally posted by budgetbumpsprobably sticking pins in dolls somewhere....Affordable solutions for busy professionals.
Website Maintenance | UK Web Hosting
Comment
-
Hi guys
I can see this thread i started has stired up some interest, its a great feature to have and Dave what you did is just what i am looking for. I had a look at the code but am still unsure how you acheived it, i can see the link and put it in my product code but how do you make the details jump over to the empty page? could you point me in the right direction with a few more pointers please
cheers
paul
Comment
-
You enclose the area of the product details within
Code:<div id="product-wrapper"> . . . </div>
Then all your popup page needs is
Code:<script type="text/javascript"> document.write(window.opener.document.getElementById("product-wrapper").innerHTML); </script>
Hang on and I'll post a general one that works with many product per page.Norman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Comment
-
Originally posted by NormanRouxelleave the Cart button, choices, etc out of this area.
Code:.cart-button { display: none }
This means you can wrap your entire product layout in the div you plan to print and then choose not to display items you dont want to (with some select div'ery)
HTH
Comment
-
Here's the general one for many product per page
Surround the code you want printable with
Code:<div id="pfp_<actinic:variable name="EncodedProductAnchor" />"> . . . </div>
Make the link like this
Code:<a href="printer_friendly.html?pfp_<actinic:variable name="EncodedProductAnchor" />" target="_blank">Printer Friendly Page</a>
Code:<script type="text/javascript"> document.write(window.opener.document.getElementById(location.search.substr(1)).innerHTML); </script>
Also add printer_friendly.html into Design / Additional files (actinic doesn't detect pages like printer_friendly.html?xyz).Norman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Comment
Comment