Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

vm invoice fails with different shipping address
(1 viewing) (1) Guest
PDF Invoice generator and editor for Joomla and VirtueMart.

If your topic falls within one of the subcategories, then please post it directly there. Post to this parent category only if your question does not match any subcategory topic.

TOPIC: vm invoice fails with different shipping address

Re: vm invoice fails with different shipping address 10 years, 1 month ago #20753

  • jaku
The call to method $this->currency->getFullValue will return the number formatted in currency format, incl. the currency symbol (or code), depending on configuration. The currency is taken from VirtueMart ($this->order->order_currency)

If you want to use £ (pound) sign instead of GBP which is probably coming from VirtueMart, it should work if you define the currency translation GPB|£ (or GBP|£) in VM Invoice configuration.
Last Edit: 10 years, 1 month ago by .
The topic has been locked.

Re: vm invoice fails with different shipping address 10 years, 1 month ago #20755

Unfortunately GBP|£ does not work. It just prints GBP.
I have dug into this and in fact "$this->order->order_currency" produces nothing at all.
The topic has been locked.

Re: vm invoice fails with different shipping address 10 years, 1 month ago #20756

  • jaku
That is a bit weird. The value should be there.
Do you have any values in your vm_orders table in order_currency column?
The topic has been locked.

Re: vm invoice fails with different shipping address 10 years, 1 month ago #20757

all set to GBP
The topic has been locked.

Re: vm invoice fails with different shipping address 10 years, 1 month ago #20759

  • jaku
Then I do not see how "$this->order->order_currency" could be empty?
What line did you test it at?
The topic has been locked.

Re: vm invoice fails with different shipping address 10 years, 1 month ago #20761

If I add
'. $this->order->order_currency .'
to any lines then it displays GBP.

Maybe
$showCurrency = $this->params->get('always_show_currency') ? $this->order->order_currency : '';
is the bit which is not working, as nothing is displayed apart from the value.
Last Edit: 10 years, 1 month ago by clunky.
The topic has been locked.
Přihlášení uživatele Prázdný