2 replies [Last post]
mrpoptart's picture
Offline
Joined: 01/15/2008
Juice: 49

I'm trying to add a new invoice to the list when viewing an order. I can get the menu item to show up by adding it to the $items['admin/store/orders/%uc_order/invoice calls in uc_order_module , but I can't seem to get the configuration right to make it actually show the invoice of my choosing.
Has anyone else done this?
Any thoughts?

sanguis's picture
Offline
Joined: 05/15/2009
Juice: 78
all you have to do is

copy an invoice template and make it a new file in the templates directory and it will show up in the list.

Left Click Computers
www.sanguisdevelopment.com over 6 years of custom eCommerce experience
on irc I am sanguisdex

mrpoptart's picture
Offline
Joined: 01/15/2008
Juice: 49
Re: all you have to do is

So, having the invoice show in the list of invoices is part of the problem. This means that when you add your new invoice, it shows up in the store/settings/orders section.

I don't want to replace the Customer Invoice with it, or have to manually switch the invoice every time I want to see the new invoice, I'd like it to show up in the list when you're on an order.

Right now, it says View invoice | Printable invoice | Mail invoice and I'd like to add "My Invoice" or something.

I've gotten the menu item to show up with the rest by modifying the Order.module, and then I've gotten it to go to a particular URL e.g. order#/invoice/myinvoice, but I can't make that actually show up anywhere.