Page 1 of 1

error: invoice link in the confirmation mail misses ID

Posted: Fri Feb 20, 2009 8:56 am
by nde
In the order confirmation mail, the {invoice} link misses the ID. It just prints out:

Code: Select all

http://mysite.com/opencart/index.php?route=account/invoice

This only appears in the first email though, all further update mails include the right ID at the end:

Code: Select all

http://mysite.com/opencart/index.php?route=account/invoice&order_id=1

Re: error: invoice link in the confirmation mail misses ID

Posted: Sat Feb 21, 2009 9:35 pm
by Daniel
I have fixed this in the next version.

Re: error: invoice link in the confirmation mail misses ID

Posted: Sun Feb 22, 2009 8:46 am
by nde
great, thanks for giving feedback.

Re: error: invoice link in the confirmation mail misses ID

Posted: Sun Mar 08, 2009 11:22 am
by sturman
For those in a hurry to fix this bug, I have found that in catalog/model/checkout/order.php you need to change both lines 69 and 111 from:

Code: Select all

'invoice'    => $this->url->http('account/invoice') 
to:

Code: Select all

'invoice'    => $this->url->http('account/invoice') . '&order_id=' . $order_id
Thanks,

Henry