Using Magento 1.9.0.1
When i am logged in as customer and placed an order, upon /checkout/onepage/success/ there is a line of text saying: Click here to print a copy of your order confirmation.
When clicking that link, it shows a (unstyled) page with the order details : /sales/order/print/order_id/3/ AND the "popup" for printing the order.
This also works the same when going in my account and viewing orders…
1) how can i prevent the contents showing on page (unstyled) so it will only show the print popup
2) what file would i need to edit to remove that print option all together from the page after placing the order: /checkout/onepage/success/
3) i also want to show that page as 1 column page would that need to be done on that same page?
Thought i might ask all these questions in 1 post as they are all closely related.
Thanks
Carlo
Best Answer
Print Dialog Override, AJAX Method
Extend
app/design/frontend/base/default/template/checkout/success.phtml
-- may be different depending on your theme. Change this line:To this:
The above is more like pseudo-code, and I do not advise to write it like that, but you can get the idea that you'd make an AJAX request for the printable contents, and upon its return, you can write it directly to the success page in a modal or something nice -- then prompt to print.
See the template referenced in #1.
"That page" -- The checkout success page? See below.
Changing the Checkout Success Template
Extend the
app/design/frontend/base/default/layout/checkout.xml
-- or else add the following to yourlocal.xml