7 replies [Last post]
TutusForToddlers's picture
Offline
Joined: 11/17/2007
Juice: 158
Was this information Helpful?

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?

Thanks,
Claire
Tutus for Toddlers sells Tutus using UberCart for e-commerce with Drupal.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Invoice is not printable

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.

TutusForToddlers's picture
Offline
Joined: 11/17/2007
Juice: 158
Re: Re: Invoice is not printable

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.

Thanks,
Claire
Tutus for Toddlers sells Tutus using UberCart for e-commerce with Drupal.

TutusForToddlers's picture
Offline
Joined: 11/17/2007
Juice: 158
Re: Re: Re: Invoice is not printable

Can you tell me where/how the invoice is created for the customer and maybe I can work on this?

Thanks,
Claire
Tutus for Toddlers sells Tutus using UberCart for e-commerce with Drupal.

TutusForToddlers's picture
Offline
Joined: 11/17/2007
Juice: 158
Re: Re: Re: Re: Invoice is not printable

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?

Thanks,
Claire
Tutus for Toddlers sells Tutus using UberCart for e-commerce with Drupal.

TutusForToddlers's picture
Offline
Joined: 11/17/2007
Juice: 158
Re: Re: Re: Re: Re: Invoice is not printable

It should work if I just add /print to the invoice link on the admin/store/orders/# page.

Thanks,
Claire
Tutus for Toddlers sells Tutus using UberCart for e-commerce with Drupal.

TutusForToddlers's picture
Offline
Joined: 11/17/2007
Juice: 158
Re: Re: Re: Re: Re: Re: Invoice is not printable

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 {
}

Thanks,
Claire
Tutus for Toddlers sells Tutus using UberCart for e-commerce with Drupal.

jer5345's picture
Offline
Joined: 06/11/2010
Juice: 4
printable invoice problem also

...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

AttachmentSize
viewOrder1.png 41.55 KB
viewOrder2.png 45.7 KB
viewOrder3.png 10.49 KB