Invoice currency display

  • Posts: 22
  • Thank you received: 1
8 years 5 months ago #241488

-- url of the page with the problem -- : www.lecturadigitala.ro/index.php/ro/onli...e-bune-au-fost-datee
-- HikaShop version -- : 2.6.3 essential
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.6.12
-- Browser(s) name and version -- : safari9.1
-- Error-message(debug-mod must be tuned on) -- : Display RON currency in invoice

Hi,

I have an issue regarding displaying currencies on user print invoices.
I have a PayPal account with default currency in €. My store it is setup on romanian currency RON. When a user want to purchase an item, the price it is viewed both in € and RON. After purchase, user want to print his invoice. The currency invoice it is in €. I need it to be in RON or to display both currencies € and RON. Can be this possible? If yes how?

Regards,
Mihnea

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
8 years 5 months ago #241497

Hi,

There is no option to do that. The order was placed in EUR, and the payment was made in EUR. Thus, the invoice is in EUR.
If you want to convert the prices displayed there as an indication for the customer of the equivalent in RON, you'll have to edit the file "invoice" of the view "order" for your backend template via the menu Display>Views and add custom PHP code.

Please Log in or Create an account to join the conversation.

  • Posts: 22
  • Thank you received: 1
8 years 5 months ago #241567

Hi Nicolas,

Can you help me please with the php code?

Regards,
Mihnea

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
8 years 5 months ago #241572

Hi,

I can give you an example, but I cant do all the coding for you.
If you need someone to work on that customization, please contact our partners:
www.hikashop.com/home/our-partners.html

For example, the total is displayed like that:

<?php echo $this->currencyHelper->format($this->order->order_full_price,$this->order->order_currency_id); ?>

So you could add after it:
 (around <?php echo $this->currencyHelper->format($this->currencyHelper->convertUniquePrice($this->order->order_full_price,$this->order->order_currency_id,127),127); ?>)

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum