News:

Looking for documentation? Take a look on our wiki

Main Menu

wrong prefix for pdf invoice file name

Started by jaumearagay, April 24, 2017, 14:55:06 PM

Previous topic - Next topic

jaumearagay

Hi there!

I have a site both in spanish and french with COM_VIRTUEMART_FILEPREFIX_INVOICE properly translated into spanish and french but it keeps creating "vminvoice_" for the PDF file name prefix. My site has spanish as default language for the admin too but the invoice PDF file name prefix is not created properly in any language.

I can override the constant in Joomla's backend, but it's only a patch and would work to create all the PDF files with the same prefix independently of the language the user was using when creating the invoice. Not an elegant solution! ;)

Johantofu

I know it sounds like something you might have checked already, but maybe you have some special characters in the prefix and thats causing the error?
Do not take life too seriously. You will never get out of it alive.

jaumearagay

Nope! No special chars around! vmtienda_ and vmboutique_ are the values for spanish and french constants.