Jump to content

[SOLVED] Remove "Invoice #" from invoice on pdf


Recommended Posts

Hi Community.

 

I trying to alter the design of the generated invoice pdf's, i version 1.5.2

and I'm struggling to remove the "Invoice #" part in front of the invoice number, in the header file under pdf.

 

The code in question :

{$title|escape:'htmlall':'UTF-8'}

generates something like :

Invoice #GTRMDMS

 

Any idea on how to remove the "Invoice #" part?

 

- Kris.

 

Edit: Btw.. I'm using default theme.

Edited by Supremacy2k (see edit history)
Link to comment
Share on other sites

And i just solved it. :)

 

So if anybody else is looking for a solution, here is the answer.

 

replace :

{$title|escape:'htmlall':'UTF-8'}

 

with:

 

{$title|replace:'Invoice #':'':escape:'htmlall':'UTF-8'}

 

Note: If you use another language than default English, replace "Invoice" with the relevant word in your language.

  • Like 2
Link to comment
Share on other sites

  • 1 year later...

I checked the database, and what I can see, the invoice number is saved as a number only, and I can´t find where the given prefix (orders/invoices/order_prefix) and the hashtag is added.
The hashtag is not a way to replace the word or the meaning of the word "number" in Scandinavian languages!

 

One thing more, annoying, is the unchangeable order number system. I would be very pleased if it was possible to decide how the order number system should look (random or number order). Same here, a random letter system looks only strange. I belive it is very important that the customer recognizes both how you express yourself and what terms you use.

 

While in complaint mode... Why not separate invoice series for different shops in multishop system? If not same VAT number for the different shops, then the invoice system is a big problem. According to Swedish tax law, all invoices must be presented in a number order - without gaps.

 

All replies and suggestions are more than welcome!

/anders

Link to comment
Share on other sites

I just copied that "replace code" from my 'invoice.tpl' and it is different than the one you tried:

 

yours: {$title|replace:'Invoice #':'':escape:'htmlall':'UTF-8'}
mine:  {$title|replace:'Invoice #':'':'htmlall':'UTF-8'}

 

So my guess is that if you want to replace "#" only it should be: {$title|replace:'#':'':'htmlall':'UTF-8'}

 

?

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...