Menu Content

Support

> Forums, FAQs & Paid Support
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 8 years, 8 months ago #20753

  • jaku
  • OFFLINE
  • Posts: 2697
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.
ARTIO Support Team
Last Edit: 8 years, 8 months ago by jaku.
The topic has been locked.

Re: vm invoice fails with different shipping address 8 years, 8 months 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 8 years, 8 months ago #20756

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

Re: vm invoice fails with different shipping address 8 years, 8 months ago #20757

all set to GBP
The topic has been locked.

Re: vm invoice fails with different shipping address 8 years, 8 months ago #20759

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

Re: vm invoice fails with different shipping address 8 years, 8 months 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: 8 years, 8 months ago by clunky.
The topic has been locked.
User Login Empty