When I click on the invoice tab the invoice shows correctly on the page but there is no option for me to print it.
Shouldn't I be able to?
Hmm... this option wasn't put on the admin side, but it is there for the pop-up invoice window from a customer's side. The problem w/ printing the admin invoice view is you'd get the whole site theme instead of just the invoice. It's not a bad idea to rethink how invoices work no the admin side, though.
It might be Old School but I like to print invoices out and put them in the box with the tutu when I ship an order. That is why I am looking for this "feature".
Thanks for the response Ryan. You guys are great! I love me the UberCart.
Can you tell me where/how the invoice is created for the customer and maybe I can work on this?
Can I just take the code from the customer invoice page ( Click to open a window with a printable invoice. ) and put that on the admin order/invoice page?
It should work if I just add /print to the invoice link on the admin/store/orders/# page.
I got this ugly code to work in a block. Where can I put it in the module?
<?php
$x = $_SERVER['REQUEST_URI'];
if (preg_match("/invoice/i", "$y")) {
$y = $GLOBALS['base_url'] . $_SERVER['REQUEST_URI'] . "/" . "print";
print <'a href=' . $y . '>'. "Print Your Invoice" . '<'/a>';
} else {
}
...so i'm relatively new to drupaling...and i've installed drupal 6, ubercart 2x mod, and installed the acquia prosper theme for ubercart. When I create a user and grant basic permissions to view order...after clicking on "Click to open a window with a printable invoice." I do get a new window with text, and buttons for either printing or closing.
My question is...I noticed that the spawned window has no styling to it...favicon is also gone.
There is also a link to the order number and when I click, it takes me to a page that has the admin theme and says access denied.
Is there a way to "theme" the printable invoice? And take out the link?
A little confused here...Is this feature primarily for admins printing invoices?
See pics and Thanks for pointing me in the right direction in advance.
- James
| Attachment | Size |
|---|---|
| viewOrder1.png | 41.55 KB |
| viewOrder2.png | 45.7 KB |
| viewOrder3.png | 10.49 KB |
